@charset "UTF-8";

:root {
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #a67c1e;
    --maroon-bg: #520f14;        /* Warna merah marun pekat sesuai gambar referensi */
    --maroon-card: #3f090e;
    --bali-sand: #fdfaf5;
    --text-light: #fbf7ee;
    --text-dark: #222222;
}

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

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

/* Container Wrapper Ponsel di Tengah Layar */
section, #over-lay-welcome, footer {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--maroon-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

section {
    padding: 60px 20px;
}

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

/* ========================================================
   ORNAMEN SUDUT EMAS (DARI ASSET GAMBAR 04-9.png)
   ======================================================== */
.ornament-corner {
    position: absolute;
    width: 110px;
    height: 110px;
    background-image: url('../images/corner.png'); /* File gambar 04-9.png */
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}

.corner-tl {
    top: 8px;
    left: 8px;
    transform: rotate(0deg);
}

.corner-tr {
    top: 8px;
    right: 8px;
    transform: scaleX(-1);
}

.corner-bl {
    bottom: 8px;
    left: 8px;
    transform: scaleY(-1);
}

.corner-br {
    bottom: 8px;
    right: 8px;
    transform: scale(-1, -1);
}

/* ========================================================
   FOTO BRUSH STROKE (LINGKARAN KUASAN CAT AIR BALI)
   ======================================================== */
.brush-photo-frame {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efek Goresan Kuas Melingkar Bergerigi Sesuai Gambar Referensi */
.brush-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Masking brush stroke murni CSS SVG gerigi alami */
    -webkit-mask-image: radial-gradient(circle at center, black 65%, transparent 72%),
                        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='rough'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='4' result='noise'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='noise' scale='26' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Ccircle cx='100' cy='100' r='88' fill='%23000' filter='url(%23rough)'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at center, black 65%, transparent 72%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='rough'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='4' result='noise'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='noise' scale='26' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Ccircle cx='100' cy='100' r='88' fill='%23000' filter='url(%23rough)'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Garis Border Halus Luar */
.brush-photo-frame::after {
    content: "";
    position: absolute;
    width: 294px;
    height: 294px;
    border-radius: 50%;
    border: 1px dashed rgba(212, 175, 55, 0.4);
    pointer-events: none;
}

/* ========================================================
   HEADER / HERO & WELCOME
   ======================================================== */
.header {
    background-color: var(--maroon-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px !important;
    color: var(--text-light);
}

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

.welcome-box {
    border: 1.5px solid var(--gold);
    border-radius: 20px;
    padding: 40px 20px;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.aksara-om {
    font-size: 2.2rem;
    color: var(--gold);
    line-height: 1;
}

.sub-header-bali {
    letter-spacing: 5px;
    font-size: 1.05rem;
    color: var(--gold-light);
    font-weight: 700;
}

.main-names, .couple-title {
    font-family: 'Great Vibes', cursive;
    color: var(--gold-light);
    line-height: 1.2;
}

.main-names {
    font-size: 3.5rem;
    margin: 10px 0;
}

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

.wedding-date {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    font-weight: 700;
}

.btn-bali-pura {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: var(--maroon-card) !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border: none;
    border-radius: 30px;
    padding: 12px 34px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    cursor: pointer;
}

/* ========================================================
   SECTION KONTEN (LATAR TERANG & KARTU MARUN)
   ======================================================== */
.section-couple, .section-acara, .gallery, .section-cerita, .section-doa, .map {
    background-color: var(--bali-sand);
}

.title-bali {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--maroon-bg);
    font-weight: 700;
}

/* Dudonan Acara */
.acara-box-pura {
    background: #fff;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(82, 15, 20, 0.08);
    position: relative;
    padding: 30px 20px;
}

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

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

.gold-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 15px auto;
    width: 70%;
}

/* ========================================================
   COUNTDOWN TIMER
   ======================================================== */
.countdown-section {
    background-color: var(--maroon-bg);
    color: var(--text-light);
    padding: 60px 20px;
}

.countdown-section .title-bali {
    color: var(--gold-light);
}

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

.timer-box-pura {
    background: radial-gradient(circle at center, var(--maroon-card) 0%, #1a0507 100%);
    color: var(--gold-light);
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    padding: 14px 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    text-align: center;
}

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

.timer-box-pura p {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: var(--gold-light);
}

/* ========================================================
   MEMPELAI CARDS
   ======================================================== */
.couple-card-pura {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.avatar-pura-wrap {
    width: 170px;
    height: 170px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    padding: 4px;
    background: #fff;
}

.avatar-pura-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.badge-role {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 20px;
}

.footer-pura {
    background-color: var(--maroon-card);
    color: var(--gold-light);
    border-top: 2px solid var(--gold);
}

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