:root {
    --primary: #9A0324;
    --primary-dark: #700A1A;
    --secondary: #D4A574;
    --accent: #C9A227;
    --accent-gold: #D4AF37;
    --bg-cream: #FDF8F3;
    --bg-warm: #FAF3EB;
    --text-primary: #2C1810;
    --text-secondary: #5C4033;
    --blush: #E8B4B8;
    --blush-light: #F5E1E3;
    --white: #FFFFFF;
    --shadow-soft: rgba(154, 3, 36, 0.15);
    --shadow-medium: rgba(154, 3, 36, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== ENVELOPE ANIMATION ========== */
#envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(212, 165, 116, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(232, 180, 184, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 50%, var(--blush-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease, visibility 1s ease;
}

#envelope-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60% 20%, rgba(212, 175, 55, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 50%, rgba(212, 175, 55, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 80%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 90%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
        linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#envelope-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

#envelope-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope {
    position: relative;
    width: 400px;
    height: 260px;
    perspective: 1200px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: envelopeFloat 5s ease-in-out infinite;
}

@keyframes envelopeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(0.3deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
    75% { transform: translateY(-6px) rotate(-0.3deg); }
}

.envelope:hover {
    transform: scale(1.03);
}

.envelope-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s ease;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.envelope.is-open .envelope-glow {
    opacity: 0;
}

.envelope-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, #9A0324 0%, #8A031E 20%, #700A1A 80%, #600818 100%);
    border-radius: 6px;
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1) inset,
        0 2px 0 rgba(255,255,255,0.1) inset;
    z-index: 1;
}

.envelope-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-radius: 6px 6px 0 0;
    pointer-events: none;
}

.letter {
    position: absolute;
    top: 12px;
    left: 10px;
    width: 380px;
    height: 236px;
    background: 
        linear-gradient(180deg, #FFFEF5 0%, #FFF9E6 50%, #FFF5D6 100%);
    border: 1px solid #E8D9B8;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.1),
        inset 0 0 30px rgba(212, 175, 55, 0.03);
    z-index: 2;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.letter::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.letter-content {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease 1s;
}

.envelope.is-open .letter-content {
    opacity: 1;
    transform: translateY(0);
}

.letter-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.letter-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.envelope-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(160deg, #9A0324 0%, #8A031E 30%, #700A1A 70%, #600818 100%);
    clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
    border-radius: 4px;
    z-index: 3;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.envelope-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.gold-border-left,
.gold-border-right {
    position: absolute;
    width: 3px;
    height: 50%;
    background: linear-gradient(to bottom, #D4AF37, #B8962E);
}

.gold-border-left {
    left: 0;
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
    transform: skewY(-26deg);
    transform-origin: top left;
}

.gold-border-right {
    right: 0;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
    transform: skewY(26deg);
    transform-origin: top right;
    left: auto;
}



.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: 
        linear-gradient(180deg, #A50328 0%, #8A031E 30%, #700A1A 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 4;
    transform-origin: top;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s 0.3s;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.15);
}

.envelope-flap::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 22px solid #D4AF37;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

.envelope-flap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    pointer-events: none;
}

.wax-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 75px;
    background: radial-gradient(circle at 30% 30%, #FFEAB8 0%, #FBF5B7 20%, #C49A2D 70%, #9E7A1C 100%);
    border-radius: 50%;
    box-shadow: 
        0 6px 15px rgba(0,0,0,0.35),
        0 0 20px rgba(212, 175, 55, 0.3),
        inset 0 3px 6px rgba(255,255,255,0.7),
        inset 0 -3px 6px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5A4510;
    font-size: 24px;
    font-family: "Segoe Script", "Vivaldi", cursive;
    letter-spacing: 1px;
    border: 3px double #8B6914;
    z-index: 10;
    animation: sealBreath 3s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

@keyframes sealBreath {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.envelope:hover .wax-seal {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.4),
        0 0 30px rgba(212, 175, 55, 0.5),
        inset 0 3px 6px rgba(255,255,255,0.7),
        inset 0 -3px 6px rgba(0,0,0,0.15);
}

.envelope.is-open .wax-seal {
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
    opacity: 0;
}

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

.envelope.is-open .letter {
    transform: translateY(-120px) scale(0.95);
    opacity: 0.9;
    transition-delay: 0.5s;
}

#fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(ellipse at center, rgba(253, 248, 243, 0.95) 0%, rgba(250, 243, 235, 0.98) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 1.2s ease-in-out;
}

#fade-overlay.active {
    opacity: 1;
    pointer-events: all;
}

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

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
}

.sparkle::before,
.sparkle::after {
    content: '✦';
    position: absolute;
    font-size: 12px;
    color: #D4AF37;
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.8);
}

.sparkle::after {
    transform: rotate(45deg);
}

@keyframes sparklePop {
    0% { 
        opacity: 0; 
        transform: scale(0) translateY(0); 
    }
    30% { 
        opacity: 1; 
        transform: scale(1.2) translateY(-20px); 
    }
    60% { 
        opacity: 0.8; 
        transform: scale(0.8) translateY(-60px); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0) translateY(-100px); 
    }
}

.envelope.is-open .sparkle {
    animation: sparklePop 1.2s ease-out forwards;
}

.sparkle-1 { top: 20%; left: 30%; animation-delay: 0.1s; }
.sparkle-2 { top: 25%; left: 60%; animation-delay: 0.2s; }
.sparkle-3 { top: 40%; left: 25%; animation-delay: 0.3s; }
.sparkle-4 { top: 35%; left: 70%; animation-delay: 0.15s; }
.sparkle-5 { top: 50%; left: 45%; animation-delay: 0.25s; }
.sparkle-6 { top: 45%; left: 80%; animation-delay: 0.35s; }
.sparkle-7 { top: 30%; left: 40%; animation-delay: 0.4s; }
.sparkle-8 { top: 55%; left: 35%; animation-delay: 0.18s; }

.gold-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow: 0 0 6px #D4AF37, 0 0 12px rgba(212, 175, 55, 0.5);
    opacity: 0;
}

@keyframes goldSparkleFly {
    0% { opacity: 0; transform: translate(0, 0) scale(0); }
    20% { opacity: 1; transform: translate(10px, -30px) scale(1); }
    100% { opacity: 0; transform: translate(30px, -150px) scale(0); }
}

.envelope.is-open .gold-sparkle {
    animation: goldSparkleFly 1.5s ease-out forwards;
}

.gs-1 { top: 30%; left: 45%; animation-delay: 0.1s; }
.gs-2 { top: 35%; left: 50%; animation-delay: 0.2s; }
.gs-3 { top: 40%; left: 40%; animation-delay: 0.3s; }
.gs-4 { top: 28%; left: 55%; animation-delay: 0.15s; }
.gs-5 { top: 38%; left: 48%; animation-delay: 0.25s; }
.gs-6 { top: 32%; left: 52%; animation-delay: 0.35s; }
.gs-7 { top: 42%; left: 42%; animation-delay: 0.4s; }
.gs-8 { top: 25%; left: 50%; animation-delay: 0.22s; }
.gs-9 { top: 45%; left: 55%; animation-delay: 0.28s; }
.gs-10 { top: 33%; left: 38%; animation-delay: 0.18s; }

.click-hint {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: opacity 0.5s ease;
}

.envelope.is-open + .click-hint,
#envelope-overlay.hidden .click-hint {
    opacity: 0;
    pointer-events: none;
}

.click-hint span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: hintPulse 2s ease-in-out infinite;
}

.click-hint::before {
    content: '';
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; letter-spacing: 3px; }
    50% { opacity: 1; letter-spacing: 5px; }
}

@keyframes arrowBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ========== MUSIC TOGGLE ========== */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.music-toggle.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px var(--shadow-medium);
    background: var(--accent-gold);
}

.music-toggle:hover .music-icon svg {
    stroke: var(--white);
}

.music-toggle:hover .music-bar {
    background: var(--white);
}

.music-toggle.playing .music-bars {
    animation: musicBars 1s ease-in-out infinite;
}

.music-toggle.playing .music-bar:nth-child(1) {
    animation: musicBar1 0.6s ease-in-out infinite;
}

.music-toggle.playing .music-bar:nth-child(2) {
    animation: musicBar2 0.7s ease-in-out infinite;
}

.music-toggle.playing .music-bar:nth-child(3) {
    animation: musicBar3 0.5s ease-in-out infinite;
}

.music-toggle:not(.playing) .music-bar {
    height: 3px !important;
    animation: none !important;
}

.music-icon {
    position: absolute;
    transition: opacity 0.3s ease;
}

.music-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-gold);
    transition: stroke 0.3s ease;
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-toggle.playing .music-bars {
    opacity: 1;
}

.music-toggle:not(.playing) .music-icon {
    opacity: 1;
}

.music-bar {
    width: 3px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: height 0.3s ease;
}

@keyframes musicBars {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes musicBar1 {
    0%, 100% { height: 3px; }
    50% { height: 16px; }
}

@keyframes musicBar2 {
    0%, 100% { height: 8px; }
    50% { height: 18px; }
}

@keyframes musicBar3 {
    0%, 100% { height: 5px; }
    50% { height: 14px; }
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: 
        radial-gradient(ellipse at top left, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(232, 180, 184, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-parallax-bg,
.hero-parallax-mid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    pointer-events: none;
    will-change: transform;
}

.hero-parallax-bg {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(212, 165, 116, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(232, 180, 184, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
    z-index: 0;
}

.hero-parallax-mid {
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 165, 116, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 70% 80%, rgba(232, 180, 184, 0.06) 0%, transparent 30%);
    z-index: 1;
}

.hero-section.visible {
    opacity: 1;
}

.hero-frame {
    position: relative;
    max-width: 700px;
    width: 100%;
    padding: 50px 40px 30px;
    background: var(--white);
    border: 2px solid var(--secondary);
    box-shadow: 
        0 0 0 8px var(--bg-cream),
        0 20px 60px var(--shadow-soft),
        inset 0 0 80px rgba(139, 69, 19, 0.03);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.3s;
}

.hero-section.visible .hero-frame {
    opacity: 1;
    transform: translateY(0);
}

.corner-ornament {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-gold);
}

.corner-ornament.top-left {
    top: -12px;
    left: -12px;
    border-right: none;
    border-bottom: none;
}

.corner-ornament.top-right {
    top: -12px;
    right: -12px;
    border-left: none;
    border-bottom: none;
}

.corner-ornament.bottom-left {
    bottom: -12px;
    left: -12px;
    border-right: none;
    border-top: none;
}

.corner-ornament.bottom-right {
    bottom: -12px;
    right: -12px;
    border-left: none;
    border-top: none;
}

.hero-content {
    text-align: center;
}

.couple-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-section.visible .couple-photos {
    opacity: 1;
    transform: translateY(0);
}

.photo-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 
        0 10px 35px var(--shadow-medium),
        inset 0 0 25px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: scale(1.05);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.save-the-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 1s forwards;
}

.hero-section.visible .save-the-date {
    opacity: 1;
    transform: translateY(0);
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 1.2s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.name-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.designation {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
}

.hero-section.visible .couple-names {
    opacity: 1;
    transform: translateY(0);
}

.ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.6em;
    color: var(--blush);
    display: block;
    margin: -5px 0;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.4s forwards;
}

.hero-section.visible .divider {
    opacity: 1;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.divider-icon {
    color: var(--blush);
    font-size: 1.2rem;
    animation: heartbeat 2s ease-in-out infinite;
}

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

.wedding-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 1.6s forwards;
}

.hero-section.visible .wedding-date {
    opacity: 1;
    transform: translateY(0);
}

.wedding-time {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 1.8s forwards;
}

.hero-section.visible .wedding-time {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: relative;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease 2s forwards;
}

.hero-section.visible .scroll-indicator {
    opacity: 1;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(5px); opacity: 0.5; }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 5% 5%, rgba(212, 165, 116, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 95% 95%, rgba(232, 180, 184, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.floating-rose {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: floatAround 15s ease-in-out infinite;
    z-index: 2;
}

.rose-1 { top: 10%; left: 5%; animation-delay: 0s; }
.rose-2 { top: 60%; right: 8%; animation-delay: 5s; }
.rose-3 { bottom: 15%; left: 10%; animation-delay: 10s; }

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(10deg); }
    50% { transform: translate(0, -30px) rotate(0deg); }
    75% { transform: translate(-20px, -10px) rotate(-10deg); }
}

/* ========== SECTIONS COMMON ========== */
.section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-section {
    padding: 100px 20px;
    background: 
        linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%),
        radial-gradient(ellipse at center, rgba(212, 165, 116, 0.15) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--secondary);
    border-radius: 20px;
    opacity: 0.3;
    pointer-events: none;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.countdown-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px 30px;
    min-width: 130px;
    text-align: center;
    box-shadow: 
        0 10px 40px var(--shadow-soft),
        inset 0 -3px 0 var(--accent-gold);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.countdown-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

.countdown-separator {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--accent-gold);
    font-weight: 700;
    line-height: 1;
}

/* ========== EVENTS SECTION ========== */
.events-section {
    padding: 100px 20px;
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(232, 180, 184, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.timeline-item.visible {
    transform: translateX(0);
    opacity: 1;
}

.timeline-line {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 2px;
    height: calc(100% + 35px);
    background: var(--accent-gold);
}

.timeline-item:last-child .timeline-line {
    height: 20px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--shadow-medium);
    z-index: 1;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 2px;
    background: var(--accent-gold);
}

.timeline-content {
    background: var(--white);
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 10px 40px var(--shadow-soft);
    flex: 1;
    border-left: 4px solid var(--accent-gold);
}

.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }

.event-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.event-date {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 3px;
}

.event-day {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3px;
}

.event-time {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
}

/* ========== VENUE SECTION ========== */
.venue-section {
    padding: 100px 20px;
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.venue-section::before {
    content: '❧';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--blush-light);
    pointer-events: none;
}

.venue-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    opacity: 0.5;
}

.venue-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px var(--shadow-soft);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.venue-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.venue-details {
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--blush-light) 100%);
}

.venue-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.venue-address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.map-container {
    height: 350px;
    background: #f0f0f0;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.directions-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: background 0.3s ease;
}

.directions-btn:hover {
    background: var(--primary-dark);
}

/* ========== INVITATION SECTION ========== */
.invitation-section {
    padding: 100px 20px;
    background: 
        radial-gradient(ellipse at top left, rgba(232, 180, 184, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-cream) 0%, var(--blush-light) 100%);
    position: relative;
    overflow: hidden;
}

.invitation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.invitation-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(232, 180, 184, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.invitation-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 50px var(--shadow-soft);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.invitation-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.invitation-decoration {
    font-size: 2rem;
    color: var(--blush);
    margin-bottom: 20px;
}

.invitation-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 20px;
}

.invitation-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 30px;
}

.invitation-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--blush-light);
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.detail-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--primary);
}

/* ========== RSVP SECTION ========== */
.rsvp-section {
    padding: 100px 20px;
    background: 
        radial-gradient(ellipse at top right, rgba(232, 180, 184, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
    position: relative;
    overflow: hidden;
}

.rsvp-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 50px var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.rsvp-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.rsvp-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.rsvp-btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.rsvp-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
    padding: 100px 20px;
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(232, 180, 184, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-soft);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.6s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item.visible {
    transform: scale(1);
    opacity: 1;
}

.gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-item:nth-child(2) { transition-delay: 0.2s; }
.gallery-item:nth-child(3) { transition-delay: 0.3s; }
.gallery-item:nth-child(4) { transition-delay: 0.4s; }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blush-light) 0%, var(--secondary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.gallery-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.gallery-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.ornament-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.ornament-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

/* ========== FOOTER ========== */
.footer {
    padding: 40px 20px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--blush), var(--accent-gold));
}

.couple-name-footer {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .hero-frame {
        padding: 40px 25px;
    }
    
    .couple-names {
        font-size: 2.8rem;
    }
    
    .countdown-separator {
        display: none;
    }
    
    .countdown-card {
        min-width: calc(50% - 20px);
    }
    
    .invitation-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .invitation-card {
        padding: 35px 25px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========== ANIMATION ON SCROLL ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }