/* ========================================
   FOREST FAIRY-TALE WEDDING INVITATION
   Color Palette & Variables
   Professional Edition - SVG Icons
   ======================================== */

:root {
    /* Forest Greens */
    --forest-dark: #1a3a1a;
    --forest-main: #2d5016;
    --forest-mid: #4a7c3f;
    --forest-light: #6b9862;
    --moss-green: #8fbc8f;

    /* Browns */
    --bark-dark: #3e2723;
    --bark-main: #5d4037;
    --wood-light: #8d6e63;

    /* Gold Accents */
    --gold-main: #d4af37;
    --gold-light: #f4e5c2;
    --champagne: #f7e7ce;

    /* Magical Elements */
    --firefly-glow: #fffacd;
    --magic-blue: #a8d8ea;
    --fairy-pink: #ffd1dc;

    /* Neutrals */
    --cream: #faf8f3;
    --sage: #c8d5b9;

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-script: 'Great Vibes', cursive;
    --font-elegant: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--forest-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   SVG ICON STYLES
   ======================================== */

svg {
    display: inline-block;
    vertical-align: middle;
}

.btn-icon-svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    stroke: currentColor;
}

.svg-leaf-divider {
    width: 40px;
    height: 24px;
    color: var(--forest-mid);
}

.divider-leaf-svg {
    width: 32px;
    height: 32px;
    color: var(--gold-main);
    animation: leaf-gentle-sway 4s ease-in-out infinite;
}

@keyframes leaf-gentle-sway {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.date-icon-svg {
    width: 36px;
    height: 36px;
    color: var(--gold-main);
    animation: date-subtle-bounce 3s ease-in-out infinite;
}

@keyframes date-subtle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.scroll-icon-svg {
    width: 32px;
    height: 32px;
    color: var(--cream);
    animation: scroll-gentle-bounce 2s ease-in-out infinite;
}

@keyframes scroll-gentle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.title-icon-svg {
    width: 42px;
    height: 42px;
    color: var(--gold-main);
    animation: icon-gentle-float 3s ease-in-out infinite;
}

.title-icon-svg.leaf-icon {
    color: var(--forest-mid);
}

@keyframes icon-gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.location-icon-svg {
    width: 20px;
    height: 20px;
    color: var(--forest-mid);
    flex-shrink: 0;
}

.gallery-icon-svg {
    width: 50px;
    height: 50px;
    color: var(--gold-main);
    animation: gallery-icon-zoom 0.5s ease;
}

@keyframes gallery-icon-zoom {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.rsvp-icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Story Markers SVG */
.story-marker svg {
    width: 28px;
    height: 28px;
    color: var(--forest-dark);
}

/* Info Card Icons SVG */
.info-icon svg {
    width: 40px;
    height: 40px;
    color: var(--forest-mid);
}

/* Detail Card Icons SVG */
.detail-icon svg {
    width: 50px;
    height: 50px;
    color: var(--forest-mid);
    transition: all 0.3s ease;
}

.detail-card:hover .detail-icon svg {
    color: var(--gold-main);
    transform: scale(1.1);
}

/* Music Control SVG */
.music-control svg {
    width: 28px;
    height: 28px;
    color: var(--cream);
}

/* Footer Divider SVG */
.footer-divider svg {
    width: 60px;
    height: 24px;
    color: var(--gold-main);
}

/* ========================================
   FIREFLY CONTAINER (Background Particles)
   ======================================== */

.firefly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--firefly-glow);
    box-shadow: 0 0 10px 2px var(--firefly-glow),
        0 0 20px 4px rgba(255, 250, 205, 0.6);
    opacity: 0.7;
    animation: firefly-float 15s ease-in-out infinite,
        firefly-pulse 3s ease-in-out infinite;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

@keyframes firefly-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(50px, -100px) rotate(45deg);
    }

    50% {
        transform: translate(-30px, -200px) rotate(-45deg);
    }

    75% {
        transform: translate(70px, -150px) rotate(90deg);
    }
}

@keyframes firefly-pulse {

    0%,
    100% {
        opacity: 0.3;
        box-shadow: 0 0 10px 2px var(--firefly-glow);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px 4px var(--firefly-glow),
            0 0 30px 6px rgba(255, 250, 205, 0.8);
    }
}

/* ========================================
   FLYING BIRDS (SVG Version)
   ======================================== */

.birds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.bird {
    position: absolute;
    opacity: 0.5;
    animation: bird-fly 20s linear infinite;
    will-change: transform;
}

.bird svg {
    width: 24px;
    height: 24px;
    color: var(--forest-dark);
    opacity: 0.6;
}

.bird-1 {
    top: 15%;
    left: -50px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.bird-2 {
    top: 25%;
    left: -50px;
    animation-delay: 5s;
    animation-duration: 22s;
}

.bird-3 {
    top: 35%;
    left: -50px;
    animation-delay: 10s;
    animation-duration: 20s;
}

@keyframes bird-fly {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }

    5% {
        opacity: 0.5;
    }

    50% {
        transform: translateX(50vw) translateY(-30px);
        opacity: 0.5;
    }

    95% {
        opacity: 0.5;
    }

    100% {
        transform: translateX(100vw) translateY(0);
        opacity: 0;
    }
}

/* ========================================
   WELCOME SCREEN
   ======================================== */

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-main) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/welcome-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
}

.welcome-fireflies {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.welcome-firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--firefly-glow);
    box-shadow: 0 0 15px 3px var(--firefly-glow),
        0 0 25px 5px rgba(255, 250, 205, 0.7);
    animation: welcome-firefly-float 8s ease-in-out infinite,
        firefly-pulse 2.5s ease-in-out infinite;
}

@keyframes welcome-firefly-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, -30px);
    }
}

/* ========================================
   ENVELOPE 3D ANIMATION
   ======================================== */

.envelope-container {
    position: relative;
    width: 340px;
    height: 220px;
    perspective: 1000px;
    z-index: 10;
    animation: envelope-entrance 1s ease-out 0.5s both;
}

@keyframes envelope-entrance {
    0% {
        transform: scale(0.5) translateY(50px);
        opacity: 0;
    }

    70% {
        transform: scale(1.05) translateY(-10px);
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Envelope body - the main pocket */
.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f5f0e6 0%, #e8dcc8 100%);
    border: 2px solid var(--gold-main);
    border-radius: 4px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 0 30px rgba(212, 175, 55, 0.1);
    z-index: 1;
}

/* Inner shadow to give depth */
.envelope-back::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    pointer-events: none;
}

/* The letter/card that slides out */
.envelope-letter {
    position: absolute;
    width: 85%;
    height: 70%;
    left: 7.5%;
    bottom: 10%;
    background: linear-gradient(to bottom, #ffffff 0%, #faf8f3 100%);
    border: 1px solid var(--gold-light);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.6s ease 0.4s;
}

.envelope-letter.slide-up {
    transform: translateY(-55%);
    height: 140%;
}

.letter-content {
    padding: 25px 20px;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.envelope-letter.slide-up .letter-content {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

.letter-names {
    font-family: var(--font-script);
    font-size: 42px;
    color: var(--forest-main);
    margin-bottom: 12px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.letter-text {
    font-family: var(--font-elegant);
    font-size: 16px;
    color: var(--forest-mid);
    margin-bottom: 8px;
    line-height: 1.4;
}

.letter-divider {
    margin: 12px 0;
    display: flex;
    justify-content: center;
}

.letter-subtext {
    font-family: var(--font-elegant);
    font-size: 14px;
    color: var(--forest-mid);
    font-style: italic;
    margin-bottom: 10px;
}

.letter-date {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--gold-main);
    font-weight: 600;
    margin-top: 8px;
}

/* Triangular flap - opens upward */
.envelope-flap {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-left: 170px solid transparent;
    border-right: 170px solid transparent;
    border-top: 110px solid #e8dcc8;
    transform-origin: top center;
    transform: rotateX(0deg);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Gold border on flap */
.envelope-flap::before {
    content: '';
    position: absolute;
    top: -112px;
    left: -172px;
    border-left: 172px solid transparent;
    border-right: 172px solid transparent;
    border-top: 112px solid var(--gold-main);
    z-index: -1;
}

/* Inner flap design */
.envelope-flap::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -150px;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 95px solid rgba(212, 175, 55, 0.15);
}

.envelope-flap.open {
    transform: rotateX(-180deg);
    z-index: 0;
}

/* Wax seal - positioned at flap tip */
.wax-seal {
    position: absolute;
    width: 55px;
    height: 55px;
    left: 50%;
    top: 55px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 30%, #c9a227 0%, #8b6914 50%, #5d4037 100%);
    border-radius: 50%;
    border: 3px solid #f4e5c2;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.2),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.wax-seal.break {
    transform: translate(-50%, -50%) scale(1.4) rotate(25deg);
    opacity: 0;
}

.seal-stamp {
    font-family: var(--font-script);
    font-size: 16px;
    color: #f4e5c2;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* ========================================
   WELCOME BUTTON
   ======================================== */

.welcome-button {
    position: relative;
    z-index: 10;
    margin-top: 50px;
    padding: 18px 45px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--cream);
    background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest-main) 100%);
    border: 2px solid var(--gold-main);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: button-pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--forest-light) 0%, var(--forest-mid) 100%);
}

.welcome-button:active {
    transform: translateY(-1px);
}

@keyframes button-pulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    }
}

/* ========================================
   MAIN INVITATION
   ======================================== */

.main-invitation {
    position: relative;
    opacity: 0;
    transition: opacity 1.5s ease-out 0.3s;
}

.main-invitation.visible {
    opacity: 1;
}

/* ========================================
   PARALLAX LAYERS
   ======================================== */

.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    will-change: transform;
}

.layer-1 {
    background-image: url('images/parallax-1.jpg');
    opacity: 0.2;
    z-index: -3;
}

.layer-2 {
    background-image: url('images/welcome-bg.jpg');
    opacity: 0.15;
    z-index: -2;
}

.layer-3 {
    background-image: url('images/parallax-3.jpg');
    opacity: 0.1;
    z-index: -1;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(26, 58, 26, 0.4) 0%,
            rgba(45, 80, 22, 0.3) 50%,
            rgba(26, 58, 26, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--cream);
    padding: 0 20px;
    animation: hero-fade-in 1.5s ease-out;
}

@keyframes hero-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: 24px;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-script);
    font-size: 120px;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

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

.hero-name:nth-child(1) {
    animation-delay: 0s;
}

.hero-name:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes name-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-ampersand {
    display: inline-block;
    margin: 0 30px;
    font-size: 80px;
    color: var(--gold-main);
    animation: ampersand-rotate 4s ease-in-out infinite;
}

@keyframes ampersand-rotate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.divider-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--gold-main) 50%,
            transparent 100%);
}

.hero-quote {
    font-family: var(--font-elegant);
    font-size: 20px;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--gold-main);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--cream);
    opacity: 0.8;
    cursor: pointer;
    z-index: 3;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */

section {
    position: relative;
    padding: 100px 0;
    background: var(--cream);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 48px;
    text-align: center;
    color: var(--forest-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-subtitle {
    font-family: var(--font-elegant);
    font-size: 20px;
    text-align: center;
    color: var(--forest-mid);
    font-style: italic;
    margin-bottom: 60px;
}

/* ========================================
   COUPLE SHOWCASE SECTION
   ======================================== */

.couple-section {
    background: linear-gradient(135deg, var(--cream) 0%, rgba(200, 213, 185, 0.4) 50%, var(--cream) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.couple-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* Main Central Photo */
.couple-photo-main {
    position: relative;
    text-align: center;
}

.photo-frame {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gold-frame {
    padding: 12px;
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-light) 50%, var(--gold-main) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 2px var(--gold-main),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.gold-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 0 3px var(--gold-main),
        0 0 40px rgba(212, 175, 55, 0.4);
}

.couple-image-main {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.couple-names-badge {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--forest-main) 0%, var(--forest-dark) 100%);
    color: var(--cream);
    padding: 12px 40px;
    border-radius: 30px;
    font-family: var(--font-script);
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--gold-main);
    white-space: nowrap;
}

/* Photos Grid */
.couple-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 900px;
    margin-top: 20px;
}

.small-frame {
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--gold-light);
}

.small-frame:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.small-frame:nth-child(2):hover,
.small-frame:nth-child(4):hover {
    transform: translateY(-8px) rotate(-2deg);
}

.couple-image-small {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.photo-caption {
    font-family: var(--font-elegant);
    font-size: 14px;
    color: var(--forest-mid);
    text-align: center;
    padding: 10px 5px 5px;
    font-style: italic;
}

/* Decorative Quote */
.couple-quote {
    max-width: 700px;
    margin: 50px auto 0;
    text-align: center;
    position: relative;
    padding: 30px 40px;
}

.couple-quote .quote-icon {
    position: absolute;
    top: 0;
    left: 20px;
    width: 50px;
    height: 50px;
    color: var(--gold-main);
}

.couple-quote p {
    font-family: var(--font-elegant);
    font-size: 22px;
    color: var(--forest-dark);
    font-style: italic;
    line-height: 1.8;
}

/* Forest Decorations */
.forest-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    overflow: hidden;
    opacity: 0.25;
    pointer-events: none;
}

.forest-decoration.left {
    left: 0;
    mask-image: linear-gradient(to right, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, transparent 100%);
}

.forest-decoration.right {
    right: 0;
    mask-image: linear-gradient(to left, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 0%, transparent 100%);
}

.forest-decor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Couple Section */
@media (max-width: 992px) {
    .couple-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }

    .couple-image-main {
        width: 350px;
        height: 420px;
    }

    .forest-decoration {
        display: none;
    }
}

@media (max-width: 576px) {
    .couple-section {
        padding: 60px 0;
    }

    .couple-image-main {
        width: 280px;
        height: 350px;
    }

    .couple-names-badge {
        font-size: 22px;
        padding: 10px 30px;
    }

    .couple-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .couple-image-small {
        height: 140px;
    }

    .couple-quote p {
        font-size: 18px;
    }

    .couple-quote {
        padding: 20px;
    }
}

/* ========================================
   STORY SECTION
   ======================================== */

.story-section {
    background: linear-gradient(to bottom, var(--cream) 0%, var(--sage) 50%, var(--cream) 100%);
}

.story-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
            var(--forest-light) 0%,
            var(--gold-main) 50%,
            var(--forest-light) 100%);
    transform: translateX(-50%);
}

.story-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.story-left .story-content {
    margin-right: 55%;
    text-align: right;
}

.story-right .story-content {
    margin-left: 55%;
    text-align: left;
}

.story-content {
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--gold-light);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--sage);
}

.story-marker {
    position: absolute;
    top: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-light) 100%);
    border: 4px solid var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.story-left .story-marker {
    right: -85px;
}

.story-right .story-marker {
    left: -85px;
}

.story-heading {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--forest-main);
    margin-bottom: 10px;
}

.story-date {
    font-family: var(--font-elegant);
    font-size: 16px;
    color: var(--gold-main);
    font-weight: 600;
    margin-bottom: 15px;
}

.story-text {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--forest-dark);
    line-height: 1.8;
}

/* ========================================
   DETAILS SECTION
   ======================================== */

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.detail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(200, 213, 185, 0.5) 100%);
    border: 2px solid var(--gold-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.detail-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    animation: detail-icon-float 3s ease-in-out infinite;
}

@keyframes detail-icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.detail-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--forest-main);
    margin-bottom: 15px;
}

.detail-time {
    font-family: var(--font-elegant);
    font-size: 36px;
    color: var(--gold-main);
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-text {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--forest-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--forest-mid);
    font-weight: 600;
}

/* ========================================
   TENT VISUALIZATION
   ======================================== */

.tent-visualization {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 243, 0.95) 100%);
    border: 3px solid var(--gold-main);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.tent-heading {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--forest-main);
    text-align: center;
    margin-bottom: 30px;
}

.tent-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.tent-image {
    width: 100%;
    height: auto;
    display: block;
}

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

.tent-lights {
    width: 100%;
    height: 100%;
}

.tent-light {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--firefly-glow);
    border-radius: 50%;
    box-shadow: 0 0 15px 4px var(--firefly-glow);
    animation: tent-light-pulse 2s ease-in-out infinite;
}

.tent-light:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes tent-light-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.tent-description {
    font-family: var(--font-elegant);
    font-size: 18px;
    color: var(--forest-dark);
    text-align: center;
    line-height: 1.8;
    font-style: italic;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
    background: linear-gradient(to bottom, var(--cream) 0%, rgba(139, 188, 143, 0.2) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   IMAGE MODAL
   ======================================== */

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: modal-fade-in 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modal-zoom-in 0.3s ease;
}

@keyframes modal-zoom-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--cream);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold-main);
}

/* ========================================
   INFO SECTION
   ======================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--sage);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.info-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.info-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--forest-main);
    margin-bottom: 15px;
}

.info-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--forest-dark);
    line-height: 1.8;
}

/* ========================================
   RSVP SECTION
   ======================================== */

.rsvp-section {
    background: linear-gradient(135deg, var(--forest-main) 0%, var(--forest-dark) 100%);
    color: var(--cream);
}

.rsvp-section .section-title {
    color: var(--cream);
}

.rsvp-section .section-subtitle {
    color: var(--gold-light);
}

.rsvp-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-text {
    font-family: var(--font-elegant);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.rsvp-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.rsvp-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.rsvp-accept {
    background: linear-gradient(135deg, var(--forest-light) 0%, var(--forest-mid) 100%);
    color: var(--cream);
    border: 2px solid var(--gold-main);
}

.rsvp-accept:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 152, 98, 0.5);
}

.rsvp-decline {
    background: linear-gradient(135deg, var(--wood-light) 0%, var(--bark-main) 100%);
    color: var(--cream);
    border: 2px solid var(--gold-light);
}

.rsvp-decline:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(141, 110, 99, 0.5);
}

.rsvp-note {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gold-light);
    font-style: italic;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(to bottom, var(--forest-dark) 0%, var(--bark-dark) 100%);
    padding: 60px 20px;
    text-align: center;
    color: var(--cream);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 48px;
    color: var(--gold-main);
    margin-bottom: 20px;
}

.footer-divider {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.footer-date {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-quote {
    font-family: var(--font-elegant);
    font-size: 18px;
    font-style: italic;
    opacity: 0.9;
}

/* ========================================
   MUSIC CONTROL
   ======================================== */

.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest-main) 100%);
    border: 3px solid var(--gold-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0;
}

.music-control.visible {
    opacity: 1;
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.music-icon.playing {
    display: block;
}

.music-icon.paused {
    display: none;
}

.music-control.paused .music-icon.playing {
    display: none;
}

.music-control.paused .music-icon.paused {
    display: block;
}

/* ========================================
   FALLING LEAVES & SPARKLES (SVG Version)
   ======================================== */

.falling-leaf {
    position: fixed;
    pointer-events: none;
    z-index: 8;
    animation: leaf-fall 10s linear forwards;
    will-change: transform, opacity;
}

.falling-leaf svg {
    width: 20px;
    height: 20px;
    color: var(--forest-mid);
    opacity: 0.7;
}

@keyframes leaf-fall {
    0% {
        transform: translateY(-50px) rotate(0deg) translateX(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(50px);
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh) rotate(360deg) translateX(-30px);
        opacity: 0;
    }
}

.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9;
    animation: sparkle-rise 3s ease-out forwards;
    will-change: transform, opacity;
}

.sparkle svg {
    width: 16px;
    height: 16px;
    color: var(--gold-main);
}

@keyframes sparkle-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-200px) scale(1.2);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {

    /* Welcome Screen */
    .envelope-container {
        width: 280px;
        height: 180px;
    }

    .envelope-flap {
        border-left: 140px solid transparent;
        border-right: 140px solid transparent;
        border-top: 90px solid #e8dcc8;
    }

    .envelope-flap::before {
        top: -92px;
        left: -142px;
        border-left: 142px solid transparent;
        border-right: 142px solid transparent;
        border-top: 92px solid var(--gold-main);
    }

    .envelope-flap::after {
        top: -82px;
        left: -125px;
        border-left: 125px solid transparent;
        border-right: 125px solid transparent;
        border-top: 78px solid rgba(212, 175, 55, 0.15);
    }

    .wax-seal {
        width: 45px;
        height: 45px;
        top: 45px;
    }

    .seal-stamp {
        font-size: 14px;
    }

    .letter-names {
        font-size: 32px;
    }

    .letter-text {
        font-size: 14px;
    }

    .letter-subtext {
        font-size: 12px;
    }

    .letter-date {
        font-size: 16px;
    }

    .letter-content {
        padding: 18px 15px;
    }

    .welcome-button {
        font-size: 16px;
        padding: 15px 35px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 60px;
    }

    .hero-ampersand {
        font-size: 40px;
        margin: 0 15px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-quote {
        font-size: 16px;
    }

    .hero-date {
        font-size: 20px;
    }

    .date-icon-svg {
        width: 28px;
        height: 28px;
    }

    /* Sections */
    .section-title {
        font-size: 32px;
        flex-direction: column;
        gap: 10px;
    }

    .title-icon-svg {
        width: 36px;
        height: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Story Timeline */
    .story-timeline::before {
        left: 30px;
    }

    .story-left .story-content,
    .story-right .story-content {
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
    }

    .story-left .story-marker,
    .story-right .story-marker {
        left: 0;
        right: auto;
    }

    /* Details Grid */
    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-card {
        padding: 30px;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* RSVP Buttons */
    .rsvp-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .rsvp-button {
        padding: 18px 35px;
        font-size: 16px;
        justify-content: center;
    }

    /* Music Control */
    .music-control {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .music-control svg {
        width: 24px;
        height: 24px;
    }

    /* Birds */
    .bird svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-ampersand {
        font-size: 32px;
        margin: 0 10px;
    }

    .divider-line {
        width: 100px;
    }

    .section-title {
        font-size: 28px;
    }

    .tent-heading {
        font-size: 24px;
    }

    .tent-visualization {
        padding: 30px 20px;
    }

    .footer-names {
        font-size: 36px;
    }
}