/* --- Color Palette & Font Variables --- */
:root {
    --font-serif: 'Cormorant Garamond', serif;
    --font-script: 'Great Vibes', cursive;
}

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

body {
    font-family: var(--font-serif);
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* --- Global Video Background --- */
.global-video-bg, .global-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.global-video-bg {
    object-fit: cover;
    z-index: -2;
}

.global-video-overlay {
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: -1; 
}

/* --- Container & Layout --- */
.app-container {
    position: relative;
    width: 100%;
    z-index: 1;
}

.content-wrapper {
    max-width: 800px; /* Prevents text from stretching across ultra-wide monitors */
    margin: 0 auto;
    text-align: center;
}

section {
    /* Removed min-height: 100vh from here so sections snap to their content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem; /* Generous padding to give content breathing room without being empty */
    width: 100%;
}

.hero {
    min-height: 100vh; /* Only the initial monogram takes up the full screen */
}

/* --- The Cursive Heart Divider --- */
.heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.8;
}

.heart-divider .line {
    flex-grow: 1;
    height: 1px;
    /* Creates a soft, fading line like a pen stroke */
    background: linear-gradient(to center, transparent, #ffffff, transparent);
    background: -webkit-linear-gradient(left, transparent, rgba(255,255,255,0.6), transparent);
}

.heart-divider i {
    font-size: 1.8rem;
    color: #ffffff;
    /* Soft glow to match the elegant vibe */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); 
}

/* --- Typography Basics --- */
h1, h2, h3 { font-weight: 400; text-align: center; }

/* Fluid Typography: Scales automatically based on screen size */
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; letter-spacing: 0.1em; }
.cursive-title { font-family: var(--font-script); font-size: clamp(3.5rem, 8vw, 6rem); margin-bottom: 3rem; }

/* --- Hero & Monogram --- */
.monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Clamp syntax: clamp(minimum size, preferred scalable size, maximum size) */
.script-letter {
    font-family: var(--font-script);
    font-size: clamp(10rem, 20vw, 20rem);
    position: relative;
    z-index: 2;
    margin-right: clamp(-2rem, -4vw, -4rem);
    text-shadow: 2px 4px 15px rgba(0,0,0,0.4);
}

.serif-letter {
    font-family: var(--font-serif);
    font-size: clamp(8rem, 14vw, 14rem);
    z-index: 1;
    margin-top: clamp(1rem, 3vw, 3rem);
    text-shadow: 2px 4px 15px rgba(0,0,0,0.4);
}

/* --- Announcement --- */
.couple-names { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.dates { font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: 0.15em; margin-bottom: 2rem; border-bottom: 1px solid #ffffff; display: inline-block; padding-bottom: 0.5rem; }
.intro-text { font-size: clamp(1.2rem, 2vw, 1.5rem); font-style: italic; }

/* --- Schedule (Mobile First Grid) --- */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.day-block { width: 100%; }
.day-block.divider { border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 3rem; }

.day-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: 0.1em; text-transform: uppercase; }
.day-date { text-align: center; font-style: italic; margin-bottom: 2rem; opacity: 0.9; font-size: clamp(1.1rem, 2vw, 1.3rem); }

.timeline { list-style: none; max-width: 350px; margin: 0 auto; }
.timeline li { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; font-size: clamp(1.1rem, 2vw, 1.3rem); }
.timeline i { font-size: 2.2rem; opacity: 0.9; }

/* --- Details --- */
.detail-item { margin-bottom: 4rem; }
.detail-item h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 1rem; letter-spacing: 0.1em; }
.detail-item p { font-size: clamp(1.4rem, 2vw, 1.6rem); font-style: italic; }

/* --- Contact / RSVP --- */
.contact-text { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 3rem; font-style: italic; }

.phone-link {
    display: inline-block;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 1rem 3rem;
    border-radius: 50px;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.phone-link:hover {
    background-color: #ffffff;
    color: #000000;
}

.closing-note { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 1rem; }
.cursive-signature { font-family: var(--font-script); font-size: clamp(3rem, 6vw, 4.5rem); }

/* --- Location GPS Buttons --- */
.location-btn {
    display: inline-block;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: rgba(255, 255, 255, 0.05);
}

.location-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

/* --- Desktop Adjustments (Media Query) --- */
@media (min-width: 768px) {
    /* Transitions schedule to a side-by-side layout on tablets and desktops */
    .schedule-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns side-by-side */
        gap: 5rem;
    }
    
    .day-block.divider { 
        border-top: none; 
        border-left: 1px solid rgba(255, 255, 255, 0.3); 
        padding-top: 0; 
        padding-left: 5rem; 
    }

    /* --- Subtle Text Size Increases for Desktop --- */
    
    /* Titles */
    .section-title { font-size: 3.5rem; } 
    .cursive-title { font-size: 7.5rem; } 
    
    /* Announcement */
    .couple-names { font-size: 5.5rem; } 
    .dates { font-size: 1.5rem; } 
    .intro-text { font-size: 1.8rem; } 
    
    /* Schedule */
    .day-title { font-size: 2.2rem; } 
    .day-date { font-size: 1.4rem; } 
    .timeline li { font-size: 1.4rem; } 
    .timeline i { font-size: 2.4rem; } 
    .location-btn { font-size: 1.2rem; } 
    
    /* Details */
    .detail-item h3 { font-size: 1.8rem; } 
    .detail-item p { font-size: 1.8rem; } 
    
    /* Contact */
    .contact-text { font-size: 1.8rem; } 
    .phone-link { font-size: 2.8rem; } 
    .closing-note { font-size: 1.8rem; } 
    .cursive-signature { font-size: 5rem; } 
}