@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Playfair+Display:wght@400;600&family=Great+Vibes&display=swap');

/* body{
    margin:0;
    font-family: 'Playfair Display', serif;
    overflow:hidden;
    background:#000;
} */

body{
    margin:0;
    font-family: 'Cormorant Garamond', serif;
    overflow:hidden;
    background:#000;
}

/* ===== LOADER ===== */

#loader{
    position:fixed;
    inset:0;
    background:linear-gradient(135deg,#020617,#0a193c);
    z-index:9999;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-family:'Playfair Display', serif;
}

.loader-inner{
    text-align:center;
}

.loader-ring{
    width:60px;
    height:60px;
    border:4px solid rgba(255,255,255,.2);
    border-top:4px solid #ffffff;
    border-radius:50%;
    margin:0 auto 14px;
    animation:spinLoader 1s linear infinite;
}

@keyframes spinLoader{
    from{ transform:rotate(0deg); }
    to{ transform:rotate(360deg); }
}


/* ================= COVER ================= */

.cover{
    position:fixed;
    inset:0;
    background:url('../img/cover.jpg') center/cover no-repeat;
    z-index:10;
}

.cover::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom,
        rgba(10,25,60,.75),
        rgba(20,40,90,.55),
        rgba(30,60,120,.35)
    );
}

.cover-inner{
    position:relative;
    z-index:2;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#fff;
    text-align:center;
    padding:0 20px;
}

.wedding-of{
    font-size:14px;
    letter-spacing:3px;
    text-transform:uppercase;
    margin-bottom:6px;
}

.cover-inner h1{
    font-family: 'Great Vibes', cursive;
    font-size:56px;
    letter-spacing:3px;
    margin:12px 0;
    color:#f5f7ff;
    text-shadow:0 0 10px rgba(255,255,255,.35);
}

.guest-wrapper{
    margin:24px 0 10px;
}

.guest-label{
    font-size:13px;
    letter-spacing:1px;
    margin-bottom:6px;
}

.guest-name{
    font-size:16px;
    font-weight:600;
    letter-spacing:1px;
    color:#e8ecff;
}

#openBtn{
    background:transparent;
    border:1px solid #e8ecff;
    color:#e8ecff;
    padding:12px 34px;
    border-radius:30px;
    letter-spacing:2px;
    transition:.4s;
}

#openBtn:hover{
    background:#e8ecff;
    color:#0a193c;
}

/* ================= MAIN CONTENT ================= */

.content{
    min-height:200vh;
    padding:80px 20px;
    background:url('../img/bg-main.jpg') center top / cover no-repeat;
    color:#fff;
    position:relative;
}

.content::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom,
        rgba(20,40,90,.45),
        rgba(40,80,150,.35),
        rgba(20,40,90,.45)
    );
}

.content > *{
    position:relative;
    z-index:2;
}

.section{
    padding:60px 10px;
    max-width:520px;
    margin:0 auto;
    text-align:center;
}

/* ===== OPENING CARD ===== */

.opening{
    background:rgba(255,255,255,.08);
    border-radius:20px;
    padding:40px 28px;
    backdrop-filter: blur(6px);
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.opening h2{
    font-size:20px;
    line-height:1.6;
    margin-bottom:20px;
    color:#ffffff;
    text-shadow:0 3px 12px rgba(0,0,0,.7);
}

.opening p{
    font-size:15px;
    line-height:1.9;
    color:#f2f5ff;
    text-shadow:0 3px 12px rgba(0,0,0,.7);
}

/* ===== COUPLE SECTION ===== */

.couple h3{
    letter-spacing:3px;
    margin-bottom:30px;
}

.person{
    margin-bottom:20px;
}

.person h4{
    font-family:'Great Vibes', cursive;
    font-size:40px;
    margin:12px 0;
    color:#ffffff;
    text-shadow:0 3px 10px rgba(0,0,0,.6);
}

.person p{
    font-size:14px;
    line-height:1.7;
    color:#eef1ff;
    text-shadow:0 3px 10px rgba(0,0,0,.6);
}

.and{
    display:block;
    font-size:24px;
    margin:24px 0;
}

.photo{
    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:100%;
    border:4px solid #e8ecff;
    margin-bottom:10px;
    box-shadow:0 0 14px rgba(0,0,0,.35);
}

.event h3{
    letter-spacing:3px;
    margin-bottom:30px;
}

.event-card{
    background:rgba(255,255,255,.10);
    border-radius:20px;
    padding:28px 20px;
    margin-bottom:20px;
    backdrop-filter: blur(6px);
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.event-card h4{
    font-size:18px;
    margin-bottom:12px;
    letter-spacing:2px;
    color:#ffffff;
}

.event-card p{
    font-size:14px;
    line-height:1.7;
    color:#eef1ff;
    text-shadow:0 2px 6px rgba(0,0,0,.6);
}

.location h3{
    letter-spacing:3px;
    margin-bottom:25px;
}

.map-card{
    background:rgba(255,255,255,.10);
    border-radius:20px;
    padding:15px;
    backdrop-filter: blur(6px);
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.map-card iframe{
    width:100%;
    height:260px;
    border:none;
    border-radius:14px;
    margin-bottom:12px;
}

.map-btn{
    display:block;
    text-align:center;
    background:#e8ecff;
    color:#0a193c;
    padding:10px 20px;
    border-radius:20px;
    text-decoration:none;
    font-size:14px;
    letter-spacing:1px;
}

.countdown-box{
    display:flex;
    justify-content:space-around;
    margin-top:20px;
}

.countdown-box div{
    background:rgba(255,255,255,.12);
    padding:15px 10px;
    border-radius:16px;
    width:70px;
    backdrop-filter: blur(6px);
}

.countdown-box span{
    display:block;
    font-size:22px;
    font-weight:600;
}

.countdown-box small{
    font-size:11px;
    letter-spacing:1px;
}

.countdown-date{
    font-size:14px;
    letter-spacing:2px;
    margin:10px 0 20px;
    color:#f1f3ff;
    text-shadow:0 2px 6px rgba(0,0,0,.6);
}

.guestbook-card input,
.guestbook-card textarea{
    width:100%;
    padding:10px;
    border-radius:10px;
    border:none;
    margin-bottom:10px;
    font-family:inherit;
}

#gb-send{
    background:#e8ecff;
    border:none;
    padding:8px 20px;
    border-radius:20px;
    cursor:pointer;
}

#gb-list{
    margin-top:20px;
    max-height:320px;
    overflow-y:auto;
    padding-right:6px;
    margin-top:20px;
}

/* scrollbar halus */
#gb-list::-webkit-scrollbar{
    width:4px;
}
#gb-list::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.4);
    border-radius:10px;
}

.guestbook-item{
    background:rgba(255,255,255,.10);
    padding:12px 16px;
    border-radius:14px;
    margin-bottom:12px;
    box-shadow:0 4px 15px rgba(0,0,0,.25);
}

.guestbook-item strong{
    font-size:13px;
    color:#ffffff;
}

.guestbook-item p{
    font-size:13px;
    line-height:1.6;
    margin-top:6px;
    color:#eef1ff;
}

.guestbook-item{
    animation: fadeIn .4s ease;
}

@keyframes fadeIn{
    from{ opacity:0; transform:translateY(6px); }
    to{ opacity:1; transform:translateY(0); }
}

#musicBtn{
    position:fixed;
    bottom:16px;
    right:16px;
    width:28px;
    height:28px;
    background:rgba(255,255,255,.9);
    color:#0a193c;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:13px;
    cursor:pointer;
    z-index:999;
    box-shadow:0 3px 10px rgba(0,0,0,.3);
}

#musicBtn.rotate{
    animation: spin 6s linear infinite;
}

@keyframes spin{
    from{ transform:rotate(0deg); }
    to{ transform:rotate(360deg); }
}

.gift-card{
    background:rgba(255,255,255,.10);
    border-radius:20px;
    padding:28px 22px;
    backdrop-filter: blur(6px);
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.gift-text{
    font-size:14px;
    line-height:1.8;
    margin-bottom:20px;
    color:#eef1ff;
}

.gift-item{
    margin-bottom:18px;
}

.gift-qr{
    width:160px;
    border-radius:12px;
    margin-bottom:10px;
    box-shadow:0 4px 15px rgba(0,0,0,.35);
}

.gift-bank{
    font-size:13px;
    letter-spacing:1px;
    margin-bottom:8px;
}

.gift-item p{
    font-size:14px;
    margin:4px 0;
}

.gift-item small{
    font-size:12px;
    color:#dbe1ff;
}

.gift-item button{
    margin-top:8px;
    background:#e8ecff;
    border:none;
    padding:6px 18px;
    border-radius:20px;
    cursor:pointer;
    font-size:12px;
}

.atm-card{
    position:relative;
    padding:22px 20px;
    border-radius:18px;
    color:#fff;
    margin-bottom:18px;
    text-align:left;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
    overflow:hidden;
}

.atm-card::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,
        rgba(255,255,255,.15),
        rgba(255,255,255,0)
    );
    pointer-events: none; /* ← INI WAJIB */
}

.atm-bank{
    font-size:15px;
    letter-spacing:2px;
    font-weight:600;
    margin-bottom:20px;
}

.atm-number{
    font-size:18px;
    letter-spacing:3px;
    margin-bottom:10px;
}

.atm-name{
    font-size:13px;
    opacity:.9;
}

.atm-card button{
    position:absolute;
    bottom:14px;
    right:14px;
    background:rgba(255,255,255,.85);
    border:none;
    border-radius:20px;
    padding:4px 14px;
    font-size:11px;
    cursor:pointer;
    color:#0a193c;
}

/* Warna bank */
.atm-card.bsi{
    background:linear-gradient(135deg,#00b3a4,#007a70);
}

.atm-card.bri{
    background:linear-gradient(135deg,#00529b,#0a77c9);
}

.atm-chip{
    width:42px;
    height:32px;
    border-radius:6px;
    background:linear-gradient(135deg,#f5d37b,#c9a03c);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.25),
                0 2px 6px rgba(0,0,0,.4);
    margin-bottom:14px;
    position:relative;
}

/* garis-garis chip */
.atm-chip::before,
.atm-chip::after{
    content:'';
    position:absolute;
    background:rgba(0,0,0,.25);
}

.atm-chip::before{
    width:100%;
    height:2px;
    top:50%;
    left:0;
}

.atm-chip::after{
    width:2px;
    height:100%;
    left:50%;
    top:0;
}

.atm-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:18px;
}

.atm-bank{
    font-size:18px;
    font-weight:700;
    letter-spacing:2px;
    color:#fff;
    text-shadow:0 2px 6px rgba(0,0,0,.5);
}

.gift-toggle{
    background:#e8ecff;
    border:none;
    color:#0a193c;
    padding:10px 24px;
    border-radius:30px;
    cursor:pointer;
    margin-bottom:20px;
    font-size:14px;
    letter-spacing:1px;
    box-shadow:0 6px 18px rgba(0,0,0,.3);
}

.gift-card{
    animation: fadeGift .6s ease;
}

@keyframes fadeGift{
    from{ opacity:0; transform:translateY(12px); }
    to{ opacity:1; transform:translateY(0); }
}

/* ===== CLOSING SECTION ===== */

.closing{
    margin-top:60px;
    background:rgba(255,255,255,.08);
    border-radius:24px;
    padding:44px 30px;
    backdrop-filter: blur(6px);
    box-shadow:0 12px 36px rgba(0,0,0,.35);
}

.closing-text,
.closing-doa{
    font-size:15px;
    line-height:1.9;
    color:#eef1ff;
    margin-bottom:18px;
    text-shadow:0 3px 10px rgba(0,0,0,.7);
}

.closing-wassalam{
    font-size:16px;
    margin-top:26px;
    margin-bottom:12px;
    letter-spacing:1px;
    color:#ffffff;
    text-shadow:0 3px 10px rgba(0,0,0,.7);
}

.closing-name{
    font-family:'Great Vibes', cursive;
    font-size:36px;
    color:#ffffff;
    letter-spacing:2px;
    text-shadow:0 4px 14px rgba(0,0,0,.7);
}


/* ===== SECTION DIVIDER (DI LUAR PADDING) ===== */

.section{
    position:relative;
    padding:60px 10px;
    max-width:520px;
    margin:0 auto;
    text-align:center;
}

/* Garis pembatas di batas luar atas section */
.section:not(:first-child)::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:1px;
    background:linear-gradient(to right,
        rgba(255,255,255,0),
        rgba(255,255,255,.35),
        rgba(255,255,255,0)
    );
}

/* Tidak perlu garis di penutup */
.section.closing::before{
    display:none;
}


.admin-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.admin-box{
    background:#fff;
    color:#222;
    padding:24px 22px;
    border-radius:16px;
    width:90%;
    max-width:360px;
    text-align:center;
}

.admin-box input{
    width:100%;
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
    margin-bottom:10px;
}

.admin-box button{
    margin-top:8px;
    padding:8px 18px;
    border:none;
    border-radius:20px;
    cursor:pointer;
    background:#0a193c;
    color:#fff;
}

.admin-result{
    margin-top:12px;
    word-break:break-all;
    font-size:12px;
}


.ayat-wrapper{
    margin-bottom:50px;
    padding:22px 20px;
    border-radius:18px;
    background:rgba(0,0,0,.25);
    backdrop-filter: blur(4px);
    box-shadow:0 8px 24px rgba(0,0,0,.35);
}

.ayat-arab{
    font-family:'Scheherazade New', serif;
    font-size:24px !important;
    line-height:2.2;
    color:#ffffff;
    margin-bottom:14px;
    text-shadow:0 3px 10px rgba(0,0,0,.7);
}

.ayat-arti{
    font-size:14px;
    line-height:1.8;
    color:#dbe5ff;
    text-shadow:0 2px 6px rgba(0,0,0,.6);
}

.ayat-bismillah{
    font-family:'Scheherazade New', serif;
    font-size:30px !important;
    margin-bottom:18px;
    color:#ffffff;
    text-shadow:0 3px 12px rgba(0,0,0,.8);
}


/* ===== OUR JOURNEY ===== */

.journey h3{
    letter-spacing:3px;
    margin-bottom:30px;
}

.journey-item{
    background:rgba(255,255,255,.10);
    border-radius:20px;
    padding:26px 22px;
    margin-bottom:18px;
    backdrop-filter: blur(6px);
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    position:relative;
}

.journey-year{
    display:inline-block;
    background:#e8ecff;
    color:#0a193c;
    padding:4px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    margin-bottom:12px;
}

.journey-item h4{
    font-size:16px;
    letter-spacing:1px;
    margin:12px 0 8px;
    color:#ffffff;
}

.journey-item p{
    font-size:14px;
    line-height:1.7;
    color:#eef1ff;
    text-shadow:0 2px 6px rgba(0,0,0,.6);
}

/* ===== OUR JOURNEY TIMELINE ===== */

.timeline{
    position:relative;
    margin-top:30px;
    padding-left:30px;
}

/* garis vertikal */
.timeline::before{
    content:'';
    position:absolute;
    left:10px;
    top:0;
    bottom:0;
    width:2px;
    background:linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,.5),
        rgba(255,255,255,0)
    );
}

.timeline-item{
    position:relative;
    display:flex;
    align-items:flex-start;
    margin-bottom:30px;
}

.timeline-dot{
    width:14px;
    height:14px;
    background:#e8ecff;
    border-radius:50%;
    position:absolute;
    left:3px;
    top:8px;
    box-shadow:0 0 0 4px rgba(232,236,255,.2);
}

.timeline-content{
    background:rgba(255,255,255,.10);
    border-radius:18px;
    padding:20px 20px;
    margin-left:20px;
    width:100%;
    backdrop-filter: blur(6px);
    box-shadow:0 8px 24px rgba(0,0,0,.25);
}

.timeline-content h4{
    font-size:16px;
    margin:10px 0 6px;
    color:#fff;
}

.timeline-content p{
    font-size:14px;
    line-height:1.7;
    color:#eef1ff;
}

.timeline-content .journey-year{
    display:inline-block;
    background:#e8ecff;
    color:#0a193c;
    padding:4px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.atm-bank-logo{
    height:26px;
    max-width:90px;
    object-fit:contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

.section{
    opacity:0;
    transform:translateY(45px);
    transition:
        opacity 1.6s ease,
        transform 1.6s cubic-bezier(.25,.8,.25,1);
}

.section.show{
    opacity:1;
    transform:translateY(0);
}

.section.opening{
    transition-delay:.3s;
}

.opening > *{
    opacity:0;
    transform:translateY(25px);
    transition:
        opacity 1.4s ease,
        transform 1.4s cubic-bezier(.25,.8,.25,1);
}
.opening.show > *{
    opacity:1;
    transform:translateY(0);
}
.opening.show > *:nth-child(1){ transition-delay:.2s; }
.opening.show > *:nth-child(2){ transition-delay:.5s; }
.opening.show > *:nth-child(3){ transition-delay:.8s; }

.fade-left, .fade-right, .fade-zoom{
    opacity:0;
    transition:all 1.2s cubic-bezier(.22,.61,.36,1);
}

.fade-left{
    transform:translateX(-40px);
}

.fade-right{
    transform:translateX(40px);
}

.fade-zoom{
    transform:scale(.7);
}

.fade-left.show,
.fade-right.show,
.fade-zoom.show{
    opacity:1;
    transform:translate(0) scale(1);
}


.section.show:nth-child(1){ transition-delay:.1s; }
.section.show:nth-child(2){ transition-delay:.25s; }
.section.show:nth-child(3){ transition-delay:.4s; }
.section.show:nth-child(4){ transition-delay:.55s; }
.section.show:nth-child(5){ transition-delay:.7s; }
.section.show:nth-child(6){ transition-delay:.85s; }

/* ===== TIMELINE FADE ===== */
.timeline-item{
    opacity:0;
    transform:translateY(40px);
    transition:
        opacity 1.4s ease,
        transform 1.4s cubic-bezier(.25,.8,.25,1);
}

.timeline-item.show{
    opacity:1;
    transform:translateY(0);
}

/* delay bertahap */
.timeline-item.show:nth-child(1){ transition-delay:.2s; }
.timeline-item.show:nth-child(2){ transition-delay:.45s; }
.timeline-item.show:nth-child(3){ transition-delay:.7s; }
.timeline-item.show:nth-child(4){ transition-delay:.95s; }

/* ===== EVENT CARD STAGGER FADE ===== */
.event-card{
    opacity:0;
    transform:translateY(40px);
    transition:
        opacity 1.4s ease,
        transform 1.4s cubic-bezier(.25,.8,.25,1);
}

.event-card.show{
    opacity:1;
    transform:translateY(0);
}

/* delay bertahap */
.event-card.show:nth-of-type(1){ transition-delay:.2s; }
.event-card.show:nth-of-type(2){ transition-delay:.45s; }
.event-card.show:nth-of-type(3){ transition-delay:.7s; }


.section,
.section p:not(.ayat-arab):not(.ayat-bismillah):not(.ayat-arti),
.section h2,
.section h3,
.section h4,
.section span,
.section small,
.event-card,
.timeline-content,
.journey-year,
.countdown-date,
.guestbook-item,
.map-btn,
.gift-toggle{
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: .4px;
}

.cover-inner h1,
.person h4,
.closing-name{
    font-family: 'Great Vibes', cursive !important;
    letter-spacing: 2px;
}


.ayat-section{
    padding-top:80px;
    padding-bottom:80px;
}

.ayat-section .ayat-wrapper{
    animation: fadeAyat 2s ease;
}

@keyframes fadeAyat{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

body{
    font-family: 'Cormorant Garamond', serif;
    font-size: 17.5px;
    line-height: 1.85;
}

.section h2{
    font-size: 22px;
    letter-spacing: 1.5px;
}

.section h3{
    font-size: 24px;
    letter-spacing: 2.5px;
    margin-bottom: 34px;
}

.section p{
    font-size: 16.5px;
}

.timeline-content h4,
.event-card h4{
    font-size: 18px;
}

.timeline-content p,
.event-card p{
    font-size: 16px;
}

.countdown-box span{
    font-size: 26px;
}

.countdown-box small{
    font-size: 12px;
}

.guestbook-item strong{
    font-size: 15px;
}

.guestbook-item p{
    font-size: 15px;
}

.ayat-arab,
.ayat-bismillah{
    font-family: 'Scheherazade New', serif !important;
    letter-spacing: 0 !important;
}

.ayat-arab{
    font-size: 24px !important;
    line-height: 2.4;
}

.ayat-bismillah{
    font-size: 34px !important;
}
