:root{
    --primary:#6b8f71;
    --primary-light:#a8c3ab;
    --primary-rgb:107,143,113;
    --gold:#d4af37;
    --gold-dark:#b8860b;
    --section-bg:#f2f7f2;
    --footer-bg:#6b8f71;
    --nav-border:#cfdccf;
    --text:#444;
    --text-muted:#666;
    --white:#fff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI',sans-serif;
    overflow-x:hidden;
    background:var(--white);
}

@keyframes coverZoom{
    from{
        transform:scale(1);
    }
    to{
        transform:scale(1.08);
    }
}

/* ======================
   COVER PAGE
====================== */
.couple-img{
    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.couple-img:hover{
    transform:scale(1.04);
    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.cover-full {
    width: 100%;
    height: 100vh;
    max-height: 800px; /* Sesuaikan dengan selera Anda */
    background-size: cover;
    background-position: center center; /* Fokus di tengah */
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* Tambahkan ini agar zoom tidak meluber keluar box */
}

.cover-overlay{
    position: absolute;
    inset: 0; /* lebih clean daripada top/left */
    
    display: flex;
    flex-direction: column;

    justify-content: center; /* vertical center */
    align-items: center;     /* horizontal center */

    text-align: center;

    background:rgba(0,0,0,.35);
    z-index:5;
    color: white;
    padding: 20px;
}

.to-text{
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* Frame utama */
.cover-frame{
    position:absolute;
    top:18px;
    left:18px;
    right:18px;
    bottom:18px;

    border:3px solid rgba(212,175,55,.9);
    border-radius:20px;

    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.35),
        0 0 25px rgba(0,0,0,.35);

    z-index:2;
    pointer-events:none;
}

/* Frame kedua */
.cover-frame::before{
    content:"";
    position:absolute;
    top:15px;
    left:15px;
    right:15px;
    bottom:15px;

    border:1px solid rgba(255,255,255,.6);
    border-radius:14px;
}

/* Corner */

.corner{
    position:absolute;
    width:70px;
    height:70px;
}

.tl{
    top:-3px;
    left:-3px;
    border-top:5px solid #d4af37;
    border-left:5px solid #d4af37;
}

.tr{
    top:-3px;
    right:-3px;
    border-top:5px solid #d4af37;
    border-right:5px solid #d4af37;
}

.bl{
    bottom:-3px;
    left:-3px;
    border-bottom:5px solid #d4af37;
    border-left:5px solid #d4af37;
}

.br{
    bottom:-3px;
    right:-3px;
    border-bottom:5px solid #d4af37;
    border-right:5px solid #d4af37;
}

/* Isi cover */

/* ===========================
   COVER CONTENT PREMIUM
=========================== */

.cover-content{
    position:relative;
    z-index:10;
    max-width:750px;
    text-align:center;
    color:#fff;
    padding:30px;
    animation:fadeUp 1.2s ease;
}

/* =====================================
   COVER TITLE
===================================== */

.cover-title{
    font-family:'Cormorant Garamond', serif;
    font-size:24px;
    font-weight:600;
    letter-spacing:8px;
    text-transform:uppercase;
    color:#ffffff;
    margin-bottom:25px;
    text-shadow:0 3px 10px rgba(0,0,0,.45);
}

.cover-title::before,
.cover-title::after{
    content:"";
    display:inline-block;
    width:70px;
    height:2px;
    background:#d4af37;
    vertical-align:middle;
    margin:0 18px;
}

/* =====================================
   NAMA MEMPELAI
===================================== */

.cover-name{

    font-family:'Great Vibes', cursive;

    font-size:95px;

    font-weight:400;

    line-height:1.15;

    color:#f8d97d;

    margin:20px 0;

    text-shadow:
        0 4px 10px rgba(0,0,0,.45),
        0 0 25px rgba(212,175,55,.45);

}

/* tanda & */

.cover-name span{

    display:block;

    margin:12px 0;

    font-size:55px;

    color:#ffffff;

    font-family:'Cormorant Garamond', serif;

    font-weight:600;

}

/* garis */

.cover-content hr{

    width:160px;

    height:2px;

    border:none;

    background:#d4af37;

    margin:28px auto;

}

/* text */

.cover-content p{

    font-family:'Cormorant Garamond', serif;

    font-size:22px;

    color:#ffffff;

    line-height:1.8;

}

.cover-content h3{

    font-family:'Cormorant Garamond', serif;

    font-size:36px;

    color:#d4af37;

    font-weight:bold;

    margin-top:15px;

    margin-bottom:15px;

}

.sub-text{

    font-size:18px;

    color:#f5f5f5;

}

.cover-content .btn{

    margin-top:30px;

    padding:15px 42px;

    border-radius:50px;

    background:#d4af37;

    border:none;

    color:#fff;

    font-weight:600;

    transition:.3s;

}

.cover-content .btn:hover{

    background:#b8860b;

    transform:translateY(-3px);

    box-shadow:0 12px 30px rgba(212,175,55,.4);

}
/* Responsive */

@media(max-width:768px){

    .cover-frame{
        top:12px;
        left:12px;
        right:12px;
        bottom:12px;
    }

    .corner{
        width:45px;
        height:45px;
    }

    .cover-content h3{
        font-size:26px;
    }

    .cover-content p{
        font-size:18px;
    }

    .sub-text{
        font-size:15px;
    }

}

.card{
    border:none;
    border-radius:20px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s ease;
}

.card:hover{
    transform:translateY(-3px);
}

@media (max-width:768px){

    .cover-full{
        animation:none;
        background-size:cover;
        background-position:center top;
    }

}
/* ======================
   HIDDEN
====================== */
.hidden{
    display:none !important;
}

/* ======================
   DESKTOP SPLIT
====================== */
.wrapper{
    display:flex;
    min-height:100vh;
}

.left-cover{
    flex:1;
    position:sticky;
    top:0;
    height:100vh;
}

.right-content{
    flex:1;
    background:var(--white);
}

/* ======================
   SECTION
====================== */
.section{
    padding:30px 25px;
}

.sage{
    background:var(--section-bg);
}

.section h2{
    margin-bottom:30px;
    font-weight:700;
}

/* ======================
   COUPLE
====================== */

.groom,
.bride{
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    min-height:70px;

    opacity:0;
    transition:.8s ease;
}

.groom{
    transform:translateY(-120px);
}

.bride{
    transform:translateY(120px);
}

.groom.show,
.bride.show{
    opacity:1;
    transform:translateY(0);
}

.couple-img{
    width:180px;
    height:180px;
    object-fit:cover;

    display:block;
    margin:0 auto 20px;

    border-radius:50%;
    border:6px solid var(--primary-light);
}

.parent-name{
    text-align:center;
}

.ampersand{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100%;
    font-size:120px;
    margin:0;
    height:220px; 
    color:var(--primary);
}

.footer-couple{
    font-size:22px;
    font-weight:600;
    margin-bottom:20px;
}

.footer-parents{
    margin-top:15px;
    font-size:15px;
    line-height:1.8;
    opacity:0.9;
}

.footer-parents strong{
    display:block;
    margin-bottom:5px;
    font-size:16px;
}

.wedding-date{
    margin-top: 25px;
    font-size: 36px;
    font-weight: 500;
    color:var(--text);
    letter-spacing: 1px;
}
/* ======================
   GALLERY
====================== */
.gallery{
    width:100%;
    height:300px;
    object-fit:cover;
    border-radius:15px;
    cursor:pointer;

    transition:
        transform .5s ease,
        box-shadow .5s ease;

    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.gallery:hover{
    transform:scale(1.03);
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

#lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

#lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:15px;
}

/* ======================
   TIMELINE
====================== */
.timeline{
    max-width:700px;
    margin:auto;
}

.timeline-item{
    background:#fff;
    padding:20px;
    margin-bottom:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

/* ======================
   RSVP FORM
====================== */
form{
    max-width:600px;
    margin:auto;
}

.form-control{
    min-height:48px;
}

/* ======================
   QRIS
====================== */
.qris{
    width:250px;
    max-width:100%;
}

/* ======================
   COUNTDOWN
====================== */
#countdown{
    font-size:2rem;
    font-weight:bold;
    margin-top:20px;
}

/* ======================
   AMPLOP DIGITAL
====================== */
/* Styling Card Amplop Digital */
.amplop-card {
    background: #ffffff;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: none !important;
    transition: transform 0.3s ease;
}

.amplop-card:hover {
    transform: translateY(-5px);
}

/* Styling Nomor Rekening */
#rekening p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left:4px solid var(--primary);
}

/* Styling Tombol Salin */
.btn-copy {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-copy:active {
    transform: scale(0.95);
}

/* ======================
   FOOTER
====================== */
footer{
    background:

    linear-gradient(
        180deg,
        #6b8f71,
        #57735d
    );
    color:var(--white);
    text-align:center;
    padding:50px 20px;
}

/* ======================
  PREVIEW
====================== */

.preview-watermark{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%) rotate(-30deg);
    font-size:120px;
    font-weight:bold;
    color:rgba(255,0,0,.30);
    z-index:999999;
    pointer-events:none;
}

/* ======================
   MUSIC BUTTON
====================== */
.music-btn{
    position:fixed;
    top:20px;
    right:20px;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:rgba(var(--primary-rgb),.9);
    backdrop-filter:blur(5px);

    color:#fff;
    font-size:22px;

    cursor:pointer;
    z-index:9999;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 4px 15px rgba(0,0,0,.2);

    transition:all .3s ease;
}

.ucapan-scroll{
    max-height:400px;
    overflow-y:auto;

    padding-right:8px;
    margin-top:20px;
}

/* Scrollbar modern */
.ucapan-scroll::-webkit-scrollbar{
    width:8px;
}

.ucapan-scroll::-webkit-scrollbar-track{
    background:#f1f1f1;
    border-radius:10px;
}

.ucapan-scroll::-webkit-scrollbar-thumb{
    background:var(--primary-light);
    border-radius:10px;
}

.ucapan-scroll::-webkit-scrollbar-thumb:hover{
    background:var(--primary);
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

.music-btn:hover{
    transform:scale(1.1);
}

.music-btn.playing{
    animation:spin 4s linear infinite;
}

.music-btn.paused{
    opacity:.6;
}

.music-btn:active{
    transform:scale(.92);
}

.bottom-nav{
    position: fixed;
    bottom: 15px;
      
    left: 75%;
    transform: translateX(-50%);

    width: 90%;
    max-width: 500px;

    background:rgba(var(--primary-rgb),0.95);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border:3px solid var(--nav-border);

    border-radius: 999px;

    display: flex;
    justify-content: space-around;
    align-items: center;

    padding: 3px 0;

    z-index: 9999;

    box-sizing: border-box;
}

.bottom-nav a{
    color: #fff;
    text-decoration: none;

    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 20px;

    transition: .3s;
}

.bottom-nav a:hover{
    color:var(--nav-border);
    transform: translateY(-3px);
}

.right-content{
    padding-bottom:20px;
}

/* Styling Bingkai per Section */
.frame-box{
    max-width:900px;
    margin:40px auto;
    padding:35px;
    border:3px solid var(--gold);
    border-radius:18px;
    background:#fff;
    position:relative;
}

/* Opsional: Efek sudut bingkai */
.frame-box::before, .frame-box::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--gold-dark);
}

.frame-box::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.frame-box::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }    

.cover-content{

    animation:

    fadeUp 1.2s ease;

}

footer .frame-box{
    background:transparent;
    border:2px solid rgba(255,255,255,.35);
    color:#fff;
    max-width:900px;
    margin:0 auto;
}

footer .frame-box::before,
footer .frame-box::after{
    border-color:rgba(255,255,255,.6);
}

@keyframes fadeUp{

from{

opacity:0;

transform:

translateY(40px);

}

to{

opacity:1;

transform:none;

}

}

/* Perbaikan Khusus Laptop/Desktop */
@media (min-width: 1024px) {
    .cover-content {
        max-height: 80vh; 
        padding-bottom: 50px; /* Memberi ruang di bawah */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }

    .cover-name {
        font-size: 70px !important; 
        margin: 10px 0 !important;
    }

    .cover-name span {
        font-size: 40px !important; 
        margin: 5px 0 !important;
    }

    .cover-title {
        font-size: 20px !important; 
        margin-bottom: 15px !important;
    }

    .cover-content p, .sub-text {
        font-size: 16px !important; 
        line-height: 1.5 !important;
    }
    
    .cover-content hr {
        margin: 15px auto !important;
    }

    /* Memastikan tombol "Buka Undangan" tidak mendem/terpotong */
    .cover-content .btn {
        margin-top: 20px !important;
        padding: 12px 35px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .cover-name {
        /* Ukuran font akan otomatis mengecil jika layar HP sangat sempit */
        font-size: clamp(35px, 12vw, 55px) !important; 
    }
    
    .cover-name span {
        font-size: 28px !important;
    }
}

/* ======================
   MOBILE
====================== */
@media (max-width: 768px) {
    /* Layout & Struktur */
    body { overflow-x: hidden; }
    .wrapper { display: block; }
    .left-cover { display: none; }
    .right-content { width: 100%; overflow: visible; padding-bottom: 20px; }

    /* Cover */
    .cover-full { min-height: 100dvh; padding: 20px; }
    .cover-overlay h1 { font-size: 2rem; }
    .cover-overlay h3 { font-size: 1.2rem; }
    
    .cover-title { font-size: 18px; letter-spacing: 3px; }
    .cover-title::before, .cover-title::after { width: 30px; margin: 0 8px; }
    .cover-name { font-size: 58px; }
    .cover-name span { font-size: 36px; }
    .cover-content h3 { font-size: 26px; }
    .cover-content p { font-size: 18px; }

    /* Section & Couple */
    .section { padding: 25px 15px; }
    .section h2 { font-size: 1.8rem; }
    .groom, .bride { text-align: center; }
    .couple-img { width: 170px; height: 170px; margin: 0 auto 20px; display: block; }
    .groom h3, .bride h3 { margin-bottom: 30px; }

    /* Galeri & Timeline */
    .gallery { width: 100%; height: 250px; object-fit: cover; }
    .timeline-item { padding: 15px; }

    /* Form, Countdown, & Lainnya */
    form { width: 100%; }
    .form-control { font-size: 16px; }
    #countdown { font-size: 1.2rem; line-height: 1.8; }
    .qris { width: 220px; }
    .music-btn { width: 50px; height: 50px; font-size: 20px; top: 20px; right: 20px; }
    footer { padding: 70px 15px; }
    
    /* Navigasi */
    .bottom-nav { width: 90%; max-width: none; left: 50%; right: auto; transform: translateX(-50%); bottom: 15px; }
    
    /* Frame Box */
    .frame-box::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
    .frame-box::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }
}