* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f3ed;
    color: #40372e;
    line-height: 1.8;
    overflow-x: hidden;
}

body.locked {
    overflow: hidden;
}

img {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   OPENING
========================= */

.opening {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;

    background:
        linear-gradient(
            rgba(25, 22, 18, .45),
            rgba(25, 22, 18, .7)
        ),
        url("images/background.jpeg");

    background-size: cover;
    background-position: center;

    transition:
        opacity 1s ease,
        visibility 1s ease,
        transform 1.2s ease;
}

.opening.hide {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
}

.opening-content {
    width: min(90%, 600px);
    padding: 30px;
    animation: openingIn 1.5s ease;
}

@keyframes openingIn {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.opening-decoration {
    position: absolute;

    top: 8%;
    left: 50%;

    transform: translateX(-50%);

    font-size: 30px;

    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,100% {
        transform:
            translateX(-50%)
            translateY(0);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(-10px);
    }
}

.opening-subtitle {
    font-size: 12px;
    letter-spacing: 7px;
}

.opening h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(55px, 10vw, 90px);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
    margin: 20px 0;
}

.opening h1 span {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: .55em;
    font-weight: 400;
    margin: 5px 0;
}

.opening-line {
    width: 80px;
    height: 1px;

    background: rgba(255,255,255,.7);

    margin: 25px auto;
}

.opening-date {
    letter-spacing: 6px;
    font-size: 13px;
}

.guest-box {
    max-width: 420px;

    margin: 45px auto 25px;

    padding: 20px;

    border-top: 1px solid rgba(255,255,255,.3);
    border-bottom: 1px solid rgba(255,255,255,.3);
}

.guest-box h3 {
    font-family: 'Cormorant Garamond', serif;

    font-size: 27px;

    font-weight: 500;

    margin: 5px 0;
}

.guest-box p {
    font-size: 12px;
    opacity: .85;
}

.open-button {
    border: 1px solid rgba(255,255,255,.5);

    background: rgba(255,255,255,.12);

    color: white;

    padding: 14px 30px;

    border-radius: 50px;

    font-family: 'Poppins', sans-serif;

    cursor: pointer;

    backdrop-filter: blur(10px);

    transition: .4s;
}

.open-button:hover {
    background: white;
    color: #40372e;

    transform: translateY(-4px);
}

.open-button span {
    margin-right: 7px;
}


/* =========================
   MUSIC
========================= */

.music-button {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 1000;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    border: none;

    background: rgba(255,255,255,.9);

    box-shadow:
        0 10px 30px rgba(0,0,0,.15);

    cursor: pointer;

    font-size: 18px;

    transition: .3s;
}

.music-button:hover {
    transform: rotate(20deg) scale(1.08);
}


/* =========================
   MAIN
========================= */

#content {
    display: none;
}

.label {
    font-size: 10px;

    letter-spacing: 5px;

    opacity: .65;

    margin-bottom: 12px;
}

.section {
    width: min(100%, 950px);

    margin: auto;

    padding: 110px 25px;

    text-align: center;
}

.section h2 {
    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(42px, 7vw, 62px);

    font-weight: 500;

    line-height: 1.1;

    margin-bottom: 35px;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    height: 100vh;
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: white;

    background:
        url("images/dalam.jpeg");

    background-size: cover;
    background-position: center;

    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(20,18,15,.25),
            rgba(20,18,15,.65)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    animation: heroIn 2s ease;
}

@keyframes heroIn {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-small {
    letter-spacing: 7px;
    font-size: 12px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(75px, 14vw, 150px);

    font-weight: 500;

    line-height: .8;

    margin: 25px 0;
}

.hero h1 span {
    font-style: italic;
}

.hero-line {
    width: 90px;

    height: 1px;

    background: white;

    margin: 25px auto;
}

.hero-content > p:last-of-type {
    letter-spacing: 4px;
}

.scroll-down {
    margin-top: 70px;

    font-size: 25px;

    animation:
        scrollArrow 1.8s infinite;
}

@keyframes scrollArrow {

    0%,100% {
        transform: translateY(0);
        opacity: .4;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}


/* =========================
   INTRO
========================= */

.intro {
    padding-top: 130px;
}

.arabic {
    font-size: 28px;

    margin-bottom: 25px;
}

.intro .description {
    max-width: 650px;

    margin: auto;

    font-size: 14px;

    color: #655c52;
}

.ornament {
    font-family: serif;

    font-size: 40px;

    margin-top: 45px;

    opacity: .5;
}


/* =========================
   COUPLE
========================= */

.couple-section {
    background: white;

    max-width: none;

    padding-left: 10%;
    padding-right: 10%;
}

.couple-container {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 50px;

    margin-top: 50px;
}

.person {
    width: 300px;
}

.portrait {
    width: 250px;
    height: 330px;

    margin: auto;

    overflow: hidden;

    border-radius:
        130px
        130px
        20px
        20px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.15);
}

.portrait img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transition: transform .8s ease;
}

.portrait:hover img {
    transform: scale(1.08);
}

.person h3 {
    font-family: 'Cormorant Garamond', serif;

    font-size: 38px;

    font-weight: 500;

    margin-top: 25px;
}

.person p {
    font-size: 12px;

    color: #82786d;
}

.person strong {
    font-size: 12px;

    font-weight: 500;
}

.couple-symbol {
    font-family: 'Cormorant Garamond', serif;

    font-size: 65px;

    font-style: italic;
}


/* =========================
   COUNTDOWN
========================= */

.countdown-section {
    position: relative;

    max-width: none;

    min-height: 500px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: white;

    background:
        url("images/condown.jpeg");

    background-size: cover;
    background-position: center;

    background-attachment: fixed;
}

.countdown-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(35,30,25,.65);
}

.countdown-content {
    position: relative;

    z-index: 2;

    width: 100%;
}

.countdown-content h2 {
    margin-bottom: 45px;
}

.countdown {
    display: flex;

    justify-content: center;

    gap: 15px;
}

.time-box {
    width: 105px;

    padding: 20px 10px;

    border:
        1px solid
        rgba(255,255,255,.35);

    backdrop-filter: blur(5px);

    transition: .3s;
}

.time-box:hover {
    transform: translateY(-5px);

    background:
        rgba(255,255,255,.08);
}

.time-box span {
    display: block;

    font-family: 'Cormorant Garamond', serif;

    font-size: 50px;

    line-height: 1;
}

.time-box small {
    font-size: 9px;

    letter-spacing: 3px;
}


/* =========================
   EVENT
========================= */

.event {
    max-width: none;

    background: #eee8df;
}

.event-container {
    max-width: 950px;

    margin: 50px auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.event-card {
    background: white;

    padding: 45px 30px;

    border-radius: 8px;

    box-shadow:
        0 15px 50px
        rgba(0,0,0,.06);

    transition: .4s;
}

.event-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.1);
}

.event-icon {
    font-size: 28px;

    margin-bottom: 15px;
}

.event-card h3 {
    font-family: 'Cormorant Garamond', serif;

    font-size: 35px;

    font-weight: 500;
}

.event-card p {
    font-size: 13px;
}

.event-card strong {
    font-size: 12px;

    font-weight: 500;
}

.event-card hr {
    width: 60px;

    margin: 25px auto;

    border: none;

    border-top:
        1px solid #ddd;
}

.maps-button,
.wa-button {
    display: inline-block;

    padding: 13px 28px;

    border-radius: 50px;

    background: #40372e;

    color: white;

    font-size: 12px;

    transition: .3s;
}

.maps-button:hover,
.wa-button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.15);
}


/* =========================
   GALLERY
========================= */

.gallery-grid {
    max-width: 900px;

    margin: 50px auto 0;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}

.gallery-item {
    overflow: hidden;

    border-radius: 8px;

    aspect-ratio: 1 / 1;

    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


/* =========================
   RSVP
========================= */

.rsvp {
    max-width: none;

    background: white;
}

.rsvp > p:not(.label) {
    max-width: 550px;

    margin:
        -10px auto
        30px;

    font-size: 13px;
}


/* =========================
   WEDDING GIFT
========================= */

.gift {
    max-width: none;

    background: #eee8df;
}

.gift > p:not(.label) {
    max-width: 550px;

    margin:
        -10px auto
        30px;

    font-size: 13px;
}

.gift-card {
    max-width: 360px;

    margin: 0 auto;

    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    background: white;

    border-radius: 8px;

    box-shadow:
        0 15px 50px
        rgba(0,0,0,.06);
}

.gift-logo {
    color: #108ee9;

    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
}

.gift-card strong {
    font-size: 18px;
    letter-spacing: 2px;
}

.copy-button {
    padding: 12px 22px;

    border: none;
    border-radius: 50px;

    background: #40372e;

    color: white;
    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
    transition: .3s;
}

.copy-button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.15);
}

.gift-card small {
    min-height: 16px;

    color: #756b61;
    font-size: 11px;
}


/* =========================
   CLOSING
========================= */

.closing {
    position: relative;

    min-height: 600px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: white;

    background:
        url("images/background.jpeg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}

.closing-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(25,22,18,.65);
}

.closing-content {
    position: relative;

    z-index: 2;

    max-width: 650px;

    padding: 30px;
}

.closing-content h2 {
    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(65px, 12vw, 120px);

    font-weight: 500;

    line-height: .9;

    margin: 40px 0;
}

.closing-content h2 span {
    font-style: italic;
}

.closing-content p {
    font-size: 13px;

    opacity: .9;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 30px;

    text-align: center;

    background: #29251f;

    color: white;
}

footer p {
    font-family: 'Cormorant Garamond', serif;

    font-size: 22px;
}

footer small {
    font-size: 10px;

    opacity: .5;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .opening-subtitle {
        letter-spacing: 4px;
    }

    .opening h1 {
        font-size: 75px;
    }

    .opening-date {
        letter-spacing: 3px;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 80px;
    }

    .section {
        padding:
            80px
            20px;
    }

    .couple-container {
        flex-direction: column;

        gap: 35px;
    }

    .couple-symbol {
        margin:
            -10px 0;
    }

    .event-container {
        grid-template-columns: 1fr;
    }

    .countdown {
        gap: 6px;
    }

    .time-box {
        width: 75px;

        padding:
            15px
            5px;
    }

    .time-box span {
        font-size: 35px;
    }

    .time-box small {
        font-size: 7px;

        letter-spacing: 1px;
    }

    .gallery-grid {
        gap: 8px;
    }

    .gallery-item {
        border-radius: 5px;
    }

    .music-button {
        width: 45px;
        height: 45px;

        right: 15px;
        bottom: 15px;
    }

}
/* =========================
   SCROLL ANIMATION
========================= */

.scroll-animation {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity .9s ease,
        transform .9s ease;
}

.scroll-animation.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   IMAGE PREVIEW
========================= */

.image-preview {
    position: fixed;

    inset: 0;

    z-index: 10000;

    background: rgba(0,0,0,.9);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    cursor: zoom-out;
}

.image-preview img {
    max-width: 95%;
    max-height: 90%;

    object-fit: contain;

    border-radius: 5px;

    animation: previewIn .3s ease;
}

@keyframes previewIn {

    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

@media (max-width: 700px) {

    .opening {
        min-height: 100svh;
        height: 100svh;
        padding: 20px;
        box-sizing: border-box;
    }

    .opening-content {
        width: 100%;
        max-width: 340px;
        padding: 15px;
        box-sizing: border-box;
    }

    .opening h1 {
        font-size: 52px;
        line-height: .9;
        margin: 15px 0;
    }

    .opening h1 span {
        font-size: .5em;
    }

    .opening-subtitle {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .opening-date {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

#leaves {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.leaf {
    position: absolute;
    top: -80px;

    width: 40px;
    height: 40px;

    background-image: url("images/daun.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    animation: leafFall linear forwards;

    pointer-events: none;
}

@keyframes leafFall {
    0% {
        transform: translate3d(0, -80px, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    30% {
        transform: translate3d(60px, 30vh, 0) rotate(120deg);
    }

    50% {
        transform: translate3d(-50px, 55vh, 0) rotate(240deg);
    }

    75% {
        transform: translate3d(60px, 80vh, 0) rotate(330deg);
    }

    100% {
        transform: translate3d(-40px, 110vh, 0) rotate(450deg);
        opacity: 0;
    }
}

/* =================================
   SOFT WEDDING GLOW
================================= */

body::before {
    content: "";
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 9998;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 255, 255, 0.12),
            transparent 45%
        );

    animation: softGlow 7s ease-in-out infinite alternate;
}

@keyframes softGlow {

    0% {
        opacity: 0.35;
    }

    100% {
        opacity: 0.75;
    }
}

/* ✨ Sparkle */
#sparkles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9997;
}

.sparkle {
    position: absolute;

    width: 4px;
    height: 4px;

    background: white;
    border-radius: 50%;

    box-shadow:
        0 0 4px white,
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 35px rgba(255, 255, 255, 0.35);

    animation: sparkleGlow 3s ease-in-out infinite;
}

/* Cahaya menyilang ✨ */
.sparkle::before,
.sparkle::after {
    content: "";
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background: linear-gradient(
        transparent,
        rgba(255,255,255,0.9),
        transparent
    );

    border-radius: 50%;
}

.sparkle::before {
    width: 2px;
    height: 28px;
}

.sparkle::after {
    width: 28px;
    height: 2px;
}

@keyframes sparkleGlow {

    0%, 100% {
        opacity: 0;
        transform: scale(0.2);
    }

    30% {
        opacity: 0.3;
        transform: scale(0.6);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    70% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}