* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f9f4ef;
    --soft: #f1e5df;
    --rose: #b98278;
    --dark: #463936;
    --gold: #a88b62;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    background: var(--cream);
    color: var(--dark);
}

button,
a {
    font-family: inherit;
}

.container {
    width: min(900px, 90%);
    margin: auto;
}


/* =========================
   WELCOME
========================= */

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #fffaf7 0%,
            #f5e8e1 100%
        );

    transition:
        opacity .9s ease,
        visibility .9s ease;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    padding: 30px;
}

.small-title {
    font-size: 13px;
    margin-bottom: 25px;
    opacity: .7;
}

.ornament {
    color: var(--gold);
    font-size: 22px;
    margin: 20px 0;
}

.invite-label {
    font-size: 15px;
    margin-bottom: 20px;
}

.welcome-content h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 10vw, 80px);
    font-weight: 400;
}

.welcome-content h1 span {
    font-size: .5em;
    color: var(--rose);
    margin: 0 10px;
}

.wedding-date {
    margin: 20px 0 35px;
    letter-spacing: 2px;
}

.open-btn {
    border: 1px solid var(--rose);
    background: transparent;
    color: var(--dark);

    padding: 13px 28px;

    cursor: pointer;

    transition: .3s;

    display: inline-flex;
    gap: 15px;
    align-items: center;
}

.open-btn:hover {
    background: var(--rose);
    color: white;
}


/* =========================
   INVITATION
========================= */

.invitation {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}

.invitation.show {
    opacity: 1;
    visibility: visible;
}


/* =========================
   MUSIC
========================= */

.music-btn {
    position: fixed;
    top: 20px;
    left: 20px;

    z-index: 1000;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.7);

    background: rgba(70,57,54,.7);

    color: white;

    cursor: pointer;

    backdrop-filter: blur(10px);
}

.music-btn.playing {
    animation: musicPulse 1.5s infinite;
}

@keyframes musicPulse {

    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100svh;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(65,45,40,.3),
            rgba(65,45,40,.45)
        ),
        url("assets/couple.jpg") center/cover;

    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle,
            transparent,
            rgba(30,20,18,.55)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    padding: 30px;
}

.arabic-intro {
    font-size: 13px;
    margin-bottom: 30px;
}

.welcome-text {
    font-size: 14px;
    opacity: .9;
}

.initials {
    font-family: "Playfair Display", serif;

    font-size: clamp(65px, 18vw, 130px);

    margin: 15px 0;

    letter-spacing: 8px;
}

.initials span {
    font-size: .45em;
    opacity: .8;
}

.names {
    font-family: "Playfair Display", serif;

    font-weight: 400;

    font-size: clamp(32px, 8vw, 65px);
}

.names span {
    margin: 0 10px;
    color: #e4c9b8;
}

.line {
    width: 80px;
    height: 1px;

    background: rgba(255,255,255,.7);

    margin: 25px auto;
}

.hero-date {
    letter-spacing: 3px;
    font-size: 14px;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;

    left: 50%;
    transform: translateX(-50%);

    font-size: 11px;

    opacity: .8;
}

.scroll-indicator div {
    margin-top: 8px;
    font-size: 20px;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 100px 0;
    text-align: center;
}

.section-label {
    color: var(--rose);
    font-size: 13px;

    letter-spacing: 2px;
}

.section h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(32px, 6vw, 48px);

    font-weight: 400;

    margin: 18px 0 25px;
}

.message {
    background: var(--cream);
}

.message p {
    max-width: 550px;
    margin: auto;

    line-height: 2;

    color: #756864;
}

.floral-divider {
    margin-top: 35px;

    color: var(--gold);

    font-size: 30px;
}


/* =========================
   COUNTDOWN
========================= */

.countdown-section {
    background: var(--soft);
}

.countdown {
    display: flex;

    justify-content: center;

    gap: clamp(12px, 5vw, 50px);

    margin-top: 45px;
}

.count-item {
    min-width: 65px;
}

.count-item strong {
    display: block;

    font-family: "Playfair Display", serif;

    font-size: clamp(35px, 8vw, 60px);

    font-weight: 400;

    color: var(--rose);
}

.count-item span {
    font-size: 12px;
}


/* =========================
   COUPLE
========================= */

.couple-card {
    max-width: 600px;
    margin: auto;
}

.couple-image {
    overflow: hidden;

    border-radius: 2px;
}

.couple-image img {
    width: 100%;

    display: block;

    transition: transform 1s ease;
}

.couple-image:hover img {
    transform: scale(1.03);
}

.couple-names h2 {
    margin-bottom: 15px;
}

.couple-names h2 span {
    color: var(--rose);
}

.couple-names p {
    color: #756864;

    line-height: 2;
}


/* =========================
   EVENT
========================= */

.event {
    background: var(--soft);
}

.event-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin: 50px 0;
}

.event-card {
    background: rgba(255,255,255,.55);

    padding: 35px 15px;
}

.event-icon {
    font-size: 30px;

    color: var(--rose);

    margin-bottom: 15px;
}

.event-card h3 {
    font-weight: 500;

    margin-bottom: 10px;
}

.event-card p {
    font-size: 13px;

    line-height: 2;

    color: #756864;
}

.map-btn {
    display: inline-block;

    padding: 13px 25px;

    border: 1px solid var(--rose);

    color: var(--dark);

    text-decoration: none;

    transition: .3s;
}

.map-btn:hover {
    background: var(--rose);
    color: white;
}


/* =========================
   CLOSING
========================= */

.closing {
    min-height: 80vh;

    display: flex;
    align-items: center;

    background: var(--cream);
}

.closing p {
    max-width: 500px;

    margin: auto;

    line-height: 2;

    color: #756864;
}

.final-names {
    font-family: "Playfair Display", serif;

    font-size: 35px;

    margin-top: 40px;

    color: var(--rose);
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 30px;

    background: #443532;

    color: white;

    font-size: 11px;

    opacity: .9;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    .section {
        padding: 75px 0;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 25px;
    }

    .countdown {
        gap: 8px;
    }

    .count-item {
        min-width: 58px;
    }

}