/* relative.quest - Surreal Parallax */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --space-indigo: #0F0F2D;
    --deep-blue: #1A1A40;
    --electric-purple: #4040A0;
    --warm-amber: #E0A040;
    --hot-pink: #E060A0;
    --teal-shift: #40C0B0;
    --mist-lavender: #E8E0F0;
    --slate-purple: #8080A0;
}
body {
    background: var(--space-indigo);
    color: var(--mist-lavender);
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

/* Perspective Grid */
#perspective-grid {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    z-index: 0;
    background:
        repeating-linear-gradient(90deg, rgba(64,64,160,0.08) 0px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(64,64,160,0.08) 0px, transparent 1px, transparent 80px);
    transform: perspective(500px) rotateX(65deg);
    transform-origin: bottom center;
    pointer-events: none;
}

/* Parallax Sections */
.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    transition: transform 0.3s ease;
}
.shape-circle {
    width: 200px;
    height: 200px;
    background: var(--hot-pink);
    top: 15%;
    left: 10%;
}
.shape-square {
    width: 120px;
    height: 120px;
    background: var(--teal-shift);
    border-radius: 8px;
    top: 60%;
    right: 15%;
}
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid var(--warm-amber);
    background: none;
    border-radius: 0;
    top: 20%;
    right: 25%;
    opacity: 0.15;
}
.shape-circle-sm {
    width: 100px;
    height: 100px;
    background: var(--electric-purple);
    top: 30%;
    right: 8%;
}
.shape-diamond {
    width: 80px;
    height: 80px;
    background: var(--warm-amber);
    transform: rotate(45deg);
    border-radius: 4px;
    top: 70%;
    left: 15%;
}
.shape-square-lg {
    width: 250px;
    height: 250px;
    background: var(--teal-shift);
    border-radius: 12px;
    top: 10%;
    right: -5%;
    opacity: 0.06;
}
.shape-dot {
    width: 20px;
    height: 20px;
    background: var(--hot-pink);
    top: 80%;
    left: 20%;
    opacity: 0.3;
}
.shape-triangle-lg {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 170px solid var(--electric-purple);
    background: none;
    border-radius: 0;
    top: 5%;
    left: -3%;
    opacity: 0.06;
}
.shape-circle-xs {
    width: 40px;
    height: 40px;
    background: var(--warm-amber);
    bottom: 20%;
    right: 10%;
    opacity: 0.2;
}
.shape-diamond-sm {
    width: 50px;
    height: 50px;
    background: var(--hot-pink);
    transform: rotate(45deg);
    border-radius: 4px;
    top: 25%;
    left: 30%;
    opacity: 0.1;
}

/* Layer speeds */
.bg-layer { z-index: 0; }
.fg-layer { z-index: 2; }

/* Content Layer */
.content-layer {
    position: relative;
    z-index: 1;
    max-width: 580px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.content-layer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Annotation Line */
.annotation-line {
    width: 40px;
    height: 1px;
    background: var(--slate-purple);
    margin: 0 auto 2rem;
    opacity: 0.4;
}

/* Typography */
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--mist-lavender);
    letter-spacing: 0.02em;
    transition: transform 0.15s ease;
}
.hero-sub {
    font-size: 1rem;
    color: var(--slate-purple);
    margin-top: 0.75rem;
    font-weight: 300;
    font-style: italic;
}
.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--warm-amber);
    margin-bottom: 1.5rem;
}
.section-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--mist-lavender);
    opacity: 0.85;
}
.size-label {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.7rem;
    font-weight: 300;
    font-style: italic;
    color: var(--teal-shift);
    opacity: 0.6;
}

/* Footer */
#footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
}
.footer-text {
    font-size: 0.8rem;
    color: var(--slate-purple);
    opacity: 0.3;
}

@media (max-width: 600px) {
    .parallax-section { padding: 3rem 1.5rem; }
    .shape-circle { width: 120px; height: 120px; }
    .shape-square-lg { width: 150px; height: 150px; }
}
