/* ================================================================
   EezeeClick Website - Final Optimized CSS
   شركة ايزي كليك - ملف CSS نهائي محسن وخالي من الأخطاء
   ================================================================ */

/* ================================================================
   1. CSS VARIABLES & ROOT CONFIGURATION
   ================================================================ */
:root {
    /* Primary Colors - الألوان الأساسية */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    /* Secondary Colors - الألوان الثانوية */
    --secondary-50: #f0f9ff;
    --secondary-100: #e0f2fe;
    --secondary-200: #bae6fd;
    --secondary-300: #7dd3fc;
    --secondary-400: #38bdf8;
    --secondary-500: #0ea5e9;
    --secondary-600: #0284c7;
    --secondary-700: #0369a1;
    --secondary-800: #075985;
    --secondary-900: #0c4a6e;
    
    /* Accent Colors - ألوان التمييز */
    --accent-500: #f97316;
    --accent-600: #ea580c;
    
    /* Neutral Colors - الألوان المحايدة */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Semantic Colors - الألوان الدلالية */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Gradients - التدرجات */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-500) 0%, var(--primary-600) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(14, 165, 233, 0.9) 100%);
    
    /* Shadows - الظلال */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography - الخطوط */
    --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing - المسافات */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Borders & Radius - الحدود والانحناءات */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-full: 9999px;
    
    /* Transitions - التحولات */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ================================================================
   2. BASE STYLES & RESET
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--neutral-900);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* ================================================================
   3. HEADER & NAVIGATION
   ================================================================ */
.header {
    background: var(--gradient-hero), url('../images/banner-nologo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.navbar {
    position: relative;
    z-index: 10;
    padding: var(--space-4) 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-2xl);
    padding: var(--space-3) var(--space-6);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    gap: var(--space-8);
}

.nav-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.logo {
    height: 50px;
    width: auto;
    transition: var(--transition-base);
    order: -1;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-base);
    z-index: -1;
    border-radius: var(--border-radius-lg);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-link-cta {
    background: var(--gradient-primary) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.nav-link-cta::before {
    display: none;
}

.nav-link-cta:hover {
    background: var(--gradient-secondary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
    display: none;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-3);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    order: 1;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ================================================================
   4. HERO SECTION
   ================================================================ */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    padding: var(--space-8) 0;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-slogan {
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--secondary-200);
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   5. SECTIONS & LAYOUT
   ================================================================ */
.section {
    padding: var(--space-20) 0;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--neutral-900);
}

.section-subtitle {
    font-size: var(--text-lg);
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--neutral-600);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================
   6. SERVICES SECTION
   ================================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.service-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--neutral-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: var(--text-3xl);
    color: white;
}

.service-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--neutral-900);
}

.service-card p {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ================================================================
   7. PROJECTS SECTION
   ================================================================ */
.projects {
    background: var(--neutral-50);
}

.project-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--neutral-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    background: var(--neutral-50);
    padding: var(--space-4);
    border-bottom: 1px solid var(--neutral-200);
}

.project-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--neutral-900);
    text-align: center;
}

.project-description {
    color: var(--neutral-600);
    line-height: 1.6;
    text-align: center;
    flex: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
    margin-top: var(--space-4);
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
}

.project-link:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    transform: translateY(-1px);
}

/* Projects Grid Improvements - تحسينات شبكة المشاريع */
.projects .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

/* تحسين للشاشات الكبيرة */
@media (min-width: 1200px) {
    .projects .container {
        max-width: 1140px;
    }
    
    .project-card {
        height: 450px;
    }
    
    .project-image {
        height: 200px;
    }
}

/* تحسين للشاشات المتوسطة */
@media (min-width: 768px) and (max-width: 1199px) {
    .project-card {
        height: 400px;
    }
    
    .project-image {
        height: 180px;
    }
}

/* ================================================================
   8. CLIENTS SECTION
   ================================================================ */
.client-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--neutral-200);
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.client-logo {
    width: 100%;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition-base);
}

.client-logo:hover {
    filter: grayscale(0%);
}

/* ================================================================
   9. CONTACT SECTION
   ================================================================ */
.contact-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--neutral-200);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--neutral-100);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: var(--text-2xl);
}

.contact-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--neutral-900);
}

/* ================================================================
   10. BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    font-size: var(--text-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ================================================================
   11. SCROLL TO TOP
   ================================================================ */
.scroll-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ================================================================
   12. ANIMATIONS
   ================================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   13. RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        gap: 0;
    }
    
    .logo {
        order: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: var(--shadow-xl);
        border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
        padding: var(--space-6);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
        order: 2;
    }
    
    .nav-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-slogan {
        font-size: var(--text-xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .header {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: var(--space-2) var(--space-4);
        max-width: 95%;
        justify-content: space-between;
    }
    
    .logo {
        height: 40px;
        order: 0;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .service-card,
    .project-card,
    .contact-card {
        padding: var(--space-6);
    }
}

/* ================================================================
   CENTERED NAVIGATION IMPROVEMENTS - تحسينات للقائمة المتوسطة
   ================================================================ */

/* توسيط أفضل للقائمة في الشاشات المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        max-width: 90%;
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-menu {
        gap: var(--space-1);
    }
    
    .nav-link {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
}

/* تحسين للشاشات الكبيرة جداً */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 900px;
    }
}

/* ================================================================
   FAQ SECTION - قسم الأسئلة الشائعة
   ================================================================ */
.faq-section {
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius-xl);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    transition: var(--transition-base);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: var(--space-6);
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    font-size: var(--text-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: var(--transition-base);
    user-select: none;
}

.faq-question:hover {
    background: var(--gradient-secondary);
}

.faq-question.active {
    background: var(--gradient-secondary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-full);
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.faq-toggle {
    margin-right: auto;
    font-size: var(--text-xl);
    transition: var(--transition-base);
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-6);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--neutral-50);
}

.faq-answer.active {
    padding: var(--space-6);
    max-height: 300px;
}

.faq-answer p {
    color: var(--neutral-700);
    line-height: 1.8;
    font-size: var(--text-base);
    margin: 0;
}

.faq-cta {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-8);
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.faq-cta h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: white;
}

.faq-cta p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

.faq-cta .btn {
    background: white;
    color: var(--primary-600);
    border: 2px solid white;
    font-weight: 600;
}

.faq-cta .btn:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* FAQ Responsive Design */
@media (max-width: 768px) {
    .faq-question {
        padding: var(--space-4);
        font-size: var(--text-base);
        gap: var(--space-2);
    }
    
    .faq-answer.active {
        padding: var(--space-4);
    }
    
    .faq-cta {
        padding: var(--space-6);
    }
    
    .faq-cta h3 {
        font-size: var(--text-xl);
    }
    
    .faq-cta p {
        font-size: var(--text-base);
    }
}

/* ================================================================
   FOOTER STYLING - تنسيق الفوتر
   ================================================================ */

/* Company Registration Info Styling */
footer .company-info {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    line-height: 1.5;
}

footer .company-info p {
    margin-bottom: var(--space-1);
}

footer .company-info .company-name {
    font-weight: 500;
    color: var(--neutral-400);
}

footer .company-info .registration {
    font-size: var(--text-xs);
    color: var(--neutral-600);
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer .company-info {
        font-size: var(--text-xs);
        text-align: center;
    }
    
    footer .company-info .company-name {
        font-size: var(--text-xs);
    }
    
    footer .company-info .registration {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    footer .company-info .company-name {
        line-height: 1.4;
    }
    
    footer .company-info .registration {
        font-size: 0.65rem;
    }
}
