/* =========================================
   1. المتغيرات والإعدادات الأساسية
   ========================================= */
:root {
    --bg-dark: #060b16;
    --bg-card: #0f172a;
    --bg-nav: rgba(6, 11, 22, 0.95);
    
    --primary-blue: #1e3a8a;
    --light-blue: #3b82f6;
    
    --accent-gold: #fbbf24;
    --accent-gold-light: #fcd34d;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold { color: var(--accent-gold); }
.section-padding { padding: 80px 0; }

/* =========================================
   2. زر تبديل الوضع
   ========================================= */
.theme-toggle {
    position: fixed;
    top: 100px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    color: var(--bg-dark);
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

body.light-mode {
    --bg-dark: #f0f4f8;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body.light-mode .navbar { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
body.light-mode .service-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
body.light-mode .hero-bg-effect {
    background: radial-gradient(circle, rgba(30, 58, 138, 0.15) 0%, rgba(240, 244, 248, 0) 70%);
}

/* =========================================
   3. شريط التنقل
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo span { color: var(--accent-gold); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-btn {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-dark);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--text-main); }

/* =========================================
   4. القسم الرئيسي (Hero)
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
}

.hero-bg-effect {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.3) 0%, rgba(6, 11, 22, 0) 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.rotating-services {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    z-index: 1;
    order: 2;
}

.badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-dark);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* =========================================
   5. الدائرة الدوارة
   ========================================= */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border: 2px dashed rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    animation: rotateRing 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    padding: 15px;
}

.center-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    margin: -55px 0 0 -55px;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: var(--text-main);
    padding: 8px;
    overflow: hidden;
}

.orbit-item img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
}

.orbit-item span {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    line-height: 1.2;
    pointer-events: none;
}

.orbit-item:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
    z-index: 20;
}

.orbit-item:hover span { color: var(--bg-dark); }

.orbit-item-1 {
    animation: orbit 15s linear infinite;
    animation-delay: 0s;
}

.orbit-item-2 {
    animation: orbit 15s linear infinite;
    animation-delay: -5s;
}

.orbit-item-3 {
    animation: orbit 15s linear infinite;
    animation-delay: -10s;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(170px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(170px) rotate(-360deg);
    }
}

/* =========================================
   6. قسم الخدمات (الكروت)
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-blue));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 65px;
    height: 65px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--accent-gold);
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--accent-gold);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.service-card:hover .read-more { gap: 15px; }

/* =========================================
   7. الإحصائيات
   ========================================= */
.stats {
    background: var(--bg-card);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 38px;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.stat-item h2 {
    font-size: 2.3rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* =========================================
   8. الفوتر
   ========================================= */
.footer {
    background: #020617;
    padding: 70px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .footer { background: #e2e8f0; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   9. التجاوب (Responsive)
   ========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.3rem; }
    
    .rotating-services {
        width: 360px;
        height: 360px;
    }
    
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(145px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(145px) rotate(-360deg); }
    }
    
    .orbit-ring {
        width: 270px;
        height: 270px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-btn { display: none; }
    .menu-toggle { display: block; }
    
    .hero { padding-top: 100px; }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .rotating-services {
        width: 320px;
        height: 320px;
        order: 1;
        margin-bottom: 30px;
    }
    
    .hero-content {
        order: 2;
        max-width: 100%;
    }
    
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(125px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(125px) rotate(-360deg); }
    }
    
    .orbit-ring {
        width: 240px;
        height: 240px;
    }
    
    .orbit-item {
        width: 95px;
        height: 95px;
        margin: -47px 0 0 -47px;
    }
    
    .orbit-item img {
        width: 45px;
        height: 45px;
    }
    
    .orbit-item span { font-size: 0.7rem; }
    
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { justify-content: center; }
    
    .section-title { font-size: 1.8rem; }
    
    .theme-toggle {
        top: 90px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .rotating-services {
        width: 290px;
        height: 290px;
    }
    
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(110px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
    }
    
    .orbit-ring {
        width: 215px;
        height: 215px;
    }
    
    .orbit-item {
        width: 85px;
        height: 85px;
        margin: -42px 0 0 -42px;
    }
    
    .orbit-item img {
        width: 40px;
        height: 40px;
    }
    
    .orbit-center {
        width: 110px;
        height: 110px;
    }
    
    .hero h1 { font-size: 1.6rem; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
}

/* =========================================
   10. الصفحات الداخلية - Header
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    padding: 140px 0 80px;
    text-align: center;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

body.light-mode .page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 900;
}

.page-header-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-header-content .btn-outline {
    font-family: var(--font-main);
}

/* =========================================
   11. Grid المشاريع - 3 أعمدة
   ========================================= */
.projects-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.project-card-compact {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card-compact:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

body.light-mode .project-card-compact {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.project-img-compact {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

body.light-mode .project-img-compact {
    background: #f1f5f9;
}

.project-img-compact img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-card-compact:hover .project-img-compact img {
    transform: scale(1.05);
}

.project-content-compact {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content-compact h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
    font-weight: 700;
}

.project-content-compact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.5;
    flex: 1;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-dark);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    width: 100%;
    font-family: var(--font-main);
}

.btn-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(251, 191, 36, 0.4);
}

/* =========================================
   12. قسم CTA
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    color: var(--bg-dark);
    margin-bottom: 15px;
    font-weight: 900;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--bg-dark);
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: var(--bg-dark);
    color: var(--accent-gold);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.cta-content .btn-primary:hover {
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================
   13. Responsive للصفحات الداخلية
   ========================================= */
@media (max-width: 992px) {
    .projects-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .page-header-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .projects-grid-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-header-content h1 {
        font-size: 1.8rem;
    }
    
    .page-header-content p {
        font-size: 1rem;
    }
    
    .project-img-compact {
        height: 200px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* =========================================
   14. صفحة من نحن - Story Section
   ========================================= */
.about-story {
    padding: 80px 0;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.story-content .section-title {
    margin-bottom: 40px;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.story-text strong {
    color: var(--accent-gold);
}

/* =========================================
   15. صفحة من نحن - Vision & Mission
   ========================================= */
.vision-mission {
    padding: 80px 0;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.vm-card {
    background: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

body.light-mode .vm-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.vm-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 35px;
    color: var(--bg-dark);
}

.vm-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.vm-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* =========================================
   16. صفحة من نحن - Founders (تصميم مبسط)
   ========================================= */
.founders-section {
    padding: 80px 0;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.founder-card {
    text-align: center;
    transition: var(--transition);
}

.founder-card:hover {
    transform: translateY(-8px);
}

.founder-image {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
    transition: var(--transition);
}

.founder-card:hover .founder-image {
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
    transform: scale(1.02);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.4s ease;
}

.founder-card:hover .founder-image img {
    transform: scale(1.08);
}

.founder-info {
    padding: 10px;
}

.founder-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.founder-role {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* =========================================
   17. صفحة من نحن - Why Choose Us
   ========================================= */
.why-us {
    padding: 80px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-item {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

body.light-mode .why-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.why-item:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--accent-gold);
    transition: var(--transition);
}

.why-item:hover .why-icon {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: rotateY(360deg);
}

.why-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.why-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   18. Responsive لصفحة من نحن
   ========================================= */
@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .founder-image {
        width: 240px;
        height: 240px;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
    }
    
    .story-text p {
        font-size: 1rem;
    }
    
    .story-content .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .founder-image {
        width: 200px;
        height: 200px;
    }
    
    .founder-info h3 {
        font-size: 1.3rem;
    }
    
    .founder-role {
        font-size: 0.95rem;
    }
    
    .vm-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
    
    .vm-card {
        padding: 30px 20px;
    }
}
/* =========================================
   19. Official Documents Section
   ========================================= */
.official-docs {
    padding: 80px 0;
    background: var(--bg-dark);
}

body.light-mode .official-docs {
    background: #f0f4f8;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.doc-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(251, 191, 36, 0.2);
    transition: var(--transition);
}

body.light-mode .doc-card {
    background: #ffffff;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.doc-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3);
}

.doc-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: var(--bg-dark);
}

.doc-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.doc-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    padding: 10px 20px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    border: 1px dashed rgba(251, 191, 36, 0.5);
    display: inline-block;
}

/* =========================================
   20. Social Links in Footer
   ========================================= */
.social-links {
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #1877f2, #42b72a);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-link i {
    font-size: 1.3rem;
}

/* =========================================
   21. Responsive للبيانات الرسمية
   ========================================= */
@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .doc-number {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .doc-card {
        padding: 30px 20px;
    }
    
    .doc-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .doc-number {
        font-size: 1.3rem;
        padding: 8px 15px;
    }
}
/* =========================================
   Social Floating Buttons (WhatsApp + Facebook)
   ========================================= */
.social-float-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 998;
}

.social-float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

/* الواتساب - لون أخضر */
.social-float-btn.whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    animation: float-social 3s ease-in-out infinite;
}

.social-float-btn.whatsapp:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation-play-state: paused;
}

/* الفيسبوك - لون أزرق */
.social-float-btn.facebook {
    background: linear-gradient(45deg, #1877f2, #0d5cb6);
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.4);
    animation: float-social 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.social-float-btn.facebook:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.6);
    animation-play-state: paused;
}

@keyframes float-social {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Tooltip عند الوقوف على الزر */
.social-float-btn::after {
    content: attr(title);
    position: absolute;
    right: 70px;
    background: var(--bg-card);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    font-family: var(--font-main);
}

.social-float-btn:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Responsive */
@media (max-width: 768px) {
    .social-float-buttons {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }
    
    .social-float-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .social-float-btn::after {
        display: none; /* إخفاء الـ tooltip في الموبايل */
    }
}

@media (max-width: 480px) {
    .social-float-buttons {
        bottom: 15px;
        left: 15px;
    }
    
    .social-float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
/* =========================================
   Mobile Menu (Active State)
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-nav);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* تأثير متتابع للـ links */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-links a {
        font-size: 1.3rem;
        color: var(--text-main);
    }
    
    .nav-links a.active {
        color: var(--accent-gold);
    }
    
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-main);
        transition: transform 0.3s ease;
    }
    
    .menu-toggle:hover {
        transform: scale(1.1);
    }
    
    .menu-toggle i {
        transition: transform 0.3s ease;
    }
}
/* =========================================
   Contact Page Styles
   ========================================= */

/* Quick Contact Methods */
.quick-contact {
    padding: 80px 0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-method-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 2px solid transparent;
    transition: var(--transition);
    display: block;
}

body.light-mode .contact-method-card {
    background: #ffffff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.contact-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.contact-method-card.whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
}

.contact-method-card.phone:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3);
}

.contact-method-card.email:hover {
    border-color: #ea4335;
    box-shadow: 0 15px 35px rgba(234, 67, 53, 0.3);
}

.contact-method-card.facebook:hover {
    border-color: #1877f2;
    box-shadow: 0 15px 35px rgba(24, 119, 242, 0.3);
}

.contact-method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    color: white;
    transition: var(--transition);
}

.contact-method-card.whatsapp .contact-method-icon {
    background: linear-gradient(45deg, #25D366, #128C7E);
}

.contact-method-card.phone .contact-method-icon {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-dark);
}

.contact-method-card.email .contact-method-icon {
    background: linear-gradient(45deg, #ea4335, #fbbc04);
}

.contact-method-card.facebook .contact-method-icon {
    background: linear-gradient(45deg, #1877f2, #0d5cb6);
}

.contact-method-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-method-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.contact-method-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    direction: ltr;
}

/* Request Quote Buttons */
.request-quote {
    padding: 80px 0;
}

.quote-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quote-btn {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-dark);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quote-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4);
}

.quote-btn i {
    font-size: 3rem;
}

/* Contact Form */
.contact-form-section {
    padding: 80px 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .form-container {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .quote-buttons {
        grid-template-columns: 1fr;
    }
    
    .quote-btn {
        padding: 25px 20px;
        font-size: 1.1rem;
    }
    
    .quote-btn i {
        font-size: 2.5rem;
    }
}
/* =========================================
   22. صفحة الفروع (Branches Page)
   ========================================= */
.branches-section {
    padding: 80px 0;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.branch-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 30px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

body.light-mode .branch-card {
    background: #ffffff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-blue));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.branch-card:hover::before {
    transform: scaleX(1);
}

/* Badge للمقر الرئيسي */
.branch-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-dark);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

.branch-badge i {
    font-size: 0.9rem;
}

.branch-icon {
    width: 90px;
    height: 90px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: var(--accent-gold);
    transition: var(--transition);
    border: 2px dashed rgba(251, 191, 36, 0.3);
}

.branch-card:hover .branch-icon {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: rotateY(360deg);
    border-style: solid;
}

.branch-info h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-main);
    font-weight: 700;
}

.branch-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.branch-detail-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.branch-detail-item > i {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.branch-detail-item strong {
    display: block;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.branch-detail-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.branch-detail-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.branch-detail-item a:hover {
    color: var(--accent-gold);
}

.branch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .branch-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.branch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.branch-btn.whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
}

.branch-btn.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.branch-btn.maps {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-dark);
}

.branch-btn.maps:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* =========================================
   23. Coverage Section
   ========================================= */
.coverage-section {
    padding: 80px 0;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.coverage-item {
    background: var(--bg-dark);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

body.light-mode .coverage-item {
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.coverage-item:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
}

.coverage-icon {
    width: 65px;
    height: 65px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 26px;
    color: var(--accent-gold);
    transition: var(--transition);
}

.coverage-item:hover .coverage-icon {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.coverage-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.coverage-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================================
   24. Responsive لصفحة الفروع
   ========================================= */
@media (max-width: 768px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-card {
        padding: 35px 25px 25px;
    }
    
    .branch-icon {
        width: 80px;
        height: 80px;
        font-size: 35px;
    }
    
    .branch-info h3 {
        font-size: 1.3rem;
    }
    
    .branch-actions {
        grid-template-columns: 1fr;
    }
    
    .coverage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}