/* --- RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fcfcfc; /* Soft Off-White Background */
    color: #333333; /* Dark Grey Text */
    font-family: 'Lato', sans-serif; /* Body font */
    line-height: 1.6;
    text-align: center; /* Centers everything for the wedding look */
}

/* --- REUSABLE CLASSES --- */
.container {
    max-width: 600px; /* Keeps the content slim like a mobile card */
    margin: 0 auto;
    padding: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: 'Cormorant', serif; /* Elegant Heading Font */
    font-weight: 400;
}

/* --- HERO SECTION (Poster Style - Merged) --- */
.hero-section-poster {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* The Image Styles */
.poster-bg {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    
    /* Your existing crop settings */
    margin-top: -30%;
    margin-bottom: -170%;
    
    /* RECOMMENDED: Ensure image stays at the back */
    position: relative; 
    z-index: 0; 
}

/* --- UPDATE THIS BLOCK --- */
.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* NEW LINE: This keeps text ON TOP of the lanterns */
    z-index: 2; 
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
}

/* --- PASTE THIS NEW CODE BELOW --- */

/* ========================================= */
/* LANTERN PARALLAX (Scroll-Based Movement)  */
/* ========================================= */

/* Layer 1: Lantern Container */
#lantern-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none;
    overflow: hidden;
}

.floating-lantern {
    position: absolute;
    display: block;
    height: auto;
    
    /* ADD THIS LINE: Reduces the base size significantly */
    /* You can change 70px to 50px if you want them even smaller */
    width: 130px; 
    
    will-change: transform, opacity; 
}
/* ========================================= */
/* INTRO GANESH IMAGE STYLE                  */
/* ========================================= */
.intro-ganesh-img {
    display: block; /* Makes it a block element so we can center it */
    
    /* Centers horizontally and adds space below */
    margin: 0 auto 25px auto; 
    
    /* Control the size */
    /* Adjust this width (e.g., 80px, 120px) based on your specific image size */
    width: 150px; 
    height: auto; /* Keeps the correct proportions */
}

/* 1. POSITION THE TOP TEXT (In the Sky) */
.hero-content {
    text-align: center;
    /* Use this to push the names down from the very top edge */
    margin-top: 5%; 
}

/* 2. POSITION THE BOTTOM TEXT (Control the Gap) */
.intro-content {
    text-align: center;
    color: #ffffff;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;

    /* --- THE IMPORTANT PART --- */
    /* This controls the empty space between the Names and the Intro. */
    /* 1. If text is overlapping the tower: INCREASE this % (e.g., 40%) */
    /* 2. If the gap is too big: DECREASE this % (e.g., 20%) */
    margin-top: 111%; 
    margin-bottom: 60px;
}

/* Typography Updates */
.top-symbol {
    font-size: 1.8rem;
    color: #ffdb58;
    margin-bottom: 10px;
    font-family: 'Cormorant', serif;
}

.couple-names {
    font-size: 4vw; 
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
}

.couple-names .divider {
    display: block;
    font-size: 2vw;
    font-family: 'Lato', sans-serif;
    color: #ffdb58;
    margin: 5px 0;
    font-style: italic;
}

/* Intro Text Styles */
.blessing-text {
    font-family: 'Cormorant', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 2px;
    color: #f6e6b6;
    margin-bottom: 15px;
    font-weight: 500;
}

.family-names {
    font-family: 'Cormorant', sans-serif;
    font-size: 1.7rem;
    color: #f6e6b6;
    font-weight: 500;
}

.divider-line {
    width: 50px;
    height: 2px;
    background-color: #ffdb58;
    margin: 20px auto;
}

.invite-title {
    font-family: 'Cormorant', sans-serif;
    font-size: 6rem;
    color: #f6e6b6;
    letter-spacing: 4px;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
    font-weight: 600;
}

.invite-body {
    font-family: 'Cormorant', serif;
    font-size: 1.7rem;
    color: #f6e6b6;
    margin-bottom: 20px;
    font-style: italic;
}

/* 1. The Container (Add this block) */
/* This pushes the "Invite" text up and the "Daughter of" text down */
.highlight-couple-intro {
    margin-top: 60px;    /* Pushes away from text above */
    margin-bottom: 50px; /* Pushes away from text below */
}

/* 2. The Couple Names (Your existing tight line-height) */
.highlight-couple-intro .name-highlight {
    display: block;
    font-family: 'Cormorant', serif;
    font-size: 8rem;
    color: #f6e6b6;
    
    /* Keep this low to hug the names together */
    line-height: 0.8; 
    
    font-weight: 500;
}

/* 3. The Ampersand */
.highlight-couple-intro .ampersand {
    font-family: 'Cormorant', serif;
    font-size: 8rem;
    color: #f6e6b6;
    font-style: italic;
    font-weight: 400;
    
    /* Optional: If the "&" is also causing issues, you can set its line-height too */
    line-height: 1.4; 
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .couple-names { font-size: 8vw; }
    .couple-names .divider { font-size: 4vw; }
    
    .intro-content {
        margin-bottom: 20px;
    }
    
    .invite-title { font-size: 2rem; }
    .highlight-couple-intro .name-highlight { font-size: 2rem; }
}
/* --- EVENTS SECTION (5 EVENTS - OVAL STYLE) --- */
.events-section-oval {
    padding: 80px 20px;
    /* Background Pattern - Replace URL with your file */ 
    
}

.events-container-inline {
    max-width: 1200px; /* Controls the break point for 3 items */
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Ensures the bottom 2 items are centered */
    gap: 150px; /* WIDE spacing requested */
    flex-wrap: wrap; /* Allows the 4th and 5th items to drop to the next line */
}

/* The Oval Card */
/* ========================================= */
/* 4. EVENT CARDS (Custom Image Background)  */
/* ========================================= */

.event-oval-card {
    position: relative;
    /* Set this width/height to match the aspect ratio of your oval image */
    width: 300px; 
    height: 380px;
    
    /* --- NEW BACKGROUND IMAGE --- */
    /* Make sure 'ovalshape.png' is inside your 'images' folder */
    /* If it's a JPG, change this to 'ovalshape.jpg' */
    background-image: url('images/ovalshape.png'); 
    
    /* This ensures the image fills the box without stretching weirdly */
    background-size: 100% 100%; 
    background-repeat: no-repeat;
    background-position: center;
    
    /* Remove the old CSS border/shadow since the image has the design */
    background-color: transparent; 
    box-shadow: none;
    border: none;
    border-radius: 0; 
    
    /* Adjust padding to keep text inside the safe area of your oval */
    padding: 80px 40px; 
    
    display: flex;
    flex-direction: column;
}

/* --- Content & Text Styles (Keep these the same) --- */
.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #4a9e8a; /* Check if this color looks good on your new background */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.event-footer p {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: #6b7c66; 
    margin-bottom: 2px;
    line-height: 1.4;
}

.route-link {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: #4a9e8a;
    text-decoration: underline;
    font-weight: bold;
}

/* --- Flower Decoration Positioning --- */
/* Since the background is now an image, you might need to move these flowers */
.flower-top-right {
    position: absolute;
    /* Tweak these numbers to align perfectly with your oval image edge */
    top: -30px;   
    right: -50px; 
    width: 180px; 
    z-index: 3;
}

.flower-bottom-left {
    position: absolute;
    /* Tweak these numbers to align perfectly with your oval image edge */
    bottom: -20px; 
    left: -10px;   
    width: 140px; 
    z-index: 3;
}

/* Responsive Rules */
@media (max-width: 1100px) {
    /* On medium screens, maybe switch to 2 per row */
    .events-container-inline {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    /* On mobile, stack them 1 per row */
    .events-container-inline {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
}


/* ========================================= */
/* RSVP SECTION (Portrait Image Fixed)       */
/* ========================================= */

.rsvp-poster-section {
    position: relative;
    width: 100%;
    
    /* --- HEIGHT CONTROLLER --- */
    /* Adjust this number to make the section taller or shorter. */
    height: 700px; 
    
    overflow: hidden;
}

/* Background Image Styling */
.rsvp-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* MAGICAL CROP: This forces the portrait image to fill the banner area */
    object-fit: cover; 
    
    /* ALIGNMENT: Decides which part of the image shows */
    /* Options: 'center', 'top', 'bottom' */
    object-position: center; 
}

/* Content Overlay Styling */
.rsvp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Centers text vertically and horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Optional: Add a dark tint if white text is hard to read */
    /* background: rgba(0, 0, 0, 0.2); */
}

.rsvp-container {
    text-align: center;
    color: #ffffff; /* Ensures text is white */
}

/* Typography (Same as before) */
.rsvp-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rsvp-subtext {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 50px;
    letter-spacing: 1px;
    font-weight: 300;
}

/* (Keep your .pulsing-button-wrapper and @keyframes animation codes as they are) */

/* --- PULSING BUTTON ANIMATION (Larger Size) --- */
.pulsing-button-wrapper {
    position: relative;
    display: flex; 
    justify-content: center;
    align-items: center;
    
    /* 1. INCREASE WRAPPER SIZE */
    /* This defines the clickable area */
    width: 120px; 
    height: 120px;
    
    margin: 20px auto; 
    cursor: pointer;
    text-decoration: none; 
}

/* The solid center circle */
.pulse-center-circle {
    position: relative;
    z-index: 10;
    
    /* 2. INCREASE INNER CIRCLE SIZE */
    width: 70px;
    height: 70px;
    
    /* Keep your thicker stroke */
    border: 10px solid #ffffff; 
    
    border-radius: 50%;
    background-color: transparent; 
}

/* The animating rings */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Start size (matches inner circle) */
    width: 70px;
    height: 70px;
    
    /* Keep your thicker stroke */
    border: 2px solid #ffffff; 
    
    border-radius: 50%;
    opacity: 0;
    box-sizing: border-box;
    pointer-events: none;
    animation: pulse-animation 3s infinite ease-out;
}

.pulse-ring.delay {
    animation-delay: 1.5s;
}

/* 3. INCREASE ANIMATION SIZE */
@keyframes pulse-animation {
    0% {
        /* Start at the size of the inner circle */
        width: 70px;
        height: 70px;
        opacity: 0.8;
    }
    100% {
        /* End size: How far the ripples go out */
        /* Increased from 150px to 200px */
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}
/* ========================================= */
/* FOOTER SECTION (Full Image Poster Style)  */
/* ========================================= */

/* The main container */
.footer-section-poster {
    position: relative;
    width: 100%;
    /* No padding/height here. The image dictates height. */
}

/* 1. The Image Styles (Shows Full Image) */
.footer-poster-img {
    display: block;
    width: 100%;
    height: auto; /* Allows the full height to show */
    object-fit: contain; /* Ensures no cropping */
}

/* 2. The Text Overlay Styles */
.footer-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: flex;
    flex-direction: column;
    
    /* CHANGE 1: Align to Top instead of Center */
    justify-content: flex-start; 
    align-items: center;
    
    /* CHANGE 2: Use this padding to position text in the sky */
    /* 5% = High up in the sky */
    /* 15% = Lower in the sky */
    padding-top: 10%; 
    
    text-align: center;
    color: #E79300; 
    
    /* Optional: Lower the opacity of the black tint if the sky is already dark */
    background: rgba(0, 0, 0, 0); 
}

/* --- Keep your existing text styles below --- */
/* (The styles for .countdown-title, .footer-note, etc. do not need changing) */

.countdown-title {
    font-family: 'Cormorant', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.timer-display {
    font-family: 'Cormorant', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.footer-note {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #a0b3c5; /* Slightly muted blue-grey for readability */
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Links Grid */
.footer-links-grid {
    display: flex;
    justify-content: center;
    gap: 100px; /* Space between the two columns */
    margin-bottom: 60px;
}

.footer-column h4 {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: #E79300;
    margin-bottom: 20px;
}

.footer-column a {
    display: block; /* Makes links sit on their own lines */
    color: #E79300;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    color: #586e85;
    margin-top: 40px;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .footer-links-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .timer-display {
        font-size: 2rem;
    }
}
/* ========================================= */
/* MUSIC CONTROL BUTTON                      */
/* ========================================= */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000; /* Stays on top of everything */
    
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    background-color: #E79300; /* Gold Theme Color */
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: transform 0.2s, background-color 0.3s;
}

.music-btn:hover {
    transform: scale(1.1);
    background-color: #d68904;
}

/* Toggle Logic: Show/Hide Icons */
.music-btn .icon-play, 
.music-btn .icon-pause {
    display: none; /* Hide both by default */
}

/* If button has class 'playing', show Pause icon */
.music-btn.playing .icon-pause {
    display: block;
    font-weight: bold;
}

/* If button has class 'paused', show Play icon */
.music-btn.paused .icon-play {
    display: block;
    padding-left: 2px; /* Visual center fix */
}

/* Optional: Rotate animation when playing */
.music-btn.playing {
    animation: spin-pulse 3s infinite linear;
}

@keyframes spin-pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
/* ========================================= */
/* MOBILE RESPONSIVENESS (UPDATED FIX)       */
/* ========================================= */
@media (max-width: 768px) {

    /* --- 1. Fix Huge Names on Mobile --- */
    .highlight-couple-intro .name-highlight,
    .highlight-couple-intro .ampersand {
        font-size: 3.5rem !important; 
        line-height: 0.9 !important;
    }

    /* --- 2. Fix Spacing Around Names --- */
    .highlight-couple-intro {
        margin-top: 30px !important;
        margin-bottom: 40px !important;
    }

    /* --- 3. Stack Cards Vertically (Column) --- */
    .events-container-inline {
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
    }

    /* --- 4. Fix Intro Spacing & POSITION (Mobile Only) --- */
    .intro-content {
        /* THIS IS THE FIX: Pushes text down below the building image */
        /* Adjust 220px to whatever number looks best on your phone */
        margin-top: 1600px !important; 
        
        /* Existing mobile spacing adjustments */
        margin-bottom: 50px !important; 
        padding: 0 15px !important;
    }
    
    /* --- 5. Fix RSVP Section Height --- */
    .rsvp-poster-section {
        height: 400px !important;
    }

    /* --- 6. CRITICAL FIX: PREVENT CONTENT CUT-OFF --- */
    /* This forces the section to grow as tall as the text needs */
    
    .hero-section-poster {
        height: auto !important; /* Allow section to grow */
        overflow: visible !important; /* Stop cutting off content */
        display: block !important;
    }

    .poster-overlay {
        position: relative !important; /* Put text back in the "flow" */
        height: auto !important;
        top: auto !important;
        left: auto !important;
        
        /* Add padding so text doesn't hit the edges */
        padding-top: 120px !important; /* Space for the sky/Ganesh */
        padding-bottom: 80px !important; /* Space at the bottom */
    }

    /* Make the image stretch to cover the new taller height */
    .poster-bg {
        position: absolute !important;
        
        /* CHANGE THIS LINE: Pulls the image UP to crop the top */
        /* Try -10%, -15%, or -20% until the height looks right */
        margin-top: -20% !important; 
        top: 0;
        left: 0;
        width: 100% !important;
        height: 105% !important;
        object-fit: cover !important; 
        object-position: top center !important; 
        z-index: 0; 
    }
    /* ... Your existing mobile rules ... */

    /* --- 7. FIX FOOTER CUT-OFF (Same logic as Hero) --- */
    .footer-section-poster {
        position: relative !important;
        height: auto !important; /* Let content dictate height */
        display: block !important;
        overflow: hidden !important; /* Fixes the "Line on Right" */
    }

    /* Make the Night Palace image stretch to cover text */
    /* Inside your @media (max-width: 768px) block */

    /* Update this specific rule */
    .footer-poster-img {
        /* 1. CHANGE THE IMAGE SOURCE FOR MOBILE */
        /* This CSS trick swaps the image file only on small screens */
        content: url('images/mahalmobile.png');

        /* 2. CROP THE TOP */
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        
        /* Pull the image UP to hide the top part */
        /* Start with -20% and increase/decrease as needed */
        margin-top: -5% !important; 
        
        /* COMPENSATE HEIGHT so the bottom doesn't lift up */
        /* If margin-top is -20%, height must be 120% */
        height: 150% !important;
        
        object-fit: cover !important;
        /* Ensure the bottom stays anchored while the top gets cropped */
        object-position: bottom center !important;
        z-index: 0;
    }

    /* Put footer text back in the "flow" so it pushes boundaries */
    .footer-overlay-container {
        position: relative !important;
        height: auto !important;
        
        /* Add breathing room */
        padding-top: 80px !important; 
        padding-bottom: 80px !important;
        
        /* Ensure it doesn't cause side-scroll */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- 8. GLOBAL FIX FOR "LINE ON RIGHT" --- */
    /* This forces the browser to hide any side-overflow */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    /* ... Inside @media (max-width: 768px) ... */

    /* --- 9. INCREASE HERO NAME SIZE (Blue Background) --- */
    
    /* 1. The Main Names (Sahil, Dream) */
    .couple-names {
        /* Currently it might be too small (like 8vw). Let's make it huge. */
        font-size: 5rem !important; 
        line-height: 1.1 !important;
        margin-top: 20px !important;
    }

    /* 2. The "Weds" Divider */
    .couple-names .divider {
        font-size: 2rem !important; /* Smaller than names, but readable */
        margin: 10px 0 !important;
        color: #ffdb58 !important; /* Ensure gold color pops */
    }
}