:root {
    --gold: #D4AF37;
    --crimson: #7B001C;
    --dark-bg: #050505; 
}

/* 1. VIEWPORT LOCK & OVERFLOW PROTECTION */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* 2. BACKGROUND BLENDING
   Creates a seamless fade from the chevron image into the solid black background.
*/
body {
    background-image: 
        linear-gradient(to bottom, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0) 30%, var(--dark-bg) 80%),
        url('background.png'); 
    background-size: 100% auto; 
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* 3. TYPOGRAPHY & GRADIENTS */
.font-luxury {
    font-family: 'Cinzel', serif;
}

.text-gold-gradient {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.9));
}

/* 4. SECTIONS & LAYOUT */
header {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    padding-top: 30vh; 
    text-align: center;
}

.glass-card {
    background: rgba(15, 15, 15, 0.75); 
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 100%;
}

/* 5. WHATSAPP RSVP BUTTONS */
.btn-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--crimson) 0%, #300000 100%);
    color: white;
    border: 1px solid var(--gold);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-premium:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #9b0024 0%, #4a0000 100%);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

/* 6. LOGO SHADOW */
img {
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
    max-width: 100%;
}

/* 7. COUNTDOWN TIMER */
#countdown {
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

#countdown span.font-luxury {
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

#countdown .text-gray-500 {
    font-weight: 600;
    letter-spacing: 0.2em;
}

/* 8. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    body {
        background-size: 180% auto;
    }
}

@media (max-width: 768px) {
    body {
        background-size: 300% auto; 
    }
    
    header {
        padding-top: 15vh; 
    }

    h1 {
        font-size: 2.5rem !important; 
        line-height: 1.2 !important;
    }

    .glass-card {
        padding: 2.5rem 1rem !important;
    }

    #countdown {
        max-width: 95%;
        gap: 0.5rem !important;
    }

    #countdown span.font-luxury {
        font-size: 1.5rem !important;
    }

    img {
        width: 160px !important; 
    }
}

@media (max-width: 480px) {
    header {
        padding-top: 12vh;
    }
    
    h1 {
        font-size: 2.2rem !important;
    }
}