:root{
    --primary:#5b8def;
    --primary-light:#9ec5ff;
    --primary-rgb:91,141,239;

    --section-bg:#eef5ff;

    --footer-bg:#5b8def;

    --nav-border:#b8d4ff;

    --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);
}

/* ======================
   COVER PAGE
====================== */
.cover-full{
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

.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,0.4);
    color: white;
    padding: 20px;
}

.cover-overlay h1{
    font-size:3rem;
    margin-bottom:15px;
}

.cover-overlay h3{
    margin:20px 0;
}

.to-text{
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.9;
}
/* ======================
   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:80px 25px;
}

.sage{
    background:var(--section-bg);
}

.section h2{
    margin-bottom:30px;
    font-weight:700;
}

/* ======================
   COUPLE
====================== */

.groom{
    opacity:0;
    transition:2s;
}

.bride{
    opacity:0;
    transition:6s;
}

.groom{
    transform:translateY(-120px);
}

.bride{
    transform:translateY(120px);
}

.groom.show,

.bride.show{
    opacity:1;
    transform:translateY(0);
}

.couple-img{
    width:220px;
    height:220px;
    object-fit:cover;
    border-radius:50%;
    border:6px solid var(--primary-light);
    margin-bottom:20px;
}

.parent-name{
    margin-top:10px;
    font-size:16px;
    color:var(--text-muted);
    line-height:1.8;
}

.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;
}

.ampersand{
    font-size: 120px;      /* BESAR & ELEGAN */
    font-weight: 300;
    color:var(--primary);
    line-height: 1;
    margin-top: 40px;
    margin-bottom: 0;
    font-family: serif;
    opacity: 0.9;
}

.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.08);
    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 #198754; /* Warna hijau senada dengan tombol */
}

/* 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:var(--footer-bg);
    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;
}

.bottom-nav{
    position: fixed;
    bottom: 15px;
      
    left: 75%;
    transform: translateX(-50%);

    width: 90%;
    max-width: 500px;

    background: #000;
    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:90px;
}

/* ======================
   MOBILE
====================== */
@media (max-width: 768px) {

    body{
        overflow-x:hidden;
    }

    /* Layout */
    .wrapper{
        display:block;
    }

    .left-cover{
        display:none;
    }

    .right-content{
        width:100%;
        overflow:visible;
        padding-bottom:90px;
    }

    /* Cover */
    .cover-full{
        min-height:100dvh;
        padding:20px;
    }

    .cover-overlay h1{
        font-size:2rem;
    }

    .cover-overlay h3{
        font-size:1.2rem;
    }

    /* Section */
    .section{
        padding:60px 15px;
    }

    .section h2{
        font-size:1.8rem;
    }

    /* Couple */
    .groom,
    .bride{
        text-align:center;
    }

    .couple-img{
        width:170px;
        height:170px;
        margin:0 auto 20px;
        display:block;
    }

    .groom h3,
    .bride h3{
        margin-bottom:30px;
    }

    /* Gallery */
    .gallery{
        width:100%;
        height:250px;
        object-fit:cover;
    }

    /* Timeline */
    .timeline-item{
        padding:15px;
    }

    /* Form */
    form{
        width:100%;
    }

    .form-control{
        font-size:16px;
    }

    /* Countdown */
    #countdown{
        font-size:1.2rem;
        line-height:1.8;
    }

    /* QRIS */
    .qris{
        width:220px;
    }

    /* Music */
    .music-btn{
        width:50px;
        height:50px;
        font-size:20px;

        top:20px;
        right:20px;
    }

    /* Footer */
    footer{
        padding:40px 15px;
    }

    /* Bottom Navigation */
    .bottom-nav{
        width:90%;
        max-width:none;

        left:50%;
        right:auto;

        transform:translateX(-50%);

        bottom:15px;
    }

}