/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Based on 3B Company Branding */
    --primary-color: #1e3a8a;     /* Deep Blue */
    --secondary-color: #f59e0b;   /* Amber */
    --accent-color: #0f172a;      /* Dark Navy */
    --text-dark: #212121;         /* Dark Grey */
    --text-light: #757575;        /* Light Grey */
    --white: #ffffff;
    --light-bg: #f8fafc;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    
    /* Typography */
    --font-family: 'Cairo', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-base: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-base: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
    
    /* Layout */
    --header-height: 92px; /* fixed header height to offset page start */
}

/* ===== SERVICE DETAIL PAGES ===== */
.service-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(0, 121, 107, 0.7)),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--spacing-base);
}

.service-hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    position: relative;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
    color: var(--white) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.service-hero-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.9;
    position: relative;
    z-index: 10;
    color: var(--white) !important;
    display: block !important;
    visibility: visible !important;
    margin-bottom: 0;
}

.service-details {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.service-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-info h2 {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.service-info h3 {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
}

.service-info p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.features-list {
    list-style: none;
    margin-bottom: var(--spacing-2xl);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-base);
    margin-bottom: var(--spacing-base);
    font-size: var(--font-size-base);
    color: var(--text-light);
}

.features-list i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.smart-features,
.economic-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.smart-card,
.benefit-card {
    background: var(--light-bg);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.smart-card:hover,
.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.smart-card i,
.benefit-card i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-base);
}

.smart-card h4,
.benefit-card h4 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    margin-bottom: var(--spacing-base);
}

.design-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.option-card {
    background: var(--light-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-base);
    text-align: center;
    transition: var(--transition-base);
}

.option-card:hover {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.option-card i {
    font-size: var(--font-size-xl);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-base);
}

.custom-services {
    margin-bottom: var(--spacing-2xl);
}

.service-item {
    display: flex;
    gap: var(--spacing-base);
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--light-bg);
    border-radius: var(--radius-base);
}

.service-item i {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-top: var(--spacing-xs);
    flex-shrink: 0;
}

.service-item h4 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.service-gallery {
    padding: var(--spacing-3xl) 0;
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    transition: var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.contact-cta {
    padding: var(--spacing-3xl) 0;
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
}

.contact-cta h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-base);
}

.contact-cta p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== PRINT STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
    /* Ensure content starts below the fixed header on all screens */
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-base);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-base) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-base);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 121, 107, 0.4);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-base);
    text-align: center;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-in-up:nth-child(1).animate { transition-delay: 0.02s; }
.fade-in-up:nth-child(2).animate { transition-delay: 0.04s; }
.fade-in-up:nth-child(3).animate { transition-delay: 0.06s; }
.fade-in-up:nth-child(4).animate { transition-delay: 0.08s; }
.fade-in-up:nth-child(5).animate { transition-delay: 0.1s; }

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: var(--z-fixed);
    transition: var(--transition-base);
}

.navbar {
    padding: var(--spacing-base) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-base);
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

.nav-logo:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.company-name h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.company-name span {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

.logo-img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.3);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    margin: 0;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: var(--spacing-sm) var(--spacing-base);
    border-radius: var(--radius-base);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(0, 121, 107, 0.1);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: var(--transition-base);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-base);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: var(--z-dropdown);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-base);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-base);
    transition: var(--transition-base);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.dropdown-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ===== HERO SECTION ===== */
.hero {
    /* Fit the hero within the viewport minus the fixed header to avoid clipping */
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(0, 121, 107, 0.7)),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-base);
}

.hero-logo {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.hero-logo-img {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-slogan-container {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-lg) 0;
}

.hero-slogan {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #ffd700, #ffed4e, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    text-align: center;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-slogan-subtitle {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    letter-spacing: 0.5px;
    text-align: center;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 0; /* إزالة الـ padding تماماً */
    background: var(--light-bg);
}

.section-header {
    margin-bottom: var(--spacing-3xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-sm); /* قللت من base إلى sm */
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 30px var(--shadow);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    height: auto; /* التأكد من الارتفاع التلقائي */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.service-image {
    width: 100%;
    height: 308px; /* زودت 10% من 280px */
    border-radius: var(--radius-base);
    overflow: hidden;
    margin-bottom: var(--spacing-base);
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-icon {
    width: 70px; /* قللت من 80px إلى 70px */
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-base); /* قللت من lg إلى base */
    color: var(--white);
    font-size: var(--font-size-xl); /* قللت من 2xl إلى xl */
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm); /* قللت من base إلى sm */
}

.service-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm); /* قللت من base إلى sm */
    line-height: 1.6; /* قللت من 1.8 إلى 1.6 */
}

.service-types {
    background: var(--light-bg);
    padding: var(--spacing-sm); /* قللت من base إلى sm */
    border-radius: var(--radius-base);
    margin-bottom: var(--spacing-xs); /* قللت من sm إلى xs */
    text-align: right;
}

.service-types h5 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.types-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.types-list li {
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: var(--white);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--secondary-color);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    transition: var(--transition-fast);
}

.types-list li:hover {
    background: #f0f9ff;
    border-right-color: var(--primary-color);
}

.type-name {
    font-weight: 600;
    color: var(--primary-color);
}

/* Service Types Section Styles */
.service-types-section {
    padding: var(--spacing-3xl) 0;
    background: var(--light-bg);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.type-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 30px var(--shadow);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.type-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.type-card:nth-child(3) {
    border-top-color: #10b981;
}

.type-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: var(--white);
    font-size: var(--font-size-2xl);
}

.type-card:nth-child(2) .type-icon {
    background: linear-gradient(135deg, var(--secondary-color), #f97316);
}

.type-card:nth-child(3) .type-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.type-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-base);
}

.type-video {
    margin: var(--spacing-base) 0;
    text-align: center;
    border-radius: var(--radius-base);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.type-video iframe {
    border-radius: var(--radius-base);
    transition: none; /* إزالة التأثير */
}

/* إزالة hover effect */

/* تنسيق أزرار الفيديو */
.smart-video-section a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3);
}

.type-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.type-features {
    text-align: right;
    list-style: none;
    padding: 0;
}

.type-features li {
    position: relative;
    padding: var(--spacing-sm) 0;
    padding-right: var(--spacing-lg);
    color: var(--text-light);
    border-bottom: 1px solid #f1f5f9;
}

.type-features li:last-child {
    border-bottom: none;
}

.type-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

.service-features {
    text-align: right;
    margin-bottom: var(--spacing-xs);
    padding: 10px 0 !important; /* padding 10px فوق وتحت */
}

ul.service-features {
    padding: 10px 0 !important; /* تنسيق محدد لعنصر ul */
    margin: 0;
}

.service-features li {
    position: relative;
    padding: 0; /* إزالة كل الـ padding */
    padding-right: var(--spacing-base);
    color: var(--text-light);
    margin-bottom: 1px; /* قللت الـ margin بين العناصر */
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-base);
    margin-bottom: var(--spacing-sm); /* قللت من base إلى sm */
}

.service-link:hover {
    color: var(--primary-color);
}

.service-actions {
    margin-top: auto;
    padding-top: var(--spacing-base);
}

.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm); /* قللت من base إلى sm */
}

.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-base);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transition: var(--transition-base);
    z-index: -1;
}

.btn-contact:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.btn-contact:hover::before {
    left: 0;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #128C7E, #0D6E5B);
    transition: var(--transition-base);
    z-index: -1;
}

.btn-whatsapp:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:hover::before {
    left: 0;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--spacing-3xl) 0;
    background: var(--light-bg);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.company-overview,
.vision-section,
.mission-section,
.services-overview,
.team-excellence {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: var(--transition-base);
}

.company-overview:hover,
.vision-section:hover,
.mission-section:hover,
.services-overview:hover,
.team-excellence:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-base);
    border-bottom: 2px solid var(--primary-color);
}

.company-header i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
}

.company-header h3 {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    font-weight: 700;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-base);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
    padding: var(--spacing-sm);
    background: var(--light-bg);
    border-radius: var(--radius-base);
}

.detail-item i {
    color: var(--secondary-color);
    font-size: var(--font-size-base);
    width: 20px;
}

.detail-item span {
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    font-weight: 500;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg) auto;
}

.section-icon i {
    font-size: var(--font-size-xl);
    color: var(--white);
}

.vision-section h4,
.mission-section h4,
.services-overview h4,
.team-excellence h4 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: var(--spacing-base);
    text-align: center;
}

.vision-points,
.mission-points,
.services-points,
.team-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vision-points li,
.mission-points li,
.services-points li,
.team-points li {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-xl) var(--spacing-sm) 0;
    color: var(--text-light);
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
}

.vision-points li:last-child,
.mission-points li:last-child,
.services-points li:last-child,
.team-points li:last-child {
    border-bottom: none;
}

.vision-points li::before,
.mission-points li::before,
.services-points li::before,
.team-points li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-base);
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-base);
}

.feature-card h4 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-base);
    }
    
    .company-overview,
    .vision-section,
    .mission-section,
    .services-overview,
    .team-excellence {
        padding: var(--spacing-lg);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: var(--spacing-3xl) 0;
    background: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.project-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    aspect-ratio: 3/4;
}

.project-item:hover {
    transform: scale(1.05);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: var(--spacing-xl);
    transform: translateY(100%);
    transition: var(--transition-base);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.project-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

/* ===== CLIENTS SECTION ===== */
.clients {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.client-slider {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 390px;
    height: 390px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.client-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: translateX(100%);
}

.client-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.client-slide.prev {
    transform: translateX(-100%);
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: all 0.3s ease;
    border-radius: var(--radius-base);
}

.client-slide:hover .client-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.slider-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .slider-wrapper {
        width: 325px;
        height: 325px;
    }
    
    .slider-container {
        gap: 20px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .clients {
        padding: var(--spacing-2xl) 0;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .project-item {
        aspect-ratio: 3/4;
    }
    
    .service-card {
        height: auto; /* التأكد من الارتفاع التلقائي في التابلت */
        padding: var(--spacing-base); /* نفس الـ padding زي الكمبيوتر */
    }
    
    .service-image {
        height: 275px; /* زودت 10% من 250px */
        margin-bottom: var(--spacing-sm);
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
        margin: 0 auto var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .slider-wrapper {
        width: 260px;
        height: 260px;
    }
    
    .slider-container {
        gap: 15px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== CONTACT SECTION & FOOTER ===== */
.contact {
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact .section-title {
    color: var(--white);
    text-align: center;
    margin-bottom: var(--spacing-base);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    font-size: var(--font-size-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.contact-item {
    background: rgba(255, 255, 255, 0.08);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-item i {
    color: var(--secondary-color);
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-base);
    display: block;
}

.contact-item h4 {
    font-weight: 700;
    margin-bottom: var(--spacing-base);
    color: var(--white);
    font-size: var(--font-size-lg);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
    margin: var(--spacing-xs) 0;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.1);
}

.contact-item a:hover {
    color: var(--white);
    background: var(--secondary-color);
    transform: scale(1.05);
}

.social-media {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.social-media-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.social-logo-img {
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.social-media h4 {
    margin-bottom: 0;
    color: var(--white);
    font-size: var(--font-size-xl);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-base);
    font-size: var(--font-size-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.bird-link {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition-base);
}

.bird-link:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-item {
        padding: var(--spacing-lg);
    }
    
    .social-links {
        gap: var(--spacing-base);
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

/* ===== WHATSAPP FIXED BUTTON ===== */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: var(--z-fixed);
    animation: bounce 2s infinite;
}

.whatsapp-fixed a {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-2xl);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition-base);
    text-decoration: none;
}

.whatsapp-fixed a:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== FOOTER BIRD LINK ===== */
.bird-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

.bird-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-base);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: var(--font-size-2xl);
    cursor: pointer;
    transition: var(--transition-base);
}

.close-lightbox:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    padding: var(--spacing-base);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

@media screen and (max-width: 768px) {
    /* Ensure comfortable space below the last hero button on small screens */
    .hero { padding-bottom: var(--spacing-2xl); }
    /* Navigation */
    .hamburger {
        display: flex;
        z-index: var(--z-modal);
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: var(--spacing-lg) var(--spacing-base);
        transition: var(--transition-base);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border-bottom: 3px solid var(--primary-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        z-index: var(--z-dropdown);
        max-height: 0;
        overflow: hidden;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 800px; /* زيادة الارتفاع للأقسام الجديدة */
        overflow: visible;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }
    
    /* تحسين للقائمة عند فتح القائمة الفرعية */
    .nav-menu.active.with-dropdown {
        max-height: 900px; /* ارتفاع أكبر للقائمة الفرعية */
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .nav-item:last-child {
        margin-bottom: 0;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: var(--spacing-base) var(--spacing-lg);
        background: var(--light-bg);
        border-radius: var(--radius-base);
        font-weight: 600;
        font-size: var(--font-size-base);
        color: var(--text-dark);
        border: 2px solid transparent;
        transition: var(--transition-base);
        position: relative;
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient);
        transition: var(--transition-base);
        z-index: -1;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--white);
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 121, 107, 0.3);
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        right: 0;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: var(--spacing-sm);
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 250px;
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        transition: max-height 0.4s ease, padding 0.3s ease;
    }
    
    .dropdown-menu li {
        margin-bottom: var(--spacing-xs);
    }
    
    .dropdown-link {
        background: rgba(30, 58, 138, 0.1);
        color: var(--primary-color);
        margin: 0;
        border-radius: var(--radius-sm);
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm) var(--spacing-base);
        border: 1px solid rgba(30, 58, 138, 0.2);
        font-weight: 500;
    }
    
    .dropdown-link:hover,
    .dropdown-link.active {
        background: var(--primary-color);
        color: var(--white);
        transform: none;
    }
    
    .dropdown-toggle {
        cursor: pointer;
    }
    
    .dropdown-toggle.no-link {
        pointer-events: none;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--primary-color);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background-color: var(--primary-color);
    }
    
    /* Hero Section */
    .hero-logo-img {
        max-width: 300px;
    }
    
    .social-logo-img {
        max-width: 300px;
    }
    
    .hero-slogan-container {
        margin-bottom: var(--spacing-2xl);
        padding: var(--spacing-base) 0;
    }
    
    .hero-slogan {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-slogan-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-base);
    }
    
    .hero-buttons .btn {
        width: 250px;
        justify-content: center;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        height: auto; /* التأكد من الارتفاع التلقائي في الموبايل */
        padding: var(--spacing-base); /* تقليل الـ padding أكثر في الموبايل */
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto var(--spacing-sm);
        font-size: var(--font-size-lg);
    }
    
    .action-buttons {
        gap: var(--spacing-xs); /* رجعت الأزرار جنب بعض */
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        aspect-ratio: 3/4;
    }
    
    /* Typography */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    /* Spacing */
    .services,
    .about,
    .projects,
    .contact {
        padding: var(--spacing-2xl) 0;
    }
}

@media screen and (max-width: 480px) {
    :root { --header-height: 88px; }
    /* Extra bottom space on the smallest phones */
    .hero { padding-bottom: calc(var(--spacing-2xl) + 10px); }
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-logo-img {
        max-width: 250px;
    }
    
    .social-logo-img {
        max-width: 250px;
    }
    
    .hero-slogan-container {
        margin-bottom: var(--spacing-xl);
        padding: var(--spacing-sm) 0;
    }
    
    .hero-slogan {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
        font-weight: 500;
    }
    
    .hero-slogan-subtitle {
        font-size: var(--font-size-xs);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .service-card,
    .contact-form-section,
    .contact-info-section {
        padding: var(--spacing-lg);
    }
    
    .service-image {
        height: 330px; /* زودت 10% من 300px */
        margin-bottom: var(--spacing-xs);
    }
    
    .service-types {
        margin-bottom: var(--spacing-xs);
        padding: var(--spacing-sm);
    }
    
    .service-features {
        margin-bottom: var(--spacing-xs);
    }
    
    .action-buttons {
        margin-top: var(--spacing-xs);
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-base);
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    /* WhatsApp button adjustment for mobile */
    .whatsapp-fixed {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-fixed a {
        width: 55px;
        height: 55px;
        font-size: var(--font-size-xl);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.3);
    }
    
    .btn-primary {
        border: 2px solid var(--white);
    }
}

/* ===== ENHANCED SERVICE PAGES ===== */
.service-hero .hero-content {
    text-align: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.service-overview {
    padding: var(--spacing-3xl) 0;
    background: var(--light-bg);
}

.overview-content {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-base);
}

.overview-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.overview-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.highlight-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-weight: 600;
}

.highlight-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.overview-actions {
    margin-top: 40px;
    text-align: center;
}

.overview-actions .action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rounded-image {
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-features {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.feature-card h4 {
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.service-applications {
    padding: var(--spacing-3xl) 0;
    background: var(--light-bg);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.application-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition-base);
}

.application-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.app-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.app-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.application-card h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.application-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-gallery {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/4;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .service-hero {
        height: 50vh;
        padding: var(--spacing-xl) 0;
    }
    
    .service-hero-title {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-base);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10;
    }
    
    .service-hero-subtitle {
        font-size: var(--font-size-lg);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10;
    }
    
    .hero-content {
        position: relative;
        z-index: 10;
        text-align: center;
        padding: 0 var(--spacing-base);
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .gallery-item {
        aspect-ratio: 3/4; /* جعل الصور أطول في الموبايل */
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-hero {
        height: 40vh;
        padding: var(--spacing-lg) 0;
    }
    
    .service-hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10;
        margin-bottom: var(--spacing-sm);
    }
    
    .service-hero-subtitle {
        font-size: var(--font-size-base);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10;
    }
    
    .hero-content {
        position: relative;
        z-index: 10;
        text-align: center;
        padding: 0 var(--spacing-base);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-card,
    .application-card {
        padding: 25px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        aspect-ratio: 3/4; /* جعل الصور أطول في الموبايل الصغير */
    }
}

/* Print styles */
@media print {
    .header,
    .hero-buttons,
    .contact-form,
    .social-media {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .hero {
        height: auto;
        background: none;
        color: black;
        padding: var(--spacing-xl) 0;
    }
}

/* ===== CUSTOMER REVIEWS SECTION ===== */
/* ===== REVIEWS SECTION WITH SWIPER ===== */
.reviews {
    padding: var(--spacing-3xl) 0;
    background: var(--light-bg);
    overflow: hidden;
    min-height: 600px;
}

.reviews .container {
    position: relative;
    overflow: visible;
}

.reviews-swiper {
    position: relative;
    width: 100%;
    padding: 40px 60px;
    overflow: visible;
}

.reviews-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-item {
    width: 350px;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow);
    transition: var(--transition-base);
    background: var(--white);
    cursor: pointer;
    position: relative;
}

.review-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.review-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
    background: var(--light-bg);
    border: 2px solid #ddd;
}

.review-item img:before {
    content: "📄";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: var(--text-light);
}

.review-item:hover img {
    transform: scale(1.05);
}

/* Swiper Navigation Buttons */
.reviews-next,
.reviews-prev {
    width: 50px !important;
    height: 50px !important;
    background: var(--primary-color) !important;
    border-radius: 50% !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3) !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    margin-top: 0 !important;
}

.reviews-next:hover,
.reviews-prev:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4) !important;
}

.reviews-next::after,
.reviews-prev::after {
    font-size: 18px !important;
    font-weight: bold !important;
    font-family: swiper-icons !important; /* ensure proper arrow glyphs */
}

/* Force arrow directions regardless of RTL so they point outward */
.reviews-next::after { content: 'next' !important; }
.reviews-prev::after { content: 'prev' !important; }

.reviews-next {
    right: -25px !important;
    left: auto !important;
}

.reviews-prev {
    left: -25px !important;
    right: auto !important;
}

/* Swiper Pagination */
.reviews-pagination {
    bottom: 10px !important;
    text-align: center !important;
}

.reviews-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: var(--text-light) !important;
    opacity: 0.5 !important;
    transition: var(--transition-base) !important;
    margin: 0 6px !important;
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .review-item {
        width: 300px;
        height: 450px;
    }
    
    .reviews-swiper {
        padding: 40px 50px;
    }
    
    .reviews-next,
    .reviews-prev {
        width: 45px !important;
        height: 45px !important;
    }
    
    .reviews-next::after,
    .reviews-prev::after {
        font-size: 16px !important;
    }
    
    /* Move arrows slightly inside on tablets */
    .reviews-next {
        right: 20px !important;
        left: auto !important;
    }
    
    .reviews-prev {
        left: 20px !important;
        right: auto !important;
    }
    
    .reviews-next:hover,
    .reviews-prev:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }
}

@media (max-width: 768px) {
    .review-item {
        width: 280px;
        height: 400px;
    }
    
    .reviews-swiper {
        padding: 40px 45px;
    }
    
    /* Keep arrows inside on small tablets/large phones */
    .reviews-next {
        right: 18px !important;
        left: auto !important;
    }
    
    .reviews-prev {
        left: 18px !important;
        right: auto !important;
    }
    .reviews-prev::after {
        font-size: 14px !important;
    }
    
    .reviews-next:hover,
    .reviews-prev:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }
}

@media (max-width: 480px) {
    .review-item {
        width: 250px;
        height: 350px;
    }
    
    .reviews-swiper {
        padding: 20px 40px;
    }
    
    /* Bring arrows further inside on phones */
    .reviews-next {
        right: 14px !important;
        left: auto !important;
    }
    
    .reviews-prev {
        left: 14px !important;
        right: auto !important;
    }
    .reviews-prev::after {
        font-size: 12px !important;
    }
    
    .reviews-next:hover,
    .reviews-prev:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }
    
    .reviews-pagination .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
        margin: 0 4px !important;
    }
}

/* ===== LIGHTBOX FOR REVIEWS ===== */
.reviews-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    justify-content: center;
    align-items: center;
}

.reviews-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: var(--spacing-sm) var(--spacing-base);
    border-radius: var(--radius-base);
    font-size: var(--font-size-sm);
    backdrop-filter: blur(10px);
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-counter {
        bottom: 20px;
    }
}
