/* ----------------------------------------------------- */
/* --- STYLE GLOBAL & VARIABEL TEMA (DARK/LIGHT MODE) ---*/
/* ----------------------------------------------------- */

/* Konfigurasi Warna Dasar */
:root {
    /* Warna Maroon Utama */
    --color-primary: #A52A2A; 
    /* Warna Latar Belakang Terang */
    --color-bg-light: #FBF7F4; 
    /* Warna Latar Belakang Gelap */
    --color-bg-dark: #2C0C0C; 
    /* Warna Teks Primer (Terang) */
    --color-text-light: #444444; 
    /* Warna Teks Primer (Gelap) */
    --color-text-dark: #EAD0D0; 
    /* Warna Aksen */
    --color-accent: #D4AF37; /* Emas */
    /* Maroon gelap untuk hover */
    --color-primary-dark: #800000;
}

/* Konfigurasi untuk mode terang/default */
.light {
    --bg-color: var(--color-bg-light);
    --text-color: var(--color-text-light);
    --secondary-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Konfigurasi untuk mode gelap */
.dark {
    --bg-color: var(--color-bg-dark);
    --text-color: var(--color-text-dark);
    --secondary-bg: #401A1A;
    --shadow-color: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s, color 0.5s;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* Mempertahankan font elegan */
    color: var(--color-primary);
}

/* ----------------------------------------------------- */
/* --- UTILITY CLASSES (Menggantikan Beberapa Tailwind) ---*/
/* ----------------------------------------------------- */

/* Latar Belakang Utama - Corak Bali (Contoh placeholder) */
.bali-pattern {
    /* MENGGUNAKAN FOTO 3.JPG SEBAGAI LATAR BELAKANG UTAMA */
    background-image: url('BG MAIN.jpg'); 
    /* FOTO 3.JPG tidak berulang */
    background-repeat: no-repeat;
    /* FOTO 3.JPG mengisi seluruh area dan terpusat */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Box Konten Elegan (content-card) */
.content-card {
    background-color: var(--secondary-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid rgba(165, 42, 42, 0.2);
    transition: background-color 0.5s, box-shadow 0.5s;
}

/* Style untuk Tombol Utama/Hover (btn-primary) */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--color-primary-dark); 
    box-shadow: 0 8px 15px rgba(165, 42, 42, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* Garis Pemisah Khas Bali */
.bali-divider {
    height: 2px;
    background-image: linear-gradient(to right, transparent, var(--color-primary), transparent);
    margin: 30px 0;
    opacity: 0.5;
}

/* Utility untuk Dark Mode (untuk override class Tailwind spesifik) */
.dark .text-maroon-600 { color: var(--color-text-dark); }
.dark .bg-gray-100 { background-color: var(--color-bg-dark); }
.dark .text-maroon-800 { color: var(--color-text-dark); }
.dark .shadow-md { box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color); }

/* Icon Control */
.control-icon {
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    /* Tambahkan style untuk background/text default di control icon */
    background-color: var(--secondary-bg);
    color: var(--color-primary);
}
.control-icon:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

/* RSVP Form & Ucapan */
.rsvp-input {
    border-color: var(--color-primary);
    background-color: var(--secondary-bg);
    color: var(--text-color);
    /* Tambahkan fokus glow/ring */
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 0.3s;
}
.rsvp-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-primary);
}

/* ----------------------------------------------------- */
/* --- CUSTOM SECTION STYLES ---*/
/* ----------------------------------------------------- */

/* Cover Screen Styling */
#cover {
    background: url('foto 1.jpg') center/cover no-repeat; /*cover awal*/
    position: relative;
}
#cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(2px); /* Efek blur ringan */
    z-index: 0;
}
#cover-content { z-index: 1; }
#cover-content h1 { 
    color: white; 
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
#cover-content p { color: var(--color-text-dark); } /* Teks terang di cover */

/* Countdown Styling */
.timer-box {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    transition: transform 0.3s, background-color 0.5s;
}
.timer-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* Hover Galeri */
.gallery-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
}
.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(165, 42, 42, 0.5);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 1s ease-out;
}
.om-swastyastu-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #A52A2A; /* Diubah menjadi putih sesuai permintaan sebelumnya */
    opacity: 0;
    animation: fadeInOm 2s ease-in-out 0.5s forwards;
}
@keyframes fadeInOm {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}