@charset "UTF-8";

:root {
    --bali-gold: #c5a059;
    --bali-gold-light: #ecd599;
    --bali-gold-dark: #8c6d31;
    --bali-maroon: #451016;
    --bali-maroon-deep: #25060a;
    --bali-bg: #faf6ee;
    --bali-card: #ffffff;
    --bali-text: #2a2321;
    --bali-muted: #6b635b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #1a080a;
    color: var(--bali-text);
    font-family: 'Marcellus', serif;
    font-size: 15px;
    line-height: 1.8;
}

/* Membatasi Container ke Format Portrait Elegan di Tengah Layar */
body {
    display: block;
}

section, #over-lay-welcome, footer {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--bali-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

section {
    padding: 70px 24px;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ========================================================
   ORNAMEN UKIRAN SUDUT BALI (PEPATRAN)
   ======================================================== */
.ornament-corner {
    position: absolute;
    width: 65px;
    height: 65px;
    pointer-events: none;
    z-index: 5;
    background-repeat: no-repeat;
    background-size: contain;
    /* Ukiran sudut emas Bali (vektor murni) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%23c5a059'%3E%3Cpath d='M0 0 L100 0 C70 5 40 15 25 25 C15 40 5 70 0 100 Z M20 20 C35 15 60 10 80 5 C50 15 25 35 15 65 C10 45 15 30 20 20 Z' opacity='0.85'/%3E%3Ccircle cx='20' cy='20' r='5' fill='%238c6d31'/%3E%3C/svg%3E");
}

.corner-tl { top: 12px; left: 12px; }
.corner-tr { top: 12px; right: 12px; transform: scaleX(-1); }
.corner-bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.corner-br { bottom: 12px; right: 12px; transform: scale(-1, -1); }

/* Pembatas Ukir Candi/Kamboja */
.divider-ukir {
    height: 18px;
    width: 140px;
    margin: 15px auto 30px auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20' fill='%23c5a059'%3E%3Cpath d='M80 0 L87 10 L80 20 L73 10 Z'/%3E%3Cline x1='0' y1='10' x2='65' y2='10' stroke='%23c5a059' stroke-width='2' stroke-dasharray='2,2'/%3E%3Cline x1='95' y1='10' x2='160' y2='10' stroke='%23c5a059' stroke-width='2' stroke-dasharray='2,2'/%3E%3Ccircle cx='55' cy='10' r='3'/%3E%3Ccircle cx='105' cy='10' r='3'/%3E%3C/svg%3E");
}

/* ========================================================
   WELCOME OVERLAY
   ======================================================== */
#over-lay-welcome {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100vh;
    z-index: 999999;
    background: radial-gradient(circle at center, var(--bali-maroon) 0%, var(--bali-maroon-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    cursor: pointer;
}

.welcome-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--bali-gold);
    border-radius: 20px;
    padding: 50px 24px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    text-align: center;
}

.mandala-badge {
    font-size: 42px;
    color: var(--bali-gold-light);
    line-height: 1;
}

.aksara-sub {
    font-family: 'Cinzel', serif;
    letter-spacing: 6px;
    color: var(--bali-gold);
    font-size: 0.95rem;
}

.couple-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: var(--bali-gold-light);
    margin: 15px 0;
}

.btn-bali-ornament {
    background: linear-gradient(135deg, var(--bali-gold-light) 0%, var(--bali-gold) 50%, var(--bali-gold-dark) 100%);
    color: var(--bali-maroon-deep) !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border: none;
    border-radius: 40px;
    padding: 12px 32px;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
    transition: 0.3s;
}

.btn-bali-ornament:hover {
    transform: translateY(-2px);
}

/* ========================================================
   HEADER / HERO
   ======================================================== */
.header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #fff9f0 0%, var(--bali-bg) 100%);
    border-bottom: 2px solid var(--bali-gold-light);
    padding: 80px 24px;
}

.main-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3.8rem;
    color: var(--bali-maroon);
    margin: 15px 0;
    line-height: 1.15;
}

.main-names span {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--bali-gold);
    display: block;
}

.sub-header-bali {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--bali-gold);
    font-weight: 700;
}

/* ========================================================
   MEMPELAI KARTU & FRAME
   ======================================================== */
.couple-card-wrap {
    background: #fff;
    border: 1px solid var(--bali-gold-light);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(69, 16, 22, 0.06);
}

.avatar-ukir-wrap {
    width: 170px;
    height: 170px;
    margin: 0 auto;
    position: relative;
}

.avatar-ukir-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--bali-gold);
    padding: 5px;
    background: #fff;
}

.badge-gold {
    background-color: rgba(197, 160, 89, 0.15);
    color: var(--bali-gold-dark);
    font-family: 'Cinzel', serif;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ========================================================
   ACARA BOX
   ======================================================== */
.acara-box-ornament {
    background: #fff;
    border: 1px solid var(--bali-gold-light);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(69, 16, 22, 0.06);
    position: relative;
}

.acara-name {
    font-size: 1.25rem;
    color: var(--bali-maroon);
    font-family: 'Cinzel', serif;
}

.acara-tgl {
    font-weight: 700;
    color: var(--bali-gold-dark);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.acara-time {
    color: var(--bali-muted);
    font-size: 0.95rem;
}

/* ========================================================
   COUNTDOWN TIMER
   ======================================================== */
.countdown-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.countdown-wrapper {
    max-width: 440px;
    margin: 0 auto;
}

.timer-box-ornament {
    background: radial-gradient(circle at center, var(--bali-maroon) 0%, var(--bali-maroon-deep) 100%);
    color: var(--bali-gold-light);
    border: 1.5px solid var(--bali-gold);
    border-radius: 12px;
    padding: 14px 4px;
    box-shadow: 0 6px 18px rgba(69, 16, 22, 0.25);
    position: relative;
    overflow: hidden;
}

.timer-box-ornament::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px dashed rgba(236, 213, 153, 0.35);
    border-radius: 8px;
    pointer-events: none;
}

.timer-box-ornament span {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
    color: #fff;
}

.timer-box-ornament p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: var(--bali-gold-light);
    font-weight: 600;
}

/* ========================================================
   GALERI & CERITA
   ======================================================== */
.frame-gold-border {
    border: 2px solid var(--bali-gold);
    border-radius: 12px;
    overflow: hidden;
}

.galeri-item {
    border: 2px solid var(--bali-gold-light);
    border-radius: 8px;
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: 0.3s;
}

.galeri-item:hover {
    transform: scale(1.03);
    border-color: var(--bali-gold);
}

.cerita-card-ornament {
    background: #fff;
    border: 1px solid var(--bali-gold-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* ========================================================
   GUESTBOOK / UCAPAN
   ======================================================== */
.form-ornament-card {
    background: #fff;
    border: 1px solid var(--bali-gold-light);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.form-ornament-card .form-control {
    border: 1px solid #dfd7cc;
    border-radius: 8px;
    padding: 10px 14px;
    background-color: #faf8f5;
}

.media-comment-ornament {
    background: #fff;
    border-left: 4px solid var(--bali-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ========================================================
   FOOTER & FLOATING BUTTONS
   ======================================================== */
.footer-ornament {
    background: var(--bali-maroon-deep);
    color: var(--bali-gold-light);
    border-top: 2px solid var(--bali-gold);
}

.footer-salam {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--bali-gold-light);
}

.play-pause, .btn-qrcode, .btn-donation {
    position: fixed;
    z-index: 9999;
}

.play-pause {
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    background: var(--bali-maroon);
    border: 1.5px solid var(--bali-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-qrcode {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: var(--bali-maroon);
    border: 1.5px solid var(--bali-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-donation {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bali-maroon);
    color: var(--bali-gold-light) !important;
    border: 1.5px solid var(--bali-gold);
    border-radius: 30px;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 700;
}