* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ebe3d5; /* Desktop par side ka background color */
    font-family: 'Cormorant Garamond', serif;
    color: #4a3b32;
    overflow-x: hidden;
}

/* Responsive App Container: Mobile pe 100% width, Desktop pe centered 450px card */
.app-container {
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #fdfaf6;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    overflow-x: hidden;
}

/* Helper class kisi bhi section ko chhupane ke liye */
.hidden {
    display: none !important;
}

/* ================= SCREEN 1: ENVELOPE STYLING ================= */
/* ================= SCREEN 1: ENVELOPE STYLING ================= */
.envelope-screen {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Mobile browsers ke address bar ke hisaab se exact full screen */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 450px;
    
    /* 👇 YAHAN AAPKI BACKGROUND IMAGE LAGI HAI 👇 */
    background-color: #fdfaf6; /* Jab tak image load ho, tab tak yeh color dikhega */
    background-image: url('assets/envelope-bg.jpg'); /* Apni image ka sahi naam yahan likhein */
    background-size: cover;       /* Har mobile screen par bina stretch huye fit hogi */
    background-position: center;  /* Image bilkul center mein rahegi */
    background-repeat: no-repeat;
    
    z-index: 100;
    transition: opacity 1s ease, transform 1s ease;
}

.envelope-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* Envelope aur Seal ka Container (Box ka background aur border poori tarah saaf kar diya hai) */
.envelope-box {
    position: relative;
    width: 100%;
    max-width: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.envelope-img {
    width: 100%;
    height: auto;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    /* Sirf envelope ke upar pyari si 3D shadow rahegi, peeche koi box nahi dikhega */
    display: block;
}

/* 👇 AAPKI CUSTOM WAX SEAL KI STYLING 👇 */
.wax-seal-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px; /* Seal ka size chota ya bada karne ke liye is number ko badlein (jaise 85px ya 110px) */
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); /* Asli 3D Wax Seal jaisi parchaai (shadow) */
    animation: pulse 2s infinite ease-in-out;
    pointer-events: none; /* Click seedha envelope wrapper par kaam karega */
}

/* Seal ka halka sa zoom in/out animation */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.tap-instruction {
    margin-top: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #4a3b32;
    background: rgba(255, 255, 255, 0.85); /* Halki white strip taaki har background par text saaf dikhe */
    padding: 8px 18px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Envelope Open hone ka Fade & Zoom Effect */
.envelope-screen.fade-out {
    opacity: 0;
    transform: translateX(-50%) scale(1.15);
    pointer-events: none;
}

/* ================= SCREEN 2: MAIN INVITATION STYLING ================= */
.main-invitation {
    width: 100%;
    min-height: 100vh;
    animation: fadeInPage 1.2s ease forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating Music Button */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================= SECTION 1: HERO SECTION STYLING ================= */
.hero-section {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Har mobile screen par full height */
    
    /* 👇 YAHAN AAPKA HERO BACKGROUND LAGA HAI 👇 */
    background-image: url('assets/hero-bg.jpg');
    background-size: 100% 100%; /* 9:16 background ke borders aur garlands katenge nahi */
    background-position: top center;
    background-repeat: no-repeat;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Upar ke couple feet illustration ke liye jagah chhodi hai (38% screen height) */
    padding: 36vh 20px 40px 20px; 
    text-align: center;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ganesha Icon */
.ganesha-icon {
    width: 48px;
    height: auto;
    margin-bottom: 6px;
}

/* || Shree Ganeshaya Namaha || */
.shlok-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 19px;
    color: #801b1b; /* Deep Maroon color */
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

/* Soft Cream Shaded Box */
.invite-message-box {
    width: 100%;
    background: linear-gradient(90deg, rgba(244,236,225,0.4) 0%, rgba(252,248,242,0.95) 50%, rgba(244,236,225,0.4) 100%);
    padding: 16px 14px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.invite-message-box p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 15.5px;
    line-height: 1.45;
    color: #2c221e;
}

/* Bride & Groom Names (Shirisha & Vamshi) */
.couple-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(44px, 11vw, 54px); /* Screen size ke hisaab se auto-adjust hoga */
    font-weight: 400;
    color: #c9184a; /* Rich Pinkish-Red color jaisa screenshot me hai */
    line-height: 1.1;
    margin: 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Parents Names */
.parents-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(13px, 3.6vw, 15px);
    color: #2b2b2b;
    margin-bottom: 10px;
}

/* "with" text */
.with-text {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: #801b1b; /* Deep Maroon */
    margin: 2px 0 6px 0;
}

/* Music Button ko Bottom-Right mein karne ke liye (Jaisa aapke screenshot me hai) */
.music-btn {
    top: auto;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    background: rgba(50, 45, 40, 0.85);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

/* ================= LIGHT FLOWER PETALS RAIN ================= */
.petals-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    pointer-events: none; /* Petals ke aar-paar sab click hoga */
    z-index: 90;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -30px;
    background: linear-gradient(135deg, #d91e49, #ff758f);
    border-radius: 150% 0 150% 0; /* Gulab ki pankhudi (rose petal) ki shape */
    opacity: 0.75;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fallSwirl linear forwards;
}

@keyframes fallSwirl {
    0% {
        transform: translateY(-20px) rotate(0deg) translateX(0px);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(25px);
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(-20px);
    }
}

/* ================= SECTION 2: SCRATCH CARD & COUNTDOWN ================= */
.scratch-section {
    width: 100%;
    background-color: #faf7f0; /* Soft cream background jaisa screenshot me hai */
    padding: 35px 20px 45px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Top Golden Divider */
.floral-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 25px;
    gap: 12px;
}

.divider-line {
    width: 75px;
    height: 1.5px;
    background-color: #dbb87c;
}

.divider-flower {
    color: #c99c52;
    font-size: 20px;
    line-height: 1;
}

/* Scratch Card Outer Box */
.scratch-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 370px;
    height: 155px;
    border-radius: 18px;
    border: 1.5px solid #dec08f;
    background-color: #f9f6f0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* Reveal Content (Save the Date) */
.reveal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 1;
}

.save-date-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 3.5px;
    color: #798c68; /* Sage Green color jaisa image me hai */
    margin-bottom: 8px;
    font-weight: 500;
}

/* Agar aapke paas assets folder mein CatchyMager.ttf file bhi hai, toh yeh apne aap utha lega */
@font-face {
    font-family: 'Catchy Mager';
    src: url('assets/CatchyMager.ttf') format('truetype'),
         url('assets/CatchyMager.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.wedding-date-text {
    /* 👇 Yahan Catchy Mager font laga diya hai 👇 */
    font-family: 'Catchy Mager', 'Cormorant Garamond', serif;
    font-size: clamp(32px, 8.5vw, 40px); /* Catchy Mager ke hisaab se perfect size */
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #8f1d35; /* Rich Burgundy/Maroon color */
    margin-top: 4px;
}

/* Scratch Canvas Overlay */
#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: grab;
    touch-action: none; /* Mobile par scratch karte waqt page scroll nahi hoga */
    transition: opacity 0.6s ease;
}

/* Countdown Timer Boxes (Shuru mein hidden rahega, scratch hone par khulega) */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 370px;
    
    /* Smooth Slide-down Animation ke liye */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.8s ease, opacity 0.8s ease, margin-top 0.8s ease;
}

/* Scratch hone ke baad yeh class lagegi */
.countdown-wrapper.revealed {
    max-height: 160px;
    opacity: 1;
    margin-top: 28px;
}

.time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.time-box {
    width: 100%;
    aspect-ratio: 1 / 1.05;
    max-width: 76px;
    background-color: #f7f4ec;
    border: 1.5px solid #e2ca9f;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 8px;
}

.time-box span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: #8f1d35;
    letter-spacing: 2px;
}

.time-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: #798c68;
    font-weight: 500;
}

/* ================= SECTION 3: EVENTS SCHEDULE STYLING ================= */
.events-section {
    width: 100%;
    background-color: #f3f1e9; /* Soft Cream/Ivory background jaisa screenshot me hai */
    padding: 40px 18px 50px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* "Events Schedule" Heading */
.events-main-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(42px, 11vw, 52px);
    font-weight: 400;
    color: #8f1d35; /* Deep Burgundy/Maroon color */
    margin-bottom: 10px;
    text-align: center;
}

/* Events List Container */
.events-list {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    gap: 35px; /* Do function cards ke beech ka gap */
    margin-top: 10px;
}

/* Individual Event Card Box */
.event-card {
    width: 100%;
    background-color: #faf8f5;
    border-radius: 26px; /* Upar aur neeche se sundar gol kinare */
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Function Image (Har size ki image bina kate poori dikhegi) */
.event-card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Card Bottom Bar (Jiske andar button hai) */
.event-card-footer {
    background-color: #faf8f5;
    padding: 18px 22px 22px 22px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* GET DIRECTIONS Button (Bilkul 2nd screenshot jaisa) */
.direction-btn {
    width: 100%;
    background-color: #a9472c; /* Warm Terracotta / Rust-Brown shade */
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    padding: 15px 20px;
    border-radius: 50px; /* Pill shape button */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(169, 71, 44, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.direction-btn:hover,
.direction-btn:active {
    background-color: #8f3921;
    transform: scale(0.98);
}

/* Paper Plane / Map Arrow Icon */
.direction-icon {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}

/* ================= SECTION 4: PHOTO GALLERY STYLING ================= */
.gallery-section {
    width: 100%;
    background-color: #faf7f0; /* Soft cream background */
    padding: 45px 15px 55px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.gallery-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 3.5px;
    color: #798c68; /* Sage Green color */
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

/* 3D Stacked Slider Box */
.gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 390px;
    height: 360px;
    margin: 25px 0 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y; /* Mobile par left-right swipe smooth chalega */
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Default Slide (Jo 3 ke alawa baaki piche chhupi rahengi) */
.gallery-slide {
    position: absolute;
    width: 215px;
    height: 310px;
    border-radius: 22px;
    border: 6px solid #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background-color: #fff;
    transition: all 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: scale(0.7);
    z-index: 1;
    pointer-events: none;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Center Main Photo (Sabse upar aur saaf dikhegi) */
.gallery-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 5;
    pointer-events: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
}

/* Left Side Photo (Piche aur halki faded) */
.gallery-slide.prev {
    opacity: 0.45;
    transform: translateX(-82px) scale(0.84);
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
}

/* Right Side Photo (Piche aur halki faded) */
.gallery-slide.next {
    opacity: 0.45;
    transform: translateX(82px) scale(0.84);
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
}

/* Quote Below Photos */
.gallery-quote {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(30px, 8vw, 36px);
    color: #9e2a3b; /* Rich Rose/Burgundy color */
    margin-bottom: 22px;
}

/* Pagination Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e6d2b5; /* Light beige/gold dot */
    transition: all 0.35s ease;
    cursor: pointer;
}

/* Active Dot (Pinkish-Red Pill Shape jaisa screenshot me hai) */
.gallery-dot.active {
    width: 22px;
    border-radius: 10px;
    background-color: #c9184a;
}

/* ================= SECTION 5: THE FAMILIES STYLING ================= */
.families-section {
    width: 100%;
    background-color: #f3f1e9; /* Soft Ivory/Cream shade jaisa screenshot me hai */
    padding: 45px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.families-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 3.5px;
    color: #798c68; /* Sage Green color */
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
}

.families-main-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(44px, 11vw, 54px);
    font-weight: 400;
    color: #8f1d35; /* Rich Burgundy/Maroon */
    margin-bottom: 10px;
}

/* Bride & Groom Family Cards */
.family-card {
    width: 100%;
    max-width: 380px;
    background-color: #faf7f0;
    border: 1.2px solid #e2ca9f; /* Soft Golden Border */
    border-radius: 20px;
    padding: 32px 20px;
    margin-top: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.family-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 2.5px;
    color: #6c805a; /* Sage Green */
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Card ke andar wala chota floral divider */
.small-divider {
    margin-bottom: 20px;
}

.small-divider .divider-line {
    width: 45px;
}

.small-divider .divider-flower {
    font-size: 16px;
}

/* Parents Names inside Family Card */
.family-member-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(19px, 5vw, 22px);
    font-weight: 600;
    color: #3b2d26; /* Dark Espresso Brown */
    line-height: 1.65;
    letter-spacing: 0.3px;
}


/* ================= SECTION 6: CLOSING MESSAGE STYLING ================= */
.closing-section {
    width: 100%;
    background-color: #faf7f0; /* Warm Cream background */
    padding: 65px 22px 90px 22px; /* Neeche extra space taaki mute button text ke upar na aaye */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.closing-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(36px, 9.5vw, 44px);
    font-weight: 400;
    color: #8f1d35; /* Rich Burgundy/Maroon */
    margin-bottom: 14px;
    line-height: 1.25;
}

.closing-subtext {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(16px, 4.3vw, 18.5px);
    color: #6e5d53; /* Soft Warm Brown/Grey */
    line-height: 1.65;
    max-width: 350px;
    margin-top: 6px;
}

/* ================= SECTION 7: FOOTER STYLING ================= */
.footer-section {
    width: 100%;
    background-color: #36251b; /* Deep Chocolate / Espresso Brown background */
    padding: 60px 20px 80px 20px; /* Neeche space taaki mute button text ke upar na aaye */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: #d8b475; /* Warm Gold color */
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(38px, 10vw, 48px);
    font-weight: 400;
    color: #ffffff; /* Pure White Calligraphy */
    margin-bottom: 18px;
    line-height: 1.2;
}

/* Footer Divider with Bouquet */
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.footer-line {
    width: 45px;
    height: 1px;
    background-color: #9e8256; /* Muted Gold Line */
}

.footer-bouquet {
    font-size: 20px;
    line-height: 1;
}

/* Wedding Date in Footer */
.footer-date {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 600;
    color: #f7f3eb;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

/* Wedding Hashtag */
.footer-hashtag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: #ccb999; /* Soft Champagne/Beige Gold */
    text-transform: uppercase;
}