:root {
    --gold: #c5a059;
    --bg: #05070a;
    --card-bg: rgba(255,255,255,0.03);
    --text: white;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-bg: rgba(5, 7, 10, 0.98);
}

/* تنسيقات الوضع الفاتح */
body.light-mode {
    --bg: #f4f7f6;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --nav-bg: rgba(255, 255, 255, 0.98);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }

body { 
    background: var(--bg); 
    color: var(--text); 
    overflow-x: hidden; 
    line-height: 1.6;
    transition: var(--transition);
}

/* Navbar */
nav {
    position: fixed; top: 0; width: 100%; padding: 12px 6%;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--nav-bg); z-index: 1000; border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: var(--transition);
}
.logo { font-family: 'Amiri', serif; font-size: 1.8rem; color: var(--gold); text-decoration: none; font-weight: 900; }

.nav-left { display: flex; align-items: center; gap: 10px; }
.dev-badge { border: 1px solid var(--gold); padding: 4px 12px; border-radius: 50px; font-size: 0.7rem; color: var(--gold); font-weight: bold; }

.mode-toggle {
    background: var(--gold); color: #000; border: none; padding: 8px 12px;
    border-radius: 8px; cursor: pointer; transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 45vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.1) 0%, transparent 100%);
    text-align: center; border-bottom: 2px solid var(--gold); padding-top: 60px;
}
.hero h1 { 
    font-family: 'Amiri', serif; font-size: clamp(3.5rem, 12vw, 6rem); 
    color: var(--gold); text-shadow: 0 0 20px rgba(197,160,89,0.3);
    animation: fadeInDown 0.8s ease;
}
.hero p { opacity: 0.8; font-weight: 300; letter-spacing: 2px; animation: fadeIn 1.2s ease; }

/* Audio Bar */
.audio-bar {
    background: var(--card-bg); max-width: 800px; margin: -30px auto 30px;
    padding: 20px; border-radius: 15px; border: 1px solid var(--gold);
    display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative; z-index: 10;
}
select { background: #000; color: white; border: 1px solid var(--gold); padding: 8px; border-radius: 8px; }
.play-btn { background: var(--gold); color: #000; font-weight: bold; padding: 8px 20px; border-radius: 8px; cursor: pointer; border: none; }

/* Grid & Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 20px 8% 60px; }
.card {
    background: var(--card-bg); padding: 35px; border-radius: 20px;
    text-align: center; border: 1px solid rgba(197, 160, 89, 0.1); 
    transition: var(--transition); cursor: pointer;
    animation: fadeInUp 0.6s ease backwards;
}
.card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 15px 30px rgba(197, 160, 89, 0.1); }
.card i { font-size: 2.8rem; color: var(--gold); margin-bottom: 15px; display: block; }

/* Animations */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 3000; display: none; flex-direction: column; }
.overlay-header { padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; background: #0a0e14; border-bottom: 1px solid var(--gold); }
.nav-controls { display: flex; gap: 10px; }
.nav-btn { background: rgba(197,160,89,0.1); color: var(--gold); border: 1px solid var(--gold); padding: 6px 15px; cursor: pointer; border-radius: 5px; }
.close-btn { font-size: 2.5rem; color: var(--gold); cursor: pointer; line-height: 1; }
iframe { width: 100%; height: 100%; border: none; background: white; }

.tasbeeh {
    position: fixed; bottom: 25px; left: 25px; width: 75px; height: 75px;
    background: var(--gold); border-radius: 50%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #000; cursor: pointer; 
    z-index: 2000; font-weight: 900; box-shadow: 0 5px 20px rgba(197,160,89,0.4);
    transition: transform 0.1s;
}
.tasbeeh:active { transform: scale(0.9); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

footer { text-align: center; padding: 50px; border-top: 1px solid rgba(197, 160, 89, 0.1); }
.owner-text { font-size: 1.2rem; font-weight: 900; color: var(--gold); letter-spacing: 1px; }