:root {
    --primary-color: #052c23; /* Deep dark green */
    --accent-gold: #d4af37;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(212, 175, 55, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background: #021a15;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 3D Animated Background */
.glass-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 50%, #0c5844 0%, #052c23 100%);
    z-index: -2;
}

#particles-js {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><g fill="none" stroke="%23d4af37" stroke-width="1.5" opacity="0.15"><rect x="25" y="25" width="30" height="30"/><rect x="25" y="25" width="30" height="30" transform="rotate(45 40 40)"/><circle cx="40" cy="40" r="10"/><path d="M0 40h20M60 40h20M40 0v20M40 60v20M12 12l14 14M54 54l14 14M12 68l14-14M54 26l14-14"/></g></svg>');
    background-size: 100px 100px;
    animation: scrollBg 40s linear infinite;
}
@keyframes scrollBg { 
    0% { background-position: 0 0; } 
    100% { background-position: 100px 100px; } 
}

h1, h2, h3, .bismillah, .arabic-quote {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
}
.bismillah { font-family: 'Amiri', serif; font-size: 2.5rem; text-align: center; margin-bottom: 2rem; text-shadow: 0 0 10px var(--accent-gold); }

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}
.glass-card {
    background: rgba(11, 74, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.3);
    transform-style: preserve-3d;
}

/* COVER & 3D Envelope */
.cover-page {
    position: fixed; width: 100vw; height: 100vh;
    display: flex; justify-content: center; align-items: center; z-index: 100;
    transition: opacity 1s ease, transform 1s ease;
}
.env-container {
    width: 90%; max-width: 450px; height: 500px;
    perspective: 1500px; transform-style: preserve-3d;
}
.envelope {
    width: 100%; height: 100%; position: relative;
    transform-style: preserve-3d; transition: transform 1.5s ease;
}
.env-front, .env-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; border-radius: 15px;
}
.env-front {
    background: rgba(10, 50, 40, 0.8);
    backdrop-filter: blur(20px); border: 2px solid var(--accent-gold);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(212,175,55,0.2);
    z-index: 2; padding: 2rem; text-align: center;
}
.cover-logo {
    width: 80px; height: auto; margin-bottom: 1rem; transform: translateZ(30px);
}
.env-flap {
    position: absolute; top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, rgba(212,175,55,0.3), transparent);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top; transition: transform 1s ease; z-index: 3;
}
.envelope.opening .env-flap { transform: rotateX(180deg); }
.envelope.opening { transform: translateZ(-200px) translateY(100vh); opacity: 0; transition: transform 2s ease, opacity 1.5s ease; }

.main-title { font-size: 2.2rem; margin: 1rem 0; text-shadow: 0 4px 10px rgba(0,0,0,0.8); transform: translateZ(30px); }
.sub-title { letter-spacing: 4px; font-size: 1rem; color: #fff; transform: translateZ(20px); }
.pesantren-name { font-size: 0.9rem; color: #aaa; margin-bottom: 2rem; transform: translateZ(20px); }

/* Buttons */
.glass-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 12px 30px; font-size: 1.1rem; border-radius: 30px;
    cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 600;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
    transform: translateZ(40px); box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
.glass-btn:hover {
    background: var(--accent-gold); color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-gold); transform: translateZ(45px) scale(1.05);
}

/* Light Gate */
.light-gate { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; display: flex; visibility: hidden; }
.gate { width: 50%; height: 100%; background: #000; border-right: 5px solid var(--accent-gold); transition: transform 2s cubic-bezier(0.77, 0, 0.175, 1); }
.gate-right { border-right: none; border-left: 5px solid var(--accent-gold); }
.light-gate.active { visibility: visible; }
.light-gate.open .gate-left { transform: translateX(-100%); }
.light-gate.open .gate-right { transform: translateX(100%); }

/* MAIN CONTENT */
.main-content { min-height: 100vh; padding: 2rem 1rem; z-index: 10; position: relative; }
.hidden { display: none !important; }
.content-wrapper { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; transform-style: preserve-3d; position: relative; overflow: hidden; }

/* Flower Ornaments */
.flower-ornament {
    position: absolute;
    width: 120px; height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="%23d4af37" opacity="0.3"><path d="M50 5 C60 30 75 35 95 20 C75 45 70 60 95 80 C70 75 55 90 50 95 C45 90 30 75 5 80 C30 60 25 45 5 20 C25 35 40 30 50 5 Z"/><circle cx="50" cy="50" r="8" fill="%23d4af37"/></g></svg>');
    background-size: contain; background-repeat: no-repeat;
    pointer-events: none; z-index: -1;
    animation: pulseFlower 4s infinite alternate ease-in-out;
}
@keyframes pulseFlower {
    0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    100% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

.flower-tl { top: -20px; left: -20px; }
.flower-tr { top: -20px; right: -20px; transform: scaleX(-1); }
.flower-bl { bottom: -20px; left: -20px; transform: scaleY(-1); }
.flower-br { bottom: -20px; right: -20px; transform: scale(-1, -1); }

/* 3D Elements */
.islamic-3d-model { display: flex; justify-content: center; margin-bottom: 2rem; transform: translateZ(50px); }
.logo-3d {
    width: 120px; height: auto;
    max-height: 120px;
    filter: drop-shadow(0 0 15px var(--accent-gold));
    animation: floatLogo 4s infinite ease-in-out;
}
@keyframes floatLogo { 
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px var(--accent-gold)); } 
    50% { transform: translateY(-10px) scale(1.05); filter: drop-shadow(0 0 25px var(--accent-gold)); } 
    100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px var(--accent-gold)); } 
}

.bismillah { 
    font-family: 'Amiri', serif; font-size: 2.5rem; text-align: center; margin-bottom: 2rem; 
    text-shadow: 0 0 10px var(--accent-gold);
    background: linear-gradient(90deg, var(--accent-gold) 0%, #fff 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite, fadeInUp 1s ease forwards;
}

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

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px) translateZ(10px); }
    100% { opacity: 1; transform: translateY(0) translateZ(10px); }
}

/* Apply staggered fade-in animations */
.recipient-section { opacity: 0; animation: fadeInUp 1s ease 0.3s forwards; }
.greeting-section { opacity: 0; animation: fadeInUp 1s ease 0.6s forwards; }
.events-container { opacity: 0; animation: fadeInUp 1s ease 0.9s forwards; }
.closing-section { opacity: 0; animation: fadeInUp 1s ease 1.2s forwards; }
.donation-section { opacity: 0; animation: fadeInUp 1s ease 1.3s forwards; }
.sign-off { opacity: 0; animation: fadeInUp 1s ease 1.5s forwards; }
.guest-list-section { opacity: 0; animation: fadeInUp 1s ease 1.8s forwards; }
.rsvp-section { opacity: 0; animation: fadeInUp 1s ease 2.1s forwards; }

.events-container { display: flex; flex-direction: column; gap: 2rem; margin: 3rem 0; }
@media(min-width: 768px) { .events-container { flex-direction: row; } }
.event-card { flex: 1; text-align: center; }
.event-icon-3d { font-size: 3rem; margin-bottom: 1rem; transform: translateZ(30px); text-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.event-title { 
    transform: translateZ(20px); margin-bottom: 1rem; 
    background: linear-gradient(90deg, var(--accent-gold) 0%, #fff 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}
.detail-item { transform: translateZ(10px); margin-bottom: 0.5rem; display: flex; gap: 10px; justify-content: center; font-size: 0.9rem; color: #ccc; }

.salam, .salam-tutup { font-size: 1.2rem; font-weight: 600; color: var(--accent-gold); text-align: center; }
.intro-text, .closing-section p { text-align: center; color: #ddd; margin-bottom: 1rem; transform: translateZ(10px); }
.sign-off { text-align: center; margin-top: 3rem; transform: translateZ(20px); }

/* DONATION / REKENING SECTION */
.donation-section {
    text-align: center;
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(11, 74, 59, 0.4));
    border: 1px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}
.donation-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: rotateGlow 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.donation-icon-3d {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transform: translateZ(40px);
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
    animation: floatLogo 4s infinite ease-in-out;
}
.donation-title {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}
.bank-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    transform: translateZ(20px);
}
.bank-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff7b00; /* Seabank orange accent */
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.bank-number {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #fff, #d4af37, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    margin: 5px 0;
}
.bank-owner {
    font-size: 1.1rem;
    color: #ddd;
    font-style: italic;
    margin-top: 10px;
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 20px;
}
.copy-btn {
    padding: 8px 25px;
    font-size: 0.95rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateZ(30px);
}
.copy-btn.copied {
    background: var(--accent-gold);
    color: var(--primary-color);
}

.glass-divider { border: 0; height: 1px; background: linear-gradient(to right, transparent, var(--accent-gold), transparent); margin: 3rem 0; }

/* RSVP FORM */
.rsvp-section { transform: translateZ(30px); }
.form-title { text-align: center; margin-bottom: 2rem; }
.glass-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.glass-input {
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: #fff; padding: 12px 15px; border-radius: 10px; font-family: 'Montserrat', sans-serif;
    outline: none; transition: all 0.3s;
}
.glass-input:focus { background: rgba(255,255,255,0.1); border-color: var(--accent-gold); box-shadow: 0 0 10px rgba(212,175,55,0.3); }
.glass-input option { background: var(--primary-color); color: #fff; }
.submit-btn { width: 100%; margin-top: 1rem; }

.message { text-align: center; margin-top: 1rem; padding: 1rem; border-radius: 10px; }
.message.success { background: rgba(0, 255, 0, 0.1); border: 1px solid #0f0; color: #0f0; }
.message.error { background: rgba(255, 0, 0, 0.1); border: 1px solid #f00; color: #f00; }

 / *   G u e s t   L i s t   S e c t i o n   * / 
 . g u e s t - l i s t - s e c t i o n   {   m a r g i n - t o p :   2 r e m ;   } 
 . s u m m a r y - s t a t s   {   d i s p l a y :   f l e x ;   f l e x - w r a p :   w r a p ;   g a p :   1 0 p x ;   m a r g i n - b o t t o m :   1 . 5 r e m ;   j u s t i f y - c o n t e n t :   c e n t e r ;   } 
 . s t a t - b a d g e   {   b a c k g r o u n d :   r g b a ( 2 1 2 ,   1 7 5 ,   5 5 ,   0 . 2 ) ;   b o r d e r :   1 p x   s o l i d   v a r ( - - a c c e n t - g o l d ) ;   p a d d i n g :   8 p x   1 5 p x ;   b o r d e r - r a d i u s :   2 0 p x ;   f o n t - s i z e :   0 . 9 r e m ;   c o l o r :   # f f f ;   b o x - s h a d o w :   0   4 p x   1 0 p x   r g b a ( 0 , 0 , 0 , 0 . 3 ) ;   } 
 . s t a t - b a d g e   s t r o n g   {   c o l o r :   v a r ( - - a c c e n t - g o l d ) ;   } 
 . f i l t e r - g r o u p   {   d i s p l a y :   f l e x ;   a l i g n - i t e m s :   c e n t e r ;   g a p :   1 0 p x ;   m a r g i n - b o t t o m :   1 r e m ;   j u s t i f y - c o n t e n t :   c e n t e r ;   } 
 . g u e s t - l i s t - c o n t a i n e r   {   m a x - h e i g h t :   3 0 0 p x ;   o v e r f l o w - y :   a u t o ;   p a d d i n g - r i g h t :   1 0 p x ;   } 
 . g u e s t - l i s t - c o n t a i n e r : : - w e b k i t - s c r o l l b a r   {   w i d t h :   8 p x ;   } 
 . g u e s t - l i s t - c o n t a i n e r : : - w e b k i t - s c r o l l b a r - t r a c k   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ;   b o r d e r - r a d i u s :   1 0 p x ;   } 
 . g u e s t - l i s t - c o n t a i n e r : : - w e b k i t - s c r o l l b a r - t h u m b   {   b a c k g r o u n d :   v a r ( - - a c c e n t - g o l d ) ;   b o r d e r - r a d i u s :   1 0 p x ;   } 
 . p u b l i c - g u e s t - l i s t   {   l i s t - s t y l e :   n o n e ;   p a d d i n g :   0 ;   d i s p l a y :   f l e x ;   f l e x - d i r e c t i o n :   c o l u m n ;   g a p :   1 0 p x ;   } 
 . g u e s t - i t e m   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ;   b o r d e r :   1 p x   s o l i d   v a r ( - - g l a s s - b o r d e r ) ;   p a d d i n g :   1 2 p x   1 5 p x ;   b o r d e r - r a d i u s :   1 0 p x ;   d i s p l a y :   f l e x ;   j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;   a l i g n - i t e m s :   c e n t e r ;   } 
 . g u e s t - i n f o   {   d i s p l a y :   f l e x ;   f l e x - d i r e c t i o n :   c o l u m n ;   } 
 . g u e s t - n a m e   {   f o n t - w e i g h t :   6 0 0 ;   c o l o r :   v a r ( - - a c c e n t - g o l d ) ;   } 
 . g u e s t - m e t a   {   f o n t - s i z e :   0 . 8 5 r e m ;   c o l o r :   # c c c ;   } 
 . g u e s t - s t a t u s   {   f o n t - s i z e :   0 . 8 r e m ;   p a d d i n g :   4 p x   1 0 p x ;   b o r d e r - r a d i u s :   1 5 p x ;   f o n t - w e i g h t :   6 0 0 ;   } 
 . s t a t u s - h a d i r   {   b a c k g r o u n d :   r g b a ( 0 ,   2 5 5 ,   0 ,   0 . 1 ) ;   c o l o r :   # 0 f 0 ;   b o r d e r :   1 p x   s o l i d   # 0 f 0 ;   } 
 . s t a t u s - t i d a k   {   b a c k g r o u n d :   r g b a ( 2 5 5 ,   0 ,   0 ,   0 . 1 ) ;   c o l o r :   # f 0 0 ;   b o r d e r :   1 p x   s o l i d   # f 0 0 ;   }  
 