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

:root {
    /* Color Palette */
    --primary-blue: #0A2540;
    --secondary-gray: #E3E6EA;
    --accent-cyan: #00E1FF;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #f8f9fa;
    
    /* Typography */
    --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-futuristic: 'Orbitron', monospace;
    --font-arabic: 'Noto Sans Arabic', 'Arial', 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-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 225, 255, 0.3);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-blue: #ffffff;
    --secondary-gray: #4a5568;
    --white: #1a202c;
    --black: #ffffff;
    --dark-gray: #2d3748;
    --light-gray: #1a202c;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --background-primary: #1a202c;
    --background-secondary: #2d3748;
    --border-color: #4a5568;
}

/* RTL Support - Moved to Language Toggle section */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-blue);
    background-color: var(--white);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Logo Styles */
.logo-image {
    height: 50px;
    width: auto;
    transition: all var(--transition-normal);
}

.logo-colored {
    display: block;
}

.logo-white {
    display: none;
}

[data-theme="dark"] .logo-colored {
    display: none;
}

[data-theme="dark"] .logo-white {
    display: block;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .footer-logo-image {
    filter: brightness(0) invert(1) hue-rotate(180deg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--secondary-gray);
    z-index: 1000;
    transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
    border-bottom-color: var(--secondary-gray);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-fast);
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.language-toggle,
.theme-toggle {
    background: none;
    border: 1px solid var(--secondary-gray);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--primary-blue);
}

.language-toggle:hover,
.theme-toggle:hover {
    background: var(--accent-cyan);
    color: var(--white);
    border-color: var(--accent-cyan);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 225, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 225, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%2300E1FF" stroke-width="0.5" opacity="0.3"/><circle cx="20" cy="20" r="2" fill="%2300E1FF" opacity="0.5"/><circle cx="80" cy="80" r="2" fill="%2300E1FF" opacity="0.5"/></svg>') repeat;
    background-size: 100px 100px;
    animation: circuitPulse 4s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); opacity: 0.7; }
    50% { transform: translateY(-20px); opacity: 1; }
}

/* Code Rain Effect */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.code-rain::before {
    content: '0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 0 1 1 1 0 1 1 1';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    opacity: 0.3;
    animation: codeRain 10s linear infinite;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

@keyframes codeRain {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

/* Matrix Effect */
.matrix-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="20" font-family="monospace" font-size="8" fill="%2300E1FF" opacity="0.1">1</text><text x="20" y="30" font-family="monospace" font-size="8" fill="%2300E1FF" opacity="0.1">0</text><text x="30" y="40" font-family="monospace" font-size="8" fill="%2300E1FF" opacity="0.1">1</text><text x="40" y="50" font-family="monospace" font-size="8" fill="%2300E1FF" opacity="0.1">0</text><text x="50" y="60" font-family="monospace" font-size="8" fill="%2300E1FF" opacity="0.1">1</text><text x="60" y="70" font-family="monospace" font-size="8" fill="%2300E1FF" opacity="0.1">0</text><text x="70" y="80" font-family="monospace" font-size="8" fill="%2300E1FF" opacity="0.1">1</text><text x="80" y="90" font-family="monospace" font-size="8" fill="%2300E1FF" opacity="0.1">0</text></svg>') repeat;
    background-size: 100px 100px;
    animation: matrixMove 20s linear infinite;
}

@keyframes matrixMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-futuristic);
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 225, 255, 0.3);
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    max-width: 100%;
}

.hero-title .en {
    display: block;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title .ar {
    display: block;
    width: 100%;
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
    margin-top: var(--spacing-sm);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Programming Showcase */
.programming-showcase {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 225, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.programming-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 225, 255, 0.1), transparent);
    animation: codeScan 4s ease-in-out infinite;
}

@keyframes codeScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.code-snippet {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.code-line {
    margin-bottom: var(--spacing-xs);
    opacity: 0;
    animation: codeReveal 0.8s ease forwards;
    position: relative;
}

.code-line:nth-child(1) { animation-delay: 0.8s; }
.code-line:nth-child(2) { animation-delay: 1.6s; }
.code-line:nth-child(3) { animation-delay: 2.4s; }
.code-line:nth-child(4) { animation-delay: 3.2s; }

.code-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-cyan);
    animation: cursorBlink 1s infinite;
    opacity: 0;
}

.code-line:nth-child(1)::after { animation-delay: 1.2s; }
.code-line:nth-child(2)::after { animation-delay: 2.0s; }
.code-line:nth-child(3)::after { animation-delay: 2.8s; }
.code-line:nth-child(4)::after { animation-delay: 3.6s; }

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.indent {
    margin-left: var(--spacing-lg);
}

.code-keyword {
    color: #ff79c6;
    font-weight: 600;
    animation: keywordGlow 2s ease-in-out infinite;
}

.code-variable {
    color: #8be9fd;
    animation: variablePulse 2s ease-in-out infinite;
}

.code-operator {
    color: #f8f8f2;
    animation: operatorShine 2s ease-in-out infinite;
}

.code-string {
    color: #f1fa8c;
    animation: stringGlow 2s ease-in-out infinite;
}

.code-function {
    color: #50fa7b;
    font-weight: 600;
    animation: functionPulse 2s ease-in-out infinite;
}

.code-bracket {
    color: #ffb86c;
    animation: bracketShine 2s ease-in-out infinite;
}

@keyframes keywordGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 121, 198, 0.5); }
    50% { text-shadow: 0 0 15px rgba(255, 121, 198, 0.8); }
}

@keyframes variablePulse {
    0%, 100% { text-shadow: 0 0 5px rgba(139, 233, 253, 0.5); }
    50% { text-shadow: 0 0 15px rgba(139, 233, 253, 0.8); }
}

@keyframes operatorShine {
    0%, 100% { text-shadow: 0 0 5px rgba(248, 248, 242, 0.5); }
    50% { text-shadow: 0 0 15px rgba(248, 248, 242, 0.8); }
}

@keyframes stringGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(241, 250, 140, 0.5); }
    50% { text-shadow: 0 0 15px rgba(241, 250, 140, 0.8); }
}

@keyframes functionPulse {
    0%, 100% { text-shadow: 0 0 5px rgba(80, 250, 123, 0.5); }
    50% { text-shadow: 0 0 15px rgba(80, 250, 123, 0.8); }
}

@keyframes bracketShine {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 184, 108, 0.5); }
    50% { text-shadow: 0 0 15px rgba(255, 184, 108, 0.8); }
}

@keyframes codeReveal {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
        filter: blur(2px);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-10px) scale(0.95);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
}

.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.ai-assistant {
    position: relative;
    margin-left: var(--spacing-2xl);
}

.ai-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-4xl);
    color: var(--white);
    animation: aiFloat 3s ease-in-out infinite;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    position: relative;
    z-index: 2;
}

@keyframes aiFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Neural Network Animation */
.neural-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 1;
}

.neural-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: neuralPulse 2s ease-in-out infinite;
}

.neural-node:nth-child(1) {
    top: 20px;
    left: 50px;
    animation-delay: 0s;
}

.neural-node:nth-child(2) {
    top: 100px;
    left: 20px;
    animation-delay: 0.5s;
}

.neural-node:nth-child(3) {
    top: 100px;
    right: 20px;
    animation-delay: 1s;
}

.neural-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: neuralFlow 3s ease-in-out infinite;
}

.neural-connection:nth-child(4) {
    top: 50px;
    left: 50px;
    width: 100px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.neural-connection:nth-child(5) {
    top: 50px;
    right: 50px;
    width: 100px;
    transform: rotate(-45deg);
    animation-delay: 1.5s;
}

@keyframes neuralPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 10px var(--accent-cyan);
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
        box-shadow: 0 0 20px var(--accent-cyan);
    }
}

@keyframes neuralFlow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Section Styles */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-family: var(--font-futuristic);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 20px rgba(0, 225, 255, 0.2);
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
}

.about-text {
    flex: 1;
}

.about-paragraph p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.about-icons {
    display: flex;
    gap: var(--spacing-xl);
}

.icon-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: var(--font-size-2xl);
    color: var(--white);
}

.icon-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--secondary-gray);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), #0099cc);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-xl);
    color: var(--white);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
}

.feature-card p {
    color: var(--primary-blue);
    opacity: 0.8;
    line-height: 1.6;
}

/* Industries Section */
.industries {
    background: var(--light-gray);
    padding-bottom: 0;
    margin-bottom: 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.industry-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.industry-card:hover::before {
    opacity: 0.1;
}

.industry-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--font-size-2xl);
    color: var(--white);
    transition: all var(--transition-normal);
}

.industry-card:hover .industry-icon {
    transform: scale(1.1);
}

.industry-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-blue);
}

.industry-card p {
    color: var(--primary-blue);
    opacity: 0.8;
    line-height: 1.6;
}

/* Vision Section */
.vision {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
}

.vision-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    opacity: 0.9;
}

.city-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><rect x="0" y="150" width="50" height="50" fill="%23ffffff" opacity="0.1"/><rect x="60" y="120" width="40" height="80" fill="%23ffffff" opacity="0.1"/><rect x="120" y="100" width="60" height="100" fill="%23ffffff" opacity="0.1"/><rect x="200" y="130" width="45" height="70" fill="%23ffffff" opacity="0.1"/><rect x="260" y="90" width="70" height="110" fill="%23ffffff" opacity="0.1"/></svg>') repeat-x;
    background-size: 300px 200px;
    animation: cityMove 30s linear infinite;
}

@keyframes cityMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-300px); }
}

.vision-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.vision-title {
    font-family: var(--font-futuristic);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.vision-text {
    font-size: var(--font-size-xl);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: var(--background-secondary, var(--light-gray));
    padding: var(--spacing-3xl) 0;
    margin-top: 0;
    margin-bottom: 0;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary, var(--primary-blue));
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-card {
    background: var(--background-primary, var(--white));
    padding: var(--spacing-xl);
    border-radius: 16px;
    border: 1px solid var(--border-color, var(--secondary-gray));
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), #0099cc);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--accent-cyan);
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-xl);
    color: var(--white);
    transition: all var(--transition-normal);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary, var(--primary-blue));
}

.contact-card p {
    color: var(--text-secondary, var(--primary-blue));
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.contact-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-link:hover {
    color: #0099cc;
    transform: translateX(5px);
}

.contact-link::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.contact-link:hover::after {
    transform: translateX(3px);
}

.contact-form-container {
    background: var(--background-primary, var(--white));
    padding: var(--spacing-2xl);
    border-radius: 20px;
    border: 1px solid var(--border-color, var(--secondary-gray));
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), #0099cc, var(--accent-cyan));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.form-header h3 {
    font-family: var(--font-futuristic);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary, var(--primary-blue));
}

.form-header p {
    color: var(--text-secondary, var(--primary-blue));
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    max-width: 100%;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-lg);
    border: 2px solid var(--border-color, var(--secondary-gray));
    border-radius: 12px;
    font-size: var(--font-size-base);
    background: var(--background-primary, var(--white));
    color: var(--text-primary, var(--primary-blue));
    transition: all var(--transition-normal);
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.1);
    transform: translateY(-2px);
}

.contact-form label {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    color: var(--text-secondary, var(--primary-blue));
    opacity: 0.6;
    transition: all var(--transition-normal);
    pointer-events: none;
    background: var(--background-primary, var(--white));
    padding: 0 var(--spacing-sm);
}

.contact-form input:focus + label,
.contact-form select:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form select:not([value=""]) + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--accent-cyan);
    opacity: 1;
}

.btn-submit {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    opacity: 1;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

[data-theme="dark"] .footer {
    background: #0f1419;
    color: #e2e8f0;
}

[data-theme="dark"] .footer .company-info h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .footer .company-info p {
    color: #a0aec0;
}

[data-theme="dark"] .footer .social-link {
    background: rgba(226, 232, 240, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .footer .social-link:hover {
    background: var(--accent-cyan);
    color: #ffffff;
}

[data-theme="dark"] .footer .footer-bottom {
    border-top-color: rgba(226, 232, 240, 0.1);
    color: #a0aec0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo .brace,
.footer-logo .binary-code,
.footer-logo .ai-text,
.footer-logo .arabic-logo,
.footer-logo .english-logo {
    color: var(--white);
}

.company-info h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.company-info p {
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
}

.social-links {
    display: flex;
    gap: var(--spacing-lg);
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: var(--font-size-lg);
}

.social-link:hover {
    background: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Language Toggle */
.ar {
    display: none;
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .en {
    display: none;
}

[dir="rtl"] .ar {
    display: block;
}

/* Navigation Language Toggle */
.nav-link .ar {
    display: none;
}

[dir="rtl"] .nav-link .en {
    display: none;
}

[dir="rtl"] .nav-link .ar {
    display: block;
}

/* Arabic Text Styling */
.ar, [dir="rtl"] .ar {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* RTL Layout Fixes */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-grid {
    direction: rtl;
}

[dir="rtl"] .form-row {
    direction: rtl;
}

[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form select,
[dir="rtl"] .contact-form textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .contact-form label {
    right: var(--spacing-lg);
    left: auto;
}

[dir="rtl"] .contact-form input:focus + label,
[dir="rtl"] .contact-form select:focus + label,
[dir="rtl"] .contact-form textarea:focus + label,
[dir="rtl"] .contact-form input:not(:placeholder-shown) + label,
[dir="rtl"] .contact-form select:not([value=""]) + label,
[dir="rtl"] .contact-form textarea:not(:placeholder-shown) + label {
    right: var(--spacing-md);
    left: auto;
}

[dir="rtl"] .contact-link::after {
    content: '←';
}

[dir="rtl"] .contact-link:hover::after {
    transform: translateX(-3px);
}

/* Additional RTL fixes for better Arabic support */
[dir="rtl"] .industries-grid {
    direction: rtl;
}

[dir="rtl"] .features-grid {
    direction: rtl;
}

[dir="rtl"] .about-icons {
    direction: rtl;
}

[dir="rtl"] .social-links {
    direction: rtl;
}

[dir="rtl"] .nav-container {
    direction: rtl;
}

[dir="rtl"] .nav-controls {
    direction: rtl;
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="rtl"] .vision-content {
    direction: rtl;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-title .en,
    .hero-title .ar {
        white-space: normal;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .about-icons {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
    }
    
    .about-icons .icon-card {
        max-width: 300px;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-form-container {
        padding: var(--spacing-lg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .loader-container {
        padding: var(--spacing-lg);
    }
    
    .loader-title {
        font-size: var(--font-size-3xl);
    }
    
    .progress-bar {
        width: 250px;
    }
    
    .loader-code {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .vision-title {
        font-size: var(--font-size-3xl);
    }
    
    .vision-text {
        font-size: var(--font-size-lg);
    }
    
    .about-icons .icon-card {
        max-width: 100%;
        padding: var(--spacing-lg);
    }
    
    .about-icons .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-lg);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--transition-slow);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-slow);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional Programming Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes matrixFade {
    0% {
        opacity: 0.8;
        transform: translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes codeRain {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

/* Typing Animation */
.typing-text {
    overflow: visible;
    border-right: 2px solid var(--accent-cyan);
    white-space: normal;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
    width: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes typing {
    from { width: 0; }
    to { width: auto; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-cyan); }
}

/* Enhanced Logo Animations */
.logo-image {
    transition: all var(--transition-normal);
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}

/* Programming Power Showcase */
.programming-power {
    position: relative;
    overflow: hidden;
}

.programming-power::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 225, 255, 0.1), transparent);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 225, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::after {
    left: 100%;
}

/* Glitch Effect for Titles */
.glitch {
    position: relative;
    color: var(--primary-blue);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(2px, -2px);
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), #1a365d);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    color: var(--white);
}

.loader-logo {
    margin-bottom: var(--spacing-xl);
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loader-text {
    margin-bottom: var(--spacing-xl);
}

.loader-title {
    font-family: var(--font-futuristic);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    display: block;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-cyan), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.8;
    font-family: var(--font-mono);
}

.loader-progress {
    margin-bottom: var(--spacing-xl);
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), #ffffff);
    border-radius: 2px;
    animation: progressLoad 3s ease-in-out;
}

@keyframes progressLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}

.progress-text {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

.loader-code {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    opacity: 0.6;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.loader-code .code-line {
    margin-bottom: var(--spacing-xs);
    opacity: 0;
    animation: codeLineReveal 0.5s ease forwards;
}

.loader-code .code-line:nth-child(1) { animation-delay: 0.5s; }
.loader-code .code-line:nth-child(2) { animation-delay: 1s; }
.loader-code .code-line:nth-child(3) { animation-delay: 1.5s; }

@keyframes codeLineReveal {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 0.6;
        transform: translateX(0);
    }
}

/* Legal Pages Styles */
.legal-page {
    min-height: 100vh;
    padding: var(--spacing-3xl) 0;
    margin-top: 80px;
    background: var(--light-gray);
}

[data-theme="dark"] .legal-page {
    background: var(--dark-gray);
}

.legal-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--accent-cyan);
}

.legal-title {
    font-family: var(--font-futuristic);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir="rtl"] .legal-title {
    direction: rtl;
    text-align: center;
}

.legal-date {
    font-size: var(--font-size-base);
    color: var(--primary-blue);
    opacity: 0.7;
    font-style: italic;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--spacing-3xl);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--secondary-gray);
}

[data-theme="dark"] .legal-content {
    background: #2d3748;
    border-color: #4a5568;
}

.legal-section {
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--secondary-gray);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-family: var(--font-futuristic);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-left: var(--spacing-md);
}

[dir="rtl"] .legal-section h2 {
    padding-left: 0;
    padding-right: var(--spacing-md);
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, var(--accent-cyan), #0099cc);
    border-radius: 2px;
}

[dir="rtl"] .legal-section h2::before {
    left: auto;
    right: 0;
}

.legal-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.legal-section p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

[data-theme="dark"] .legal-section p {
    color: #e2e8f0;
}

.legal-section ul {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-2xl);
}

[dir="rtl"] .legal-section ul {
    padding-left: 0;
    padding-right: var(--spacing-2xl);
}

.legal-section li {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: var(--spacing-sm);
}

[data-theme="dark"] .legal-section li {
    color: #e2e8f0;
}

[dir="rtl"] .legal-section li {
    padding-left: 0;
    padding-right: var(--spacing-sm);
}

.legal-section li::before {
    content: '▸';
    position: absolute;
    left: -20px;
    color: var(--accent-cyan);
    font-weight: bold;
}

[dir="rtl"] .legal-section li::before {
    left: auto;
    right: -20px;
    content: '◂';
}

.legal-section strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.legal-section a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.legal-section a:hover {
    color: #0099cc;
    text-decoration: underline;
}

.contact-box {
    background: var(--light-gray);
    padding: var(--spacing-xl);
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
    margin-top: var(--spacing-lg);
}

[data-theme="dark"] .contact-box {
    background: #1a202c;
}

[dir="rtl"] .contact-box {
    border-left: none;
    border-right: 4px solid var(--accent-cyan);
}

.contact-box p {
    margin-bottom: var(--spacing-sm);
}

.contact-box strong {
    color: var(--primary-blue);
    font-weight: 600;
}

[data-theme="dark"] .contact-box strong {
    color: #e2e8f0;
}

/* Footer Links */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

[dir="rtl"] .footer-links {
    direction: rtl;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    opacity: 0.8;
}

.footer-link:hover {
    color: var(--accent-cyan);
    opacity: 1;
}

.footer-links .separator {
    color: var(--white);
    opacity: 0.5;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        margin-top: 60px;
        padding: var(--spacing-xl) 0;
    }
    
    .legal-content {
        padding: var(--spacing-xl);
    }
    
    .legal-title {
        font-size: var(--font-size-3xl);
    }
    
    .legal-section h2 {
        font-size: var(--font-size-xl);
    }
    
    .legal-section h3 {
        font-size: var(--font-size-lg);
    }
    
    .legal-section ul {
        padding-left: var(--spacing-lg);
    }
    
    [dir="rtl"] .legal-section ul {
        padding-left: 0;
        padding-right: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: var(--spacing-lg);
    }
    
    .legal-title {
        font-size: var(--font-size-2xl);
    }
    
    .legal-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .legal-section {
        margin-bottom: var(--spacing-xl);
        padding-bottom: var(--spacing-md);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-links .separator {
        display: none;
    }
}
