/* js/index.css - النسخة الاحترافية النهائية */

/* --- 1. أساسيات وتصفير --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow-x: hidden; background: #003223; font-family: 'Cairo', sans-serif; }

/* --- 2. القسم الأول: الترحيب (Hero Section) --- */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    z-index: -3; object-fit: cover;
}

.video-overlay-royal {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 50, 35, 0.7);
    z-index: -2;
}

.glow-text {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 900;
    color: #d4af37;
    background: linear-gradient(90deg, #d4af37, #f3e5ab, #d4af37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShine 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #f3e5ab;
    margin: 20px 0 35px;
}

.btn-news {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.4s;
}

.btn-news:hover { background: #d4af37; color: #003223; box-shadow: 0 0 20px #d4af37; }

/* --- 3. الفاصل الملكي المطور (تصغير الطول + توهج) --- */
.divider-royal {
    position: relative;
    height: 120px; /* طول مثالي ومضبوط */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(128, 0, 32, 0.65), rgba(128, 0, 32, 0.65)), 
                url('../photo video/photo/zelidj.jpg') center/cover no-repeat fixed;
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    overflow: hidden;
}

/* الخطوط الذهبية المضيئة */
.gold-line-glow {
    width: 25%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, #fff, #d4af37, transparent);
    box-shadow: 0 0 15px #d4af37, 0 0 30px rgba(212, 175, 55, 0.5);
    border-radius: 50%;
}

.bird-container { position: relative; margin: 0 40px; }

.bird-icon-glow {
    color: #d4af37;
    font-size: 2.2rem;
    filter: drop-shadow(0 0 15px #d4af37) brightness(1.2);
    animation: birdFloat 3s infinite ease-in-out;
}

/* النوطات الموسيقية */
.music-note {
    position: absolute;
    color: #f3e5ab;
    font-size: 1.2rem;
    opacity: 0;
    animation: noteRise 2s infinite ease-out;
}
.n1 { left: -20px; animation-delay: 0s; }
.n2 { right: -20px; animation-delay: 0.7s; }
.n3 { top: -30px; animation-delay: 1.4s; }

/* --- 4. القسم الثاني: مؤسس الجمعية (تنسيق سوبر احترافي) --- */
.founder-section {
    position: relative;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('../photo video/photo/zelidj.jpg') center/cover no-repeat fixed;
}

.royal-green-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 50, 35, 0.65); /* أخضر شفاف لرؤية الزليج */
    z-index: 1;
}

.content-container { position: relative; z-index: 2; width: 100%; max-width: 1000px; text-align: center; }

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.gold-shiny-text {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    color: #d4af37;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    font-weight: 800;
}

.gold-shiny { color: #d4af37; filter: drop-shadow(0 0 10px #d4af37); }

/* إطار الفيديو الاحترافي المرمم */
.video-container-premium {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    border: 6px solid #d4af37;
    border-radius: 25px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    aspect-ratio: 16/9;
}

.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* --- 5. المشغل (Controls & Loader) --- */
.play-center-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-size: 2rem;
    z-index: 10; cursor: pointer;
    transition: 0.3s;
}

.play-center-btn:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 25px #d4af37; }

.premium-loader {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #001a12;
    z-index: 15;
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
}

/* --- 6. Animations --- */
@keyframes goldShine { to { background-position: -200% center; } }

@keyframes birdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes noteRise {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-60px) rotate(20deg); opacity: 0; }
}

/* --- 7. التجاوب الكامل --- */
@media (max-width: 768px) {
    .divider-royal { height: 90px; }
    .gold-line-glow { width: 15%; }
    .video-frame { border-width: 4px; }
    .gold-shiny-text { font-size: 1.5rem; }
    .section-title-wrapper { gap: 10px; }
}