/* ==============================
   BALINESE WEDDING INVITATION CSS
   Agus & Devi - 2026
============================== */

:root {
    --gold: #C9A85C;
    --gold-light: #E8C97A;
    --gold-dark: #9B7A30;
    --maroon: #8B2635;
    --maroon-dark: #5C1A24;
    --cream: #FAF6EE;
    --cream-dark: #F0E8D6;
    --brown-dark: #3D2B1F;
    --white: #FFFFFF;
    --text-dark: #2C1A0F;
    --text-medium: #5C3D2E;
    --shadow-gold: 0 4px 30px rgba(201, 168, 92, 0.4);
    --shadow-soft: 0 8px 40px rgba(0,0,0,0.15);
    --font-script: 'Alex Brush', cursive;
    --font-display: 'Cinzel Decorative', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-dance: 'Dancing Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--brown-dark);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== COVER PAGE ===== */
.cover-page {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cover-page.hiding {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.cover-bg {
    position: absolute;
    inset: 0;
    background-color: #1a0a05; /* fallback jika foto gagal load */
    overflow: hidden;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 5, 2, 0.45) 0%,
        rgba(20, 8, 3, 0.55) 40%,
        rgba(10, 5, 2, 0.70) 100%
    );
    z-index: 1;
}

.bali-pattern-top, .bali-pattern-bottom {
    position: absolute;
    width: 100%;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A85C' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 2;
}

.bali-pattern-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(201,168,92,0.1), transparent);
    mask-image: linear-gradient(to bottom, black, transparent);
}

.bali-pattern-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(201,168,92,0.1), transparent);
    mask-image: linear-gradient(to top, black, transparent);
}

.floating-petals { position: absolute; inset: 0; pointer-events: none; }

.cover-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

.ornament-line-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.ornament-diamond { color: var(--gold); font-size: 1rem; }
.ornament-line-h {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.ornament-lotus { font-size: 1.2rem; }

.cover-subtitle-top {
    font-family: var(--font-body);
    color: var(--gold-light);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.cover-title {
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--gold-light);
    line-height: 1;
    text-shadow: 0 0 40px rgba(201,168,92,0.5);
    margin-bottom: 0.5rem;
}

.cover-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.name-groom, .name-bride {
    font-family: var(--font-dance);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--white);
    font-weight: 700;
}

.cover-ampersand {
    font-family: var(--font-script);
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--gold);
}

.cover-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0.8rem 0;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider-icon { color: var(--gold); font-size: 0.8rem; }

.cover-date {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--cream);
    letter-spacing: 4px;
    margin-bottom: 2rem;
    text-decoration: none;
}

.cover-ornament-bottom { margin-bottom: 2rem; }

/* Open Button wrapper — selalu tengah */
.open-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Open Button */
.open-btn {
    position: relative;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: var(--brown-dark);
    border: none;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201,168,92,0.5), 0 0 0 3px rgba(201,168,92,0.2);
    animation: pulseBtn 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 10px;
}

.open-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(201,168,92,0.7), 0 0 0 5px rgba(201,168,92,0.3);
}

.btn-icon { font-size: 1.2rem; }

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 4px 20px rgba(201,168,92,0.5), 0 0 0 3px rgba(201,168,92,0.2); }
    50% { box-shadow: 0 4px 30px rgba(201,168,92,0.8), 0 0 0 8px rgba(201,168,92,0.1); }
}

.btn-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.open-btn:active .btn-ripple { opacity: 1; }

/* ===== MAIN INVITATION ===== */
.main-invitation { display: block; }
.main-invitation.hidden { display: none; }

/* Music Button */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, var(--brown-dark), var(--maroon-dark));
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 4px rgba(201,168,92,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(201,168,92,0.4);
}

.music-btn.playing { animation: musicPulse 1.5s ease-in-out infinite; }

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 4px rgba(201,168,92,0.2); }
    50% { box-shadow: 0 4px 25px rgba(201,168,92,0.5), 0 0 0 10px rgba(201,168,92,0.1); }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1a0a05 0%, #3D1A0A 40%, #5C2014 70%, #2C1008 100%);
    overflow: hidden;
}

/* ── Hero Slideshow ── */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Ken-Burns subtle zoom on active slide */
.hero-slide.active {
    animation: heroKenBurns 6s ease-in-out forwards;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1);    }
    100% { transform: scale(1.06); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23C9A85C' stroke-width='0.3' opacity='0.15'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='%23C9A85C' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E") repeat;
    background-size: 80px;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(201,168,92,0.08) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

.hero-ornament { margin-bottom: 1rem; }
.ornament-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.orn-diamond, .orn-lotus { color: var(--gold); font-size: 1rem; }
.orn-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.hero-pre {
    font-family: var(--font-body);
    color: var(--gold-light);
    font-size: 1rem;
    letter-spacing: 3px;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--font-script);
    font-size: clamp(3.5rem, 10vw, 6rem);
    color: var(--gold-light);
    text-shadow: 0 0 50px rgba(201,168,92,0.6);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.hero-name-groom, .hero-name-bride {
    font-family: var(--font-dance);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--white);
    font-weight: 700;
}

.hero-amp {
    font-family: var(--font-script);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--gold);
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 1rem 0;
}

.divider-star { color: var(--gold); font-size: 0.8rem; }

.hero-date {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: var(--cream);
    letter-spacing: 5px;
    margin-bottom: 3rem;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 1.0rem;
    letter-spacing: 2px;
    opacity: 1;
}

.bounce {
    animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== COUPLE SECTION ===== */
.couple-section {
    position: relative;
    padding: 80px 20px;
    background: var(--cream);
    overflow: hidden;
}

.bali-bg-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A85C' fill-opacity='0.05'%3E%3Cpath d='M20 0L0 20L20 40L40 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.couple-greeting {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 40px 30px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201,168,92,0.3);
    position: relative;
}

.bali-frame-top, .bali-frame-bottom {
    height: 4px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: -1px -1px 20px;
    border-radius: 20px 20px 0 0;
}
.bali-frame-bottom { margin: 20px -1px -1px; border-radius: 0 0 20px 20px; }

.om-text {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--maroon);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(139,38,53,0.2);
}

.greeting-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1rem 0;
}

.div-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.div-motif { color: var(--gold); font-size: 0.9rem; }

.greeting-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-medium);
    font-style: italic;
}

/* Couple Cards */
.couple-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
}

.couple-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201,168,92,0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.couple-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
}

.couple-card:hover { transform: translateY(-5px); }

.couple-photo-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
}

.photo-ring-outer {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(201,168,92,0.4);
    animation: rotateSlow 20s linear infinite;
}

.photo-ring-inner {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.photo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f0e0, #eedcc0);
    color: var(--gold-dark);
    gap: 5px;
    font-size: 3rem;
}

.photo-petal {
    position: absolute;
    font-size: 1.2rem;
    animation: floatPetal 4s ease-in-out infinite;
}

.petal-1 { top: 0; right: 10px; animation-delay: 0s; }
.petal-2 { bottom: 10px; right: 0; animation-delay: 1.3s; }
.petal-3 { bottom: 5px; left: 10px; animation-delay: 2.6s; }

@keyframes floatPetal {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(15deg); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.couple-role {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--gold-dark);
    background: linear-gradient(to right, transparent, rgba(201,168,92,0.1), transparent);
    padding: 6px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.couple-name {
    font-family: var(--font-dance);
    font-size: 1.4rem;
    color: var(--maroon);
    margin-bottom: 5px;
    font-weight: 700;
}

.couple-divider {
    color: var(--gold);
    font-size: 1.5rem;
    margin: 8px 0;
}

.couple-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-medium);
    font-style: italic;
}

.couple-parents {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    margin: 5px 0;
}

.couple-address {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-medium);
    font-style: italic;
    margin-top: 5px;
}

/* AND Symbol */
.couple-and {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 80px;
}

.and-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    animation: pulseGold 2s ease-in-out infinite;
}

.and-symbol {
    font-family: var(--font-script);
    font-size: 2rem;
    color: white;
}

.and-flowers {
    font-size: 1.2rem;
    letter-spacing: 3px;
    animation: floatPetal 3s ease-in-out infinite;
}

@keyframes pulseGold {
    0%, 100% { box-shadow: 0 4px 20px rgba(201,168,92,0.4); }
    50% { box-shadow: 0 4px 30px rgba(201,168,92,0.8), 0 0 0 10px rgba(201,168,92,0.1); }
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

.quote-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.quote-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(20, 5, 2, 0.82) 0%,
        rgba(44, 16, 8, 0.80) 50%,
        rgba(20, 5, 2, 0.85) 100%);
    z-index: 1;
}

.quote-container {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 50px 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,92,0.3);
    border-radius: 20px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.quote-ornament-top, .quote-ornament-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1rem 0;
}

.q-diamond { color: var(--gold); font-size: 0.8rem; }
.q-line { width: 60px; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.q-lotus { font-size: 1rem; }

.quote-icon {
    font-family: Georgia, serif;
    font-size: 6rem;
    color: var(--gold);
    line-height: 0.5;
    opacity: 0.4;
    margin-bottom: 1rem;
}

.quote-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 2.2;
    color: var(--cream);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.quote-source {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 2px;
}

/* Event Section */
.event-section {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.event-header {
    text-align: center;
    margin-bottom: 40px;
}

.event-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.event-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.event-detail-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,92,0.3);
    border-radius: 20px;
    padding: 35px 30px;
    color: var(--cream);
    backdrop-filter: blur(5px);
}

.event-card-inner { display: flex; flex-direction: column; gap: 20px; }

.event-icon-wrap { display: flex; justify-content: center; }

.event-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow-gold);
}

.event-info { display: flex; flex-direction: column; gap: 15px; }

.event-name {
    font-family: var(--font-dance);
    font-size: 1.6rem;
    color: var(--gold-light);
    text-align: center;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--cream);
    padding: 10px 15px;
    background: rgba(201,168,92,0.08);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
}

.event-item i { color: var(--gold); font-size: 1rem; min-width: 20px; }

.event-map-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,92,0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.map-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    background: rgba(201,168,92,0.15);
    border-bottom: 1px solid rgba(201,168,92,0.2);
    color: var(--gold-light);
}

.map-header i { font-size: 1.2rem; }
.map-header h3 { font-family: var(--font-dance); font-size: 1.3rem; }

.map-container {
    height: 300px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: sepia(0.3) saturate(0.8);
}

.maps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.maps-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: translateY(-2px);
}

/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
    position: relative;
    padding: 80px 20px;
    background: var(--cream);
    overflow: hidden;
}

.countdown-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A85C' fill-opacity='0.06'%3E%3Cpath d='M40 0L0 40L40 80L80 40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.countdown-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.countdown-flower {
    font-size: 2.5rem;
    animation: floatPetal 3s ease-in-out infinite;
    display: block;
    margin-bottom: 1rem;
}
.countdown-flower.bottom { margin-top: 1rem; margin-bottom: 0; }

.countdown-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--maroon);
    margin-bottom: 0.5rem;
}

.countdown-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-medium);
    letter-spacing: 2px;
    font-style: italic;
    margin-bottom: 1rem;
}

.countdown-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.count-box {
    width: 130px;
    height: 130px;
}

.count-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C1008, #4A1E10);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 2px rgba(201,168,92,0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.count-ring {
    position: absolute;
    inset: 5px;
    border: 2px solid rgba(201,168,92,0.3);
    border-radius: 15px;
    pointer-events: none;
}

.count-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--gold-light);
    line-height: 1;
    z-index: 1;
    text-shadow: 0 0 20px rgba(201,168,92,0.5);
}

.count-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--cream);
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 1;
    margin-top: 5px;
}

.count-sep {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    animation: blinkColon 1s step-end infinite;
    line-height: 1;
}

@keyframes blinkColon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.count-flip {
    animation: flipNum 0.3s ease;
}

@keyframes flipNum {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2C1008, #3D1A0A);
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.section-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--cream);
    font-style: italic;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    position: relative;
}

.gallery-frame {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.gallery-frame:hover { transform: scale(1.05) rotate(1deg); }

.gallery-img-wrap {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5C3D2E, #3D2B1F);
    overflow: hidden;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-frame:hover .gallery-img-wrap img {
    transform: scale(1.08);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5C3D2E88, #3D2B1F88);
    color: var(--gold);
    gap: 5px;
    font-size: 2rem;
}

.gallery-placeholder span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139,38,53,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 2rem;
    color: white;
}

.gallery-frame:hover .gallery-overlay { opacity: 1; }

.gallery-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    border-style: solid;
    z-index: 2;
}
.gallery-corner.tl { top: 5px; left: 5px; border-width: 2px 0 0 2px; }
.gallery-corner.tr { top: 5px; right: 5px; border-width: 2px 2px 0 0; }
.gallery-corner.bl { bottom: 5px; left: 5px; border-width: 0 0 2px 2px; }
.gallery-corner.br { bottom: 5px; right: 5px; border-width: 0 2px 2px 0; }

/* ===== KADO SECTION ===== */
.kado-section {
    position: relative;
    padding: 80px 20px;
    background: var(--cream);
    overflow: hidden;
}

.kado-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A85C' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='15'/%3E%3C/g%3E%3C/svg%3E");
}

.kado-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.9;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.kado-card {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bank-card {
    width: 100%;
    perspective: 1000px;
}

.bank-card-inner {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2a4a 40%, #1a4a6c 70%, #0a1e36 100%);
    border-radius: 20px;
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.bank-card-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.bank-logo .bri-logo {
    display: inline-block;
    background: white;
    color: #003366;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bank-chip {
    margin-bottom: 20px;
}

.chip-lines {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #d4af37, #f0c040);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    gap: 3px;
}

.chip-lines span {
    height: 3px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
}

.bank-label {
    color: rgba(255,255,255,0.6);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.bank-number {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.bank-acc-name {
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 5px;
}

.bank-type {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-style: italic;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: var(--brown-dark);
    border: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201,168,92,0.5);
}

/* ===== GUESTBOOK ===== */
.guestbook-section {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

.guestbook-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.guestbook-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 5, 2, 0.88) 0%,
        rgba(30, 10, 4, 0.84) 50%,
        rgba(15, 5, 2, 0.90) 100%);
    z-index: 1;
}

.guestbook-section .section-container,
.guestbook-section .guestbook-form-wrap,
.guestbook-section .wishes-container {
    position: relative;
    z-index: 2;
}

.guestbook-form-wrap {
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.guestbook-form-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,92,0.3);
    border-radius: 20px;
    padding: 40px 35px;
    backdrop-filter: blur(10px);
}

.form-ornament-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.orn-diamond { color: var(--gold); font-size: 0.8rem; }
.orn-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.orn-lotus { font-size: 1rem; }

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.form-label i { color: var(--gold); }

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(201,168,92,0.3);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--gold);
    background: rgba(201,168,92,0.08);
    box-shadow: 0 0 0 3px rgba(201,168,92,0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.attendance-options {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    border: 1px solid rgba(201,168,92,0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.radio-option:hover {
    border-color: var(--gold);
    background: rgba(201,168,92,0.08);
}

.radio-option input[type="radio"] { display: none; }

.radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gold);
}

.radio-option input:checked ~ .radio-label { color: var(--gold); }

.radio-label {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: var(--brown-dark);
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-gold);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201,168,92,0.5);
}

/* Wishes Display */
.wishes-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.wishes-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-dance);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(201,168,92,0.3);
}

.wishes-header i { color: var(--maroon); }

.wishes-list { display: flex; flex-direction: column; gap: 15px; }

.wish-card {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,92,0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: slideInWish 0.5s ease forwards;
    backdrop-filter: blur(5px);
}

@keyframes slideInWish {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wish-card:hover {
    border-color: rgba(201,168,92,0.4);
    background: rgba(255,255,255,0.09);
}

.wish-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--maroon));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.wish-content { flex: 1; }

.wish-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap;
}

.wish-name {
    font-family: var(--font-dance);
    font-size: 1.1rem;
    color: var(--gold-light);
    font-weight: 700;
}

.wish-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.wish-badge.hadir { background: rgba(76,175,80,0.2); color: #81c784; border: 1px solid rgba(76,175,80,0.3); }
.wish-badge.tidak { background: rgba(244,67,54,0.2); color: #e57373; border: 1px solid rgba(244,67,54,0.3); }

.wish-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--cream);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 8px;
}

.wish-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
}

/* ===== FOOTER ===== */
.footer-section {
    position: relative;
    padding: 70px 20px 40px;
    background: linear-gradient(180deg, #1a0a05, #0d0603);
    overflow: hidden;
    text-align: center;
}

.footer-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A85C' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.footer-photo-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.footer-photo-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: rotateSlow 15s linear infinite;
}

.footer-photo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.footer-title {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--cream);
    letter-spacing: 3px;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid;
}

.social-btn.ig {
    color: #e1306c;
    border-color: rgba(225,48,108,0.3);
    background: rgba(225,48,108,0.08);
}
.social-btn.ig:hover { background: rgba(225,48,108,0.2); transform: translateY(-2px); }

.social-btn.wa {
    color: #25d366;
    border-color: rgba(37,211,102,0.3);
    background: rgba(37,211,102,0.08);
}
.social-btn.wa:hover { background: rgba(37,211,102,0.2); transform: translateY(-2px); }

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-made {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

.heart-red { color: #e74c3c; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .couple-cards {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .couple-and { padding-top: 0; flex-direction: row; }
    .and-flowers { display: none; }
    
    .event-layout { grid-template-columns: 1fr; }
    
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .cover-names { flex-direction: column; gap: 0; }
    .hero-names { flex-direction: column; gap: 0; }
    
    .count-box { width: 100px; height: 100px; }
    .count-number { font-size: 2rem; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    .guestbook-form-card { padding: 25px 20px; }
    .attendance-options { flex-direction: column; }
    
    .countdown-grid { gap: 8px; }
    .count-sep { font-size: 2rem; }
    
    .orn-line { width: 40px; }
}

@media (max-width: 400px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .count-box { width: 80px; height: 80px; }
    .count-number { font-size: 1.6rem; }
}

/* Petals floating animation */
.petal {
    position: absolute;
    width: 10px;
    height: 10px;
    font-size: 14px;
    pointer-events: none;
    animation: petalFall linear infinite;
    opacity: 0;
}

@keyframes petalFall {
    0% { opacity: 0; transform: translateY(-20px) rotate(0deg); }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ============================================
   TAMBAHAN: Toast, Stats, Skeleton, Load More
============================================ */

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 24px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    pointer-events: none;
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: linear-gradient(135deg,#2e7d32,#388e3c); }
.toast-error   { background: linear-gradient(135deg,#c62828,#d32f2f); }

/* Wishes header update */
.wishes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wishes-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-dance);
    font-size: 1.5rem;
    color: var(--gold-light);
}
.wishes-header-left i { color: var(--maroon); }

.refresh-btn {
    background: rgba(201,168,92,.12);
    border: 1px solid rgba(201,168,92,.3);
    color: var(--gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.refresh-btn:hover { background: rgba(201,168,92,.25); transform: rotate(180deg); }

/* Stats bar */
.wish-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(201,168,92,.08);
    border: 1px solid rgba(201,168,92,.2);
    border-radius: 10px;
    margin: 14px 0 20px;
    font-family: var(--font-body);
    font-size: .9rem;
    flex-wrap: wrap;
}
.stat-item { display: flex; align-items: center; gap: 6px; color: var(--cream); }
.stat-item i { color: var(--gold); }
.stat-item.hadir i { color: #81c784; }
.stat-item.tidak i { color: #e57373; }
.stat-sep { color: rgba(255,255,255,.3); font-size: .7rem; }

/* Skeleton lines */
.skel-line {
    background: linear-gradient(90deg, rgba(201,168,92,.08) 25%, rgba(201,168,92,.18) 50%, rgba(201,168,92,.08) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    display: block;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* New card highlight */
.wish-card.new-highlight {
    border-color: rgba(201,168,92,.6);
    background: rgba(201,168,92,.1);
    animation: highlightCard .8s ease forwards;
}
@keyframes highlightCard {
    0%   { box-shadow: 0 0 0 0 rgba(201,168,92,.5); }
    50%  { box-shadow: 0 0 0 8px rgba(201,168,92,.15); }
    100% { box-shadow: 0 0 0 0 rgba(201,168,92,0); }
}

/* Load More button */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 700px;
    margin: 20px auto 0;
    padding: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(201,168,92,.3);
    border-radius: 12px;
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all .3s ease;
}
.load-more-btn:hover {
    background: rgba(201,168,92,.12);
    border-color: rgba(201,168,92,.5);
    transform: translateY(-2px);
}

/* ============================================
   GALLERY INTERAKTIF + MODAL
============================================ */

/* --- Grid skeleton --- */
.gallery-skeleton .gallery-img-wrap.skel-img {
    background: linear-gradient(90deg,rgba(201,168,92,.06) 25%,rgba(201,168,92,.14) 50%,rgba(201,168,92,.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    width:100%; height:100%;
}

/* --- Kartu galeri --- */
.gallery-item { cursor: pointer; }

.gallery-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.35);
    transition: transform .4s cubic-bezier(.175,.885,.32,1.275),
                box-shadow .4s ease;
    aspect-ratio: 1;
}
.gallery-frame:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,.45), 0 0 0 2px rgba(201,168,92,.5);
}

.gallery-img-wrap {
    width:100%; height:100%;
    overflow:hidden;
    background: #2C1008;
}
.gallery-img-wrap img {
    width:100%; height:100%;
    object-fit:cover; object-position:center;
    display:block;
    transition: transform .5s ease;
}
.gallery-frame:hover .gallery-img-wrap img { transform:scale(1.08); }

/* Overlay atas foto (likes + expand icon) */
.gallery-overlay {
    position:absolute; inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.65) 0%,transparent 55%);
    display:flex; align-items:flex-end; justify-content:space-between;
    padding:10px 12px;
    opacity:0; transition:opacity .3s ease;
}
.gallery-frame:hover .gallery-overlay { opacity:1; }
/* Selalu tampil like count */
.gallery-overlay { opacity:1; background:linear-gradient(to top,rgba(0,0,0,.55) 0%,transparent 60%); }

.gallery-like-badge {
    display:flex; align-items:center; gap:5px;
    color:#fff; font-family:var(--font-body); font-size:.85rem;
}
.gallery-like-badge i { color:#ff6b8a; font-size:.9rem; }
.gallery-like-badge.liked i { animation:heartBeat .4s ease; }

.gallery-expand-icon {
    color:rgba(255,255,255,.7); font-size:1rem;
    background:rgba(0,0,0,.3); width:28px; height:28px;
    border-radius:50%; display:flex;align-items:center;justify-content:center;
    transition:background .2s;
}
.gallery-frame:hover .gallery-expand-icon { background:rgba(201,168,92,.7); color:#fff; }

/* Corner dekoratif */
.gallery-corner { position:absolute; width:18px; height:18px; border-color:var(--gold); border-style:solid; z-index:3; }
.gallery-corner.tl { top:6px; left:6px;  border-width:2px 0 0 2px; }
.gallery-corner.tr { top:6px; right:6px; border-width:2px 2px 0 0; }
.gallery-corner.bl { bottom:6px; left:6px;  border-width:0 0 2px 2px; }
.gallery-corner.br { bottom:6px; right:6px; border-width:0 2px 2px 0; }

/* ============================================
   MODAL GALERI
============================================ */
.gmodal {
    position:fixed; inset:0; z-index:9000;
    display:flex; align-items:center; justify-content:center;
    visibility:hidden; pointer-events:none;
}
.gmodal.open { visibility:visible; pointer-events:all; }

.gmodal-backdrop {
    position:absolute; inset:0;
    background:rgba(5,2,1,.92);
    backdrop-filter:blur(12px) saturate(.6);
    opacity:0; transition:opacity .35s ease;
}
.gmodal.open .gmodal-backdrop { opacity:1; }

.gmodal-box {
    position:relative; z-index:1;
    width:min(90vw, 700px);
    background: linear-gradient(160deg,#1f0c06,#2e1208);
    border:1px solid rgba(201,168,92,.35);
    border-radius:20px; overflow:hidden;
    box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 0 1px rgba(201,168,92,.15);
    transform:scale(.88) translateY(30px);
    opacity:0; transition:transform .4s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
}
.gmodal.open .gmodal-box { transform:scale(1) translateY(0); opacity:1; }

/* Gambar modal */
.gmodal-img-wrap {
    position:relative;
    width:100%;
    aspect-ratio:1;
    background:#0d0604;
    overflow:hidden;
    cursor:zoom-in;
}
.gmodal-img-wrap img {
    width:100%; height:100%;
    object-fit:contain;
    display:block;
    transition:opacity .25s ease;
    user-select:none; -webkit-user-drag:none;
}
.gmodal-img-wrap img.loading { opacity:0; }

/* Spinner */
.gmodal-spinner {
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    color:var(--gold); font-size:2rem;
    opacity:0; transition:opacity .2s;
    pointer-events:none;
}
.gmodal-spinner.show { opacity:1; }

/* Like splash (double tap) */
.like-splash {
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    font-size:5rem; color:#ff4d6d;
    pointer-events:none;
    opacity:0; transform:scale(.3);
    transition:none;
    filter:drop-shadow(0 0 20px #ff4d6d88);
}
.like-splash.burst {
    animation:splashBurst .65s cubic-bezier(.36,.07,.19,.97) forwards;
}
@keyframes splashBurst {
    0%   { opacity:0; transform:scale(.3); }
    30%  { opacity:1; transform:scale(1.3); }
    60%  { opacity:1; transform:scale(1); }
    100% { opacity:0; transform:scale(1.1); }
}

/* Info bar bawah */
.gmodal-info {
    padding:14px 18px 16px;
    background:rgba(0,0,0,.25);
    border-top:1px solid rgba(201,168,92,.15);
    display:flex; flex-direction:column; gap:8px;
}
.gmodal-caption {
    font-family:var(--font-body); font-size:1rem; font-style:italic;
    color:var(--cream); text-align:center;
    min-height:1.4em;
}
.gmodal-actions {
    display:flex; align-items:center; justify-content:space-between;
}

/* Tombol like modal */
.gmodal-like-btn {
    display:flex; align-items:center; gap:8px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,100,130,.4);
    color:#fff; border-radius:50px;
    padding:8px 20px; cursor:pointer;
    font-family:var(--font-body); font-size:1rem;
    transition:all .25s ease;
}
.gmodal-like-btn:hover { background:rgba(255,100,130,.18); transform:scale(1.05); }
.gmodal-like-btn.liked { background:rgba(255,75,105,.2); border-color:#ff4d6d; }
.gmodal-like-btn.liked i { color:#ff4d6d; animation:heartBeat .4s ease; }
.gmodal-like-btn i { font-size:1.1rem; color:rgba(255,255,255,.5); transition:color .2s,transform .2s; }

@keyframes heartBeat {
    0%,100% { transform:scale(1); }
    30%      { transform:scale(1.5); }
    60%      { transform:scale(.9); }
}

.gmodal-counter {
    font-family:var(--font-body); font-size:.85rem;
    color:rgba(255,255,255,.45); letter-spacing:1px;
}

/* Nav buttons */
.gmodal-nav {
    position:absolute; top:50%; transform:translateY(-50%);
    z-index:10; width:44px; height:44px; border-radius:50%;
    background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
    border:1px solid rgba(201,168,92,.35);
    color:var(--gold); font-size:1rem;
    cursor:pointer; transition:all .25s ease;
    display:flex; align-items:center; justify-content:center;
}
.gmodal-nav.prev { left:10px; }
.gmodal-nav.next { right:10px; }
.gmodal-nav:hover { background:rgba(201,168,92,.25); transform:translateY(-50%) scale(1.1); }
.gmodal-nav:disabled { opacity:.25; pointer-events:none; }

/* Tutup */
.gmodal-close {
    position:absolute; top:10px; right:10px; z-index:10;
    width:36px; height:36px; border-radius:50%;
    background:rgba(0,0,0,.55); backdrop-filter:blur(4px);
    border:1px solid rgba(255,255,255,.15);
    color:rgba(255,255,255,.8); font-size:.9rem;
    cursor:pointer; transition:all .25s ease;
    display:flex; align-items:center; justify-content:center;
}
.gmodal-close:hover { background:rgba(200,50,50,.6); color:#fff; transform:rotate(90deg); }

/* Swipe hint on mobile */
@media(max-width:600px){
    .gmodal-box { width:95vw; }
    .gmodal-nav { width:36px; height:36px; font-size:.85rem; }
    .gmodal-nav.prev { left:4px; }
    .gmodal-nav.next { right:4px; }
}
/* ============================================
   GALLERY PERFORMANCE FIXES
   — Mencegah scroll jank & layout thrashing
============================================ */

/* 1. Hero parallax — promote ke GPU layer */
.hero-bg {
    will-change: transform;
    transform: translateZ(0);
}

/* 2. Gallery section — isolasi layout */
.gallery-section {
    contain: layout style;
}

/* 3. Gallery grid items — isolasi tiap item */
.gallery-item {
    contain: layout style paint;
    transform: translateZ(0); /* GPU layer */
}

/* 4. Frame hover — hanya transform, tidak ada layout change */
.gallery-frame {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 5. Gambar di dalam frame — object-fit tanpa perubahan layout */
.gallery-img-wrap img {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Cegah layout shift: ukuran eksplisit */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 6. Hapus animation-delay berbasis JS — pakai transition saja */
.gallery-item.reveal {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.gallery-item.reveal.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* 7. Petals — offload ke GPU */
.petal {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* 8. Scroll snapping pada gallery (opsional, bantu UX mobile) */
@media (max-width: 600px) {
    .gallery-grid {
        /* Scroll horizontal snap di mobile jika grid 2 kolom */
        scroll-snap-type: none; /* nonaktif agar tidak konflik */
    }
    .gallery-frame {
        will-change: auto; /* di mobile, hemat memori GPU */
    }
}

/* 9. background-attachment:fixed sangat berat di mobile — disable */
@media (max-width: 768px) {
    .quote-bg,
    .guestbook-bg,
    .footer-bg {
        background-attachment: scroll !important;
    }
    /* Matikan parallax hero di mobile */
    .hero-bg {
        will-change: auto;
        transform: none !important;
    }
}