@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&family=Tajawal:wght@200;300;400;500;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --dark-green: #010805;
    --neon-green: #00FF66; /* Vibrant Neon Green */
    --neon-blue: #00CCFF; /* Neon Sky Blue */
    --neon-aqua: #00FFD1; /* Aqua/Teal */
    --grass-green: #00FF66; /* Updated to Neon Green for Admin */
    --white: #FFFFFF;
    --gold: #FFD700;
    --white-glow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.4);
    --neon-glow: 0 0 10px rgba(0, 255, 102, 0.8), 0 0 20px rgba(0, 255, 102, 0.4);
    --aqua-glow: 0 0 10px rgba(0, 255, 209, 0.8), 0 0 20px rgba(0, 255, 209, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(3, 17, 9, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-green);
    padding: 5px 0;
}

body {
    background-color: var(--dark-green);
    color: var(--white);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 280px; /* Further increased for more space */
    font-size: 0.95rem;
}

/* Responsive Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block !important;
        font-size: 2.2rem; /* Increased size */
        cursor: pointer;
        color: var(--neon-green);
        padding: 5px;
    }
    #nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(1, 8, 5, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 2px solid var(--neon-green);
        text-align: center;
        z-index: 1001;
    }
    #nav-menu.active {
        display: flex !important;
    }
    .grid-3 {
        grid-template-columns: 1fr !important;
    }
    header .header-stack {
        padding: 15px 0;
        gap: 10px;
    }
    .main-logo {
        height: 80px !important;
    }
    body {
        padding-top: 200px;
    }
    .container {
        padding: 0 15px;
    }
    .audio-card img {
        height: 140px !important;
    }
}

h1, h2, h3, .kufi {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.english {
    font-family: 'Playfair Display', serif;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-green);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Neon Text Effect */
.neon-text {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(var(--neon-glow));
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.white-shiny {
    color: var(--white) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.3);
}

i {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.neon-text i, .gold-text i {
    filter: none; /* Keep original glow for neon/gold containers */
}

/* Background Animations */
.bg-pulse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(102, 255, 153, 0.05) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* Glassmorphism Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.1);
}

/* Mini Player inside Card */
.mini-player {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(0, 255, 102, 0.1);
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-toggle-btn {
    background: var(--neon-green);
    color: var(--dark-green);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.play-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--neon-glow);
}

.mini-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.mini-progress-fill {
    height: 100%;
    background: var(--neon-green);
    width: 0%;
    border-radius: 2px;
    box-shadow: 0 0 5px var(--neon-green);
}

.card-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.card-actions i {
    cursor: pointer;
    transition: 0.3s;
}

.card-actions i:hover {
    color: var(--neon-green);
    opacity: 1;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-neon {
    background: var(--neon-green);
    color: var(--dark-green);
    box-shadow: var(--neon-glow);
}

.btn-neon:hover {
    background: var(--white);
    transform: scale(1.05);
}

.btn-admin {
    background: var(--grass-green);
    color: white;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.btn-admin:hover {
    background: #66BB6A;
    transform: scale(1.1);
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover, .ai-chat-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 102, 0.4);
}

.ai-chat-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--neon-green);
    color: var(--dark-green);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: var(--neon-glow);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-chat-float:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Entry Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Icon Colors */
.wa-nav {
    color: #25d366 !important;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.5));
}

.btn-admin-icon {
    color: var(--gold) !important;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.wa-nav:hover, .btn-admin-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px currentColor);
}

.card, section h2, .hero h1, .hero p {
    animation: fadeInUp 0.8s ease backwards;
}

section:nth-child(1) .card { animation-delay: 0.1s; }
section:nth-child(2) .card { animation-delay: 0.2s; }
section:nth-child(3) .card { animation-delay: 0.3s; }

/* Logo Animations & Centered Header */
header .header-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 30px 0;
}

.main-logo {
    height: 110px !important; /* Larger logo for central focus */
    filter: drop-shadow(var(--neon-glow));
    transition: all 0.5s ease;
    animation: logoWave 4s infinite ease-in-out, logoPulseGlow 2.5s infinite alternate;
}

@keyframes logoWave {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-12px) rotate(2deg) scale(1.02); }
    50% { transform: translateY(0) rotate(0deg) scale(1); }
    75% { transform: translateY(8px) rotate(-2deg) scale(0.98); }
}

@keyframes logoPulseGlow {
    from { 
        filter: drop-shadow(0 0 10px var(--neon-green)) drop-shadow(0 0 5px var(--neon-aqua));
    }
    to { 
        filter: drop-shadow(0 0 30px var(--neon-green)) drop-shadow(0 0 15px var(--neon-blue)) drop-shadow(0 0 10px var(--gold));
    }
}

.logo-area:hover .main-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 40px var(--neon-green));
}

@keyframes neonPulse {
    0% { border-top-color: var(--neon-green); box-shadow: 0 -2px 10px rgba(102, 255, 153, 0.2); }
    50% { border-top-color: var(--gold); box-shadow: 0 -2px 20px rgba(212, 175, 55, 0.4); }
    100% { border-top-color: var(--neon-green); box-shadow: 0 -2px 10px rgba(102, 255, 153, 0.2); }
}

.player-container {
    animation: neonPulse 4s infinite ease-in-out;
}
