/* =========================================
   UNDANGAN PERNIKAHAN - RONI & IKA
   style.css — Versi Bersih & Terstruktur
   ========================================= */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark:    #2c1e12;
    --bg-card:    #3d2b1f;
    --gold:       #8b5e3c;
    --gold-light: #c5a07d;
    --text-black: #1a1a1a;
    --white:      #fdf5e6;
    --footer-bg:  #f9f4ee;
    --glass:      rgba(255, 255, 255, 0.65);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-black);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =========================================
   2. LAYOUT
   ========================================= */
.container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--white);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
}

/* =========================================
   3. SECTION BASE & BACKGROUNDS
   ========================================= */
section {
    padding: 80px 25px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

section:not(.hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

section > * {
    position: relative;
    z-index: 1;
}

.bg-1 { background-image: url('bg1.jpg'); }
.bg-2 { background-image: url('bg2.jpg'); }
.bg-3 { background-image: url('bg3.jpg'); }

/* =========================================
   4. TYPOGRAPHY
   ========================================= */
.font-aesthetic {
    font-family: 'Great Vibes', cursive;
    color: var(--gold);
    text-shadow: none;
}

.gold-text {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: none;
}

p,
strong,
.parent-name,
.arti,
.surah {
    color: var(--text-black);
    text-shadow: none;
}

.arab {
    color: #3e2723;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 2.4;
    margin-bottom: 15px;
    text-shadow: none;
}

/* =========================================
   5. HERO / COVER
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('bg1.jpg') no-repeat center center / cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(253, 245, 230, 0.5) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.sub-title {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--gold-light) !important;
    margin-bottom: 15px;
    text-shadow: none;
}

.frame-foto-wrapper {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0 auto 35px;
}

.decorative-circle {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    opacity: 0.6;
}

.foto-hero {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--white);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nama-utama {
    font-size: 3.8rem;
    margin-top: 10px;
    color: var(--gold);
    text-shadow: none;
}

.tanggal-tulis {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-black);
    opacity: 0.8;
    text-shadow: none;
}

/* =========================================
   6. TOMBOL
   ========================================= */
.btn-scroll,
.btn-gold {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-scroll:hover,
.btn-gold:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

/* =========================================
   7. SECTION MEMPELAI
   ========================================= */
.mempelai-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pria,
.wanita {
    flex: 1;
    min-width: 120px;
}

.foto-lingkaran {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
    margin-bottom: 15px;
}

.pria h2,
.wanita h2 {
    font-size: 1.8rem;
}

.parent-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 5px;
}

.simbol {
    font-size: 3rem;
    color: var(--gold);
    margin: 20px 10px;
}

/* =========================================
   8. CARD / BOX KONTEN
   ========================================= */
.card-content,
.summary-box,
.form-box {
    background: var(--glass);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--gold-light);
    margin-top: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin: 15px 0;
}

.event-item .icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 12px;
}

/* =========================================
   9. COUNTDOWN
   ========================================= */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.countdown-item {
    background: rgba(139, 94, 60, 0.1);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 12px;
    min-width: 75px;
}

.countdown-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
}

.countdown-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
}

/* =========================================
   10. RSVP & INPUT
   ========================================= */
.counter-text {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-black);
}

.input-field {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--gold-light);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-black);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--gold);
}

/* =========================================
   11. UCAPAN
   ========================================= */
.daftar-ucapan {
    margin-top: 10px;
}

.item-ucapan {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--gold);
    text-align: left;
}


/* =========================================
   12. LOKASI / MAPS
   ========================================= */
.maps-container {
    border-radius: 15px;
    overflow: hidden;
    margin-top: 15px;
}

/* =========================================
   13. FOOTER
   ========================================= */
.footer-aesthetic {
    background: var(--footer-bg);
    padding: 60px 25px 40px;
    border-top: 1px solid rgba(139, 94, 60, 0.15);
    text-align: center;
}

.footer-content h2 {
    font-family: 'Great Vibes', cursive;
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: none;
}

.footer-content p {
    color: var(--text-black);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 85%;
    margin: 0 auto;
    text-shadow: none;
}

.gold-line {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 25px auto;
    width: 60%;
    opacity: 0.5;
}

.copyright {
    color: var(--text-black) !important;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 10px;
    text-shadow: none;
}

/* =========================================
   14. HADIAH DIGITAL / REKENING
   ========================================= */
.gift-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 20px !important;
}

.rekening-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(139, 94, 60, 0.2);
}

.bank-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(20%);
}

.rekening-info .rek-number {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bg-dark);
    margin-bottom: 5px;
}

.rekening-info .rek-name {
    font-size: 0.85rem;
    color: var(--text-black);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn-copy {
    background: var(--gold);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-copy:hover {
    background: var(--bg-dark);
    transform: scale(1.05);
}

.btn-copy:active {
    transform: scale(0.95);
}

.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: rotate 3s linear infinite; /* Animasi berputar saat musik nyala */
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Class untuk menghentikan animasi saat musik dipause */
.music-paused {
    animation-play-state: paused;
}