:root{
--gold:#D4AF37;
--dark-gold:#B8960F;
--light-gold:#F4E5C2;
--cream:#FFF8E7;
--dark:#1A1A1A;
--brown:#8B4513;
--text-dark:#2C2C2C;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
scroll-behavior:smooth;
}

body{
font-family:'Cairo',sans-serif;
background:
linear-gradient(135deg, #FFF8E7 0%, #F4E5C2 100%);
color:var(--text-dark);
overflow-x:hidden;
position:relative;
direction:rtl;
}

body::before{
content:'';
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background-image:
radial-gradient(circle at 20% 50%, rgba(212,175,55,0.03) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(212,175,55,0.03) 0%, transparent 50%);
z-index:-1;
pointer-events:none;
}

/* LOADER */
#loader{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
display:flex;
justify-content:center;
align-items:center;
z-index:99999;
animation:fadeOut 1s ease forwards;
animation-delay:2.5s;
}

@keyframes fadeOut{
to{ opacity:0; visibility:hidden; }
}

.loader-content{
text-align:center;
}

.bismillah{
font-family:'Scheherazade New',serif;
font-size:32px;
color:white;
margin-bottom:30px;
text-shadow:0 2px 10px rgba(0,0,0,0.3);
}

.loader-icon{
font-size:80px;
animation:pulse 1.5s ease-in-out infinite;
}

@keyframes pulse{
0%, 100%{ transform:scale(1); }
50%{ transform:scale(1.1); }
}

.loader-content p{
margin-top:20px;
letter-spacing:2px;
color:white;
font-size:16px;
animation:fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut{
0%, 100%{ opacity:0.6; }
50%{ opacity:1; }
}

/* ENVELOPE */
#envelopeScreen{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100vh;
background:
linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(184,150,15,0.15) 100%),
url("https://i.pinimg.com/736x/33/d9/55/33d9557d7e34f7b48f976b7c50f572ba.jpg");
background-size:cover;
background-position:center;
z-index:9998;
justify-content:center;
align-items:center;
padding:20px;
transition:opacity 0.8s ease;
}

.islamic-pattern{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background-image:
repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212,175,55,0.03) 35px, rgba(212,175,55,0.03) 70px);
pointer-events:none;
}

.envelope-wrapper{
position:relative;
max-width:500px;
width:100%;
animation:floatEnvelope 3s ease-in-out infinite;
}

@keyframes floatEnvelope{
0%, 100%{ transform:translateY(0) rotate(0deg); }
50%{ transform:translateY(-15px) rotate(1deg); }
}

.envelope-card{
background:linear-gradient(145deg, #FFFFFF 0%, var(--cream) 100%);
border-radius:20px;
padding:50px 40px;
box-shadow:
0 20px 60px rgba(0,0,0,0.15),
inset 0 1px 0 rgba(255,255,255,0.9);
border:2px solid var(--gold);
position:relative;
}

.envelope-card::before{
content:'';
position:absolute;
top:10px;
left:10px;
right:10px;
bottom:10px;
border:1px solid var(--gold);
border-radius:15px;
opacity:0.3;
pointer-events:none;
}

.envelope-top{
text-align:center;
margin-bottom:30px;
}

.bismillah-top{
font-family:'Scheherazade New',serif;
font-size:28px;
color:var(--gold);
text-shadow:0 2px 5px rgba(212,175,55,0.3);
}

.envelope-content{
text-align:center;
margin:40px 0;
}

.envelope-content h3{
font-family:'Amiri',serif;
font-size:36px;
color:var(--dark-gold);
margin-bottom:20px;
}

.decorative-divider{
display:flex;
justify-content:center;
align-items:center;
gap:15px;
margin:25px 0;
color:var(--gold);
font-size:20px;
}

.invite-text{
font-size:20px;
color:var(--text-dark);
font-weight:300;
}

.open-btn{
display:flex;
align-items:center;
justify-content:center;
gap:10px;
width:100%;
padding:18px;
background:linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
color:white;
border:none;
border-radius:50px;
font-size:18px;
font-weight:600;
cursor:pointer;
transition:all 0.3s ease;
box-shadow:0 5px 20px rgba(212,175,55,0.4);
margin-top:30px;
font-family:'Cairo',sans-serif;
}

.open-btn:hover{
transform:translateY(-2px);
box-shadow:0 8px 25px rgba(212,175,55,0.5);
}

.open-btn:active{
transform:translateY(0);
}

/* MAIN */
#mainContent{
display:none;
}

/* HERO */
.hero{
position:relative;
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
padding:40px 20px;
}

.hero img{
position:absolute;
width:100%;
height:100%;
object-fit:cover;
z-index:1;
}

.hero-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(
135deg,
rgba(212,175,55,0.8) 0%,
rgba(184,150,15,0.7) 100%
);
z-index:2;
}

.hero-content{
position:relative;
z-index:3;
text-align:center;
max-width:900px;
padding:50px 40px;
background:rgba(255,255,255,0.98);
border-radius:30px;
box-shadow:
0 25px 80px rgba(0,0,0,0.3),
inset 0 1px 0 rgba(255,255,255,1);
border:3px solid var(--gold);
animation:fadeInUp 1s ease;
}

@keyframes fadeInUp{
from{ opacity:0; transform:translateY(40px); }
to{ opacity:1; transform:translateY(0); }
}

.bismillah-hero{
font-family:'Scheherazade New',serif;
font-size:32px;
color:var(--gold);
margin-bottom:30px;
text-shadow:0 2px 5px rgba(212,175,55,0.3);
}

.quran-verse{
padding:30px;
background:linear-gradient(135deg, var(--light-gold) 0%, var(--cream) 100%);
border-radius:20px;
margin:30px 0;
border:2px solid var(--gold);
border-left:5px solid var(--gold);
}

.verse-text{
font-family:'Scheherazade New',serif;
font-size:22px;
line-height:2;
color:var(--text-dark);
margin-bottom:15px;
}

.verse-reference{
font-size:18px;
color:var(--dark-gold);
font-weight:600;
}

.names-container{
margin:40px 0;
}

.groom-name, .bride-name{
font-family:'Amiri',serif;
font-size:70px;
color:var(--gold);
margin:15px 0;
text-shadow:0 3px 10px rgba(212,175,55,0.4);
}

.heart-symbol{
font-size:50px;
color:var(--gold);
animation:heartBeat 1.5s ease infinite;
}

@keyframes heartBeat{
0%, 100%{ transform:scale(1); }
10%, 30%{ transform:scale(1.15); }
20%, 40%{ transform:scale(1); }
}

.wedding-date{
font-size:24px;
margin-top:25px;
color:var(--text-dark);
font-weight:400;
}

.gold-ornament{
margin-top:30px;
color:var(--gold);
opacity:0.6;
}

/* SECTIONS */
section{
padding:100px 20px;
position:relative;
}

section h2{
text-align:center;
font-family:'Amiri',serif;
font-size:46px;
color:var(--gold);
margin-bottom:60px;
position:relative;
text-shadow:0 2px 5px rgba(212,175,55,0.2);
}

section h2::after{
content:'✦';
display:block;
margin-top:20px;
font-size:20px;
color:var(--gold);
}

/* COUPLE SECTION */
.couple-section{
background:linear-gradient(135deg, var(--cream) 0%, #FFFFFF 100%);
padding:80px 20px;
}

.section-header-gold{
text-align:center;
margin-bottom:50px;
}

.header-ornament{
font-size:32px;
color:var(--gold);
margin-bottom:15px;
}

.section-header-gold h2{
font-family:'Aref Ruqaa',serif;
font-size:42px;
color:var(--gold-dark);
margin-bottom:15px;
}

.header-line-gold{
width:100px;
height:3px;
background:linear-gradient(90deg, transparent, var(--gold), transparent);
margin:0 auto;
}

.couple-grid{
display:grid;
grid-template-columns:1fr auto 1fr;
gap:40px;
align-items:center;
max-width:900px;
margin:0 auto;
}

.couple-card{
background:white;
padding:40px 30px;
border-radius:25px;
text-align:center;
border:3px solid var(--gold);
box-shadow:0 15px 50px rgba(212,175,55,0.3);
transition:all 0.3s ease;
}

.couple-card:hover{
transform:translateY(-10px);
box-shadow:0 20px 60px rgba(212,175,55,0.5);
}

.couple-icon{
font-size:50px;
margin-bottom:15px;
}

.couple-card h3{
font-size:18px;
color:var(--text);
margin-bottom:10px;
}

.couple-card h2{
font-family:'Aref Ruqaa',serif;
font-size:42px;
color:var(--gold-dark);
margin:15px 0;
}

.family-label{
font-size:14px;
color:var(--text-light);
margin:15px 0 5px;
}

.family-name{
font-size:18px;
color:var(--text);
font-weight:600;
}

.couple-divider{
display:flex;
align-items:center;
justify-content:center;
}

.divider-heart{
width:80px;
height:80px;
background:linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:40px;
color:white;
box-shadow:0 10px 30px rgba(212,175,55,0.4);
animation:heartbeat 1.5s ease infinite;
}

@keyframes heartbeat{
0%,100%{transform:scale(1);}
10%,30%{transform:scale(1.1);}
20%,40%{transform:scale(1);}
}

/* DATETIME SECTION */
.datetime-section-gold{
background:white;
padding:80px 20px;
}

.datetime-grid-gold{
display:grid;
grid-template-columns:repeat(2, 1fr);
gap:30px;
max-width:700px;
margin:0 auto;
}

.datetime-card-gold{
background:linear-gradient(135deg, var(--cream) 0%, white 100%);
padding:40px 30px;
border-radius:20px;
text-align:center;
border:3px solid var(--gold);
box-shadow:0 10px 30px rgba(212,175,55,0.2);
transition:all 0.3s ease;
}

.datetime-card-gold:hover{
transform:translateY(-5px);
box-shadow:0 15px 40px rgba(212,175,55,0.4);
}

.datetime-icon{
font-size:50px;
margin-bottom:15px;
}

.datetime-card-gold h3{
font-size:20px;
color:var(--text);
margin-bottom:15px;
}

.datetime-value{
font-family:'Aref Ruqaa',serif;
font-size:32px;
color:var(--gold-dark);
font-weight:700;
}

/* DATE */
.date-section{
background:linear-gradient(135deg, var(--cream) 0%, #FFFFFF 100%);
text-align:center;
}

.date-card{
max-width:450px;
margin:auto;
padding:60px 50px;
background:linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
border-radius:30px;
box-shadow:
0 25px 70px rgba(212,175,55,0.5),
inset 0 1px 0 rgba(255,255,255,0.3);
position:relative;
border:3px solid var(--dark-gold);
}

.date-ornament-top{
font-size:24px;
color:white;
margin-bottom:20px;
opacity:0.8;
}

.date-card h1{
font-size:100px;
color:white;
font-weight:700;
text-shadow:0 5px 20px rgba(0,0,0,0.3);
font-family:'Amiri',serif;
}

.date-card h3{
font-size:34px;
color:white;
font-weight:400;
letter-spacing:2px;
margin-top:10px;
text-shadow:0 2px 10px rgba(0,0,0,0.2);
}

.date-card h2{
margin-top:15px;
color:white;
font-size:30px;
font-weight:400;
}

.date-card p{
margin-top:30px;
color:rgba(255,255,255,0.95);
font-size:18px;
}

.date-ornament-bottom{
margin-top:20px;
font-size:24px;
color:white;
opacity:0.8;
}

/* QURAN SECTION */
.quran-section{
background:linear-gradient(135deg, #FFFFFF 0%, var(--cream) 50%, #FFFFFF 100%);
padding:80px 20px;
}

.quran-card{
max-width:800px;
margin:auto;
padding:50px 40px;
background:linear-gradient(145deg, var(--light-gold) 0%, var(--cream) 100%);
border-radius:25px;
border:3px solid var(--gold);
box-shadow:0 15px 50px rgba(212,175,55,0.3);
text-align:center;
}

.quran-ornament{
font-size:28px;
color:var(--gold);
margin:20px 0;
}

.quran-text{
font-family:'Scheherazade New',serif;
font-size:32px;
line-height:2;
color:var(--text-dark);
margin:30px 0;
}

.quran-ref{
font-size:20px;
color:var(--dark-gold);
font-weight:600;
}

/* PROGRAM */
.program-section{
background:var(--cream);
}

.timeline{
max-width:700px;
margin:auto;
}

.event{
padding:30px 40px;
background:white;
margin-bottom:25px;
border-radius:15px;
border-right:5px solid var(--gold);
box-shadow:0 5px 20px rgba(212,175,55,0.2);
transition:all 0.3s ease;
}

.event:hover{
transform:translateX(-10px);
box-shadow:0 10px 30px rgba(212,175,55,0.3);
}

.event span{
color:var(--gold);
font-size:26px;
font-weight:700;
display:block;
margin-bottom:10px;
font-family:'Cairo',sans-serif;
}

.event p{
color:var(--text-dark);
font-size:18px;
}

/* VENUE */
.venue-section{
background:linear-gradient(135deg, #FFFFFF 0%, var(--cream) 100%);
text-align:center;
}

.venue-card{
max-width:900px;
margin:auto;
background:white;
border-radius:25px;
padding:40px;
box-shadow:0 15px 50px rgba(212,175,55,0.2);
border:2px solid var(--gold);
}

.hall-image{
width:100%;
border-radius:20px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
margin-bottom:30px;
}

.venue-details h3{
font-size:32px;
color:var(--gold);
margin:20px 0;
font-family:'Amiri',serif;
}

.venue-details p{
color:var(--text-dark);
font-size:18px;
margin:10px 0;
}

.address-text{
opacity:0.7;
}

.map-btn{
display:inline-flex;
align-items:center;
gap:10px;
margin-top:30px;
padding:16px 40px;
background:linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
color:white;
text-decoration:none;
font-weight:600;
border-radius:50px;
transition:all 0.3s ease;
box-shadow:0 5px 20px rgba(212,175,55,0.4);
}

.map-btn:hover{
transform:translateY(-2px);
box-shadow:0 8px 25px rgba(212,175,55,0.5);
}

.qr-section{
margin-top:50px;
padding-top:40px;
border-top:2px solid var(--gold);
}

.qr-section h3{
font-size:20px;
color:var(--text-dark);
margin-bottom:20px;
}

.qr{
width:180px;
padding:15px;
background:white;
border-radius:15px;
box-shadow:0 5px 20px rgba(212,175,55,0.2);
border:2px solid var(--gold);
}

/* COUNTDOWN */
.countdown-section{
background:linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
text-align:center;
}

.countdown-section h2{
color:white;
text-shadow:0 2px 10px rgba(0,0,0,0.3);
}

.countdown-section h2::after{
color:white;
}

.countdown{
display:flex;
justify-content:center;
gap:25px;
flex-wrap:wrap;
direction:ltr; /* Force left-to-right for countdown */
}

.box{
width:140px;
padding:30px 20px;
background:rgba(255,255,255,0.98);
border-radius:20px;
box-shadow:
0 10px 30px rgba(0,0,0,0.2),
inset 0 1px 0 rgba(255,255,255,1);
border:2px solid white;
transition:transform 0.3s ease;
}

.box:hover{
transform:translateY(-8px);
}

.box h1{
color:var(--gold);
font-size:50px;
font-weight:700;
margin-bottom:10px;
font-family:'Cairo',sans-serif;
}

.box p{
color:var(--text-dark);
font-size:16px;
font-weight:600;
}

/* GALLERY */
.gallery-section{
background:linear-gradient(135deg, var(--cream) 0%, #FFFFFF 100%);
text-align:center;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
gap:25px;
max-width:1100px;
margin:auto;
}

.gallery img{
width:100%;
height:350px;
object-fit:cover;
border-radius:20px;
box-shadow:0 10px 30px rgba(212,175,55,0.3);
border:3px solid var(--gold);
transition:all 0.4s ease;
cursor:pointer;
}

.gallery img:hover{
transform:translateY(-10px) scale(1.03);
box-shadow:0 20px 50px rgba(212,175,55,0.5);
}

/* DUA SECTION */
.dua-section{
background:var(--cream);
padding:80px 20px;
}

.dua-card{
max-width:700px;
margin:auto;
padding:50px 40px;
background:linear-gradient(145deg, #FFFFFF 0%, var(--light-gold) 100%);
border-radius:25px;
border:3px solid var(--gold);
box-shadow:0 15px 50px rgba(212,175,55,0.3);
text-align:center;
}

.dua-card h3{
font-family:'Amiri',serif;
font-size:32px;
color:var(--gold);
margin-bottom:30px;
}

.dua-text{
font-family:'Scheherazade New',serif;
font-size:26px;
line-height:2;
color:var(--text-dark);
}

/* FOOTER */
footer{
padding:80px 20px 40px;
text-align:center;
background:linear-gradient(135deg, var(--dark-gold) 0%, var(--gold) 100%);
position:relative;
color:white;
}

.footer-ornament-top{
margin-bottom:30px;
color:white;
opacity:0.6;
}

footer h2{
font-family:'Amiri',serif;
font-size:50px;
color:white;
margin-bottom:20px;
text-shadow:0 3px 10px rgba(0,0,0,0.3);
}

footer h2::after{
display:none;
}

footer p{
color:rgba(255,255,255,0.9);
font-size:18px;
margin:15px 0;
}

.footer-verse{
margin:40px 0;
padding:30px;
background:rgba(255,255,255,0.15);
border-radius:15px;
}

.footer-verse p{
font-family:'Scheherazade New',serif;
font-size:22px;
line-height:1.8;
}

.footer-credit{
margin-top:50px;
padding-top:30px;
border-top:1px solid rgba(255,255,255,0.3);
opacity:0.8;
}

.footer-credit p{
font-size:14px;
margin:5px 0;
}

.small-text{
font-size:12px;
opacity:0.7;
}

/* MUSIC BUTTON */
#musicBtn{
position:fixed;
bottom:30px;
left:30px;
width:65px;
height:65px;
border:none;
border-radius:50%;
background:linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
color:white;
font-size:22px;
cursor:pointer;
z-index:9999;
box-shadow:
0 8px 25px rgba(212,175,55,0.5),
inset 0 1px 0 rgba(255,255,255,0.3);
transition:all 0.3s ease;
border:2px solid var(--dark-gold);
}

#musicBtn:hover{
transform:scale(1.1);
box-shadow:0 12px 35px rgba(212,175,55,0.6);
}

#musicBtn:active{
transform:scale(0.95);
}

/* MOBILE */
@media(max-width:768px){

.envelope-card{
padding:40px 25px;
}

.hero-content{
padding:40px 25px;
}

.bismillah-hero{
font-size:24px;
}

.verse-text{
font-size:18px;
}

.groom-name, .bride-name{
font-size:50px;
}

section h2{
font-size:36px;
}

.date-card{
padding:40px 30px;
}

.date-card h1{
font-size:80px;
}

.quran-text{
font-size:24px;
}

.gallery img{
height:280px;
}

.box{
width:100px;
padding:25px 15px;
}

.box h1{
font-size:40px;
}

.couple-grid{
grid-template-columns:1fr;
gap:25px;
}

.couple-divider{
order:-1;
}

.couple-card h2{
font-size:36px;
}

.datetime-grid-gold{
grid-template-columns:1fr;
gap:20px;
}

.datetime-value{
font-size:28px;
}

}

@media(max-width:480px){

.bismillah{
font-size:24px;
}

.envelope-content h3{
font-size:28px;
}

.groom-name, .bride-name{
font-size:36px;
}

.heart-symbol{
font-size:35px;
}

section{
padding:60px 15px;
}

section h2{
font-size:28px;
}

.date-card h1{
font-size:70px;
}

.quran-text{
font-size:20px;
}

.dua-text{
font-size:20px;
}

}
