/* RESET AMAN */
*, html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
}

:root {
    --pink: #123363;
    --pink-muted: #152b4d;
    --pink-light: #96c0ff;
    --pink-hover: #073d8f;
    --white: #fff;
    --grey: #ccc;
    --light-grey: #d4d4d4;
    --dark-grey: #999;
    --dark: #151515;
    --black: #000;
    --vh: 100vh;
}

@supports (height: 100vh) {
    :root {
        --vh: 100svh;
    }
}




/* ======================
   LOADING SCREEN
====================== */

#loading-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, #111, #000);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    width: 120px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loader-text {
    font-family: "Playfair Display SC", serif;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.loader-bar {
    width: 220px;
    height: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--pink), var(--pink-muted));
    border-radius: 20px;
    animation: loadBar 2.5s ease forwards;
}

@keyframes loadBar {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7;}
    50% { transform: scale(1.05); opacity: 1;}
    100% { transform: scale(1); opacity: 0.7;}
}


.text-pink2 {
    color: var(--pink-light);
}

/* PARALLAX BASE */
.parallax {
    position: relative;
    overflow: hidden;
}

/* layer umum */
.parallax-layer {
    position: absolute;
    inset: 0 !important;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* urutan depth */
.layer-back3 {
    background-image: url("assets/images/img-1.PNG");
    z-index: 1;
}

/* .layer-mid3 {
    background-image: url("assets/images/img-1-3.PNG");
    z-index: 3;
} */

.layer-front3 {
    background-image: url("assets/images/img-1-2.PNG");
    z-index: 4;
}

.layer-foreground3 {
    background-image: url("assets/images/img-1-1.PNG");
    z-index: 5;
}



/* urutan depth 2*/
.layer-back2 {
    background-image: url("assets/images/img-2.PNG");
    z-index: 1;
}


.layer-mid2 {
    background-image: url("assets/images/img-2-3.PNG");
    z-index: 3;
}

.layer-front2 {
    background-image: url("assets/images/img-2-2.PNG");
    z-index: 4;
}

.layer-foreground2 {
    background-image: url("assets/images/img-2-1.PNG");
    z-index: 5;
}





/* parallax gift-section 3*/
.layer-back {
    background-image: url("assets/images/img-3.PNG");
    z-index: -5;
}


.layer-mid {
    background-image: url("assets/images/img-3-3.PNG");
    z-index: -3;
}

.layer-front {
    background-image: url("assets/images/img-3-2.PNG");
    z-index: -2;
}

.layer-foreground {
    background-image: url("assets/images/img-3-1.PNG");
    z-index: -1;
}




/* parallax penutup 4*/
.layer-back4 {
    background-image: url("assets/images/img-4.PNG");
    z-index: 1;
}

.layer-mid4 {
    background-image: url("assets/images/img-4-3.PNG");
    z-index: 3;
}

.layer-front4 {
    background-image: url("assets/images/img-4-2.PNG");
    z-index: 4;
}

.layer-foreground4 {
    background-image: url("assets/images/img-4-1.PNG");
    z-index: 5;
}





/* konten di atas semua */
.hero-content {
    position: relative;
    z-index: 10;
}



/* NAVBAR */
.navbar {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 30px;
    margin-right: 50px;
    width: 95%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 20px;
    opacity: 0.8;
}


.navbar nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    display: inline-block;
    opacity: 100%;
}

.navbar nav a:hover {
    color: var(--pink);
    transition: .5s all ease-in-out;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    margin-left: auto;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--pink);
    border-radius: 2px;
}

.hamburger:hover span {
    background: #eaeaea;
    transition: .3s all ease-in-out;
}


/* SIDEBAR GLASS */
.sidebar {
    position: fixed;
    top: 32%;
    right: -320px;
    transform: translateY(-50%);
    width: 150px;
    height: 300px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: 0.4s cubic-bezier(.19,1,.22,1);
    z-index: 999;
}

/* ACTIVE */
.sidebar.active {
    right: 20px;
}

/* LINK */
.sidebar a {
    color: white;
    padding: 14px 24px;
    text-decoration: none;
    text-align: left;
    font-size: 16px;
}

.sidebar a:hover {
    color: var(--pink);
    transform: translateX(6px);
    transition: 0.3s;
}


/* OVERLAY POP UP */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* navbar cuma wadah */
.navbar {
    right: -50px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    width: auto;        /* 🔥 penting */
}


/* tombol hamburger bulat */
.hamburger {
    width: 48px;
    height: 48px;
    border-radius: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

/* garis */
.hamburger span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
}


/* default hidden */
.nav-item-music {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: .4s ease;
}

.nav-item-music.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* hamburger default hidden */
.navbar {
    opacity: 0;
    pointer-events: none;
    transition: .4s ease;
}

.navbar.show {
    opacity: 1;
    pointer-events: auto;
}


.navbar nav {
    position: absolute;
    top: 80px;
    right: 0;
    background: #000;
    width: 100%;
    flex-direction: column;
    align-items: center;
        display: none;
}
    
.navbar nav.active {
    display: flex;
}
    
.navbar nav a {
    padding: 15px 0;
    width: 100%;
    text-align: center;
}

/* MUSIC BUTTON */
.nav-item-music {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);

    position: fixed;
    bottom: 15px;
    right: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 20px;
    z-index: 9999;
}

.penutup-section a {
    text-decoration: none;
}

.nav-item-music.rotate {
    animation: rotateAnimation 5s linear infinite;
}


@keyframes rotateAnimation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}





    /* JANGAN set height di body */
    body.locked {
    overflow: hidden !important;
}

body.unlocked {
    overflow-y: auto;
}

#app {
    position: relative;
    z-index: 1;
    min-height: var(--vh);
    overflow-x: hidden;
}

.huruf-sambung {
    font-family: 'Sacramento', cursive !important;
}

/* font wedding */
.font1 {
    font-family: "Great Vibes", serif;
    font-weight: 500;
    font-style: normal;

}



.font2 {
    font-family: "Playfair Display SC", serif;
    font-weight: 100 !important;
    font-style: normal;
    letter-spacing: 1px;
}


.btn-pink {
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    transition: 0.5s;
    color: var(--white);
    background: var(--pink);
}

.btn-pink:hover {
    background: var(--pink-hover);
    color: var(--white);
}

.border-pink {
    border-radius: 15px;
    border: 2px solid var(--pink);
}


 /* lovestoy */
.section-titlekiri {
    position: relative;
    display: inline-block;
    padding: 6px 24px;
}


.section-titlekiri::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    z-index: 0;
}

/* teks di atas blur */
.section-titlekiri h1 {
    position: relative;
    z-index: 2;
}

/* footer */
.card-acara,
.section-titlebening {
    background: transparent;
}

.sambutan {
    color: var(--white);
}



/* hero section */
#hero-section h1 {
    font-size: 10px;
    text-shadow:
        0 3px 8px rgba(0,0,0,0.5),
        0 0 12px rgba(0, 0, 0, 0.35);
}

#hero-section h4 {
    text-shadow:
        0 2px 5px rgba(0,0,0,0.5);
}

#hero-section .cd-number {
    text-shadow:
        0 2px 6px rgba(0,0,0,0.6);
}

#hero-section .cd-label {
    text-shadow:
        0 1px 3px rgba(0,0,0,0.5);
}



#hero-section::before {
    transform: translateY(-5px) scale(1.1);
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.8) 60%,
            rgba(0, 0, 0, 1) 100%
        ), url('assets/images/gallery.jpeg');
    background-position: center;
    background-size: cover;
    z-index: -5;
}


#hero-section {
    width: 100%;
    min-height: var(--vh);
    position: fixed;
    z-index: 10;
    overflow: hidden!important;
    transition: opacity 1s ease, transform 1s ease;
}


#hero-section .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero-section .btn-get-started {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-block;
    transition: 0.5s;
    background: var(--pink);
    color: var(--white);
    font-size: 12px;
    padding: 10px 20px;
}

#hero-section .btn-get-started:hover {
    color: var(--pink-hover);
    background: var(--white);
}

#hero-section .btn-get-started,
#hero-section .btn-get-started * {
    text-shadow: none !important;
}


#hero-section h4:first-child {
    font-size: 12px;
    max-width: 90%;
    margin: 0 auto 6px;
}


    #hero-section h1 {
        font-size: 15px;   
        line-height: 1.1;
        margin: 8px 0;
    }

    #hero-section .font1 {
        letter-spacing: 1px;
        font-size: 35px; 
    }

    #hero-section .font2 {
        letter-spacing: 1px;
        font-size: 13px; 
    }

    .hero-content{
    display: flex;
    flex-direction: column;
    min-height: var(--vh);
}

/* Judul di atas */
.hero-title{
    margin-top: 10vh;
    text-align: center;
}

/* Sambutan + tombol di bawah */
.hero-bottom{
    margin-top: auto;
    margin-bottom: 10vh;
    text-align: center;
}

/* Shadow teks agar kebaca di foto */
.hero-title h1,
.sambutan,
.btn-get-started{
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

/* Perjelas sambutan */
.sambutan{
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Rapatkan semua teks di hero */
.hero-title h1{
    margin-top: 0 !important;
    line-height: 1.05;   /* jarak antar baris lebih mepet */
    font-size: 10px;
}

/* Jarak kecil antara "the wedding of" dan nama */
.hero-title .font1{
    font-size: 10px;
    margin-bottom: 0 !important;
    letter-spacing: 1px;
}

.hero-title .font2{
    font-size: 10px;
}

/* Rapatkan sambutan */
.sambutan p{
    margin: 2px 0;
}

.sambutan hr{
    margin: 6px auto;
    width: 60%;
    opacity: 0.7;
}

.hero-hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}







/* pembuka-section */
#pembuka-section{
    display: flex;
    justify-content: center;
    position: relative;
    height: 100vh !important;
    width: 100vw;
    min-height: var(--vh);   /* full layar */
    overflow: hidden;
    padding: 0 !important;
    inset: 0 !important;
    z-index: 1;
}

.overlay-pembuka {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.8) 90%,
        #fff 100%
    );
}

.pembuka-title{
    margin-top: 10vh;
    text-align: center;
}

/* Sambutan + tombol di bawah */
.pembuka-bottom{
    margin-top: auto;
    margin-bottom: 10vh;
    text-align: center;
}

/* Shadow teks agar kebaca di foto */
.pembuka-title h1,
.btn-get-started{
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}


/* Rapatkan semua teks di pembuka */
.pembuka-title h1{
    margin-top: 0 !important;
    line-height: 1.05;   /* jarak antar baris lebih mepet */
    font-size: 10px;
}

/* Jarak kecil antara "the wedding of" dan nama */
.pembuka-title .font1{
    font-size: 50px;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    letter-spacing: 1px;
}

.pembuka-title .font2{
    font-size: 15px;
    font-weight: 1px;
}



/* ==============================
   AUTO SLIDER DI PEMBUKA
============================== */

.auto-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 8;
    touch-action: pan-y; /* BIAR SWIPE X JALAN */
    cursor: grab;
}

.auto-slider:active {
    cursor: grabbing;
}

.auto-slider-track {
    display: flex;
    width: max-content;
    gap: 8px;
    will-change: transform;
}


/* pause kalau disentuh / hover */
.auto-slider:hover .auto-slider-track {
    animation-play-state: paused;
}

.auto-slider img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,.5);
}




/* ==============================
   OPENING SECTION PANJANG
============================== */

#opening-section {
    position: relative;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #0f241f, #86b1d5);


}

/* =====================
   TEKS ATAS
===================== */

.opening-text {
    position: sticky;
    top: 12vh;
    text-align: center;
    max-width: 420px;
    padding: 20px;
    z-index: 5;
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 28px;
    color:var(--pink-light);
    margin-bottom: 20px;
}

.quote {
    font-size: 14px;
    line-height: 1.2;
    color: white;
    text-shadow: none !important;
}

.quote span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.7;
}

/* =====================
   ROUNDED PILL
===================== */

.opening-pill {
    position: sticky;
    top: 30vh;
    width: 90%;
    max-width: 420px;
    height: 130vh;
    background: white;
    border-radius: 999px;
    border: 2px solid var(--pink);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.18),
        0 20px 60px rgba(0,0,0,0.28),
        inset 0 1px 2px rgba(255,255,255,0.35);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.6));
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

/* =====================
   ISI VERTIKAL
===================== */

.couple-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 60px 20px;
    margin-top: 20px;
}

/* ITEM */
.couple-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.couple-item img {
    width: 180px;
    height: 250px;
    object-fit: cover;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

.couple-item .nama {
    margin-top: 20px;
    font-size: 30px;
}


/* IG */
.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(4px);
}

/* teks petunjuk */
.hint-profile {
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 23px;
    color: white;
    opacity: 0.8;
    text-align: center;
        text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
}





/* CONTENT */
.pembuka-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.pembuka-card {
    width: 80%;
    max-width: 420px;
    padding: 30px 20px;
    text-align: center;
    color: black;
}


/* COUNTDOWN */
.countdown {
    display: flex;
    justify-content: center;
    gap: 5px !important;
    margin-bottom: 25px;
}

.cd-box {
    min-width: 70px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(3px);
}

.cd-number {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.cd-label {
    font-size: 11px;
    opacity: 0.8;
}

.btn-tgl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.2px solid var(--pink);
    background: white;
    color: black;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 6px 16px rgba(0,0,0,.3);
}

.btn-tgl:hover {
    background: var(--pink);
    color: white;
}


/* QUOTE ISLAMI */
.quote-islami {
    margin-top: 40px;
}

.quote-islami .arab {
    font-family: 'Amiri', serif;
    font-size: 15px;
    margin-bottom: 10px;
}

.quote-islami .quote {
    color: black;
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.9;
}

.quote-islami span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.75;
}


.text-pink {
    color: var(--pink);
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pink-light);
}

::-webkit-scrollbar-thumb {
    background: var(--pink);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink-hover);
}


/* 3d hover */
@font-face {
    font-family: "exoct";
    src: url(assets/images/bg-3d.png);
}



figure {
    width: 50%;
    aspect-ratio: 1/1;
    margin: 00 60px;
    padding: 5px 20px 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 100%;
    cursor: pointer;
    position: relative;
    filter: drop-shadow(0 0 20px rgb(0 0 0/50%));
}

figure:before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: top/cover;
    transform-origin: bottom;
    filter: brightness(.9);
    transition: .5s;
}

figure:before {
    background-image: url(assets/images/bg-3d.png);
}

figure + figure:before {
    background-image: url(assets/images/bg-3d.png);
}

figure img {
    grid-area: 1/1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: contrast(.8) brightness(.7);
    place-self: end center;
    transition: .5s;
}

figcaption {
    grid-area: 1/1;
    width: calc(100% + 40px);
    font-family: Exoct;
    color: white;
    font-size: min(32px,5vmin);
    text-align: center;
    place-self: end center;
    transform: perspective(500px)translateY(100%) rotateX(-90deg);
    backface-visibility: hidden;
    transform-origin: top;
    background: black;
    transition: .5s;
}

figure:hover img {
    width: 130%;
    height: 185%;
    filter: contrast(1);
}

figure:hover::before {
    filter: brightness(.3);
    transform: perspective(500px) rotateX(60deg);
}

figure:hover figcaption {
    transform: perspective(500px)translateY(100%) rotateX(-30deg);
}

.container-3d {
    margin: 0;
    min-height: 90vh;
    display: grid;
    grid-auto-flow: column;
    place-content: end center;
    grid-auto-flow: column;
    grid-template-rows: auto auto; /* 🔥 figure atas, ig bawah */
    align-items: start;
    gap: 50px;
        margin-bottom: 100px !important;
        margin-top: -200px !important;
}

/* =====================
   MOBILE VERSION
   ===================== */
@media (max-width: 768px) {

    .container-3d {
        grid-auto-flow: column;   /* tetap ke samping */
        place-content: bottom;
        gap: 12px;
        padding: 10px;
    }

    figure {
        width: 42vw;              /* kecil tapi masih kebaca */
        aspect-ratio: 1 / 1;
        margin: 0;
        padding: 8px 8px 0;
    }

    figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        filter: contrast(.9) brightness(.85);
    }

    figcaption {
        width: 109%;
        font-size: 14px;
        padding: 6px 6px;
        background: rgba(0,0,0,.7);
    }

    /* tap effect (mobile replacement hover) */
    figure:active img {
        width: 115%;
        height: 200%;
        filter: contrast(1);
    }

    figure:active::before {
        filter: brightness(.4);
        transform: perspective(400px) rotateX(20deg);
    }

    figure:hover img {
    width: 130%;
    height: 210%;
}
}


/* TEXT PROFIL (OVERLAY AMAN) */
.cowo::after {
    content: attr(data-profile);

    position: absolute;
    top: -155%;               /* 🔥 DI LUAR GAMBAR */
    left: 108%;
    transform: translateX(-50%) translateY(-10px);

    width: 200%;
    padding: 10px 14px;

    background: transparent;
    color: #fff;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;

    border-radius: 14px;

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;

    z-index: -1; /* di atas semuanya */
}

.cewe::after {
    content: attr(data-profile);

    position: absolute;
    top: -155%;               /* 🔥 DI LUAR GAMBAR */
    transform: translateX(-50%) translateY(-10px);

    width: 200%;
    padding: 10px 14px;

    background: transparent;

    color: #fff;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;

    border-radius: 14px;

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;

    z-index: -1; /* di atas semuanya */
}


/* muncul pas hover 3D */
figure:hover::after,
figure:active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* muncul saat hover 3D */
figure:hover::after,
figure:active::after {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* MUNCUL SAAT HOVER 3D BERJALAN */
figure:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* pastikan figure selalu di baris atas */
.container-3d figure {
    grid-row: 1;
}

/* ig link selalu di bawah figure */
.container-3d .ig-link {
    grid-row: 2;
    justify-self: center;
    margin-top: 28px;
}




/* parallax-2 */
#parallax-2{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh !important;
    width: 100vw;
    min-height: var(--vh);   /* full layar */
    overflow: hidden;
    padding: 0 !important;
    z-index: 9;
    margin: 0 auto;
}



#parallax-2 .pembuka-title {
    position: relative;
    z-index: 10;
}


#parallax-2 .acara-content {
    position: relative;
    z-index: 10;          /* 🔥 di atas layer */
    
    width: 100%;
    max-width: 420px;

    display: flex;
    flex-direction: column;
    justify-content: center; /* 🔥 tengah vertikal isi */
    align-items: center;

    text-align: center;
    padding: 40px 20px;
}





/* ==============================
   ACARA SECTION

/* ISI */
.acara-content {
    position: relative;
    z-index: 9999;
    height: 100%;
    padding: 60px 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    color: white;
}

/* BLOK ACARA */
.acara-blok {
    padding: 20px 10px;
}

/* JUDUL */
.acara-title {
    font-family: "Playfair Display SC", serif;
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* TANGGAL & JAM */
.acara-date {
    font-weight: 600;
    font-size: 14px;
}

.acara-time {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 14px;
}

/* LOKASI */
.acara-lokasi {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 14px;
}

/* BUTTON */
.btn-acara {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: white;
    color: black;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-shadow: none !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
}

.btn-acara:hover {
    background: var(--pink);
    color: white;
}

.btn-acara i {
    text-shadow: none !important;
}


.icon-map {
    display: flex;
    justify-content: center;
    margin: 6px auto 8px;
}

.icon-map svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: rgba(255,255,255,0.9);
    stroke-width: 1.6;
}

/* SHADOW GLOBAL UNTUK ACARA CONTENT */
.acara-content,
.acara-content * {
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
}







/* ================================
   LOVE STORY TIMELINE (MOBILE FIRST)
================================ */

#love-story-section {
    background: linear-gradient(to bottom, #0b2b38, #0b2b38, #be7097);
}


.timeline {
    list-style: none;
    padding: 20px 0;
    position: relative;
    max-width: 100%;
}


.timeline {
    position: relative;
}

/* garis vertikal */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45px;                /* sejajar dengan tengah foto */
    width: 3px;
    background: linear-gradient(
        to bottom,
        var(--pink),
        #231433,
        #231433
    );
    border-radius: 10px;
    opacity: 0.7;
}




/* Item */
/* container tiap item */
.timeline > li {
    position: relative;
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* foto */
.timeline > li > .timeline-badge {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--pink);
    box-shadow: 0 8px 20px rgba(var(--pink-rgb), 0.4);
}

.timeline-heading {
    color: black;
}

/* panel card */
.timeline > li > .timeline-panel {
    background: white;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--pink);
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
    width: 100%;
}

/* Judul */
.timeline-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

/* Tanggal */
.timeline-date {
    display: block;
    font-size: 11px;
    color: var(--pink-light);
    margin-bottom: 8px;
}

/* Isi */
.timeline-body p {
    font-size: 12px;
    line-height: 1.6;
    color: black;
    text-shadow: none !important;
}

/* Hapus arrow desktop */
.timeline > li > .timeline-panel::before,
.timeline > li > .timeline-panel::after {
    display: none;
}



/* ======================
   MINI GALLERY PREVIEW
====================== */
.gallery-section {
    display: flex;
    text-align: center;
}

/* ===== MASONRY 2–3 KOLOM ===== */
#gallery-section {
    margin-bottom: -10px;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #be7097, #1c2755, #1c2755, #be7097);
        text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
}

/* container */
.gallery-grid {
    column-count: 3;
    column-gap: 12px;
}

/* tiap item */
.gallery-grid a {
    display: inline-block;
    width: 100%;
    margin-bottom: 2px;
    break-inside: avoid;
}

/* gambar */
.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* mobile */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 10px;
    }
}








/* gift section */
.gift-section {
    height: 100vh;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#gift-section .container {
    z-index: 9999;
    margin-top: 100px;
    color: white;
    
}

#gift-section h1, p {
        text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
};

/* credit-card aman */
#gift-section .credit-card {
    margin-left: auto;
    margin-right: auto;
}

#gift-section {
    align-items: flex-start;
    overflow: hidden;
}

#collapseHadiah.show {
    overflow: visible;
}


.credit-card {
    background-color: var(--dark-grey);
    background-size: cover;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 20px;
    width: 300px;
    color: var(--white);
    position: relative;
}

.card-logo {
    width: 75px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.card-container {
    display: flex;
    align-items: center;
    margin-top: 50px;
}

.card-sim {
    width: 50px;
    margin-right: 10px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    text-decoration: none;
}

.card-name {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-align: left;
    margin-top: 10px;
}

.copy-button {
    font-family: 'Courier New', monospace;
    position: absolute;
    text-decoration: none;
    top: 5px;
    left: 15px;
    background-color: var(--white);
    color: var(--black);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.copy-button:hover {
    background: var(--pink);
    color: white;
}

.btn-kirim {
    font-weight: bold;
    color: var(--white);
    background: var(--pink);
}

.btn-kirim:hover {
    background: var(--pink);
    color: var(--pink-light);
}



/* rsvp section */
#rsvp-section {
    position: relative;
    z-index: 9999;
    background: linear-gradient(to bottom, #07182a, #07182a, #67c1f5);
    height: auto;
    
}

#rsvp-section .font1 {
    color: var(--pink-light);
        text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
}

#rsvp-section p {
        text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
}


.ucapan-box {
    margin-top: 50px;
    background: var(--grey);
    padding: 20px;
    border-radius: 16px;
    z-index: 40;
}

.ucapan-box input,
.ucapan-box textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}


.ucapan-item {
    background: white;
    color: black;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-shadow: none !important;
}

.ucapan-item strong {
    text-shadow: none !important;
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}




/* ucapan */
#listUcapan {
    max-height: 100vh;
    overflow-y: auto; 
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    margin: 0 auto;
    max-height: 50vh;
    text-shadow: none!important;
}

/* biar scrollbar ga jelek */
#listUcapan::-webkit-scrollbar {
  width: 6px;
}

#listUcapan::-webkit-scrollbar-thumb {
  background: var(--pink); 
  border-radius: 10px;
}

#listUcapan::-webkit-scrollbar-track {
  background: transparent;
}

#btnKirim:disabled {
    background: var(--dark-grey);
    opacity: 0.4;
    cursor: not-allowed;
}


#ucapan-section {
    background: linear-gradient(to bottom,#67c1f5, #67c1f5);
    height: auto;
    max-height: 52vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-shadow: none !important;

}

#ucapan-section,
#ucapan-section * {
    text-shadow: none !important;
}





/* penutup section */
#penutup-section {
    position: relative;
    min-height: var(--vh);
    color: var(--white);
    display: flex;
    align-items: center;
        text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
}

#penutup-section .container {
    z-index: 9999;
}

#penutup-section h5, h8 {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

#penutup-section h1 {
    font-size: 42px;
    margin-bottom: 10px;
    text-align: center;
}


/* footer */
.footer {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer .social {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

/* WhatsApp */
.footer .wa {
    background: #25D366;
}

/* Instagram */
.footer .ig {
    background: radial-gradient(circle at 30% 30%,
        #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

/* TikTok */
.footer .tt {
    background: #000;
}

/* Hover effect */
.footer .social:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}


.ttd img {
    max-width: 150px;
    opacity: 0.9;
    filter: drop-shadow(0 5px 15px rgba(255,255,255,0.3));
}

.back-top {
    color: var(--pink-light);
}



/* mode ipad */
@media (min-width: 767px) and (max-width: 1024px) {

    /* =====================
       GLOBAL
    ===================== */
    body {
        background: #050505;
    }

    section,
    main,
    .nav {
        margin-left: auto;
        margin-right: auto;
    }

    /* =====================
       HERO (FIXED)
    ===================== */
    #hero-section {
        left: 50%;
        transform: translateX(-50%);
    }

    /* =====================
       VIDEO BACKGROUND
       (tetap full layar)
    ===================== */
    .video-bg {
        width: 100vw;
        height: 100vh;
        left: 0;
        transform: none;
    }

    /* =====================
       PEMBUKA SECTION
       (BENDERA & BOUNTY)
    ===================== */
    #pembuka-section {
        margin: 0 auto;
    }

    .bendera img {
        width: 1600px; /* cinematic desktop */
    }


#pembuka-section2 .pembuka-card {
    width: 100%;
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
}


    /* =====================
       SECTION KONTEN
    ===================== */
    .pembuka-section2,
    .parallax-2,
    .acara-section,
    .opening-section,
    .lokasi-section,
    .love-story-section,
    .gallery-section,
    .gift-section,
    .rsvp-section {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }



#pembuka-section2 .pembuka-card {
    width: 80%;
    height: 80%;
    max-width: 400px;
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
}
/* content wrapper */
#pembuka-section2 .pembuka-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}


/* gambar jawa di atas */
#pembuka-section2 .jawa {
    width: 100%;
    display: flex;
    justify-content: center;
}

#pembuka-section2 .jawa img {
    max-width: 160px;
    width: 100%;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.6));
    border-radius: 20%;
}

/* tanggal */
#pembuka-section2 h4 {
    font-size: 24px;
    line-height: 1.4;
    margin: 6px 0;
}

/* countdown */
#pembuka-section2 .countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 20px;
}

#pembuka-section2 .cd-box {
    min-width: 60px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}

#pembuka-section2 .cd-number {
    font-size: 28px;
    font-weight: bold;
}

#pembuka-section2 .cd-label {
    font-size: 21px;
    letter-spacing: 1px;
    opacity: 0.8;
}


.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}



.countdown {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0;
    color: var(--black);
}

.cd-box {
    min-width: 56px;
    padding: 6px 8px;
    border-radius: 10px;
    text-align: center;
    color: var(--black);
    font-size: 11px;
    backdrop-filter: blur(2px);
}

.cd-number {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    display: block;
}

.cd-label {
    font-size: 15px;
}





    /* paksa layout acara jadi vertikal */
    #acara-section .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* semua kolom full width */
    #acara-section [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* jarak antar card */
    #acara-section .card-acara {
        margin-bottom: 20px;
    }

#gift-section h1, p {
        text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
};

    /* gift section tetap normal */
    #gift-section {
        margin: 0 auto;
        text-align: center;
    }

    /* JANGAN flex section */
    #gift-section.gift-section {
        display: block;
    }

    /* pastikan collapse tetap bootstrap */
    #gift-section .collapse {
        width: 100%;
    }

    /* CREDIT CARD DI TENGAH */
    #gift-section .credit-card {
        width: 300px;
    }

}












/* =========================================
   DESKTOP MODE
   FORCE MOBILE VIEW PER SECTION (AMAN)
========================================= */
@media (min-width: 992px) {

    /* =====================
       GLOBAL
    ===================== */
    body {
        background: #050505;
    }

    section,
    main,
    .nav {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    /* =====================
       HERO (FIXED)
    ===================== */
    #hero-section {
        width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* =====================
       VIDEO BACKGROUND
       (tetap full layar)
    ===================== */
    .video-bg {
        width: 100vw;
        height: 100vh;
        left: 0;
        transform: none;
    }

    /* =====================
       PEMBUKA SECTION
       (BENDERA & BOUNTY)
    ===================== */
    #pembuka-section {
        width: 430px;
        margin: 0 auto;
    }




#pembuka-section2 .pembuka-card {
    width: 80%;
    height: 50%;
    max-width: 280px;
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
}




    /* =====================
       SECTION KONTEN
    ===================== */
    .acara-section,
    .lokasi-section,
    .love-story-section,
    .gallery-section,
    .gift-section,
    .rsvp-section,
    .penutup-section {
        width: 430px;
        margin-left: auto;
        margin-right: auto;
    }


    /* paksa layout acara jadi vertikal */
    #acara-section .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* semua kolom full width */
    #acara-section [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* jarak antar card */
    #acara-section .card-acara {
        margin-bottom: 20px;
    }





    /* gift section tetap normal */
    #gift-section {
        width: 430px;
        margin: 0 auto;
        text-align: center;
    }

    /* JANGAN flex section */
    #gift-section.gift-section {
        display: block;
    }

    /* pastikan collapse tetap bootstrap */
    #gift-section .collapse {
        width: 100%;
    }

    /* CREDIT CARD DI TENGAH */
    #gift-section .credit-card {
        right: 40%;
        width: 320px;
    }

}
