/* InfoTech DZ - Common Styles for All Pages */

/* CSS Variables */
:root {
    /* Modern Professional Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    
    /* Modern Gradient Colors */
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-card: linear-gradient(135deg, #f4f6f8 0%, #fafbfc 100%);
    --gradient-design: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-build: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-host: linear-gradient(135deg, #059669 0%, #06b6d4 100%);
    --gradient-aurora: linear-gradient(45deg, #2563eb, #06b6d4, #8b5cf6, #059669, #d97706);
}

/* Light Mode Colors (Default) - Eye-friendly soft colors */
:root {
    --bg-primary: #fafbfc;          /* Very soft off-white */
    --bg-secondary: #f4f6f8;        /* Gentle light gray */
    --bg-tertiary: #eef2f6;         /* Soft neutral gray */
    --text-primary: #1a202c;        /* Softer black */
    --text-secondary: #4a5568;      /* Comfortable gray */
    --text-tertiary: #718096;       /* Subtle gray */
    --border-color: #e2e8f0;        /* Gentle border */
    --card-bg: #f7f9fb;             /* Soft card background */
    --glass: rgba(247, 249, 251, 0.95); /* Soft glass effect */
    --shadow: rgba(26, 32, 44, 0.06);   /* Gentle shadow */
    --shadow-hover: rgba(26, 32, 44, 0.12); /* Soft hover shadow */
    --nav-bg: rgba(247, 249, 251, 0.95);    /* Soft navigation */
    --separator: #e2e8f0;           /* Gentle separator */
    --toggle-bg: #e2e8f0;           /* Toggle background */
    --toggle-active: #2563eb;       /* Active toggle */
}

/* Dark Mode Colors - Comfortable for eyes */
[data-theme="dark"] {
    --bg-primary: #1a202c;          /* Softer dark blue-gray */
    --bg-secondary: #2d3748;        /* Comfortable dark gray */
    --bg-tertiary: #4a5568;         /* Gentle mid-gray */
    --text-primary: #f7fafc;        /* Softer white */
    --text-secondary: #e2e8f0;      /* Comfortable light gray */
    --text-tertiary: #a0aec0;       /* Subtle gray */
    --border-color: #4a5568;        /* Gentle border */
    --card-bg: rgba(45, 55, 72, 0.6); /* Soft card background */
    --glass: rgba(247, 250, 252, 0.08); /* Subtle glass effect */
    --shadow: rgba(0, 0, 0, 0.25);     /* Gentler shadow */
    --nav-bg: rgba(26, 32, 44, 0.95);  /* Comfortable navigation */
    --separator: #4a5568;           /* Gentle separator */
    --toggle-bg: #4a5568;           /* Toggle background */
    --toggle-active: #22d3ee;       /* Active toggle */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles - Optimized for eye comfort */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0;
    padding: 0;
    /* Enhanced text rendering for better readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-variant-ligatures: common-ligatures;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-y: auto;
    height: 100%;
    scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* Professional Dynamic Background */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -3;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Professional Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    animation: gridMove 60s linear infinite;
}

/* Abstract Geometric Elements */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05));
    animation: floatGeometric 30s ease-in-out infinite;
}

.geometric-shape:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
    animation-duration: 40s;
}

.geometric-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -150px;
    animation-delay: -15s;
    animation-duration: 35s;
}

.geometric-shape:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: -100px;
    animation-delay: -25s;
    animation-duration: 45s;
}

.geometric-shape:nth-child(4) {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -50px;
    animation-delay: -35s;
    animation-duration: 30s;
}

/* Professional Dots Pattern */
.dots-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: dotsMove 120s linear infinite;
}

/* Subtle Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    animation: gradientShift 40s ease-in-out infinite;
}

/* Professional Particle System */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    opacity: 0.2;
}

/* Hexagonal Pattern */
.hexagon-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            30deg, 
            transparent, 
            transparent 10px, 
            rgba(37, 99, 235, 0.02) 10px, 
            rgba(37, 99, 235, 0.02) 20px
        ),
        repeating-linear-gradient(
            -30deg, 
            transparent, 
            transparent 10px, 
            rgba(6, 182, 212, 0.02) 10px, 
            rgba(6, 182, 212, 0.02) 20px
        );
    animation: hexagonMove 80s linear infinite;
}

/* Fallback for existing animated-bg class */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float-shape 20s ease-in-out infinite;
}

.bg-shape:nth-child(1) {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -300px;
    left: -200px;
    animation-duration: 25s;
}

.bg-shape:nth-child(2) {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -250px;
    right: -250px;
    animation-duration: 30s;
    animation-delay: 5s;
}

.bg-shape:nth-child(3) {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    animation-delay: 10s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(100px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-50px, 100px) scale(0.9);
    }
    75% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

@keyframes auroraShift {
    0%, 100% { 
        background-position: 0% 50%; 
        transform: rotate(0deg) scale(1);
    }
    25% { 
        background-position: 100% 50%; 
        transform: rotate(90deg) scale(1.1);
    }
    50% { 
        background-position: 50% 100%; 
        transform: rotate(180deg) scale(0.9);
    }
    75% { 
        background-position: 0% 50%; 
        transform: rotate(270deg) scale(1.05);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-100px) translateX(50px) rotate(90deg); 
    }
    50% { 
        transform: translateY(-50px) translateX(100px) rotate(180deg); 
    }
    75% { 
        transform: translateY(50px) translateX(-50px) rotate(270deg); 
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes floatGeometric {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.05;
    }
    25% { 
        transform: translate(30px, -20px) scale(1.1) rotate(90deg);
        opacity: 0.08;
    }
    50% { 
        transform: translate(-20px, 30px) scale(0.9) rotate(180deg);
        opacity: 0.06;
    }
    75% { 
        transform: translate(20px, 20px) scale(1.05) rotate(270deg);
        opacity: 0.07;
    }
}

@keyframes dotsMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes gradientShift {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 60% 40%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    }
    25% { 
        background: 
            radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    }
    50% { 
        background: 
            radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    }
    75% { 
        background: 
            radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 60% 40%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    }
}

@keyframes hexagonMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, 20px) rotate(60deg); }
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

nav.scrolled {
    height: 65px;
    box-shadow: 0 5px 20px var(--shadow);
}

nav.scrolled .logo-tagline {
    display: none;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: absolute;
    left: 0;
}

.logo-icon {
    position: relative;
    width: 45px;
    height: 45px;
}

.logo-mobile {
    position: absolute;
    width: 28px;
    height: 38px;
    background: #0066ff;
    border-radius: 5px;
    left: 0;
    top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 102, 255, 0.3);
}

.logo-bracket {
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 32px;
    color: #00d4ff;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.logo-text {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    display: flex;
    align-items: center;
}

.logo-tagline {
    font-size: 0.5em;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: -2px;
}

.logo-info {
    color: #00d4ff;
}

.logo-tech {
    color: var(--text-primary);
}

.logo-dz {
    color: #0066ff;
    font-weight: 700;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    right: 0;
    z-index: 1000;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-width: 80px;
}

.lang-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.lang-current-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.lang-dropdown.active .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1000;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.lang-option.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-weight: 600;
}

.lang-option.active .lang-flag {
    transform: scale(1.1);
}

.lang-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lang-name {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.lang-code {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
    margin-top: 2px;
}

.lang-check {
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.lang-option.active .lang-check {
    opacity: 1;
    transform: scale(1);
}

.lang-check svg {
    width: 100%;
    height: 100%;
}

/* Enhanced Theme Toggle with Animations */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--toggle-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--border-color);
    margin-right: 0.5rem;
    overflow: hidden;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(37, 99, 235, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Animated Background Gradient */
.theme-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.theme-toggle:hover::after {
    left: 100%;
}

/* Sliding Circle with Enhanced Shadow */
.theme-toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 50%;
    top: 1px;
    left: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 2;
}

[data-theme="dark"] .theme-toggle {
    background: var(--toggle-active);
    border-color: var(--toggle-active);
    box-shadow: 
        inset 0 1px 5px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(34, 211, 238, 0.3);
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(24px);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Icon Container with Rotation */
.theme-icon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    pointer-events: none;
}

/* Enhanced Icon Animations */
.theme-icon {
    width: 14px;
    height: 14px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #f59e0b;
}

.moon-icon {
    opacity: 0.3;
    transform: rotate(-90deg) scale(0.8);
    color: #94a3b8;
}

[data-theme="dark"] .sun-icon {
    opacity: 0.3;
    transform: rotate(180deg) scale(0.8);
    color: #94a3b8;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #fbbf24;
}

/* Pulse Animation on Theme Change */
@keyframes themePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.theme-toggle.transitioning {
    animation: themePulse 0.6s ease-out;
}

/* Star Animation for Dark Mode */
@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.theme-toggle[data-transitioning="true"]::after {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 16px;
    animation: starTwinkle 0.6s ease-out;
}

/* Background Transition Effect */
html[data-theme-transitioning] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        var(--primary) 0%, 
        transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    animation: themeTransition 0.6s ease-out;
}

@keyframes themeTransition {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 0.1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2); }
}

/* Professional Footer Styles */
.professional-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Footer Logo and About */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.footer-logo .logo-mobile {
    width: 24px;
    height: 32px;
    font-size: 10px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Social Media Links */
.footer-social {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    border-color: var(--primary);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Links */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: -20px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    width: 10px;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Footer CTA Button */
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.footer-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.footer-cta:hover svg {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    padding-bottom: 2rem;
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.footer-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal .separator {
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* Dark Mode Footer Styles */
[data-theme="dark"] .professional-footer {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .social-link {
    background: rgba(30, 41, 59, 0.7);
    border-color: #334155;
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .footer-divider {
    background: rgba(51, 65, 85, 0.5);
}

/* RTL Support for Arabic */
[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .footer-section h3::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact-item {
    direction: rtl;
}

[dir="rtl"] .footer-section ul li a::before {
    left: auto;
    right: -20px;
}

[dir="rtl"] .footer-section ul li a:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .footer-cta svg {
    transform: scaleX(-1);
}

[dir="rtl"] .footer-cta:hover svg {
    transform: scaleX(-1) translateX(-3px);
}

/* Mobile Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-description,
    .footer-section ul li a,
    .contact-item {
        font-size: 0.9rem;
    }
}

/* Button Styles */
.btn {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(2rem, 4vw, 2.5rem);
    border: none;
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Language-specific styles */
.lang-en { display: block; }
.lang-fr { display: none; }
.lang-ar { display: none; }

body[data-lang="fr"] .lang-en { display: none; }
body[data-lang="fr"] .lang-fr { display: block; }
body[data-lang="ar"] .lang-en { display: none; }
body[data-lang="ar"] .lang-ar { display: block; }
body[data-lang="ar"] { direction: rtl; text-align: right; }
body[data-lang="ar"] .nav-container,
body[data-lang="ar"] .nav-links { direction: ltr; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px var(--shadow);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links.active ~ .nav-controls {
        position: fixed;
        top: auto;
        bottom: 2rem;
        right: 2rem;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-controls {
        display: none;
    }

    .logo-tagline {
        display: none;
    }
    
    .lang-dropdown {
        min-width: 200px;
        right: -20px;
    }
    
    .lang-option {
        padding: 0.9rem 1rem;
    }
    
    .lang-info {
        gap: 2px;
    }
    
    .lang-name {
        font-size: 0.85rem;
    }
    
    .lang-code {
        font-size: 0.7rem;
    }
}


/* Feature cards animation */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive image optimization */
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Performance optimizations */
.optimized-element {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .feature-card {
        transition: none;
        animation: none;
    }
}
}

@media (max-width: 480px) {
    nav {
        padding: 0 3%;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Currency Style */
.currency {
    font-weight: 600;
    color: var(--primary);
}

.currency-symbol {
    margin-right: 0.2rem;
}

/* Ensure all currency displays use DZD */
.price-currency {
    font-weight: 600;
}

/* Dark Mode Specific Language Selector Styles */
[data-theme="dark"] .lang-button {
    background: rgba(15, 23, 42, 0.7);
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .lang-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

[data-theme="dark"] .lang-dropdown {
    background: rgba(15, 23, 42, 0.95);
    border-color: #334155;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .lang-option {
    color: var(--text-secondary);
    border-color: #334155;
}

[data-theme="dark"] .lang-option:hover {
    background: rgba(51, 65, 85, 0.5);
    color: var(--text-primary);
}

[data-theme="dark"] .lang-option.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Eye-comfort and accessibility improvements */
/* Subtle background texture for reduced eye strain */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.015) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Improved readability for headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Better contrast for links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Comfortable card backgrounds */
.card, .project-card, .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.card:hover, .project-card:hover, .feature-card:hover {
    box-shadow: 0 4px 16px var(--shadow-hover);
    transform: translateY(-2px);
}

/* Enhanced focus states for better accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Comfortable input styling */
input, textarea, select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    background: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Better text spacing for readability */
p, li {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Improved contrast for better accessibility */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #ffffff;
        --text-primary: #000000;
        --border-color: #666666;
    }
    
    [data-theme="dark"] {
        --bg-primary: #000000;
        --text-primary: #ffffff;
        --border-color: #cccccc;
    }
}

