:root {
    --primary-green: #0a3d25;
    --secondary-green: #155d3a;
    --accent-green: #258c5a;
    --gold: #d4af37;
    --light-gold: #f9df88;
    --white: #ffffff;
    --text-light: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #03140c; /* Warna hijau sangat gelap untuk background luar */
    background-image: radial-gradient(circle at center, #0a3d25 0%, #03140c 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.invitation-container {
    background: linear-gradient(160deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    max-width: 650px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(212, 175, 55, 0.4);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    animation: fadeIn 1.2s ease-out;
}

/* Ornamen Sudut (Glassmorphism + Border Emas) */
.ornament {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
}
.ornament-top-left { top: -30px; left: -30px; }
.ornament-top-right { top: -30px; right: -30px; }
.ornament-bottom-left { bottom: -30px; left: -30px; }
.ornament-bottom-right { bottom: -30px; right: -30px; }

.content-wrapper {
    position: relative;
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.lantern {
    position: absolute;
    top: -20px;
    width: 70px;
    animation: swing 4s infinite ease-in-out alternate;
    transform-origin: top center;
    z-index: 5;
    filter: drop-shadow(0 0 15px rgba(249, 223, 136, 0.4));
}

.lantern-left { left: 40px; }
.lantern-right { right: 40px; }
.lantern-img { width: 100%; }

@keyframes swing {
    0% { transform: rotate(-6deg); }
    100% { transform: rotate(6deg); }
}

.header {
    margin-top: 10px;
    margin-bottom: 25px;
}

.bismillah {
    font-size: 3rem;
    color: var(--light-gold);
    margin-bottom: 15px;
    font-weight: normal;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.salam {
    font-family: 'Great Vibes', cursive;
    color: var(--white);
    font-size: 2.2rem;
    font-weight: normal;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--gold), #f3e5ab, var(--gold));
    background-size: 200% auto;
    color: var(--primary-green);
    padding: 8px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
    text-transform: uppercase;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.title {
    font-family: 'Cinzel', serif;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 35px;
    line-height: 1.4;
    letter-spacing: 2px;
}

.title span {
    font-size: 3rem;
    color: var(--light-gold);
    display: block;
    margin-top: 8px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    font-weight: 800;
}

.opening-text, .closing-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 0 15px;
    font-weight: 400;
}

.opening-text strong {
    color: var(--light-gold);
    font-weight: 600;
}

/* Glassmorphism Card Style */
.details-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px 30px;
    margin: 30px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: left;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Garis Emas atas bawah card */
.details-card::before, .details-card::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}
.details-card::before { top: 0; }
.details-card::after { bottom: 0; }

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateX(5px);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.gold-icon {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-right: 25px;
    background: linear-gradient(135deg, var(--light-gold), var(--gold));
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.detail-text h4 {
    color: var(--light-gold);
    font-size: 0.95rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.detail-text p {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.5;
    font-weight: 500;
}

.salam-closing {
    font-family: 'Great Vibes', cursive;
    color: var(--light-gold);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 40px;
    margin-top: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.photos-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.person-card {
    flex: 1 1 220px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.person-card:hover {
    transform: translateY(-5px);
}

.img-frame {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 4px;
    margin-bottom: 15px;
    background: var(--primary-green);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Memastikan wajah/bagian atas tidak terpotong */
    border-radius: 50%;
}

.placeholder-img {
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    color: rgba(212, 175, 55, 0.4);
}

.person-info {
    text-align: center;
    width: 100%;
}

.person-role {
    display: inline-block;
    font-family: 'Great Vibes', cursive;
    color: var(--light-gold);
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.person-name {
    font-family: 'Cinzel', serif;
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.4;
    background: linear-gradient(90deg, transparent, rgba(10, 61, 37, 0.6), transparent);
    padding: 10px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.person-name small {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
    display: block;
    margin-top: 3px;
}

/* Background Masjid menggunakan clip-path atau radial gradients untuk membentuk siluet (opsional) */
.mosque-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50" preserveAspectRatio="none"><path d="M0,50 L0,40 Q10,40 15,20 Q20,0 25,20 Q30,40 40,40 L45,40 Q50,20 55,20 Q60,40 65,40 L80,40 Q85,25 90,40 L100,40 L100,50 Z" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat bottom center;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   KARTU DONASI (OPEN SEDEKAH)
========================================= */
.donation-card {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(10, 61, 37, 0.8));
    border-radius: 20px;
    padding: 35px 25px;
    margin: 40px 0;
    border: 1px solid rgba(212, 175, 55, 0.4);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.donation-header h3 {
    color: var(--light-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.gold-icon-large {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.4));
}

.donation-text {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 25px;
}

.bank-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 25px;
    border: 1px dashed var(--gold);
    margin: 0 auto 25px;
    max-width: 320px;
}

.rek-number {
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: monospace;
    font-weight: 700;
}

.rek-name {
    font-size: 1.05rem;
    color: var(--light-gold);
}

.rek-name small {
    color: #ccc;
    font-size: 0.85rem;
}

.btn-copy {
    margin-top: 15px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--gold);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.donation-footer {
    font-size: 0.85rem;
    color: #bbb;
    font-style: italic;
    line-height: 1.6;
}

/* =========================================
   TOMBOL WHATSAPP
========================================= */
.contact-section {
    margin-top: 15px;
    margin-bottom: 45px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Inter', sans-serif;
}

.wa-btn i {
    font-size: 1.5rem;
}

.wa-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* =========================================
   ANIMASI CASCADING (SLIDE UP)
========================================= */
.animate-1, .animate-2, .animate-3, .animate-4, .animate-5, .animate-6 {
    opacity: 0;
}

.play-anim .animate-1 { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards; }
.play-anim .animate-2 { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards; }
.play-anim .animate-3 { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards; }
.play-anim .animate-4 { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards; }
.play-anim .animate-5 { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.0s forwards; }
.play-anim .animate-6 { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards; }

@keyframes slideUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* =========================================
   COVER PAGE (HALAMAN PEMBUKA)
========================================= */
.cover-page {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(160deg, #0a3d25 0%, #03140c 100%);
    background-image: radial-gradient(circle at center, #0a3d25 0%, #03140c 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.2s ease;
    color: var(--white);
}

.cover-page.slide-up {
    transform: translateY(-100vh);
    opacity: 0;
    pointer-events: none;
}

.cover-content {
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    max-width: 90%;
    width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.cover-content .title span {
    font-size: 2.2rem;
}

.guest-name {
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    color: var(--light-gold);
    margin: 10px 0 35px;
    border-bottom: 1px solid var(--gold);
    display: inline-block;
    padding-bottom: 5px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.btn-open {
    background: linear-gradient(45deg, var(--gold), #f3e5ab, var(--gold));
    background-size: 200% auto;
    color: var(--primary-green);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    animation: shine 3s linear infinite;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-open:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}

.btn-donasi {
    background: transparent;
    color: var(--light-gold);
    border: 2px solid var(--light-gold);
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-donasi:hover {
    background: rgba(249, 223, 136, 0.15);
    transform: scale(1.05) translateY(-3px);
}

.cover-page .ornament {
    z-index: 1;
}

/* =========================================
   BINGKAI RANTAI MELILIT (INTERTWINING FRAME)
========================================= */
.chain-border {
    position: absolute;
    top: 25px; left: 25px; right: 25px; bottom: 25px;
    border: 1.5px solid rgba(212, 175, 55, 0.7);
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.2);
    animation: fadeIn 2s ease-out;
}

.chain-border::before, .chain-border::after {
    content: '';
    position: absolute;
    border: 1.5px solid rgba(249, 223, 136, 0.4);
    border-radius: 20px;
}

/* Garis melilit pertama */
.chain-border::before {
    top: -10px; left: 10px; right: 10px; bottom: -10px;
}

/* Garis melilit kedua */
.chain-border::after {
    top: 10px; left: -10px; right: -10px; bottom: 10px;
}

/* Titik-titik emas di sudut (glowing dots) */
.chain-border {
    background-image: 
        radial-gradient(circle at 10px 10px, var(--light-gold) 2px, transparent 3px),
        radial-gradient(circle at calc(100% - 10px) 10px, var(--light-gold) 2px, transparent 3px),
        radial-gradient(circle at 10px calc(100% - 10px), var(--light-gold) 2px, transparent 3px),
        radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--light-gold) 2px, transparent 3px);
}

/* =========================================
   EFEK CAHAYA (PARTICLES)
========================================= */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, #ffffff 0%, rgba(249, 223, 136, 0.8) 30%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s infinite ease-in-out;
}

.p1 { width: 12px; height: 12px; left: 15%; bottom: -10%; animation-delay: 0s; }
.p2 { width: 8px; height: 8px; left: 35%; bottom: -10%; animation-delay: 2s; animation-duration: 6s; }
.p3 { width: 15px; height: 15px; left: 65%; bottom: -10%; animation-delay: 4s; animation-duration: 9s; }
.p4 { width: 10px; height: 10px; left: 85%; bottom: -10%; animation-delay: 1s; animation-duration: 7s; }
.p5 { width: 14px; height: 14px; left: 50%; bottom: -10%; animation-delay: 5s; animation-duration: 8s; }
.p6 { width: 6px; height: 6px; left: 25%; bottom: -10%; animation-delay: 3s; animation-duration: 5s; }
.p7 { width: 10px; height: 10px; left: 75%; bottom: -10%; animation-delay: 6s; animation-duration: 7s; }
.p8 { width: 12px; height: 12px; left: 5%; bottom: -10%; animation-delay: 2.5s; animation-duration: 8.5s; }

@keyframes floatParticle {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-100vh) scale(1.5); opacity: 0; }
}

/* =========================================
   TOMBOL WHATSAPP MENGAMBANG (FLOATING)
========================================= */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 99999; /* Selalu di atas halaman cover */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    animation: pulse-wa 2s infinite;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: #FFF;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Styles */
@media (max-width: 650px) {
    .floating-wa {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }

    .invitation-container {
        padding: 40px 20px;
        border-radius: 15px;
    }
    
    body {
        padding: 20px 10px;
    }

    .photos-section {
        flex-direction: column;
        gap: 30px;
    }

    .title span {
        font-size: 2.2rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .lantern {
        width: 50px;
        top: -10px;
    }

    .lantern-left { left: 15px; }
    .lantern-right { right: 15px; }

    .salam {
        font-size: 1.8rem;
    }

    .bismillah {
        font-size: 2.5rem;
    }

    .badge {
        padding: 6px 20px;
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .details-card {
        padding: 25px 20px;
    }

    .gold-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 15px;
    }

    .detail-text p {
        font-size: 1rem;
    }
}
