
/* =====================================
   1. GLOBAL SETTINGS
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #26040c;
    color: #f1d9a0;
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

:root {
    --maroon: #35020c;
    --deep-maroon: #200008;
    --gold: #d6b36a;
    --light-gold: #f5dfaa;
    --ivory: #fff2d8;
}


/* =====================================
   2. FALLING PETALS CONTAINER
===================================== */

#petals-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.petal {
    position: absolute;
    top: -30px;
    height: 18px;
    background: linear-gradient(
        135deg,
        #f5b2b9,
        #c84b65
    );
    border-radius: 100% 0 100% 0;
    opacity: 0.8;
    animation: fallPetal linear forwards;
}

@keyframes fallPetal {
    0% {
        transform: translateY(-30px) rotate(0deg);
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
    }
}


/* =====================================
   3. GRAND CURTAIN SCREEN
===================================== */

.curtain-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 20;
    overflow: hidden;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* CURTAIN PANELS */

.curtain {
    position: absolute;
    top: 0;
    width: 50.5%;
    height: 100%;
    z-index: 2;

    background:
        repeating-linear-gradient(
            90deg,
            #250008 0px,
            #570b1b 15px,
            #850f2b 28px,
            #480515 42px,
            #250008 58px
        );

    box-shadow:
        inset 0 0 45px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(225, 177, 99, 0.25);

    transition: transform 3s cubic-bezier(0.7, 0, 0.2, 1);
}

.curtain-left {
    left: 0;
    border-right: 2px solid var(--gold);
}

.curtain-right {
    right: 0;
    border-left: 2px solid var(--gold);
}


/* CURTAIN OPENING ANIMATION */

.curtain-screen.open .curtain-left {
    transform: translateX(-100%);
}

.curtain-screen.open .curtain-right {
    transform: translateX(100%);
}

.curtain-screen.hide {
    display: none;
}


/* CURTAIN OPENING TEXT */

.opening-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--light-gold);
    padding: 20px;

    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* HIDE OPENING TEXT WHEN CURTAINS OPEN */

.curtain-screen.open .opening-content {
    opacity: 0;
    transform: translateY(-25px);
    pointer-events: none;
}
.opening-subtitle {
    font-size: 13px;
    letter-spacing: 5px;
    margin-bottom: 30px;
}

.opening-ornament {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
}

.opening-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(55px, 8vw, 95px);
    font-weight: normal;
    margin-bottom: 35px;
}

.opening-hint {
    font-size: 12px;
    letter-spacing: 5px;
    animation: hintGlow 2s infinite alternate;
}

@keyframes hintGlow {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}


/* =====================================
   4. MAIN INVITATION
===================================== */

#mainInvitation {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            #75162d,
            #430713 45%,
            #240008 100%
        );
    color: var(--light-gold);
    text-align: center;
    padding: 60px 20px;
}


/* =====================================
   5. WELCOME SECTION
===================================== */

.welcome-section {
    max-width: 950px;
    min-height: 850px;
    margin: 0 auto;
    padding: 65px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floral-border {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 85px 35px;

    border: 1px solid var(--gold);
    outline: 1px solid rgba(214, 179, 106, 0.45);
    outline-offset: 9px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035),
            rgba(30, 0, 8, 0.3)
        );

    box-shadow:
        0 0 35px rgba(0, 0, 0, 0.25),
        inset 0 0 30px rgba(214, 179, 106, 0.05);
}

/* FOUR GOLD FLORAL CORNERS */

.floral-border::before,
.floral-border::after {
    position: absolute;
    content: "❀";
    color: var(--gold);
    font-size: 48px;
    line-height: 1;
    text-shadow: 0 0 12px rgba(214, 179, 106, 0.35);
}

.floral-border::before {
    top: 12px;
    left: 15px;
}

.floral-border::after {
    bottom: 12px;
    right: 15px;
}

/* EXTRA CORNER DETAILS */

.floral-border {
    background-image:
        radial-gradient(
            circle at top right,
            rgba(214, 179, 106, 0.12),
            transparent 25%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(214, 179, 106, 0.12),
            transparent 25%
        );
}


/* BISMILLAH */

.bismillah {
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 2;
    margin-bottom: 18px;
    color: var(--light-gold);

    text-shadow:
        0 0 12px rgba(214, 179, 106, 0.2);
}

.bismillah-translation {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-style: italic;
    letter-spacing: 0.5px;
    color: var(--ivory);
    margin-bottom: 35px;
}


/* LUXURY GOLD ORNAMENTS */

.ornament {
    color: var(--gold);
    font-size: 30px;
    margin: 30px 0;
    letter-spacing: 10px;

    text-shadow:
        0 0 12px rgba(214, 179, 106, 0.35);
}

.welcome-subtitle,
.invitation-text {
    font-size: 13px;
    letter-spacing: 4px;
    line-height: 2;
}

.invitation-text {
    max-width: 500px;
    margin: 20px auto;
}


/* COUPLE NAMES */

/* BRIDE & GROOM NAMES */

.bride-name,
.groom-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(65px, 10vw, 110px);
    font-weight: normal;
    color: var(--light-gold);
    margin: 20px 0;
    line-height: 1.3;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(214, 179, 106, 0.25);
}


/* AMPERSAND BETWEEN NAMES */

.ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-style: italic;
    color: var(--gold);
    margin: 10px 0;
}


/* LUXURY WEDDING DATE */

.wedding-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--light-gold);
    margin-top: 30px;
    line-height: 1.8;
}

/* WEDDING TIME */

.wedding-time {
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    font-style: italic;
    color: var(--ivory);
    margin-top: 12px;
    letter-spacing: 2px;
}
/* WELCOME MESSAGE */
.welcome-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-style: italic;
    color: var(--ivory);
    margin-top: 30px;
    letter-spacing: 1px;
    line-height: 1.8;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    letter-spacing: 5px;
    color: var(--light-gold);
    margin-top: 60px;
    opacity: 0.85;
}

/* SCROLL ARROW */
.scroll-indicator span {
    display: block;
    font-size: 30px;
    color: var(--gold);
    margin-top: 12px;
    animation: scrollDown 1.8s infinite;
}

/* GENTLE SCROLL ANIMATION */
@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* =====================================
   6. COMMON SECTION STYLING
===================================== */

.countdown-section,
.event-section,
.location-section,
.closing-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 100px 25px;
}

.section-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 20px;
}

.countdown-section h2,
.event-section h2,
.location-section h2,
.closing-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 5vw, 45px);
    font-weight: normal;
}


/* =====================================
   7. LUXURY COUNTDOWN
===================================== */

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.countdown-box {
    position: relative;
    width: 135px;
    padding: 30px 12px;
    border: 1px solid rgba(214, 179, 106, 0.8);
    outline: 1px solid rgba(214, 179, 106, 0.25);
    outline-offset: 5px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.06),
        rgba(20, 0, 5, 0.4)
    );
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.countdown-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(214, 179, 106, 0.15);
}

.countdown-box span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--light-gold);
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(214, 179, 106, 0.2);
}

.countdown-box p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    letter-spacing: 4px;
    color: var(--ivory);
    margin-top: 15px;
    text-transform: uppercase;
}


/* =====================================
   8. EVENT DETAILS
===================================== */

/* LUXURY EVENT & VENUE CARDS */

.event-card,
.venue-card {
    position: relative;
    max-width: 600px;
    margin: 45px auto 0;
    padding: 55px 30px;
    border: 1px solid rgba(214, 179, 106, 0.85);
    outline: 1px solid rgba(214, 179, 106, 0.3);
    outline-offset: 7px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(25, 0, 7, 0.45)
        );
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 0 25px rgba(214, 179, 106, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover,
.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(214, 179, 106, 0.12);
}

/* EVENT & VENUE ICONS */

.event-icon,
.venue-icon {
    font-size: 42px;
    color: var(--light-gold);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(214, 179, 106, 0.3);
}

/* CARD HEADINGS */

.event-card h3,
.venue-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    letter-spacing: 3px;
    font-weight: normal;
    color: var(--light-gold);
    margin: 22px 0;
}

/* CARD DETAILS */

.event-card p,
.venue-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    line-height: 1.9;
    color: var(--ivory);
}

/* EVENT TIME */

.event-time {
    color: var(--light-gold);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* ADDITIONAL NOTES */

.event-note,
.venue-message {
    margin-top: 28px;
    font-style: italic;
    color: var(--light-gold);
}



/* =====================================
   9. LUXURY LOCATION BUTTON
===================================== */

.map-button {
    display: inline-block;
    margin-top: 35px;
    padding: 16px 42px;
    border: 1px solid var(--gold);
    color: var(--deep-maroon);
    background: linear-gradient(
        135deg,
        var(--light-gold),
        var(--gold)
    );
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(214, 179, 106, 0.2);
    transition: all 0.4s ease;
}

.map-button:hover {
    background: transparent;
    color: var(--light-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(214, 179, 106, 0.25);
}


/* =====================================
 /* =====================================
   10. LUXURY CLOSING SECTION
===================================== */

/* WEDDING DUA */
.wedding-dua {
    max-width: 650px;
    margin: 40px auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(29px, 4.5vw, 42px);
    line-height: 2;
    color: var(--light-gold);
    text-shadow: 0 0 15px rgba(214, 179, 106, 0.2);
}

/* DUA TRANSLATION */
.dua-translation {
    max-width: 550px;
    margin: 25px auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    font-style: italic;
    line-height: 1.9;
    color: var(--ivory);
}

/* CLOSING MESSAGE */
.closing-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    line-height: 1.8;
    color: var(--ivory);
    margin-top: 35px;
}

/* FOREVER DECORATION */
.forever-text {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    letter-spacing: 6px;
    color: var(--gold);
    margin: 45px 0;
    text-shadow: 0 0 12px rgba(214, 179, 106, 0.3);
}

/* FINAL SIGNATURE */
.closing-section h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 52px;
    font-weight: normal;
    color: var(--light-gold);
    margin-top: 20px;
    text-shadow: 0 0 15px rgba(214, 179, 106, 0.25);
}


/* =====================================
   11. HIDDEN SOUNDCLOUD PLAYER
===================================== */

.soundcloud-player {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
    top: 0;
}


/* =====================================
   12. MOBILE RESPONSIVENESS
===================================== */

@media (max-width: 600px) {

    #mainInvitation {
        padding: 35px 15px;
    }

    .welcome-section {
        min-height: 750px;
        padding: 40px 12px;
    }

    .floral-border {
        padding: 65px 15px;
    }

    .welcome-subtitle,
    .invitation-text {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .wedding-date {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .countdown-section,
    .event-section,
    .location-section,
    .closing-section {
        padding: 75px 15px;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-box {
        width: 105px;
        padding: 20px 5px;
    }

    .countdown-box span {
        font-size: 32px;
    }

    .opening-subtitle,
    .opening-hint {
        letter-spacing: 3px;
    }

    .closing-section h3 {
        font-size: 33px;
    }
}