:root {
    --color-bg-deep: #F7F2E8;         /* Elegant warm ivory-cream */
    --color-bg-light: #FFFDF9;        /* Soft alabaster white */
    --color-cream-card: rgba(255, 253, 248, 0.85);
    --color-gold-light: #FBE6B3;      /* Pale champagne gold */
    --color-gold-mid: #C89D42;        /* Classic rich warm gold */
    --color-gold-dark: #8E651D;       /* Antique deep gold / bronze */
    --color-gold-border: rgba(197, 154, 69, 0.38);
    --color-text-main: #342820;       /* Rich warm espresso for crisp reading on cream */
    --color-text-muted: #6B5B4E;      /* Elegant warm sepia / taupe */
    
    --font-serif: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-serif);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* =========================================================
   1. LANDING SCREEN (COVER)
   ========================================================= */
.landing-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: 4rem 2rem; transition: opacity 1.6s ease, filter 1.6s ease, transform 1.6s ease;
    background-color: #1a1512;
}

.landing-screen.slide-out { 
    opacity: 0; 
    filter: blur(25px); 
    transform: scale(1.1); 
    pointer-events: none; 
}

.landing-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('Video/bole.png'); background-size: cover; background-position: center; z-index: -2;
}

.landing-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(20, 16, 12, 0.45) 0%, transparent 35%, transparent 60%, rgba(20, 16, 12, 0.85) 100%);
    z-index: -1;
}

.landing-content {
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    width: 100%; height: 100%; text-align: center; z-index: 1;
}

.landing-top-text {
    font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700;
    color: #F0D392; letter-spacing: 0.4em; text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-top: 1rem;
}

.landing-bottom { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }

.landing-names {
    font-size: clamp(3.5rem, 10vw, 5rem); line-height: 1.1; font-style: italic; font-weight: 500;
    display: flex; align-items: center; gap: 1rem; text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}
.landing-names .ampersand {
    font-family: var(--font-script);
    color: #F0D392;
    font-size: 0.9em;
    text-shadow: 0 0 15px rgba(240, 211, 146, 0.6);
}

.landing-date { font-size: clamp(1.2rem, 4vw, 1.6rem); font-style: italic; font-weight: 500; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

.tap-to-enter-btn {
    margin-top: 2rem;
    background: linear-gradient(135deg, #B88E3E, #FDE7B2, #C4983D);
    background-size: 200% auto;
    color: #2D2115;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(212, 178, 94, 0.4);
    animation: pulseButton 2s infinite, foilSheen 3s linear infinite;
    transition: transform 0.3s ease;
}
.tap-to-enter-btn:hover { transform: translateY(-3px) scale(1.05); }

@keyframes pulseButton {
    0% { box-shadow: 0 0 15px rgba(212, 178, 94, 0.4); }
    50% { box-shadow: 0 0 30px rgba(212, 178, 94, 0.8); }
    100% { box-shadow: 0 0 15px rgba(212, 178, 94, 0.4); }
}

.mute-btn {
    position: absolute; top: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(25, 20, 15, 0.5); border: 1px solid var(--color-gold-mid); color: #F0D392;
    display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px);
    transition: all 0.3s ease; z-index: 10;
}
.mute-btn:hover { background: rgba(25, 20, 15, 0.8); transform: scale(1.1); }

/* =========================================================
   2. INTRO VIDEO SCREEN
   ========================================================= */
.intro-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 8000;
    background-color: #0b0907; display: flex; align-items: center; justify-content: center;
    transition: opacity 1.5s ease, visibility 1.5s ease, filter 1.5s ease;
}
.intro-screen.hidden { opacity: 0; visibility: hidden; filter: blur(15px); pointer-events: none; }
.intro-screen video { width: 100%; height: 100%; object-fit: contain; }

.skip-btn {
    position: absolute; bottom: 3rem; right: 2rem; background: rgba(20, 16, 12, 0.65); border: 1px solid var(--color-gold-mid);
    color: #FBE6B3; padding: 0.5rem 1.5rem; border-radius: 20px; font-family: var(--font-sans);
    font-size: 0.8rem; letter-spacing: 0.1em; cursor: pointer; transition: all 0.3s ease; z-index: 10;
    backdrop-filter: blur(5px);
}
.skip-btn:hover { background: rgba(20, 16, 12, 0.9); color: #fff; }

/* =========================================================
   3. MAIN CONTENT (Cream & Gold Invitation)
   ========================================================= */
.main-content {
    opacity: 0; visibility: hidden; filter: blur(15px);
    transition: opacity 1.5s ease, visibility 1.5s ease, filter 1.5s ease;
    display: none;
    background-color: var(--color-bg-deep);
}
.main-content.visible { opacity: 1; visibility: visible; filter: blur(0); }

.main-content::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 25%, #FFFDF9 0%, #F8F3EA 50%, #ECE2D2 100%);
    z-index: -2;
}

.bg-pattern {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: -1; opacity: 0.035; mix-blend-mode: multiply;
}

.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(200, 157, 66, 0.6) 0%, rgba(220, 185, 120, 0.2) 60%, transparent 100%);
    border-radius: 50%; opacity: 0; animation: float 6s infinite ease-in-out; filter: blur(0.5px);
}
@keyframes float { 0% { transform: translateY(0) scale(0.8); opacity: 0; } 50% { opacity: 0.45; transform: translateY(-40px) scale(1.2); } 100% { transform: translateY(-80px) scale(0.8); opacity: 0; } }

.container { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 2rem 2rem 6rem; display: flex; flex-direction: column; gap: 6rem; }

.tracking-widest { letter-spacing: 0.3em; text-transform: uppercase; }

/* Metallic Gold Typography */
.gold-text {
    background: linear-gradient(103deg, #8E651D 0%, #C89D42 25%, #765314 50%, #B88B35 75%, #8E651D 100%);
    background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text;
    animation: foilSheen 8s linear infinite;
}

.landing-screen .gold-text {
    background: linear-gradient(103deg, #C59A45 0%, #FBE6B3 25%, #B08A3F 50%, #FBE6B3 75%, #C59A45 100%);
    background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

@keyframes foilSheen { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

/* Hero Section */
.hero { min-height: 95vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 2rem; }
.border-frame {
    position: relative; padding: 5rem 3rem; width: 100%;
    border: 1px solid var(--color-gold-border);
    background: var(--color-cream-card);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 35px rgba(212, 178, 94, 0.08), 0 20px 45px rgba(110, 85, 45, 0.08);
    border-radius: 4px;
}
.corner { position: absolute; width: 35px; height: 35px; border: 1px solid var(--color-gold-mid); }
.top-left { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.top-right { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.bottom-right { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.subtitle { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; color: var(--color-gold-dark); margin-bottom: 2rem; }
.names { font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1.1; margin: 1.8rem 0; display: flex; flex-direction: column; align-items: center; font-style: italic; font-weight: 500; }
.name { display: block; }
.ampersand {
    font-family: var(--font-script); font-size: 0.85em;
    color: var(--color-gold-dark);
    margin: -0.1em 0;
    background: none; -webkit-background-clip: unset; background-clip: unset;
    text-shadow: 0 0 10px rgba(197, 154, 69, 0.25);
}
.hero-desc { font-size: 1.05rem; color: var(--color-text-muted); font-style: italic; margin: 2rem auto; max-width: 80%; }
.date { font-size: clamp(1.8rem, 5vw, 2.8rem); font-style: italic; margin-top: 2rem; font-weight: 500; }
.sup { font-size: 0.5em; vertical-align: super; }
.time, .venue { font-family: var(--font-sans); font-size: 0.78rem; color: var(--color-text-muted); margin-top: 1rem; font-weight: 600; }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; width: 60%; margin: 0 auto; }
.diamond { width: 5px; height: 5px; background: var(--color-gold-mid); transform: rotate(45deg); }
.diamond-center {
    width: 14px; height: 14px; border: 1px solid var(--color-gold-mid);
    background: rgba(200, 157, 66, 0.15);
    transform: rotate(45deg); display: grid; place-items: center; box-shadow: 0 0 8px rgba(212, 178, 94, 0.25);
}
.diamond-center::after {
    content: ''; width: 6px; height: 6px; background: var(--color-gold-dark);
    border-radius: 50%; box-shadow: 0 0 6px rgba(145, 105, 34, 0.6);
}
.line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(197, 154, 69, 0.5), transparent); }

/* Details Section */
.details { text-align: center; padding: 2rem 0; }
.section-title { font-size: clamp(2.2rem, 6vw, 3.2rem); font-style: italic; margin-bottom: 2.5rem; font-weight: 500; }
.details-card {
    background: var(--color-cream-card);
    border: 1px solid var(--color-gold-border);
    padding: 4rem 3rem; border-radius: 24px; backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -15px rgba(110, 85, 45, 0.08), inset 0 0 30px rgba(212, 178, 94, 0.05);
    position: relative;
}
.details-card::before {
    content: ''; position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px;
    border: 1px solid rgba(197, 154, 69, 0.2); border-radius: 16px; pointer-events: none;
}
.story-text { font-size: 1.2rem; color: var(--color-text-main); max-width: 600px; margin: 0 auto 3.5rem; font-style: italic; line-height: 1.8; }
.itinerary { display: flex; flex-direction: column; gap: 2.5rem; }
.event-title { font-size: 1.6rem; margin-bottom: 0.5rem; font-style: italic; }
.event-time { font-family: var(--font-sans); font-size: 0.85rem; color: var(--color-gold-dark); letter-spacing: 0.15em; text-transform: uppercase; }

.venue-name { font-size: 1.5rem; margin-bottom: 0.5rem; font-style: italic; }
.venue-address { color: var(--color-text-muted); margin-bottom: 2rem; font-style: italic; }

/* Couple Story Photo Gallery */
.story-gallery {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(197, 154, 69, 0.25);
    position: relative;
}

.story-gallery::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 9px;
    height: 9px;
    background: var(--color-gold-mid);
}

.story-photo-card {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-frame {
    width: 100%;
    aspect-ratio: 2 / 3;
    padding: 8px;
    background: rgba(255, 253, 248, 0.95);
    border: 1px solid var(--color-gold-border);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(110, 85, 45, 0.1), inset 0 0 20px rgba(212, 178, 94, 0.06);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-photo-card:hover .photo-frame {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(110, 85, 45, 0.16), inset 0 0 25px rgba(212, 178, 94, 0.12);
    border-color: var(--color-gold-mid);
}

.story-photo-card:hover img {
    transform: scale(1.04);
}

.photo-tag {
    margin-top: 1.2rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-gold-dark);
    letter-spacing: 0.15em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.photo-tag::before,
.photo-tag::after {
    content: '';
    width: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-mid));
}

.photo-tag::after {
    background: linear-gradient(90deg, var(--color-gold-mid), transparent);
}

/* RSVP Section */
.rsvp { text-align: center; padding: 4rem 2rem 6rem; background: radial-gradient(circle at center, rgba(235, 218, 185, 0.45) 0%, transparent 65%); }
.rsvp-text { font-family: var(--font-sans); color: var(--color-text-muted); margin-bottom: 3rem; font-size: 0.9rem; }
.rsvp-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.rsvp-btn {
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-mid), var(--color-gold-dark));
    background-size: 200% auto; color: #FFFFFF; border: none; padding: 1.2rem 2.5rem;
    font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase;
    cursor: pointer; transition: all 0.4s ease; border-radius: 4px; box-shadow: 0 4px 15px rgba(184, 142, 62, 0.25);
}
.rsvp-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(184, 142, 62, 0.35); background-position: right center; }
.rsvp-btn.decline { background: transparent; border: 1px solid var(--color-gold-dark); color: var(--color-gold-dark); box-shadow: none; }
.rsvp-btn.decline:hover { background: rgba(184, 142, 62, 0.1); transform: translateY(-3px); }

/* Floating Music Toggle */
.music-toggle {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255, 252, 246, 0.9); border: 1px solid var(--color-gold-mid); color: var(--color-gold-dark);
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 100;
    box-shadow: 0 4px 15px rgba(110, 85, 45, 0.15), 0 0 10px rgba(212, 178, 94, 0.2); transition: all 0.4s ease; backdrop-filter: blur(8px);
}
.music-toggle:hover { transform: scale(1.1); background: #FAF5EB; color: #765314; }
.music-toggle.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
.music-icon { width: 24px; height: 24px; }

/* Animations */
.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.slide-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transform: scale(0.95); transition: opacity 1.2s ease-out, transform 1.2s ease-out; }
.fade-in.visible { opacity: 1; transform: scale(1); }

@media (max-width: 600px) {
    .names, .landing-names { font-size: 3.5rem; }
    .landing-names { flex-direction: row; gap: 0.5rem; }
    .border-frame { padding: 4rem 1.5rem; }
    .details-card { padding: 3rem 1.5rem; }
    .story-gallery { flex-direction: column; align-items: center; gap: 2.5rem; }
    .story-photo-card { max-width: 260px; width: 100%; }
    .rsvp-buttons { flex-direction: column; }
    .music-toggle { bottom: 20px; right: 20px; width: 45px; height: 45px; }
}
