/* ================= VARIABLES & GLOBAL ================= */
:root {
    --emerald: #0F5132;
    --emerald-dark: #0a3b24;
    --gold: #D4AF37;
    --gold-light: #f3d77a;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--emerald);
    overflow-x: hidden;
}

/* ================= BACKGROUND FOTO KELUARGA ================= */
.background-family-photo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    /* PASTIKAN NAMA FILE INI SESUAI DENGAN FILE DI FOLDER ANDA */
    background-image: url('assets/img/hero-family.jpeg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Overlay dibuat sedikit lebih transparan agar fotonya terlihat */
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(15, 81, 50, 0.15) 0%, transparent 50%),
        rgba(248, 248, 248, 0.75); /* Warna marmer putih transparan */
    backdrop-filter: blur(2px);
}

/* ================= LOADING SCREEN ================= */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--emerald);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
.loader-text {
    color: var(--gold);
    font-family: var(--font-display);
    letter-spacing: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= PARTICLES & FLOATING ELEMENTS ================= */
#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.floating-elements {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.lantern, .flower {
    position: absolute;
    color: var(--gold);
    opacity: 0.5;
    font-size: 2rem;
    animation: float 8s ease-in-out infinite;
}
.lantern-1 { top: 10%; left: 5%; font-size: 3rem; animation-delay: 0s; }
.lantern-2 { top: 60%; right: 5%; font-size: 2.5rem; animation-delay: 2s; }
.flower-1 { top: 20%; right: 15%; animation-delay: 1s; }
.flower-2 { bottom: 15%; left: 10%; animation-delay: 3s; }
.flower-3 { top: 50%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ================= MUSIC BUTTON ================= */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--emerald);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.music-btn.playing i {
    animation: spin 3s linear infinite;
}
.music-btn:hover {
    background: var(--gold);
    color: var(--emerald);
}

/* ================= TYPOGRAPHY ================= */
.arabic-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    direction: rtl;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--emerald);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(255,255,255,0.5);
}
.hero-title span {
    color: var(--gold);
    display: block;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--emerald-dark);
    font-weight: 500;
}
.hero-paragraph {
    color: #333;
    max-width: 500px;
    line-height: 1.8;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.btn-primary-gold {
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    color: var(--emerald);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-primary-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    color: var(--emerald-dark);
}
.btn-outline-gold {
    background: transparent;
    color: var(--emerald);
    border: 2px solid var(--emerald);
}
.btn-outline-gold:hover {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
    transform: translateY(-3px);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple .ripple-circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* ================= HERO SECTION ================= */
.hero-section {
    min-height: 100vh;
    position: relative;
}
.hero-image-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}
.hero-image {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    width: 100%;
    height: 550px;
    object-fit: cover;
}
.gold-border-frame {
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid var(--gold);
    border-radius: 20px;
    z-index: 1;
    transition: all 0.5s ease;
}
.hero-image-wrapper:hover .gold-border-frame {
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
}
.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
    z-index: 0;
    top: 0;
    left: 0;
    animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ================= SECTION GENERAL ================= */
.section-padding {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--emerald);
    font-weight: 700;
    margin-bottom: 10px;
}
.gold-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 20px;
}

/* ================= NAME & HADITH SECTION ================= */
.emerald-box {
    background: var(--emerald);
    padding: 50px 30px;
    border-radius: 20px;
    border: 2px solid var(--gold);
    box-shadow: 0 20px 40px rgba(15, 81, 50, 0.3);
    position: relative;
    overflow: hidden;
}
.emerald-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjEyLCAxNzUsIDU1LCAwLjEpIiBzdHJva2Utd2lkdGg9IjEiPjxwYXRoIGQ9Ik0wIDIwTDQwIDBNMjAgMEw0MCA0ME0wIDIwTDQwIDIwTTIwIDBMMjAgNDAiLz48L3N2Zz4=');
    opacity: 0.3;
    pointer-events: none;
}
.doa-text {
    color: var(--off-white);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}
.name-wrapper {
    margin: 30px 0;
    min-height: 60px;
    position: relative;
    z-index: 2;
}
.child-name {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    animation: glow-text 2s ease-in-out infinite alternate;
    display: inline-block;
}
.cursor {
    color: var(--gold);
    font-size: 3rem;
    font-weight: 300;
    animation: blink 1s infinite;
}
@keyframes glow-text {
    from { text-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
    to { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4); }
}
@keyframes blink { 50% { opacity: 0; } }

.hadith-box {
    background: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    position: relative;
    z-index: 2;
}
.hadith-arabic {
    font-family: var(--font-display);
    color: var(--gold-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.hadith-text {
    color: var(--white);
    font-style: italic;
    font-size: 1.1rem;
}
.hadith-source {
    margin-top: 15px;
    color: var(--gold-light);
    font-weight: 600;
}

/* ================= INFO CARDS ================= */
.info-card {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}
.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(15, 81, 50, 0.15);
    border-color: var(--gold);
}
.info-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.info-card h3 {
    font-family: var(--font-display);
    color: var(--emerald);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.info-card p {
    color: #444;
    margin: 0;
    line-height: 1.6;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.85); /* Ditingkatkan opacitynya agar kontras dengan background foto */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ================= COUNTDOWN ================= */
.countdown-title {
    font-family: var(--font-display);
    color: var(--emerald);
    margin-bottom: 25px;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.time-box {
    background: var(--emerald);
    color: var(--gold);
    width: 100px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.time-box span {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.time-box small {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ================= MAP & QR ================= */
.map-container {
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.85);
}
.qr-code-wrapper {
    display: inline-block;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid var(--emerald);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.qr-code-wrapper img {
    width: 150px;
    height: 150px;
}
.location-text {
    color: #333;
    line-height: 1.8;
}
.qr-helper-text {
    color: var(--emerald);
    font-size: 0.9rem;
    font-style: italic;
}

/* ================= GALLERY SWIPER ================= */
.parallax-bg {
    background-color: transparent;
    position: relative;
}
.parallax-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDE1LCA4MSwgNTAsIDAuMDMpIiBzdHJva2Utd2lkdGg9IjEiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQwIi8+PGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iMzAiLz48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIyMCIvPjwvc3ZnPg==');
    z-index: 0;
}
.parallax-bg .container {
    position: relative;
    z-index: 1;
}
.gallerySwiper {
    width: 100%;
    padding: 20px 0 50px 0;
}
.swiper-slide {
    width: 300px;
}
.gallery-img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.02);
}
.swiper-pagination-bullet {
    background: var(--gold) !important;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.lightbox-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    border: 3px solid var(--gold);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover { color: var(--gold); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================= FAMILY SECTION ================= */
.family-intro {
    font-size: 1.2rem;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.family-names {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.family-ampersand {
    font-size: 2rem;
    color: var(--emerald);
    font-family: var(--font-display);
    margin: 10px 0;
}

/* ================= FOOTER ================= */
.footer-section {
    background: var(--emerald);
    color: var(--off-white);
    padding: 80px 0 40px 0;
    position: relative;
    overflow: hidden;
}
.footer-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjEyLCAxNzUsIDU1LCAwLjA1KSIgc3Ryb2tlLXdpZHRoPSIxIj48cGF0aCBkPSJNMSA1OUw1OSAxTTEgMzBMNTkgMzBNMzAgMVY1OSIvPjwvc3ZnPg==');
    opacity: 0.5;
}
.footer-thanks {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}
.footer-arabic {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
    position: relative;
}
.footer-translate {
    font-style: italic;
    color: var(--gold-light);
    position: relative;
}
.footer-salam {
    font-size: 1.1rem;
    position: relative;
}
.footer-credit {
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.7;
    position: relative;
}
.footer-section .gold-divider {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-title span { font-size: 1.8rem; }
    .hero-image { height: 400px; }
    .section-title { font-size: 2rem; }
    .child-name { font-size: 2rem; }
    .cursor { font-size: 2rem; }
    .time-box { width: 70px; height: 70px; }
    .time-box span { font-size: 1.5rem; }
    .swiper-slide { width: 250px; }
    .gallery-img { height: 280px; }
}