/* mysterious.quest -- Dopamine Aesthetic x Zen Contemplative */

/* ---- Palette ---- */
:root {
    --pink: #FF6B9D;
    --purple: #C471F5;
    --blue: #47CAFF;
    --yellow: #FFC947;
    --dark: #1A0A2E;
    --light: #FFF5F9;
    --text-light: #F0F0F0;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: #1A0A2E;
    background-color: #FFF5F9;
    overflow-x: hidden;
}

/* ---- Broken Grid Base ---- */
.section {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 2rem;
}

/* ---- Blur-Focus Pattern ---- */
.blur-target {
    filter: blur(8px);
    opacity: 0.6;
    transition: filter 600ms ease-out, opacity 600ms ease-out;
}

.blur-target.in-focus {
    filter: blur(0);
    opacity: 1;
}

/* ============================================
   Section 1: The Threshold (Hero)
   ============================================ */
.section-threshold {
    min-height: 100vh;
    background-color: #1A0A2E;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blob {
    position: absolute;
    mix-blend-mode: screen;
}

.blob-pink {
    width: 45vw;
    height: 45vw;
    top: 10%;
    left: 5%;
    animation: blobPulse 40s linear infinite;
}

.blob-purple {
    width: 40vw;
    height: 40vw;
    top: 15%;
    left: 30%;
    animation: blobPulse 50s linear infinite reverse;
}

.blob-blue {
    width: 38vw;
    height: 38vw;
    top: 5%;
    right: 5%;
    animation: blobPulse 60s linear infinite;
    animation-delay: -10s;
}

@keyframes blobPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.03) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

#quest-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(5rem, 15vw, 12rem);
    color: #F0F0F0;
    letter-spacing: -0.02em;
    font-variation-settings: 'wght' 100;
    animation: weightMorph 4s ease-in-out infinite alternate;
    line-height: 1;
}

@keyframes weightMorph {
    0% {
        font-variation-settings: 'wght' 100;
    }
    100% {
        font-variation-settings: 'wght' 900;
    }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: #F0F0F0;
    opacity: 0.7;
    margin-top: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

/* ============================================
   Section 2: The Garden
   ============================================ */
.section-garden {
    min-height: 100vh;
    background-color: #FFF5F9;
    padding: 8rem 2rem;
    align-content: center;
}

.garden-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.garden-text {
    grid-column: 1 / span 5;
    grid-row: 1;
    padding: 2rem;
}

.garden-text h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    color: #1A0A2E;
    margin-bottom: 1.5rem;
}

.garden-text p {
    color: #1A0A2E;
    margin-bottom: 1.2rem;
}

.garden-text-lower {
    grid-column: 2 / span 5;
    grid-row: 2;
    padding: 2rem;
    margin-top: -2rem;
}

.garden-text-lower p {
    color: #1A0A2E;
    font-style: italic;
}

.sharp-angles {
    grid-column: 7 / span 5;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2rem;
}

.angle-shape {
    width: clamp(5vw, 8vw, 10vw);
    height: auto;
    flex-shrink: 0;
}

/* ============================================
   Section 3: The Pool
   ============================================ */
.section-pool {
    min-height: 100vh;
    background-color: #FFF5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    overflow: hidden;
}

.pool-container {
    position: relative;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pool-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: poolPulse 6s ease-in-out infinite;
}

@keyframes poolPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.pool-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
    text-align: center;
}

.pool-content h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    color: #1A0A2E;
    margin-bottom: 1.5rem;
}

.pool-content p {
    color: #1A0A2E;
    margin-bottom: 1.2rem;
}

/* ============================================
   Section 4: The Peak
   ============================================ */
.section-peak {
    min-height: 100vh;
    background-color: #1A0A2E;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.peak-content {
    width: 40%;
    max-width: 600px;
    text-align: center;
}

.peak-content h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    color: #F0F0F0;
    margin-bottom: 2rem;
}

.peak-content p {
    color: #F0F0F0;
    margin-bottom: 1.5rem;
    line-height: 2;
}

.peak-closing {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-style: italic;
    color: #C471F5;
    margin-top: 3rem;
    letter-spacing: 0.05em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .garden-grid {
        display: block;
    }

    .garden-text,
    .garden-text-lower {
        padding: 1.5rem;
        transform: rotate(-1deg) !important;
    }

    .sharp-angles {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 2rem 1rem;
    }

    .angle-shape {
        width: 15vw;
    }

    .pool-container {
        width: 90vw;
        height: 90vw;
    }

    .pool-content {
        max-width: 75%;
    }

    .peak-content {
        width: 85%;
    }

    .blob-pink {
        width: 70vw;
        height: 70vw;
    }

    .blob-purple {
        width: 65vw;
        height: 65vw;
    }

    .blob-blue {
        width: 60vw;
        height: 60vw;
    }
}
