/* ===================================
   RESET
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: white;
    overflow-x: hidden;
}

/* ===================================
   BACKGROUND
=================================== */

.background {

    position: fixed;
    inset: 0;

    background:
        url('../assets/img/fairy-bg.png');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    z-index: -3;
}

.background::after {

    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(rgba(10, 10, 25, .45),
            rgba(10, 10, 25, .65));
}

/* ===================================
   FAIRY STARS
=================================== */

.stars {

    position: fixed;
    inset: 0;

    z-index: -2;

    overflow: hidden;
}

.stars::before {

    content: "";

    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: white;

    box-shadow:
        20px 100px white,
        80px 200px white,
        150px 150px white,
        230px 300px white,
        300px 100px white,
        120px 450px white,
        60px 600px white,
        270px 750px white,
        180px 900px white,
        330px 1100px white;

    animation: twinkle 4s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: .2;
    }

    50% {
        opacity: 1;
    }

}

/* ===================================
   WRAPPER
=================================== */

.wrapper {

    width: 100%;

    padding:
        50px 15px 120px;
}

/* ===================================
   FAIRY CARD
=================================== */

.royal-card {

    position: relative;

    width: 100%;

    max-width: 380px;

    margin: 40px auto 70px;

    padding:
        90px 30px;

    background:
        rgba(255, 255, 255, .08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, .15);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, .25);

    overflow: visible;

    text-align: center;

    border-radius:
        220px 220px 25px 25px;

    animation:
        cardEntrance 1.2s ease;
}

.royal-card::before {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background:
        rgba(255, 235, 210, .08);

    filter: blur(90px);

    top: -60px;

    left: 50%;

    transform:
        translateX(-50%);

    z-index: 1;
}

.royal-card:first-child::after {

    content: "";

    position: absolute;

    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;

    border:
        1px solid rgba(255, 230, 190, .30);

    border-radius:
        210px 210px 18px 18px;

    box-shadow:
        0 0 12px rgba(255, 220, 180, .08);

    pointer-events: none;

    z-index: 2;
}

.royal-card>* {

    position: relative;
    z-index: 10;
}

.second-card::after {

    content: "";

    position: absolute;

    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;

    border:
        1px solid rgba(255, 245, 220, .18);

    border-radius:
        18px 18px 210px 210px;

    pointer-events: none;
}

/* ===================================
   SPARKLE
=================================== */

.sparkle {

    position: absolute;

    top: 20px;
    right: 25px;

    font-size: 22px;

    animation: floatSparkle 3s ease-in-out infinite;
}

@keyframes floatSparkle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===================================
   LOCATION BUTTON
=================================== */

.location-btn {

    display: inline-block;

    margin-top: 35px;

    padding:
        16px 34px;

    text-decoration: none;

    color: white;

    font-size: 18px;

    font-family: 'Cormorant Garamond', serif;

    border-radius: 50px;

    background:
        rgba(255, 255, 255, .12);

    backdrop-filter: blur(10px);

    border:
        1px solid rgba(255, 255, 255, .25);

    transition: .4s;
}

.location-btn:hover {

    transform: translateY(-3px);

    background:
        rgba(255, 255, 255, .18);
}

.gallery-btn {

    display: inline-block;

    margin-top: 25px;

    padding: 14px 30px;

    border-radius: 50px;

    text-decoration: none;

    background:
        rgba(255, 255, 255, .12);

    color: white;

    border:
        1px solid rgba(255, 255, 255, .2);

    backdrop-filter: blur(10px);

    transition: .3s;
}

.gallery-btn:hover {

    transform:
        translateY(-3px);
}

/* ===================================
   MOBILE
=================================== */
/* Tombol panah */

.next-card-btn {

    margin-top: 35px;

    background: none;

    border: none;

    color: #f7e6d2;

    font-size: 42px;

    cursor: pointer;

    text-shadow:
        0 0 10px rgba(255, 230, 190, .5),
        0 0 20px rgba(255, 230, 190, .3);

    animation:
        floatArrow 2.5s ease-in-out infinite;

    transition: .3s;
}

.next-card-btn:hover {

    transform: scale(1.15);
}

.next-card-btn:hover {

    transform:
        translateY(3px);
}

/* Card disembunyikan */

.hidden-card {

    opacity: 0;

    transform:
        translateY(-50px);

    max-height: 0;

    overflow: hidden;

    margin: 0 auto;

    transition:
        all .8s ease;
}

/* Saat muncul */

.hidden-card.show {

    opacity: 1;

    transform:
        translateY(0);

    max-height: 1000px;

    margin: 40px auto;
}

/* ===========================
   NEW FAIRY INVITATION STYLE
=========================== */

.intro-top {

    font-family: 'Cormorant Garamond', serif;

    font-size: 18px;

    letter-spacing: 4px;

    line-height: 1.8;

    color: #f6efe5;

    text-transform: uppercase;

    margin-bottom: 20px;

    text-shadow:
        0 0 10px rgba(255, 255, 255, .15);
}

/* BIRTHDAY GIRL */

.birthday-girl {

    font-family: 'Allura', cursive;

    font-size: 60px;

    font-weight: 400;

    line-height: 1;

    color: #f3d5c4;

    margin-bottom: 20px;

    text-shadow:
        0 0 10px rgba(255, 220, 200, .5),
        0 0 25px rgba(255, 220, 200, .3);
}

/* JOIN US */

.celebrate {

    font-family: 'Cormorant Garamond', serif;

    font-size: 15px;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #f7efe4;

    margin-bottom: 30px;
}

/* NAMA */

.astrid-name {

    font-family: 'Allura', cursive;

    font-size: 41px;

    font-weight: 400;

    line-height: 1.05;

    color: #f1d0c2;

    margin-bottom: 25px;

    text-shadow:
        0 0 12px rgba(255, 220, 200, .5),
        0 0 30px rgba(255, 220, 200, .25);
}

/* THE DAUGHTER OF */

.daughter {

    font-family: 'Cormorant Garamond', serif;

    font-size: 24px;

    color: #f7efe4;

    margin-bottom: 15px;
}

/* ORNAMENT */

.mini-divider {

    width: 80px;

    height: 1px;

    margin:
        25px auto;

    background:
        linear-gradient(to right,
            transparent,
            rgba(255, 240, 210, .9),
            transparent);

    position: relative;
}

.mini-divider::after {

    content: "✦";

    position: absolute;

    left: 50%;
    top: -11px;

    transform: translateX(-50%);

    color: #f5dfc8;

    font-size: 14px;
}

@keyframes cardEntrance {

    from {

        opacity: 0;

        transform:
            translateY(80px) scale(.92);
    }

    to {

        opacity: 1;

        transform:
            translateY(0) scale(1);
    }
}

/* ===========================
   SECOND CARD
=========================== */

.second-card {

    border-radius:
        25px 25px 220px 220px;
}

/* Astrid */

.event-name {

    font-family: 'Allura', cursive;

    font-size: 72px;

    color: #f3d5c4;

    margin-bottom: 5px;

    text-shadow:
        0 0 10px rgba(255, 220, 200, .5),
        0 0 25px rgba(255, 220, 200, .3);
}

.turning {

    font-size: 32px;

    color: #f7efe4;

    margin-bottom: 20px;
}

.event-date {

    font-size: 30px;

    color: #fff7ea;

    margin-bottom: 10px;
}

.event-time {

    font-size: 26px;

    color: #fff7ea;

    margin-bottom: 35px;
}

/* COUNTDOWN */

.countdown {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin-bottom: 35px;

    flex-wrap: wrap;
}

.count-box {

    width: 65px;

    height: 78px;

    border-radius: 18px;

    background:
        rgba(255, 220, 210, .15);

    border:
        1px solid rgba(255, 255, 255, .2);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    backdrop-filter: blur(10px);
}

.count-box span {

    font-size: 28px;

    font-weight: bold;

    color: #fff7ea;
}

.count-box small {

    font-size: 16px;

    color: #fff7ea;
}

/* LOCATION */

.location-title {

    font-size: 24px;

    color: #fff7ea;

    margin-bottom: 5px;
}

.location-name {

    font-family: 'Parisienne', cursive;

    font-size: 42px;

    color: #f4ddd1;

    margin-bottom: 20px;

    text-shadow:
        0 0 10px rgba(255, 230, 210, .3);
}

/* MAPS */

.maps-btn {

    display: inline-block;

    padding:
        16px 38px;

    border-radius: 50px;

    text-decoration: none;

    color: white;

    background:
        rgba(255, 220, 210, .15);

    border:
        1px solid rgba(255, 255, 255, .2);

    backdrop-filter: blur(10px);

    transition: .3s;
}

.maps-btn:hover {

    transform:
        translateY(-3px);
}

/* DRESSCODE */

.dress-title {

    margin-top: 10px;

    font-size: 34px;

    color: #fff7ea;

    margin-bottom: 15px;
}

.dress-note {

    font-size: 18px;

    line-height: 1.6;

    color: #fff7ea;
}

@keyframes floatArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* =========================
   ORNAMENT CARD 1
========================= */

.card1-ornament {

    position: absolute;

    left: 0;

    bottom: 0;

    width: 100%;

    z-index: 2;

    pointer-events: none;

    opacity: .85;
}

/* =========================
   ORNAMENT CARD 2
========================= */

.card2-ornament {

    position: absolute;

    left: 0;

    top: 0;

    width: 100%;

    z-index: 2;

    pointer-events: none;

    opacity: .85;
}

.card1-ornament,
.card2-ornament {

    filter:
        drop-shadow(0 0 10px rgba(255, 240, 220, .4));

    animation:
        ornamentGlow 4s ease-in-out infinite;
}

@keyframes ornamentGlow {

    0%,
    100% {

        opacity: .75;
    }

    50% {

        opacity: 1;
    }
}

/* =========================
   TOP INVITATION ORNAMENT
========================= */

.invitation-top-design {

    position: absolute;

    top: 0;

    left: 50%;

    transform: translateX(-50%);

    width: min(500px, 100vw);

    z-index: 1;

    pointer-events: none;

    animation:
        floatingOrnament 6s ease-in-out infinite;
}

@keyframes floatingOrnament {

    0% {

        transform:
            translateX(-50%) translateY(0px);
    }

    50% {

        transform:
            translateX(-50%) translateY(8px);
    }

    100% {

        transform:
            translateX(-50%) translateY(0px);
    }
}

/* =========================
   CARD 2 BUTTERFLIES
========================= */

.card2-butterflies {

    position: absolute;

    left: 50%;

    bottom: 0px;

    transform: translateX(-50%);

    width: 100%;

    display: flex;

    justify-content: center;

    pointer-events: none;

    z-index: 1;
}

.card2-butterflies img {

    width: min(420px, 95vw);

    opacity: .92;

    filter:
        drop-shadow(0 0 12px rgba(255, 230, 180, .35));

    animation:
        butterflyFloat 6s ease-in-out infinite;
}

.second-card {

    overflow: visible !important;
}

@keyframes butterflyFloat {

    0% {

        transform:
            translateY(0px) rotate(-1deg);
    }

    25% {

        transform:
            translateY(-6px) rotate(1deg);
    }

    50% {

        transform:
            translateY(-12px) rotate(-1deg);
    }

    75% {

        transform:
            translateY(-6px) rotate(1deg);
    }

    100% {

        transform:
            translateY(0px) rotate(-1deg);
    }
}