:root {
    /* Color Palette */
    --clr-ivory: #FFFFF0;
    --clr-beige: #F5F5DC;
    --clr-champagne: #F7E7CE;
    --clr-olive-dark: #2C3523; /* Or charcoal: #2A2A2A */
    --clr-text-main: #333333;
    --clr-text-light: #777777;
    
    /* Gold Foil Gradient Base */
    --gold-gradient: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    
    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-calligraphy: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--clr-beige);
    color: var(--clr-text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scroll Container Setup for Section Snapping (Optional but cinematic) */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}

/* Backgrounds & Overlays */
.hero {
    position: relative;
    /* background-image removed: handled by image */
    color: white;
}

.image-container, .video-container-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bg-image, .full-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures scaling perfectly without distortion */
    object-position: center;
}

.video-section {
    position: relative;
    padding: 0; /* Remove padding for immersive video */
}

.bg-black {
    background-color: black;
}

.shadow-text {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.fathers { background-color: var(--clr-beige); }

.countdown {
    background-image: url('countdown-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.details { background-color: var(--clr-ivory); }

.rsvp {
    background-image: url('https://images.unsplash.com/photo-1520854221256-17451cc331bf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); /* Couple silhouette/details placeholder */
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.light-overlay { background: rgba(0, 0, 0, 0.5); }
.dark-overlay { background: rgba(0, 0, 0, 0.6); }

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

/* Typography Classes */
.small-serif {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.2em; }
.tracking-wide { letter-spacing: 0.1em; }
.italic { font-style: italic; }
.text-white { color: #ffffff !important; }
.text-opacity { opacity: 0.8; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

.elegant-serif {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.script-title {
    font-family: var(--font-script);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--clr-olive-dark);
}

.countdown .script-title { color: white; }

.calligraphy {
    font-family: var(--font-script);
    font-size: 5rem;
    line-height: 1.1;
    margin: 2rem 0;
    font-weight: 400;
}

.ampersand {
    font-family: var(--font-serif);
    font-size: 2rem;
}

/* Gold Foil Effect */
.gold-foil-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* fallback */
    text-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

/* Specific Section Styles */

/* Hero */
.hero-date {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    opacity: 0.8;
}

.arrow-down {
    width: 15px;
    height: 15px;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    transform: rotate(45deg);
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* Fathers */
.section-title {
    font-size: 1.2rem;
    color: var(--clr-text-light);
    margin-bottom: 3rem;
}

.father-names {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.serif-name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--clr-olive-dark);
}

.floral-divider {
    font-size: 1.5rem;
    color: #BEB7A4; /* Muted gold/beige */
    margin-top: 1rem;
}

/* Countdown */
.timer-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
}

.time-val {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.time-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Details & Location */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
}

.heart-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #c4a77d;
}

.serif-heading {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--clr-olive-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.time-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.clean-sans {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--clr-text-main);
    font-weight: 300;
}

.time-info .icon {
    margin-right: 5px;
    opacity: 0.6;
}

.address-text {
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.6;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn-outline-dark {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--clr-olive-dark);
    color: var(--clr-olive-dark);
    font-family: var(--font-sans);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--clr-olive-dark);
    color: white;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--gold-gradient);
    color: white;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Gift Section */
.gift-content {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(200, 180, 150, 0.2);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.gift-title {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
}

.gift-heading {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subtle-floral-divider {
    font-size: 0.8rem;
    color: #BEB7A4;
    letter-spacing: 0.3em;
}

.elegant-small-serif {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--clr-text-main);
}

/* Animations - Fade Up on Scroll */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Intro Video Sequence */
#intro-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: black;
    transition: opacity 1.5s ease-in-out;
}

#intro-video-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-full-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Popup Card Intro inside Hero */
.popup-card-intro {
    background: rgba(255, 255, 255, 0.85); /* Ivory glass effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin: 0 auto;
    width: 90%;
    max-width: 450px;
    
    /* Ensure text stands out against ivory */
    color: var(--clr-olive-dark); 
}

/* Override text color inside the popup */
.text-main {
    color: var(--clr-text-main) !important;
}

.shadow-none {
    text-shadow: none !important;
}

.mt-1 { margin-top: 1rem; }

/* Responsiveness - Minor tweaks for very small screens */
@media (max-width: 380px) {
    .calligraphy { font-size: 4rem; }
    .timer-container { gap: 0.5rem; }
    .time-box { width: 60px; }
    .time-val { font-size: 1.8rem; }
    .popup-card-intro { padding: 3rem 1.5rem; }
}
