/* ============================================
   CSS الرئيسي - نيو ستايل جروب
   إصدار: 1.0.0
   تاريخ: 2024
   ============================================ */

/* ============================================
   متغيرات CSS
   ============================================ */
:root {
    /* الألوان الأساسية */
    --color-primary: #2c3e50;
    --color-primary-light: #34495e;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
    --color-success: #2ecc71;
    --color-whatsapp: #25D366;
    --color-error: #e74c3c;
    --color-warning: #f39c12;
    
    /* ألوان النصوص */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --color-text-inverse: #ffffff;
    
    /* ألوان الخلفيات */
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #121212;
    --color-bg-card: #ffffff;
    --color-bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* ألوان الحدود */
    --color-border: #e1e5e9;
    --color-border-light: #f1f3f4;
    --color-border-dark: #2d2d2d;
    
    /* الظلال */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    
    /* الانتقالات */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s ease;
    
    /* الزوايا */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    /* طبقات Z-index */
    --z-loader: 9999;
    --z-modal: 999;
    --z-floating: 99;
    --z-nav: 9;
    --z-base: 1;
    
    /* شريط التمرير */
    --scrollbar-track: #f1f1f1;
    --scrollbar-thumb: #c1c1c1;
    --scrollbar-thumb-hover: #a8a8a8;
    
    /* الخطوط */
    --font-family: 'Tajawal', 'Amiri', 'El Messiri', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* ============================================
   أنظمة الألوان (Color Palettes)
   ============================================ */
[data-palette="blue"] {
    --color-primary: #2c3e50;
    --color-primary-light: #34495e;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
}

[data-palette="green"] {
    --color-primary: #27ae60;
    --color-primary-light: #2ecc71;
    --color-secondary: #1abc9c;
    --color-accent: #e67e22;
}

[data-palette="purple"] {
    --color-primary: #8e44ad;
    --color-primary-light: #9b59b6;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
}

[data-palette="orange"] {
    --color-primary: #d35400;
    --color-primary-light: #e67e22;
    --color-secondary: #f39c12;
    --color-accent: #3498db;
}

/* ============================================
   الوضع الليلي (Dark Mode)
   ============================================ */
[data-theme="dark"] {
    --color-text: #e0e0e0;
    --color-text-light: #b0b0b0;
    --color-text-lighter: #808080;
    --color-bg: #121212;
    --color-bg-light: #1e1e1e;
    --color-bg-dark: #0a0a0a;
    --color-bg-card: #1e1e1e;
    --color-border: #2d2d2d;
    --color-border-light: #3d3d3d;
    --scrollbar-track: #2d2d2d;
    --scrollbar-thumb: #555555;
    --scrollbar-thumb-hover: #666666;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ============================================
   إعادة الضبط الأساسي
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    direction: rtl;
    overflow-x: hidden;
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* ============================================
   الأنماط العامة
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

ul, ol {
    list-style: none;
}

button {
    font-family: var(--font-family);
    cursor: pointer;
}

/* ============================================
   شريط التمرير
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ============================================
   الرسوم المتحركة
   ============================================ */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(50%) translateY(0);
    }
    40% {
        transform: translateX(50%) translateY(-8px);
    }
    60% {
        transform: translateX(50%) translateY(-4px);
    }
}

@keyframes parallaxBg {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-20px);
    }
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* ============================================
   شاشة التحميل
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
    max-width: 300px;
}

.loader-logo {
    margin-bottom: 40px;
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.loader-text-ar {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.loader-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: white;
    animation: loading 2s ease-in-out forwards;
}

/* ============================================
   الهيدر والتنقل
   ============================================ */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.bg-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: all 1s ease;
}

.layer-1 {
    animation: parallaxBg 30s infinite linear;
}

.layer-2 {
    animation: parallaxBg 25s infinite linear reverse;
    opacity: 0.3;
}

.layer-3 {
    animation: parallaxBg 20s infinite linear;
    opacity: 0.2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.9) 0%,
        rgba(52, 73, 94, 0.8) 50%,
        rgba(231, 76, 60, 0.3) 100%
    );
}

.navbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: var(--z-nav);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    transition: transform 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: var(--z-nav);
}

.logo-symbol {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-en {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.logo-ar {
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: var(--z-nav);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-nav);
}

.nav-overlay.active {
    display: block;
    z-index: 3;
}

/* ============================================
   محتوى الهيدر الرئيسي
   ============================================ */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main {
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 30px 0;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    color: white;
}

.title-line {
    display: block;
    overflow: hidden;
    margin-bottom: 8px;
}

.word {
    display: inline-block;
    animation: wordReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
    margin: 0 5px;
}

.word.accent {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.typing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 55px;
    margin: 25px auto 35px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 0 18px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.typing-text {
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    text-align: center;
    line-height: 1.4;
}

.typing-cursor {
    display: inline-block;
    width: 2.5px;
    height: 1.3em;
    background-color: var(--color-accent);
    margin-right: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* ============================================
   الأزرار
   ============================================ */
.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 250px;
    height: 250px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-4px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-icon i {
    transition: transform 0.3s ease;
}

.btn-icon:hover i {
    transform: translateX(-4px);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
}

/* ============================================
   مؤشر التمرير
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3.5px;
    height: 8px;
    background-color: white;
    border-radius: 1.5px;
    animation: scrollWheel 2s infinite;
}

/* ============================================
   الأقسام العامة
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3.5px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.6;
}

/* ============================================
   قسم الخدمات
   ============================================ */
.services {
    padding: 100px 0;
    background-color: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(231, 76, 60, 0.05) 100%);
    z-index: 1;
}

.services > .container {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.service-card {
    flex: 1 1 320px;
    max-width: 400px;
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: var(--border-radius);
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-front {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
}

.card-back {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    transform: rotateY(180deg);
    text-align: center;
}

.card-icon {
    color: var(--color-primary);
    margin-bottom: 22px;
}

.card-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.card-back .card-title {
    color: white;
}

.card-excerpt {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.tag {
    background: rgba(52, 152, 219, 0.1);
    color: var(--color-secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.card-link:hover {
    background: rgba(255, 255, 255, 0.3);
    gap: 12px;
    transform: translateY(-2px);
}

/* ============================================
   قسم عن الشركة
   ============================================ */
.about-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.about-text .section-title::after {
    right: 0;
    transform: none;
}

.about-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 35px;
}

.feature {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.feature i {
    color: var(--color-success);
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.image-frame {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.about-image:hover .image-frame {
    transform: rotate(0deg);
}

.image-placeholder {
    background: var(--color-bg-light);
    border-radius: calc(var(--border-radius) - 5px);
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
}

.image-content {
    text-align: center;
    color: var(--color-primary);
}

.image-content span {
    display: block;
    margin-bottom: 8px;
}

.image-content span:first-child {
    font-size: 2.2rem;
    font-weight: 800;
}

.image-content span:last-child {
    font-size: 1.3rem;
    font-weight: 700;
}

/* ============================================
   قسم الاتصال السريع
   ============================================ */
.quick-contact {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 45px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.contact-action {
    flex-shrink: 0;
}

.contact-action .btn-primary {
    background: white;
    color: var(--color-primary);
    font-size: 1.05rem;
    padding: 16px 35px;
}

.contact-action .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

/* ============================================
   قسم فريق العمل
   ============================================ */
.team-section {
    padding: 100px 0;
    background: var(--color-bg-light);
    position: relative;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 60px;
    gap: 30px;
}

.team-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 350px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.team-img.img1 {
    background-image: url("../assets/imgs/1.jpg");
}

.team-img.img2 {
    background-image: url("../assets/imgs/3.webp");
}

.team-img.img3 {
    background-image: url("../assets/imgs/2.jpg");
}

.glass-effect {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .glass-effect {
    opacity: 1;
}

.team-info {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.team-position {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
}

.team-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
}

.team-icon {
    text-decoration: none;
    display: inline-flex;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.team-icon:nth-child(1) .icon-wrapper {
    color: var(--color-primary);
}

.team-icon:nth-child(2) .icon-wrapper {
    color: var(--color-whatsapp);
}

.team-icon:nth-child(3) .icon-wrapper {
    color: #1877F2;
}

.team-icon:hover .icon-wrapper {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.team-icon:nth-child(1):hover .icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
}

.team-icon:nth-child(2):hover .icon-wrapper {
    background: linear-gradient(135deg, var(--color-whatsapp) 0%, #128C7E 100%);
    color: white;
}

.team-icon:nth-child(3):hover .icon-wrapper {
    background: linear-gradient(135deg, #1877F2 0%, #0D47A1 100%);
    color: white;
}

/* ============================================
   الفوتر
   ============================================ */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 70px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.footer > .container {
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
    justify-content: space-between;
}

.footer-logo {
    flex: 1 1 300px;
}

.footer-logo .logo {
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-links {
    flex: 1 1 200px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-info {
    flex: 1 1 250px;
}

.footer-info h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.copyright a {
    color: var(--color-accent);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* ============================================
   الأيقونات العائمة
   ============================================ */
.floating-actions {
    position: fixed;
    left: 25px;
    bottom: 35%;
    z-index: var(--z-floating);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.08) rotate(8deg);
}

.floating-btn.fb {
    background: linear-gradient(135deg, #1877f2 0%, #0d47a1 100%);
}

.floating-btn.contact {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.floating-btn.settings {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c0392b 100%);
}

/* ============================================
   نافذة الاتصال
   ============================================ */
.contact-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--color-bg-overlay);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.contact-popup.active {
    display: flex;
}

.popup-content {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.popup-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 20px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

.popup-description {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    background: var(--color-bg-light);
}

.contact-option:hover {
    transform: translateX(-4px);
    border-color: currentColor;
    box-shadow: var(--shadow-md);
}

.contact-option.call {
    color: var(--color-primary);
}

.contact-option.call:hover {
    background: rgba(52, 152, 219, 0.1);
}

.contact-option.whatsapp {
    color: var(--color-whatsapp);
}

.contact-option.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
}

.contact-option.email {
    color: var(--color-accent);
}

.contact-option.email:hover {
    background: rgba(231, 76, 60, 0.1);
}

.contact-option.location {
    color: var(--color-success);
}

.contact-option.location:hover {
    background: rgba(46, 204, 113, 0.1);
}

.option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.option-content {
    flex: 1;
    text-align: right;
    min-width: 0;
}

.option-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: inherit;
}

.option-content p {
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.option-hint {
    color: var(--color-text-light);
    font-size: 0.75rem;
    display: block;
}

.contact-hours {
    background: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    border: 1px solid var(--color-border);
    margin-bottom: 15px;
}

.contact-hours h4 {
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-hours p {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* ============================================
   لوحة الإعدادات
   ============================================ */
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 350px;
    max-width: 90vw;
    background: var(--color-bg-card);
    z-index: var(--z-modal);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--color-border);
}

.settings-panel.open {
    transform: translateX(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.settings-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-content {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
}

.setting-group {
    margin-bottom: 30px;
}

.setting-group h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.theme-toggle {
    display: flex;
    gap: 8px;
    background: var(--color-bg-light);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 30px;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

.theme-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.theme-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.range-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-container input[type="range"] {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--color-border);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.range-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: 3px solid var(--color-bg);
    box-shadow: var(--shadow-sm);
}

.range-container span {
    min-width: 45px;
    text-align: center;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.setting-item select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.setting-item select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.background-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bg-option {
    flex: 1 1 100px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.bg-option:hover {
    transform: translateY(-3px);
}

.bg-option.active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.bg-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
    border: 2px solid var(--color-border);
    transition: border-color 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-option.active .bg-preview {
    border-color: var(--color-primary);
}

.bg-name {
    font-size: 0.8rem;
    color: var(--color-text);
    font-weight: 500;
}

.auto-bg {
    background: linear-gradient(45deg, #2c3e50, #3498db, #1abc9c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto-bg span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.gradient-bg {
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.palette-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.palette {
    flex: 1 1 150px;
    padding: 12px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.palette:hover,
.palette.active {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.palette-colors {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.palette-colors span {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    display: inline-block;
}

.palette-name {
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
}

.reset-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    margin-top: 20px;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   التجاوب مع الشاشات (Responsive)
   ============================================ */

/* شاشات كبيرة جداً */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
}

/* أجهزة الكمبيوتر المحمولة */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.6rem;
    }
    
    .service-card {
        flex: 1 1 300px;
    }
    
    .team-card {
        flex: 1 1 280px;
    }
}

/* أجهزة اللوحي */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    .hero {
        padding: 70px 0 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .service-card {
        flex: 1 1 280px;
        height: 380px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-box {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 35px;
    }
    
    .footer-main {
        gap: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--color-bg-card);
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        z-index: var(--z-nav);
        animation: slideInRight 0.3s ease;
        z-index: 100;
    }
    
    .nav-links.active .nav-link {
        color: var(--color-text);
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border-light);
    }
    
    .nav-links.active .nav-link:last-child {
        border-bottom: none;
    }
    
    .floating-actions {
        left: 15px;
        bottom: 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .theme-toggle {
        flex-direction: column;
        gap: 6px;
        padding: 8px;
    }
    
    .theme-btn {
        padding: 10px;
        justify-content: flex-start;
    }
}

/* الهواتف الكبيرة */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        min-height: 90vh;
        padding: 60px 0 20px;
    }
    
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.15rem;
        margin-bottom: 25px;
    }
    
    .typing-container {
        height: 50px;
        margin: 20px auto 30px;
        padding: 0 15px;
    }
    
    .typing-text {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        margin-top: 20px;
    }
    
    .services {
        padding: 70px 0;
    }
    
    .service-card {
        flex: 1 1 100%;
        height: 370px;
        max-width: 400px;
    }
    
    .about-section {
        padding: 80px 0;
    }
    
    .about-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature {
        flex: 1 1 100%;
    }
    
    .quick-contact {
        padding: 60px 0;
    }
    
    .contact-box {
        padding: 30px 25px;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 35px;
        margin-bottom: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .popup-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .settings-panel {
        width: 320px;
        max-width: 95vw;
    }
    
    .contact-option {
        padding: 14px;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
    }
    
    .team-card {
        flex: 1 1 100%;
        height: 360px;
        margin: 0 10px;
    }
    
    .team-img {
        height: 200px;
    }
    
    .icon-wrapper {
        width: 45px;
        height: 45px;
    }
}

/* الهواتف الصغيرة */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .typing-container {
        height: 45px;
        margin: 15px auto 25px;
    }
    
    .typing-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-badge {
        font-size: 0.8rem;
        padding: 5px 16px;
    }
    
    .service-card {
        height: 360px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .feature {
        font-size: 0.9rem;
    }
    
    .image-placeholder {
        height: 300px;
        padding: 25px;
    }
    
    .image-content span:first-child {
        font-size: 1.8rem;
    }
    
    .image-content span:last-child {
        font-size: 1.1rem;
    }
    
    .contact-info h3 {
        font-size: 1.4rem;
    }
    
    .floating-actions {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
        flex-direction: row;
    }
    
    .palette {
        flex: 1 1 100%;
    }
    
    .bg-option {
        flex: 1 1 100%;
    }
    
    .logo-symbol {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .logo-en {
        font-size: 0.75rem;
    }
    
    .logo-ar {
        font-size: 1rem;
    }
    
    .team-section {
        padding: 60px 0;
    }
    
    .team-card {
        height: 340px;
    }
    
    .team-img {
        height: 180px;
    }
    
    .team-name {
        font-size: 1.3rem;
    }
    
    .team-position {
        font-size: 0.95rem;
    }
    
    .team-icons {
        padding: 15px;
        gap: 12px;
    }
    
    .icon-wrapper {
        width: 40px;
        height: 40px;
    }
}

/* الهواتف الصغيرة جداً */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .typing-container {
        height: 40px;
        padding: 0 12px;
    }
    
    .typing-text {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-front, .card-back {
        padding: 25px 15px;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .popup-header {
        padding: 15px;
    }
    
    .popup-body {
        padding: 15px;
    }
    
    .contact-option {
        padding: 12px;
    }
    
    .option-icon {
        width: 36px;
        height: 36px;
    }
    
    .team-card {
        height: 320px;
    }
    
    .team-img {
        height: 160px;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-icons {
        gap: 10px;
    }
}

/* التوجيه الأفقي للهواتف */
@media (max-height: 700px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .typing-container {
        height: 40px;
        margin: 15px auto 25px;
    }
    
    .hero-buttons {
        margin-top: 25px;
    }
    
    .btn {
        padding: 10px 25px;
    }
}

/* الطباعة */
@media print {
    .floating-actions,
    .contact-popup,
    .settings-panel,
    .loader,
    .nav-toggle,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }
    
    .hero {
        min-height: auto;
        color: #000;
        padding: 20px 0;
    }
    
    .hero-bg,
    .bg-overlay {
        display: none;
    }
    
    .hero-title {
        color: #000;
        font-size: 24pt;
    }
    
    .hero-description {
        color: #333;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .btn {
        display: none;
    }
    
    .services-grid {
        display: block;
    }
    
    .service-card {
        height: auto;
        margin-bottom: 20px;
        break-inside: avoid;
    }
    
    .card-inner {
        transform: none !important;
    }
    
    .card-front, .card-back {
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .card-back {
        display: none;
    }
}

/* دعم متصفحات قديمة */
@supports (backdrop-filter: blur(10px)) {
    .contact-popup {
        backdrop-filter: blur(5px);
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .contact-popup {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .typing-container,
    .contact-box {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* التباين العالي */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-text: #000000;
        --color-accent: #ff0000;
    }
}

/* توفير البيانات */
@media (prefers-reduced-data: reduce) {
    .bg-layer {
        background-image: none !important;
        background-color: var(--color-primary);
    }
}