* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    background: #fcf8f5;
    color: #513c37;
    font-family: "Cairo", sans-serif;
    overflow-x: hidden;
}


/* =========================
   INTRO
========================= */

#introScreen {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100dvh;

    padding: 20px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #f8eee9 0%,
            #ead8d0 100%
        );

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

#introScreen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-decoration {
    font-family: "Playfair Display", serif;
    font-size: 80px;
    color: #a2766b;
    animation: heartbeat 2s infinite;
}

.intro-small {
    font-size: 14px;
    color: #80635b;
    margin-bottom: 20px;
}

#introScreen h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(65px, 14vw, 120px);
    font-weight: 400;
    color: #62473f;
}

#introScreen h1 span {
    font-style: italic;
    font-size: 0.55em;
    margin: 0 12px;
}

.intro-text {
    color: #80635b;
    margin-top: 10px;
}

#openInvitation {
    margin-top: 30px;
    padding: 14px 35px;

    border: none;
    border-radius: 50px;

    background: #8d6055;
    color: white;

    font-family: "Cairo", sans-serif;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(80, 50, 40, 0.18);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

#openInvitation:hover {
    transform: translateY(-4px);
}

#openInvitation:active {
    transform: translateY(-1px);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100svh;
    width: 100%;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    text-align: center;
    color: white;

    background-image:
        url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=90");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(40, 24, 21, 0.45),
            rgba(40, 24, 21, 0.7)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(90%, 900px);

    animation: fadeUp 1.2s ease both;
}

.arabic-bismillah {
    margin-bottom: 30px;
}

.hero-label {
    letter-spacing: 5px;
    font-size: 12px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(70px, 15vw, 130px);
    font-weight: 400;
    margin: 15px 0;
}

.hero h1 span {
    font-size: 0.55em;
    font-style: italic;
    margin: 0 10px;
}

.gold-divider {
    width: 90px;
    height: 1px;

    background: rgba(255, 255, 255, 0.8);

    margin: 25px auto;
}

.hero-date {
    font-size: 22px;
    line-height: 1.7;
}

.hero-time {
    margin-top: 8px;
}

.hero-location {
    margin-top: 5px;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;

    margin-top: 30px;
    padding: 13px 30px;

    color: white;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.hero-button:hover {
    background: white;
    color: #62473f;
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    z-index: 3;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    font-size: 25px;

    animation: bounce 1.5s infinite;
}


/* =========================
   FLOATING HEARTS
========================= */

.floating-hearts {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;
    z-index: 1;
}

.floating-hearts span {
    position: absolute;

    bottom: -50px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 25px;

    animation:
        floatHeart 7s linear infinite;

    will-change: transform, bottom, opacity;
}

.floating-hearts span:nth-child(1) {
    left: 10%;
    animation-delay: 1s;
}

.floating-hearts span:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
}

.floating-hearts span:nth-child(3) {
    left: 55%;
    animation-delay: 0s;
}

.floating-hearts span:nth-child(4) {
    left: 75%;
    animation-delay: 2s;
}

.floating-hearts span:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
}


/* =========================
   SECTIONS
========================= */

.section {
    width: 100%;
    max-width: 1100px;

    margin: auto;

    padding: 100px 20px;

    text-align: center;

    opacity: 0;
    transform: translate3d(0, 15px, 0);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

    will-change: opacity, transform;
}

.section.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.section-label {
    color: #a4766b;

    letter-spacing: 3px;

    font-size: 12px;

    margin-bottom: 10px;
}

.section h2 {
    font-family: "Playfair Display", serif;

    font-size: 44px;

    font-weight: 400;

    color: #60453e;
}

.small-divider {
    width: 65px;

    height: 1px;

    background: #bd9b90;

    margin: 25px auto;
}


/* =========================
   WELCOME
========================= */

.quran {
    max-width: 750px;

    margin: auto;

    font-family: "Playfair Display", serif;

    font-size: 23px;

    line-height: 2;

    color: #765b53;
}

.welcome-text {
    max-width: 650px;

    margin: 30px auto;

    line-height: 2;

    color: #806a63;
}


/* =========================
   COUNTDOWN
========================= */

.countdown-section {
    width: 100%;
    max-width: none;

    background: #f3e7e2;
}

.countdown {
    display: flex;

    justify-content: center;

    gap: 15px;

    direction: ltr;

    margin-top: 40px;
}

.count-item {
    width: 105px;

    padding: 22px 10px;

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid #e3cec7;

    border-radius: 22px;

    box-shadow:
        0 12px 30px rgba(70, 40, 30, 0.07);
}

.count-item .number {
    font-family: "Playfair Display", serif;

    font-size: 38px;

    color: #765249;
}

.count-item .label {
    color: #92756d;

    font-size: 13px;
}

#countdownMessage {
    margin-top: 25px;

    color: #8b685f;
}


/* =========================
   COUPLE
========================= */

.couple-grid {
    margin-top: 50px;

    display: grid;

    grid-template-columns:
        1fr 80px 1fr;

    align-items: center;

    gap: 20px;
}

.person-image {
    width: 240px;
    height: 300px;

    margin: auto;

    border-radius: 120px 120px 25px 25px;

    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(70, 40, 30, 0.12);
}

.person-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.person h3 {
    margin-top: 20px;

    font-family: "Playfair Display", serif;

    font-size: 30px;

    font-weight: 400;
}

.person p {
    color: #967b73;
}

.heart-center {
    font-family: "Playfair Display", serif;

    font-size: 55px;

    color: #a27368;

    animation: heartbeat 2s infinite;
}


/* =========================
   EVENT
========================= */

.details-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 50px;
}

.detail-card {
    background: white;

    padding: 35px 20px;

    border-radius: 25px;

    border: 1px solid #eadbd6;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(70, 40, 30, 0.08);
}

.detail-icon {
    font-size: 32px;

    color: #a27469;

    margin-bottom: 10px;
}

.detail-card h3 {
    margin-bottom: 10px;
}

.detail-card p {
    line-height: 2;

    color: #806a63;
}


/* =========================
   GALLERY
========================= */

.gallery-grid {
    margin-top: 45px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.gallery-grid img {
    display: block;

    width: 100%;

    height: 300px;

    object-fit: cover;

    border-radius: 25px;

    transition: transform 0.5s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}


/* =========================
   RSVP
========================= */

.rsvp-box {
    background: #eadbd5;

    border-radius: 40px;

    padding: 65px 25px;
}

.rsvp-box p {
    margin-top: 10px;
}

.whatsapp-button {
    display: inline-block;

    margin-top: 25px;

    padding: 15px 30px;

    border-radius: 50px;

    background: #8d6055;

    color: white;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background 0.3s ease;

    box-shadow:
        0 10px 25px rgba(80, 50, 40, 0.15);
}

.whatsapp-button:hover {
    transform: translateY(-4px);

    background: #704a42;
}


/* =========================
   MUSIC
========================= */

.music-button {
    position: fixed;

    bottom: 20px;
    left: 20px;

    z-index: 100;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    border: 1px solid #d7bcb4;

    background: rgba(255, 255, 255, 0.9);

    color: #79564e;

    cursor: pointer;

    font-size: 20px;

    box-shadow:
        0 8px 25px rgba(50, 30, 20, 0.15);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.music-button:hover {
    transform: scale(1.05);
}

.music-button:active {
    transform: scale(0.95);
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 55px 20px;

    background: #f1e5e0;

    color: #80665e;
}

.footer-heart {
    font-size: 45px;

    color: #a17267;

    animation: heartbeat 2s infinite;
}

footer h3 {
    font-family: "Playfair Display", serif;

    font-size: 28px;

    font-weight: 400;

    margin: 10px 0;
}

.footer-line {
    width: 50px;

    height: 1px;

    background: #c3a096;

    margin: 20px auto;
}

footer small {
    letter-spacing: 2px;

    font-size: 11px;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

}

@keyframes bounce {

    0%,
    100% {
        transform: translate3d(-50%, 0, 0);
    }

    50% {
        transform: translate3d(-50%, 10px, 0);
    }

}

@keyframes floatHeart {

    0% {
        bottom: -50px;
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    20% {
        opacity: 1;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(20deg);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .hero h1 {
        font-size: 70px;
    }

    .section {
        padding: 75px 18px;
    }

    .section h2 {
        font-size: 36px;
    }

    .countdown {
        gap: 6px;
    }

    .count-item {
        width: 75px;
        padding: 16px 5px;
    }

    .count-item .number {
        font-size: 27px;
    }

    .couple-grid {
        grid-template-columns: 1fr;
    }

    .heart-center {
        margin: 10px 0;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 270px;
    }

    .quran {
        font-size: 19px;
    }

    .intro-decoration {
        font-size: 65px;
    }

    #introScreen h1 {
        font-size: 65px;
    }

    .hero-date {
        font-size: 20px;
    }

    .hero-label {
        letter-spacing: 3px;
    }

    .music-button {
        bottom: 15px;
        left: 15px;
    }
}
.map-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #b58b65;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: 0.3s;
}

.map-link:hover {
  background: #96704e;
  transform: translateY(-3px);
}


/* =========================
   REDUCE MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}