/* ============================================
   LASH Company - Professional Website Styles
   Modern, Clean, Corporate Design
   ============================================ */

/* ============================================
   CSS Variables - Brand Colors from Logo
   ============================================ */
:root {
    /* Primary Blue Colors from Logo - محسّنة */
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --accent-blue: #60a5fa;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;

    /* Gradient Colors - محسّنة */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(37, 99, 235, 0.92) 0%, rgba(59, 130, 246, 0.88) 50%, rgba(96, 165, 250, 0.85) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);

    /* Neutral Colors - محسّنة */
    --white: #ffffff;
    --off-white: #fafbfc;
    --light-gray: #f3f4f6;
    --gray: #d1d5db;
    --dark-gray: #6b7280;
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6b7280;

    /* Shadows - محسّنة */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 20px -4px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 30px -8px rgba(0, 0, 0, 0.18);
    --shadow-blue: 0 8px 16px -4px rgba(37, 99, 235, 0.25);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing - محسّنة */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Border Radius - محسّنة */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-2xl: 2rem;

    /* Typography - جديد */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen Reader Only (for accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    direction: rtl;
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   Typography - محسّنة بشكل احترافي
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* أحجام متناسقة بنسبة 1.25 (Perfect Fourth) */
h1 {
    font-size: 3rem;           /* 48px */
    font-weight: var(--font-weight-extrabold);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.25rem;        /* 36px */
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

h3 {
    font-size: 1.75rem;        /* 28px */
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
}

h4 {
    font-size: 1.375rem;       /* 22px */
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: 1.125rem;       /* 18px */
    font-weight: var(--font-weight-semibold);
}

h6 {
    font-size: 1rem;           /* 16px */
    font-weight: var(--font-weight-semibold);
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: var(--text-medium);
    font-size: 1.0625rem;      /* 17px - أسهل للقراءة */
}

.lead-text {
    font-size: 1.25rem;        /* 20px */
    line-height: 1.7;
    font-weight: var(--font-weight-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* أحجام نصوص مساعدة */
.text-sm {
    font-size: 0.875rem;       /* 14px */
}

.text-base {
    font-size: 1rem;           /* 16px */
}

.text-lg {
    font-size: 1.125rem;       /* 18px */
}

.text-xl {
    font-size: 1.25rem;        /* 20px */
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--spacing-xl) 0;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* ============================================
   Hero Section with Slider
   ============================================ */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(30, 64, 175, 0.75) 50%, rgba(59, 130, 246, 0.65) 100%);
    z-index: 2;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 4;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding: 0 2rem;
    margin: 0 auto;  /* توسيط إضافي */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-black);
    margin-bottom: 2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff !important;  /* أبيض دائماً */
    text-align: center;
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 3rem;
    opacity: 0.96;
    font-weight: var(--font-weight-medium);
    line-height: 1.65;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;  /* أبيض */
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.125rem 2.75rem;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: 1.0625rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.25);
    color: var(--primary-blue-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2.5px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px -4px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--white);
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Key Services Icons
   ============================================ */
.key-services {
    background: var(--off-white);
    padding: var(--spacing-lg) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-icon-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.service-icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-icon-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-blue-light);
}

.service-icon-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.75rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: var(--white);
    box-shadow: var(--shadow-blue);
    transition: var(--transition-normal);
}

.service-icon-card:hover .icon-wrapper {
    transform: scale(1.1) rotateY(360deg);
}

.service-icon-card h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: var(--font-weight-semibold);
    line-height: 1.5;
}

/* ============================================
   Why Us Snapshot
   ============================================ */
.why-us-snapshot {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

/* نمط زخرفي للخلفية */
.why-us-snapshot::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.why-us-snapshot::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* 5 أعمدة في صف واحد */
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.snapshot-item {
    text-align: center;
    color: #ffffff !important;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-normal);
    position: relative;
}

.snapshot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    opacity: 0;
    transition: var(--transition-normal);
}

.snapshot-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.snapshot-item:hover::before {
    opacity: 1;
}

.snapshot-item i {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    transition: var(--transition-normal);
}

.snapshot-item:hover i {
    transform: scale(1.15) rotateY(360deg);
}

.snapshot-item p {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin: 0;
    color: #ffffff !important;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title {
    font-size: 2.75rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 120px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: var(--font-weight-normal);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--white);
}

.about-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mv-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.mv-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-icon i {
    font-size: 2rem;
    color: var(--white);
}

.mv-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    background: var(--off-white);
}

.service-detail {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-right: 5px solid transparent;
    transition: var(--transition-normal);
}

.service-detail:hover {
    border-right-color: var(--primary-blue);
    box-shadow: var(--shadow-xl);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.service-detail-header h3 {
    color: var(--text-dark);
    margin: 0;
}

.service-subtitle {
    color: var(--primary-blue);
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
}

.service-detail-content {
    padding-right: 4.5rem;
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.service-list li:hover {
    background: var(--primary-blue-light);
    color: var(--white);
}

.service-list i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-list li:hover i {
    color: var(--white);
}

.service-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.maintenance-levels {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.level-badge {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 600;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.why-card:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: translateX(-5px);
}

.why-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.why-card p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   Workflow Section
   ============================================ */
.workflow-section {
    background: var(--off-white);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.workflow-step {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.workflow-step:hover::before {
    transform: scaleX(1);
}

.workflow-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.step-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.workflow-step h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.workflow-step p {
    color: var(--dark-gray);
    line-height: 1.7;
}

/* ============================================
   Mobile App Section
   ============================================ */
.app-section {
    background: var(--white);
}

.app-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.app-feature:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-text h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--dark-gray);
    margin: 0;
}

.app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 250px;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.phone-frame i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    background: var(--off-white);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-tab {
    padding: 1rem 2.5rem;
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-dark);
}

.gallery-tab.active,
.gallery-tab:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay.after {
    background: linear-gradient(to top, rgba(37, 99, 235, 0.8) 0%, rgba(37, 99, 235, 0.4) 50%, transparent 100%);
}

/* Gallery Labels - ألوان واضحة */
.gallery-label {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.gallery-item:hover .gallery-label {
    transform: translateY(0);
}

/* Label قبل - أحمر واضح */
.gallery-label.before-label {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Label بعد - أخضر واضح */
.gallery-label.after-label {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* Old placeholder styles - للتوافق */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--gray) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
}

.gallery-placeholder.after {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gallery-placeholder p {
    font-weight: 600;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-text h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--dark-gray);
    margin: 0;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #25d366;
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.contact-form-wrapper {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray);
    border-radius: var(--radius-md);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer * {
    color: #ffffff !important;  /* جميع العناصر الفرعية أبيض */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: #ffffff !important;
    opacity: 0.9;
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ffffff !important;
    opacity: 0.9;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: #ffffff !important;
    opacity: 1;
    padding-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    color: #ffffff !important;
}

.social-icons a i {
    color: #ffffff !important;
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary-blue) !important;
    transform: translateY(-5px);
}

.social-icons a:hover i {
    color: var(--primary-blue) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: #ffffff !important;
    margin: 0;
    opacity: 0.9;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.show {
    display: flex;
}

/* ============================================
   Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .app-content {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        width: 200px;
        height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Typography - محسّنة للموبايل */
    h1 {
        font-size: 2.25rem;      /* 36px */
        line-height: 1.2;
    }
    h2 {
        font-size: 1.875rem;     /* 30px */
        line-height: 1.25;
    }
    h3 {
        font-size: 1.5rem;       /* 24px */
    }

    p {
        font-size: 1rem;         /* 16px */
        line-height: 1.7;
    }

    .lead-text {
        font-size: 1.125rem;     /* 18px */
    }

    /* Navigation */
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--light-gray);
    }

    /* Hero */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Snapshot Grid - 3 في الصف للتابلت */
    .snapshot-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* Grids */
    .services-grid,
    .why-grid,
    .workflow-steps,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-content {
        padding-right: 0;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Mission Vision */
    .mission-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Snapshot Grid - 2 في الصف للموبايل */
    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .snapshot-item {
        padding: 1rem 0.75rem;
    }

    .snapshot-item i {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .snapshot-item p {
        font-size: 0.95rem;
    }

    /* Typography للشاشات الصغيرة جداً */
    h1 {
        font-size: 1.875rem;     /* 30px */
    }

    h2 {
        font-size: 1.625rem;     /* 26px */
    }

    .section-title {
        font-size: 2rem;         /* 32px */
    }

    .hero-title {
        font-size: 2rem;         /* 32px */
    }

    .hero-subtitle {
        font-size: 1.125rem;     /* 18px */
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: var(--spacing-md) 0;
    }

    .service-detail {
        padding: 1.5rem;
    }

    .service-detail-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .hero-section,
    .back-to-top,
    .mobile-toggle,
    .whatsapp-btn {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

