/**
 * Impact Makers Website - Main Stylesheet
 * صنّاع الأثر - الموقع التعريفي
 */

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --im-primary: #0F3D36;
    --im-primary-dark: #0A2A24;
    --im-primary-light: #1A5C4A;
    --im-primary-lighter: #2A7A5E;
    --im-gold: #C79A43;
    --im-gold-dark: #B0883A;
    --im-gold-light: #D4AA5A;
    --im-gold-transparent: rgba(199,154,67,0.15);
    --im-ivory: #FAF8F5;
    --im-charcoal: #1A1A2E;
    --im-charcoal-light: #2D2D44;
    --im-muted: #6B7280;
    --im-border: #E5E7EB;
    --im-border-light: #F3F4F6;
    --im-surface-white: #FFFFFF;
    --im-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --im-shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --im-shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --im-radius-sm: 8px;
    --im-radius-md: 16px;
    --im-radius-lg: 24px;
    --im-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --im-font-arabic: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--im-font-arabic);
    color: var(--im-charcoal);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--im-primary); text-decoration: none; transition: var(--im-transition); }
a:hover { color: var(--im-gold); }
img { max-width: 100%; height: auto; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.3; color: var(--im-charcoal); }
h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.1rem; }
p { color: var(--im-charcoal-light); line-height: 1.8; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--im-transition);
    border: none;
    cursor: pointer;
    line-height: 1;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--im-gold); color: var(--im-primary); }
.btn-primary:hover { background: var(--im-gold-light); box-shadow: 0 8px 30px rgba(199,154,67,0.4); }
.btn-secondary { background: var(--im-primary); color: #fff; }
.btn-secondary:hover { background: var(--im-primary-light); box-shadow: 0 8px 30px rgba(15,61,54,0.4); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--im-gold); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15,61,54,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

/* ===== Logo ===== */
.site-header .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* تكبير اللوجو */
.site-header .logo .logo-img {
    height: 65px;  /* تكبير اللوجو */
    width: auto;
    display: block;
    transition: var(--im-transition);
}

/* ===== Navigation ===== */
.site-header .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header .main-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.site-header .main-nav ul li a {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--im-transition);
    padding: 4px 0;
    position: relative;
    white-space: nowrap;
}

.site-header .main-nav ul li a:hover {
    color: #fff;
}

.site-header .main-nav ul li a.active {
    color: #fff;
}

.site-header .main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--im-gold);
    border-radius: 2px;
}

/* ===== Header Actions ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-login {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    padding: 6px 14px;
    transition: var(--im-transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-login:hover {
    color: #fff;
}

.btn-login.portal-btn {
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 6px 18px;
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-login.portal-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #C79A43;
    color: #fff;
}

.btn-register {
    background: var(--im-gold);
    color: var(--im-primary);
    font-weight: 700;
    padding: 6px 22px;
    border-radius: 50px;
    transition: var(--im-transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-register:hover {
    background: var(--im-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(199,154,67,0.35);
    color: var(--im-primary);
}

/* ===== Mobile Toggle ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: var(--im-transition);
    flex-shrink: 0;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: var(--im-transition);
}

.mobile-toggle:hover span {
    background: var(--im-gold);
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
@media (max-width: 1200px) {
    .site-header .main-nav ul {
        gap: 16px;
    }
    
    .site-header .main-nav ul li a {
        font-size: 0.85rem;
    }
    
    .site-header .logo .logo-img {
        height: 55px;
    }
}

@media (max-width: 1024px) {
    .site-header .main-nav ul {
        gap: 12px;
    }
    
    .site-header .main-nav ul li a {
        font-size: 0.8rem;
    }
    
    .site-header .logo .logo-img {
        height: 48px;
    }
    
    .btn-login.portal-btn {
        padding: 4px 14px;
        font-size: 0.8rem;
    }
    
    .btn-register {
        padding: 4px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }
    
    .site-header .logo .logo-img {
        height: 45px;
    }
    
    .site-header .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15,61,54,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px 24px;
        border-top: 1px solid rgba(255,255,255,0.06);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: var(--im-transition);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        flex: none;
        justify-content: flex-start;
    }
    
    .site-header .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .site-header .main-nav ul {
        flex-direction: column;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .site-header .main-nav ul li a {
        font-size: 1rem;
        padding: 8px 0;
        display: block;
        white-space: normal;
    }
    
    .site-header .main-nav ul li a.active::after {
        bottom: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-actions .btn-login {
        display: none;
    }
    
    .header-actions .btn-register {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .site-header .logo .logo-img {
        height: 38px;
    }
    
    .site-header .container {
        gap: 10px;
    }
    
    .header-actions .btn-register {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    
    .header-actions {
        gap: 6px;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F3D36 0%, #1A5C4A 50%, #2A7A5E 100%);
    overflow: hidden;
    padding: 100px 0 80px;
}
.hero .pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content .tagline {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin-bottom: 8px;
}
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-content h1 .highlight { color: #C79A43; position: relative; }
.hero-content .subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-content .cta-group { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stats .stat .number { font-size: 2rem; font-weight: 800; color: #C79A43; }
.hero-stats .stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.hero-video .video-placeholder {
    aspect-ratio: 16/9;
    background: #1A2A24;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.6);
}
.hero-video .play-icon {
    font-size: 4rem;
    color: #C79A43;
    opacity: 0.8;
    margin-bottom: 12px;
}

@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .hero { padding: 80px 0 60px; min-height: auto; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-video .play-icon { font-size: 3rem; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section-dark { background: #0F3D36; color: #fff; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }
.section-light { background: #FAF8F5; }
.section-white { background: #fff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header .badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(199,154,67,0.15);
    color: #C79A43;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.section-header h2 { font-size: 2.4rem; font-weight: 800; color: #0F3D36; margin-bottom: 12px; }
.section-header p { color: rgba(15,61,54,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: var(--im-transition);
    border: 1px solid rgba(15,61,54,0.06);
    box-shadow: var(--im-shadow-sm);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--im-shadow-md);
    border-color: #C79A43;
}
.feature-card .icon { font-size: 2.8rem; display: block; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: #0F3D36; margin-bottom: 8px; }
.feature-card p { color: rgba(15,61,54,0.7); font-size: 0.95rem; line-height: 1.6; }

/* ============================================================
   WORKSHOPS
   ============================================================ */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.workshop-card {
    background: #FAF8F5;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border-right: 3px solid #C79A43;
    transition: var(--im-transition);
}
.workshop-card:hover { transform: translateY(-4px); box-shadow: var(--im-shadow-sm); }
.workshop-card .icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.workshop-card h3 { font-size: 1rem; font-weight: 700; color: #0F3D36; margin-bottom: 4px; }
.workshop-card p { font-size: 0.85rem; color: rgba(15,61,54,0.6); line-height: 1.6; }

/* ============================================================
   PHASE GRID
   ============================================================ */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.phase-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border-right: 4px solid #C79A43;
    box-shadow: var(--im-shadow-sm);
    transition: var(--im-transition);
}
.phase-card:hover { transform: translateY(-4px); box-shadow: var(--im-shadow-md); }
.phase-card .phase-number { font-size: 0.8rem; color: #C79A43; font-weight: 700; text-transform: uppercase; }
.phase-card h4 { font-size: 1.1rem; font-weight: 700; color: #0F3D36; margin: 8px 0 4px; }
.phase-card p { color: rgba(15,61,54,0.6); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats-banner-section { padding: 40px 0; }
.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}
.stats-banner .stat .number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #C79A43;
}
.stats-banner .stat .label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: var(--im-shadow-sm);
    border: 1px solid rgba(15,61,54,0.06);
}
.testimonial-card .quote {
    color: rgba(15,61,54,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #C79A43;
    color: #0F3D36;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-card .author .name { font-weight: 600; color: #0F3D36; font-size: 0.95rem; }
.testimonial-card .author .role { font-size: 0.8rem; color: rgba(15,61,54,0.5); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 60px 0; background: #FAF8F5; }
.cta-box {
    background: linear-gradient(135deg, #0F3D36, #1A5C4A);
    border-radius: 16px;
    padding: 60px 48px;
    text-align: center;
    color: #fff;
}
.cta-box h2 { color: #fff; font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 500px; margin: 0 auto 32px; }
.cta-box .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 1.6rem; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 1.8rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0A2A24;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 24px;
}
.site-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
.site-footer .brand .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.site-footer .brand .logo-text span { color: var(--im-gold); }
.site-footer .brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    max-width: 320px;
}
.site-footer h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: var(--im-transition);
}
.site-footer ul li a:hover { color: var(--im-gold); }
.site-footer .bottom {
    grid-column: 1 / -1;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 992px) {
    .site-footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer .brand p { max-width: 100%; }
}
@media (max-width: 576px) {
    .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
    .site-footer { padding: 40px 0 20px; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--im-gold); }
.text-muted { color: var(--im-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--im-border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--im-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--im-gold-dark); }



/* ============================================================
   LOGO STYLES
   ============================================================ */
.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.site-header .logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-footer .logo-text img {
    filter: brightness(0) invert(1);
}

/* ============================================================
   RESPONSIVE - LOGO
   ============================================================ */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
    
    .site-footer .logo-text img {
        height: 35px;
    }
}


/* ============================================================
   HEADER ACTIONS - تحديث
   ============================================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    padding: 8px 16px;
    transition: var(--im-transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    color: #fff;
}

.btn-login.portal-btn {
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-login.portal-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #C79A43;
    color: #fff;
}

.btn-register {
    background: var(--im-gold);
    color: var(--im-primary);
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 50px;
    transition: var(--im-transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-register:hover {
    background: var(--im-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(199,154,67,0.35);
    color: var(--im-primary);
}

/* ============================================================
   MOBILE HEADER
   ============================================================ */
@media (max-width: 992px) {
    .header-actions .btn-login {
        display: none;
    }
    
    .header-actions .btn-register {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-actions .btn-register {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}


/**
 * Impact Makers Website - Main Stylesheet
 * صنّاع الأثر - الموقع التعريفي
 */

/* ============================================================
   FONTS - الخطوط المحلية
   ============================================================ */

/* ===== Almarai ===== */
@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ===== Droid Kufi ===== */
@font-face {
    font-family: 'Droid Kufi';
    src: url('../fonts/DroidKufi-Regular.eot') format('embedded-opentype'),
         url('../fonts/DroidKufi-Regular.woff2') format('woff2'),
         url('../fonts/DroidKufi-Regular.woff') format('woff'),
         url('../fonts/DroidKufi-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== Droid Naskh ===== */
@font-face {
    font-family: 'Droid Naskh';
    src: url('../fonts/DroidNaskh-Regular.eot') format('embedded-opentype'),
         url('../fonts/DroidNaskh-Regular.woff2') format('woff2'),
         url('../fonts/DroidNaskh-Regular.woff') format('woff'),
         url('../fonts/DroidNaskh-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    /* ===== الألوان الأساسية ===== */
    --im-primary: #0F3D36;
    --im-primary-dark: #0A2A24;
    --im-primary-light: #1A5C4A;
    --im-primary-lighter: #2A7A5E;
    
    /* ===== الذهبي ===== */
    --im-gold: #C79A43;
    --im-gold-dark: #B0883A;
    --im-gold-light: #D4AA5A;
    --im-gold-transparent: rgba(199,154,67,0.15);
    --im-gold-transparent-light: rgba(199,154,67,0.06);
    
    /* ===== الألوان المحايدة ===== */
    --im-ivory: #FAF8F5;
    --im-charcoal: #1A1A2E;
    --im-charcoal-light: #2D2D44;
    --im-muted: #6B7280;
    --im-muted-light: #9CA3AF;
    --im-border: #E5E7EB;
    --im-border-light: #F3F4F6;
    --im-surface-white: #FFFFFF;
    
    /* ===== الظلال ===== */
    --im-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --im-shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --im-shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --im-shadow-xl: 0 30px 80px rgba(0,0,0,0.16);
    
    /* ===== الحواف ===== */
    --im-radius-sm: 8px;
    --im-radius-md: 16px;
    --im-radius-lg: 24px;
    --im-radius-xl: 32px;
    
    /* ===== الانتقالات ===== */
    --im-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --im-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ===== الخطوط ===== */
    --im-font-arabic: 'Almarai', 'Droid Kufi', 'Droid Naskh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --im-font-arabic-alt: 'Droid Naskh', 'Almarai', 'Droid Kufi', 'Times New Roman', serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--im-font-arabic);
    color: var(--im-charcoal);
    background: var(--im-surface-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--im-font-arabic);
    font-weight: 800;
    line-height: 1.3;
    color: var(--im-charcoal);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    font-family: var(--im-font-arabic);
    color: var(--im-charcoal-light);
    line-height: 1.8;
}

a {
    color: var(--im-primary);
    text-decoration: none;
    transition: var(--im-transition);
}

a:hover {
    color: var(--im-gold);
}



/* ============================================================
   HERO VIDEO - مشغل الفيديو
   ============================================================ */
.hero-video {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    background: #1A2A24;
    aspect-ratio: 16/9;
    width: 100%;
}

.hero-video .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0A1A14;
}

/* ===== زر التشغيل المركزي ===== */
.hero-video .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(199,154,67,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0F3D36;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(199,154,67,0.3);
}

.hero-video .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #C79A43;
    box-shadow: 0 12px 48px rgba(199,154,67,0.5);
}

.hero-video .play-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

/* ===== نص الفيديو (يختفي عند التشغيل) ===== */
.hero-video .video-overlay-text {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    background: rgba(0,0,0,0.4);
    padding: 6px 20px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
    white-space: nowrap;
    transition: all 0.5s ease;
    pointer-events: none;
}

/* إخفاء النص عند التشغيل */
.hero-video .video-overlay-text.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

/* ===== أزرار التحكم ===== */
.hero-video .video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 20px 20px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.hero-video:hover .video-controls,
.hero-video .video-controls.show {
    opacity: 1;
}

.hero-video .control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.hero-video .control-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #C79A43;
}

.hero-video .progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.hero-video .progress-bar:hover {
    height: 6px;
}

.hero-video .progress-bar .progress-fill {
    height: 100%;
    background: #C79A43;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.hero-video .time-display {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    font-family: monospace;
    min-width: 90px;
    text-align: center;
    direction: ltr;
}

/* ============================================================
   RESPONSIVE - VIDEO
   ============================================================ */
@media (max-width: 768px) {
    .hero-video .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .hero-video .video-overlay-text {
        bottom: 55px;
        font-size: 0.7rem;
        padding: 4px 14px;
    }
    
    .hero-video .video-controls {
        padding: 12px 12px 8px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .hero-video .control-btn {
        font-size: 1rem;
        min-width: 28px;
    }
    
    .hero-video .time-display {
        font-size: 0.65rem;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .hero-video .play-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .hero-video .video-overlay-text {
        bottom: 45px;
        font-size: 0.6rem;
        padding: 3px 10px;
    }
    
    .hero-video .video-controls {
        padding: 8px 8px 6px;
        gap: 6px;
    }
    
    .hero-video .control-btn {
        font-size: 0.85rem;
        min-width: 24px;
        padding: 2px 4px;
    }
    
    .hero-video .time-display {
        font-size: 0.55rem;
        min-width: 60px;
    }
}



/* القائمة الرئيسية */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative; /* مهم للقائمة المنسدلة */
}

/* القائمة الفرعية */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* لأن العربية من اليمين لليسار */
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
}

/* إظهار القائمة عند المرور بالماوس */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* تنسيق عناصر القائمة الفرعية */
.dropdown-menu li {
    display: block;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #f0f0f0;
}

/* العنصر النشط */
.dropdown-menu li a.active {
    background: #007bff;
    color: white;
}

/* سهم للقائمة المنسدلة */
.dropdown-toggle::after {
    content: " ▼";
    font-size: 10px;
}