/* ============================================================
   LOVES.DAY - AVANT-GARDE NATURE COLLAGE
   Color Palette: #2D5A3D, #1A2E1A, #5A8F6E, #1B3A2A, #A8C256, #F4F1EA, #C4A882
   Typography: Playfair Display (italic, serif), Space Grotesk, Source Serif 4
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.75;
    background-color: #F4F1EA;
    color: #2D5A3D;
    overflow-x: hidden;
}

main {
    position: relative;
}

/* ============================================================
   VINE SCROLL INDICATOR (Left Margin)
   ============================================================ */

.vine-scroll {
    position: fixed;
    left: 20px;
    top: 0;
    width: 60px;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
}

.vine-path {
    stroke: #A8C256;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 4px rgba(26, 46, 26, 0.1));
}

/* ============================================================
   SECTIONS - BASE LAYOUT
   ============================================================ */

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */

.hero-section {
    background: linear-gradient(135deg, #F4F1EA 0%, #F4F1EA 70%, rgba(168, 194, 86, 0.08) 100%);
    position: relative;
}

.domain-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.1;
    color: #1A2E1A;
}

.letter {
    display: inline-block;
    animation: float-letter 3s ease-in-out infinite;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.15s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.45s; }
.letter:nth-child(5) { animation-delay: 0.6s; }
.letter:nth-child(6) { animation-delay: 0.75s; }
.letter:nth-child(7) { animation-delay: 0.9s; }
.letter:nth-child(8) { animation-delay: 1.05s; }
.letter:nth-child(9) { animation-delay: 1.2s; }

@keyframes float-letter {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

/* ============================================================
   COLLAGE FRAGMENTS - TORN EDGE EFFECT
   ============================================================ */

.collage-fragment {
    position: absolute;
    background: linear-gradient(135deg, #5A8F6E, #2D5A3D);
    filter: contrast(1.1) saturate(0.85) hue-rotate(5deg);
    box-shadow: 0 8px 24px rgba(26, 46, 26, 0.2);
    animation: fragment-drift 6s ease-in-out infinite;
}

/* Torn edge clip-paths */
.fragment-1 {
    width: 280px;
    height: 240px;
    left: 5%;
    top: 10%;
    clip-path: polygon(
        5% 0%, 95% 2%, 98% 8%, 100% 15%, 99% 25%, 95% 30%,
        98% 40%, 100% 50%, 99% 60%, 97% 70%, 95% 78%, 98% 85%,
        99% 92%, 95% 98%, 5% 100%, 2% 95%, 0% 88%, 1% 75%,
        0% 65%, 2% 55%, 0% 45%, 1% 35%, 3% 25%, 2% 15%, 0% 8%
    );
    animation-delay: 0s;
}

.fragment-2 {
    width: 200px;
    height: 280px;
    left: 30%;
    top: 5%;
    clip-path: polygon(
        8% 0%, 92% 3%, 97% 10%, 100% 20%, 98% 35%, 96% 50%,
        98% 65%, 100% 80%, 97% 92%, 90% 98%, 10% 100%, 3% 92%,
        0% 80%, 2% 65%, 0% 50%, 2% 35%, 5% 20%, 3% 8%, 2% 0%
    );
    animation-delay: 1s;
}

.fragment-3 {
    width: 240px;
    height: 200px;
    right: 8%;
    top: 15%;
    clip-path: polygon(
        12% 0%, 100% 0%, 98% 8%, 100% 18%, 99% 28%, 98% 38%,
        100% 50%, 97% 62%, 99% 75%, 100% 88%, 95% 98%, 5% 100%,
        3% 92%, 2% 80%, 0% 70%, 1% 55%, 0% 40%, 2% 28%, 1% 15%,
        0% 5%
    );
    animation-delay: 2s;
}

.fragment-4 {
    width: 160px;
    height: 220px;
    left: 12%;
    bottom: 15%;
    clip-path: polygon(
        10% 0%, 90% 2%, 97% 12%, 100% 25%, 98% 40%, 100% 55%,
        99% 70%, 95% 85%, 92% 95%, 8% 100%, 2% 90%, 0% 75%,
        1% 60%, 0% 45%, 2% 30%, 0% 15%, 3% 5%
    );
    animation-delay: 0.5s;
}

.fragment-5 {
    width: 220px;
    height: 180px;
    right: 12%;
    bottom: 10%;
    clip-path: polygon(
        6% 0%, 94% 1%, 99% 8%, 100% 20%, 97% 32%, 99% 45%,
        100% 60%, 96% 75%, 94% 88%, 6% 98%, 2% 85%, 0% 72%,
        2% 58%, 1% 42%, 3% 28%, 1% 15%, 3% 5%
    );
    animation-delay: 1.5s;
}

.fragment-6 {
    width: 180px;
    height: 240px;
    left: 45%;
    bottom: 5%;
    clip-path: polygon(
        15% 0%, 85% 3%, 98% 15%, 100% 32%, 97% 50%, 99% 68%,
        100% 85%, 88% 97%, 12% 100%, 0% 82%, 2% 65%, 0% 48%,
        2% 32%, 1% 18%, 5% 5%
    );
    animation-delay: 2.5s;
}

@keyframes fragment-drift {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
    25% { transform: translateY(-20px) rotate(1deg); }
    50% { transform: translateY(-40px) rotate(-1deg); opacity: 0.95; }
    75% { transform: translateY(-20px) rotate(1deg); }
}

/* ============================================================
   COLLAGE GRIDS
   ============================================================ */

.collage-grid {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 40px 0;
}

.hero-collage {
    margin: 60px auto;
}

/* ============================================================
   COLLAGE ISLAND (Clustered fragments)
   ============================================================ */

.collage-island {
    position: relative;
    width: 600px;
    height: 500px;
    margin: 40px auto;
}

/* ============================================================
   FRAGMENTED TEXT
   ============================================================ */

.fragmented-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.text-leaf {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(90, 143, 110, 0.1);
    border-left: 3px solid #5A8F6E;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    animation: leaf-float 4s ease-in-out infinite;
}

.text-leaf:nth-child(1) { animation-delay: 0s; }
.text-leaf:nth-child(2) { animation-delay: 0.3s; }
.text-leaf:nth-child(3) { animation-delay: 0.6s; }
.text-leaf:nth-child(4) { animation-delay: 0.9s; }
.text-leaf:nth-child(5) { animation-delay: 1.2s; }
.text-leaf:nth-child(6) { animation-delay: 1.5s; }

@keyframes leaf-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* ============================================================
   SECTION 2: COLLAGE ISLAND
   ============================================================ */

.collage-section {
    background: linear-gradient(to bottom, #F4F1EA, rgba(196, 168, 130, 0.1));
    position: relative;
}

.text-overlay {
    position: absolute;
    bottom: 80px;
    right: 60px;
    max-width: 400px;
    text-align: right;
}

.descriptive-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #1A2E1A;
    margin: 20px 0;
    opacity: 0.8;
    animation: text-fade-in 2s ease-in-out;
}

@keyframes text-fade-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 0.8; transform: translateX(0); }
}

/* ============================================================
   SECTION 3: JOURNEY
   ============================================================ */

.journey-section {
    background: linear-gradient(135deg, rgba(26, 46, 26, 0.05) 0%, rgba(168, 194, 86, 0.1) 100%);
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    font-weight: 500;
    color: #1B3A2A;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scattered-text {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 60px;
    flex-wrap: wrap;
}

.text-piece {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    font-weight: 300;
    font-style: italic;
    color: #5A8F6E;
    opacity: 0.7;
    padding: 12px 20px;
    margin: 10px;
    background: rgba(196, 168, 130, 0.2);
    border-radius: 2px;
    animation: piece-appear 1.5s ease-in-out;
}

.text-piece:nth-child(1) { animation-delay: 0s; }
.text-piece:nth-child(2) { animation-delay: 0.3s; }

@keyframes piece-appear {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 0.7; transform: scale(1); }
}

/* ============================================================
   SECTION 4: CLOSING
   ============================================================ */

.closing-section {
    background: linear-gradient(to top, rgba(26, 46, 26, 0.05), #F4F1EA);
    position: relative;
}

.closing-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-style: italic;
    color: #1A2E1A;
    max-width: 700px;
    text-align: center;
    margin-top: 80px;
    line-height: 1.8;
    opacity: 0.9;
    animation: closing-appear 2s ease-in-out;
}

@keyframes closing-appear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 0.9; transform: translateY(0); }
}

/* ============================================================
   ADDITIONAL FRAGMENTS FOR SECTIONS 2-4
   ============================================================ */

.fragment-7 {
    width: 200px;
    height: 250px;
    position: relative;
    left: -100px;
    top: -50px;
    clip-path: polygon(
        8% 5%, 92% 2%, 98% 12%, 99% 28%, 97% 45%, 100% 65%,
        98% 80%, 92% 92%, 8% 98%, 2% 82%, 1% 65%, 3% 48%,
        0% 28%, 2% 12%
    );
}

.fragment-8 {
    width: 250px;
    height: 200px;
    position: relative;
    left: 50px;
    top: 80px;
    clip-path: polygon(
        10% 0%, 90% 4%, 99% 15%, 100% 32%, 96% 50%, 100% 70%,
        98% 88%, 88% 97%, 12% 100%, 2% 85%, 0% 65%, 2% 48%,
        0% 28%, 4% 8%
    );
}

.fragment-9 {
    width: 180px;
    height: 220px;
    position: relative;
    left: 200px;
    top: -30px;
    clip-path: polygon(
        12% 0%, 88% 3%, 97% 10%, 100% 25%, 98% 40%, 100% 60%,
        97% 78%, 90% 95%, 10% 100%, 3% 88%, 0% 70%, 2% 52%,
        1% 35%, 3% 15%
    );
}

.fragment-10 {
    width: 220px;
    height: 180px;
    position: relative;
    left: -50px;
    top: 120px;
    clip-path: polygon(
        15% 5%, 85% 0%, 99% 8%, 100% 22%, 97% 38%, 99% 55%,
        100% 72%, 94% 88%, 15% 98%, 1% 78%, 0% 58%, 3% 40%,
        2% 20%
    );
}

.fragment-11 {
    width: 240px;
    height: 200px;
    position: relative;
    left: 150px;
    top: 60px;
    clip-path: polygon(
        6% 8%, 94% 2%, 99% 12%, 100% 30%, 96% 48%, 100% 68%,
        98% 85%, 86% 96%, 8% 100%, 0% 82%, 1% 62%, 2% 42%,
        0% 22%, 4% 5%
    );
}

.fragment-12 {
    width: 210px;
    height: 260px;
    position: relative;
    left: 40px;
    top: 20px;
    clip-path: polygon(
        10% 0%, 90% 5%, 98% 15%, 100% 32%, 97% 50%, 100% 70%,
        99% 88%, 88% 96%, 10% 100%, 2% 82%, 0% 65%, 2% 48%,
        1% 30%, 3% 12%
    );
}

.fragment-13 {
    width: 250px;
    height: 190px;
    position: relative;
    left: 280px;
    top: -60px;
    clip-path: polygon(
        8% 3%, 92% 0%, 99% 10%, 100% 25%, 95% 42%, 100% 62%,
        98% 80%, 90% 95%, 12% 100%, 1% 78%, 0% 58%, 3% 40%,
        2% 18%
    );
}

.fragment-14 {
    width: 190px;
    height: 240px;
    position: relative;
    left: 500px;
    top: 30px;
    clip-path: polygon(
        14% 0%, 86% 4%, 97% 12%, 100% 28%, 98% 45%, 100% 65%,
        97% 82%, 88% 94%, 14% 100%, 2% 88%, 0% 70%, 2% 52%,
        1% 32%, 5% 10%
    );
}

.fragment-15 {
    width: 220px;
    height: 200px;
    position: relative;
    left: 150px;
    top: 100px;
    clip-path: polygon(
        7% 5%, 93% 1%, 99% 8%, 100% 22%, 96% 38%, 100% 58%,
        99% 75%, 92% 92%, 9% 98%, 1% 80%, 0% 62%, 3% 45%,
        2% 25%
    );
}

.fragment-16 {
    width: 240px;
    height: 220px;
    position: relative;
    left: -80px;
    top: -40px;
    clip-path: polygon(
        11% 0%, 89% 3%, 98% 10%, 100% 25%, 97% 42%, 100% 62%,
        99% 80%, 90% 95%, 10% 100%, 2% 82%, 0% 65%, 2% 48%,
        1% 28%, 4% 8%
    );
}

.fragment-17 {
    width: 200px;
    height: 240px;
    position: relative;
    left: 120px;
    top: 50px;
    clip-path: polygon(
        9% 0%, 91% 4%, 99% 12%, 100% 30%, 96% 48%, 100% 68%,
        98% 85%, 88% 96%, 11% 100%, 1% 80%, 0% 60%, 3% 42%,
        2% 20%
    );
}

.fragment-18 {
    width: 260px;
    height: 190px;
    position: relative;
    left: 320px;
    top: -20px;
    clip-path: polygon(
        6% 5%, 94% 2%, 99% 10%, 100% 28%, 97% 45%, 100% 65%,
        98% 82%, 88% 96%, 8% 100%, 0% 78%, 1% 58%, 2% 40%,
        0% 20%, 5% 5%
    );
}

.fragment-19 {
    width: 210px;
    height: 210px;
    position: relative;
    left: 200px;
    top: 80px;
    clip-path: polygon(
        12% 0%, 88% 5%, 97% 15%, 100% 32%, 98% 50%, 100% 70%,
        97% 88%, 88% 97%, 12% 100%, 2% 85%, 0% 65%, 2% 48%,
        1% 28%, 4% 10%
    );
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    section {
        padding: 40px 20px;
    }

    .domain-title {
        font-size: clamp(2rem, 7vw, 4rem);
    }

    .section-heading {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .collage-grid,
    .collage-island {
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .text-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 40px;
        text-align: center;
    }

    .vine-scroll {
        width: 40px;
        left: 10px;
    }

    .fragmented-text {
        gap: 12px;
        font-size: 0.95rem;
    }

    .scattered-text {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 30px 15px;
    }

    .domain-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 30px;
    }

    .letter {
        animation: none;
    }

    .collage-fragment {
        animation: none;
    }

    .vine-scroll {
        display: none;
    }

    .closing-text {
        font-size: clamp(1rem, 2vw, 1.4rem);
    }
}
