/* ===== Variables - Modern Interactive Design ===== */
:root {
    /* Primary Colors - Vibrant Modern Palette */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-accent: #8b5cf6;
    --color-accent-2: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    
    /* Text Colors */
    --color-text: #1e293b;
    --color-text-dark: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    
    /* Background Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-bg-section: #f1f5f9;
    
    /* Border Colors */
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    
    /* Typography */
    --font-heading: 'Outfit', 'Tajawal', sans-serif;
    --font-body: 'DM Sans', 'Tajawal', sans-serif;
    --font-arabic: 'Tajawal', sans-serif;
    
    /* Layout */
    --container: 1200px;
    --header-h: 80px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 25px 60px rgba(0,0,0,0.18);
    --shadow-card: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 80px rgba(99, 102, 241, 0.4);
    
    /* Transitions - Smooth & Modern */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Gradients - Vibrant & Modern */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-footer: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, rgba(79, 70, 229, 0.1) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);
}

/* ===== Keyframe Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-3deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    25% { transform: translate(10px, -20px) rotate(90deg); opacity: 1; }
    50% { transform: translate(-5px, -40px) rotate(180deg); opacity: 0.6; }
    75% { transform: translate(-15px, -20px) rotate(270deg); opacity: 1; }
}

@keyframes scrollIndicator {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes cardFlip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(180deg); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8)); }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(99, 102, 241, 0.3); }
    50% { border-color: rgba(99, 102, 241, 0.8); }
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Utility Classes - Modern Effects ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animate {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.glow-effect {
    animation: pulseGlow 2s ease-in-out infinite;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-reverse {
    animation: floatReverse 7s ease-in-out infinite;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform var(--transition-smooth);
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

.magnetic-hover {
    transition: transform var(--transition);
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.blob-shape {
    animation: morphBlob 8s ease-in-out infinite;
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Scale on hover */
.hover-scale {
    transition: transform var(--transition);
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Rotate on hover */
.hover-rotate {
    transition: transform var(--transition);
}
.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Icon bounce on hover */
.icon-bounce:hover .service-icon,
.icon-bounce:hover .icon {
    animation: iconBounce 0.6s ease;
}

/* Glow border on hover */
.glow-border {
    border: 2px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.glow-border:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-glow);
}

/* Ripple effect for buttons */
.ripple-effect {
    position: relative;
    overflow: hidden;
}
.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}
.ripple-effect:active::after {
    animation: ripple 0.6s ease-out;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

/* Reveal animations with directions */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: rotate(-5deg) scale(0.95);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal-rotate.is-visible {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; margin: 0; padding: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.main-content { min-height: 60vh; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.site-header.scrolled { 
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.98);
    border-bottom-color: rgba(102, 126, 234, 0.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition);
    gap: 0.75rem;
}
.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    min-width: 120px;
    object-fit: contain;
    display: block;
    opacity: 1 !important;
    transition: transform var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    flex-shrink: 0;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition);
    white-space: nowrap;
    display: inline-block;
    line-height: 1.2;
}
.logo:hover {
    transform: translateY(-1px);
}
.logo:hover .logo-img { 
    transform: translateY(-2px) scale(1.05);
}
.logo:hover .logo-text {
    transform: translateY(-2px) scale(1.05);
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo {
        gap: 0.5rem;
    }
    .logo-img {
        height: 40px;
        max-width: 150px;
        min-width: 100px;
    }
    .logo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
        max-width: 120px;
        min-width: 80px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
}
.main-nav ul {
    display: flex;
    gap: 0.5rem 1.5rem;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-smooth) var(--ease-out-expo);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover,
.main-nav a.active { 
    color: var(--color-primary);
    font-weight: 600;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--color-bg-alt); }
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform var(--transition-smooth), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; }
    .main-nav.is-open {
        display: block;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 1.25rem;
        animation: slideDown 0.3s var(--ease-out-expo);
    }
    .main-nav.is-open ul { flex-direction: column; gap: 0.25rem; }
    .main-nav a::after { display: none; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections ===== */
.section {
    padding: 6rem 0;
    transition: opacity var(--transition-smooth);
}
.section-alt { 
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}
.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}
.section-subtitle {
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.75;
    font-size: 1.1rem;
}

/* Scroll reveal (JS adds .is-visible) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Hero ===== */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
.hero .container { 
    position: relative; 
    z-index: 1; 
    max-width: 900px;
}
.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-img {
    height: 80px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform var(--transition-smooth);
}
.hero-logo:hover .hero-logo-img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .hero-logo-img {
        height: 60px;
        max-width: 250px;
    }
}
.hero .subtitle-small {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--color-text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hero .lead {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.hero-actions .btn {
    margin: 0;
}

/* Trust Badges Section */
.trust-badges {
    background: var(--color-bg);
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.trust-badge-item {
    padding: 1.5rem;
}
.trust-badge-item h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}
.trust-badge-item .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    display: block;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.trust-badge-item .label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.trust-badge-item .rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.trust-badge-item .rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}
.trust-badge-item .rating-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background var(--transition-smooth), color var(--transition), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}
.btn-outline:active { transform: translateY(0); }

/* ===== Services grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-smooth) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.2);
}
.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}
.service-card:hover .service-icon { 
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
    color: var(--color-text);
    font-weight: 700;
}
.service-card p { 
    margin: 0; 
    color: var(--color-text-muted); 
    font-size: 1rem; 
    line-height: 1.7; 
}
.service-card .service-link,
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
}
.service-card .service-link:hover,
.service-link:hover {
    color: var(--color-primary-dark);
    gap: 0.75rem;
}
[dir="rtl"] .service-card .service-link:hover,
[dir="rtl"] .service-link:hover {
    gap: 0.75rem;
}

/* ===== Stats ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
    padding: 4rem 0;
}
.stat-item {
    transition: transform var(--transition-smooth);
    padding: 2rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.stat-item:hover::before {
    opacity: 0.05;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.stat-item .number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.stat-item .label { 
    color: var(--color-text-muted); 
    font-size: 1rem; 
    font-weight: 500;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
}
.team-card {
    text-align: center;
    transition: all var(--transition-smooth);
    padding: 2rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(102, 126, 234, 0.1);
}
.team-card:hover { 
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.2);
}
.team-card .photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    border: 4px solid var(--color-bg);
}
.team-card:hover .photo { 
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}
.team-card h4 { 
    font-family: var(--font-heading); 
    margin: 0 0 0.5rem; 
    font-size: 1.25rem;
    font-weight: 700;
}
.team-card .role { 
    color: var(--color-primary); 
    font-size: 1rem; 
    margin: 0 0 1rem; 
    font-weight: 600;
}
.team-card p { 
    margin: 0; 
    color: var(--color-text-muted); 
    font-size: 0.95rem; 
    line-height: 1.7; 
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-smooth);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: serif;
    color: rgba(102, 126, 234, 0.15);
    line-height: 1;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.2);
}
.testimonial-card blockquote { 
    margin: 0 0 1.5rem; 
    font-style: italic; 
    color: var(--color-text-muted); 
    line-height: 1.75;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}
.testimonial-card .author { 
    font-weight: 700; 
    color: var(--color-text);
    font-size: 1.1rem;
}
.testimonial-card .company { 
    font-size: 0.95rem; 
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* ===== Portfolio ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-smooth) var(--ease-out-expo);
    position: relative;
}
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}
.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.2);
}
.portfolio-item:hover::before {
    opacity: 0.03;
}
.portfolio-item .thumb {
    height: 240px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    transition: all var(--transition-smooth);
    position: relative;
    z-index: 2;
}
.portfolio-item:hover .thumb { 
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}
.portfolio-item .info { 
    padding: 2rem; 
    position: relative;
    z-index: 2;
}
.portfolio-item h3 { 
    font-family: var(--font-heading); 
    margin: 0 0 0.75rem; 
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}
.portfolio-item p { 
    margin: 0 0 1rem; 
    color: var(--color-text-muted); 
    font-size: 1rem;
    line-height: 1.7;
}
.portfolio-item a { 
    font-weight: 600; 
    color: var(--color-primary);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.portfolio-item a:hover {
    color: var(--color-primary-dark);
    transform: translateX(4px);
}
[dir="rtl"] .portfolio-item a:hover {
    transform: translateX(-4px);
}

/* ===== Contact form ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 768px) { .contact-wrap { grid-template-columns: 1fr; gap: 2rem; } }
.contact-form {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(102, 126, 234, 0.1);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition);
    background: var(--color-bg);
    color: var(--color-text);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(102, 126, 234, 0.02);
}
.form-group textarea { 
    min-height: 160px; 
    resize: vertical;
    line-height: 1.6;
}
.contact-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.1);
}
.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: var(--color-text);
    font-weight: 700;
}
.contact-info p { 
    margin: 0 0 1.25rem; 
    line-height: 1.7;
    color: var(--color-text-muted);
}
.contact-info strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-info a {
    color: var(--color-primary);
    font-weight: 500;
}
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.alert-success { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #065f46; 
    border-color: rgba(16, 185, 129, 0.3);
}
.alert-error { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.pricing-card {
    background: var(--color-bg);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}
.pricing-card:hover::before {
    transform: scaleX(1);
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.3);
}
.pricing-card.featured {
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}
.pricing-card.featured::before {
    transform: scaleX(1);
    height: 5px;
}
.pricing-card.featured:hover { 
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
    transform: scale(1.05) translateY(-8px);
}
.pricing-card h3 { 
    font-family: var(--font-heading); 
    margin: 0 0 0.75rem; 
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0 1.5rem;
    line-height: 1.2;
}
.pricing-card .price span { 
    font-size: 1rem; 
    font-weight: 400; 
    color: var(--color-text-muted);
    display: block;
    margin-top: 0.25rem;
}
.pricing-card ul {
    text-align: left;
    margin: 2rem 0;
    list-style: none;
}
.pricing-card ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-muted);
    line-height: 1.6;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}
.pricing-card ul li:last-child {
    border-bottom: none;
}
.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    top: 0.75rem;
}
.pricing-card .btn {
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
}

/* ===== Page headers ===== */
.page-hero {
    padding: 7rem 0 5rem;
    text-align: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
}
.page-hero .particles-container,
.page-hero .floating-shape {
    opacity: 0.5;
}
.page-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}
.page-hero h1 { 
    font-family: var(--font-heading); 
    font-size: clamp(2.25rem, 5vw, 3.5rem); 
    margin: 0 0 1.25rem; 
    letter-spacing: -0.02em;
    color: #fff;
    font-weight: 700;
}
.page-hero h1.gradient-text-animate {
    background: linear-gradient(90deg, #fff, #c7d2fe, #a5b4fc, #fff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}
.page-hero p { 
    margin: 0; 
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}
.footer-logo-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform var(--transition);
}
.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform var(--transition);
}
.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    transition: transform var(--transition);
}
.footer-logo:hover {
    transform: translateY(-2px);
}
.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}
.footer-logo:hover .footer-logo-text {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .footer-logo-img {
        height: 40px;
        max-width: 150px;
    }
    .footer-logo-text {
        font-size: 1.25rem;
    }
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0 0 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.footer-col a { 
    color: #94a3b8; 
    transition: all var(--transition);
    display: inline-block;
}
.footer-col a:hover { 
    color: #fff; 
    transform: translateX(4px);
}
[dir="rtl"] .footer-col a:hover {
    transform: translateX(-4px);
}
.footer-col p { margin: 0 0 0.75rem; font-size: 1rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.95rem; color: #94a3b8; }

/* Newsletter Section */
.newsletter {
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}
.newsletter h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: #fff;
}
.newsletter p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}
.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
}
.newsletter-form input::placeholder {
    color: #94a3b8;
}
.newsletter-form input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
}
.newsletter-form button {
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition);
}
.newsletter-form button:hover {
    transform: translateY(-2px);
}
@media (max-width: 640px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ===== Language switcher ===== */
.lang-switcher { margin-inline-start: 0.5rem; }
.lang-sep { color: var(--color-border); margin: 0 0.25rem; }
.lang-switcher a.active { font-weight: 700; color: var(--color-primary); }

/* ===== RTL (Arabic) ===== */
[dir="rtl"] body,
body.rtl { 
    font-family: var(--font-arabic), var(--font-body), sans-serif; 
    text-align: right; 
    direction: rtl;
}
[dir="rtl"] .section-title, 
[dir="rtl"] .section-subtitle, 
[dir="rtl"] .hero h1, 
[dir="rtl"] .hero .lead,
[dir="rtl"] .page-hero h1, 
[dir="rtl"] .page-hero p { 
    text-align: center; 
}
[dir="rtl"] .content-block { 
    text-align: right; 
}
[dir="rtl"] .content-block h2 { 
    text-align: right; 
}
[dir="rtl"] .header-inner { 
    flex-direction: row-reverse; 
}
[dir="rtl"] .main-nav ul { 
    flex-direction: row-reverse; 
    flex-wrap: wrap; 
}
[dir="rtl"] .main-nav a::after { 
    left: auto; 
    right: 0; 
}
[dir="rtl"] .service-card::before { 
    left: auto; 
    right: 0; 
}
[dir="rtl"] .footer-col h4::after { 
    left: auto; 
    right: 0; 
}
[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}
[dir="rtl"] .client-links {
    flex-direction: row-reverse;
}

/* ===== Content block (About, etc.) ===== */
.content-block { max-width: 720px; margin: 0 auto; }
.content-block h2 { font-family: var(--font-heading); margin: 2rem 0 0.75rem; }
.content-block p { margin: 0 0 1rem; color: var(--color-text-muted); line-height: 1.75; }

/* ===== Additional Enhancements ===== */
.btn-outline {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-width: 2px;
}
.btn-outline:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

/* Clients Section */
.clients-section {
    padding: 5rem 0;
    background: var(--color-bg-alt);
}
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}
.client-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: all var(--transition-smooth);
}
.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.2);
}
.client-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--color-text-dark);
}
.client-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.client-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.client-links a {
    padding: 0.5rem 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}
.client-links a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Blog/News Section */
.blog-section {
    padding: 5rem 0;
    background: var(--color-bg);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.blog-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: all var(--transition-smooth);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.blog-card .date {
    padding: 1rem 1.5rem;
    background: var(--color-bg-alt);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}
.blog-card .content {
    padding: 1.5rem;
}
.blog-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--color-text-dark);
    line-height: 1.4;
}
.blog-card h4 a {
    color: inherit;
    transition: color var(--transition);
}
.blog-card h4 a:hover {
    color: var(--color-primary);
}
.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.blog-card:hover .read-more {
    gap: 0.75rem;
}

/* Subtitle small badge */
.subtitle-small {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* Tech badge hover */
.tech-badge {
    transition: all var(--transition);
}
.tech-badge:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Client logo hover */
.client-logo:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* FAQ item hover */
.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
        min-height: 60vh;
    }
    .section {
        padding: 4rem 0;
    }
    .services-grid,
    .team-grid,
    .testimonials-grid,
    .blog-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .clients-section,
    .blog-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .hero {
        padding: 4rem 0 3rem;
        min-height: 60vh;
    }
    .service-card,
    .team-card,
    .testimonial-card,
    .pricing-card {
        padding: 1.5rem;
    }
    .portfolio-item .thumb {
        height: 180px;
        font-size: 2.5rem;
    }
}

/* Loading animation for images */
img:not(.logo-img) {
    opacity: 0;
    transition: opacity 0.3s;
}
img.loaded,
img.logo-img {
    opacity: 1;
}

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection styles */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--color-text);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* ===== Particles Background ===== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; width: 8px; height: 8px; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; width: 12px; height: 12px; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(4) { left: 50%; top: 80%; animation-delay: 0.5s; width: 14px; height: 14px; }
.particle:nth-child(5) { left: 60%; top: 30%; animation-delay: 1.5s; width: 10px; height: 10px; }
.particle:nth-child(6) { left: 70%; top: 70%; animation-delay: 2.5s; width: 8px; height: 8px; }
.particle:nth-child(7) { left: 80%; top: 50%; animation-delay: 0.8s; width: 16px; height: 16px; }
.particle:nth-child(8) { left: 90%; top: 20%; animation-delay: 1.8s; width: 6px; height: 6px; }
.particle:nth-child(9) { left: 15%; top: 80%; animation-delay: 3s; width: 10px; height: 10px; }
.particle:nth-child(10) { left: 85%; top: 85%; animation-delay: 2.2s; width: 12px; height: 12px; }

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

.floating-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.floating-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.3);
    bottom: -50px;
    right: -50px;
    animation: floatReverse 18s ease-in-out infinite;
}

.floating-shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(236, 72, 153, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

/* ===== Enhanced Hero Section ===== */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero .subtitle-small {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero h1 .typing-text {
    display: inline-block;
    position: relative;
}

.hero h1 .typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--color-primary-light);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

.hero .lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    padding: 1.1rem 2.75rem;
    font-size: 1.1rem;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
}

.hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollIndicator 2s infinite;
}

/* ===== Enhanced Service Cards - 3D Flip ===== */
.service-card-3d {
    perspective: 1000px;
    height: 320px;
}

.service-card-3d .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s var(--ease-out-expo);
    transform-style: preserve-3d;
}

.service-card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

.service-card-3d .card-front,
.service-card-3d .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-3d .card-front {
    background: var(--color-bg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.service-card-3d .card-back {
    background: var(--gradient-primary);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card-3d .card-back h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.service-card-3d .card-back p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card-3d .card-back .btn {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card-3d .card-back .btn:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Animated Service Icon */
.service-icon-animated {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.service-icon-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s;
}

.service-card:hover .service-icon-animated::before,
.service-card-3d:hover .service-icon-animated::before {
    transform: rotate(45deg) translateY(100%);
}

.service-card:hover .service-icon-animated {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* ===== Interactive Timeline ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0%;
    background: var(--gradient-secondary);
    border-radius: 2px;
    transition: height 0.3s ease;
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
    padding-left: 3rem;
    padding-right: 0;
}

.timeline-marker {
    position: absolute;
    top: 2.5rem;
    width: 20px;
    height: 20px;
    background: var(--color-bg);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    transition: all var(--transition);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-item.is-active .timeline-marker {
    background: var(--color-primary);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-content {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.timeline-year {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.timeline-content p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-progress {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 10px;
        right: auto;
    }
}

/* ===== Enhanced Team Cards ===== */
.team-card-enhanced {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.team-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: opacity var(--transition);
}

.team-card-enhanced:hover::before {
    opacity: 0.2;
}

.team-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-photo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    z-index: 1;
}

.team-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: all var(--transition-smooth);
    border: 4px solid var(--color-bg);
    position: relative;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-photo-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
                var(--gradient-primary) border-box;
    transition: all var(--transition);
}

.team-card-enhanced:hover .team-photo-ring {
    animation: borderGlow 1.5s ease-in-out infinite;
}

.team-card-enhanced:hover .team-photo {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.team-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition);
}

.team-card-enhanced:hover .team-social-overlay {
    opacity: 1;
    transform: scale(1);
}

.team-social-overlay a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all var(--transition);
}

.team-social-overlay a:hover {
    background: #fff;
    color: var(--color-primary);
    transform: scale(1.1);
}

.team-card-enhanced h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.team-card-enhanced .role {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-card-enhanced .bio {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== Portfolio Filter & Gallery ===== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

/* Masonry Grid */
.portfolio-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item-enhanced {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
}

.portfolio-item-enhanced.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

.portfolio-item-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-thumb {
    position: relative;
    height: 260px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    overflow: hidden;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.portfolio-item-enhanced:hover .portfolio-thumb img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-item-enhanced:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.portfolio-overlay-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.portfolio-overlay-btn:hover {
    background: #fff;
    color: var(--color-primary);
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.portfolio-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.portfolio-info p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.portfolio-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-badge {
    padding: 0.25rem 0.6rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===== Lightbox Modal ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-smooth);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #fff;
    color: var(--color-text);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: #fff;
    color: var(--color-text);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

.lightbox-caption {
    text-align: center;
    color: #fff;
    margin-top: 1.5rem;
}

.lightbox-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===== Testimonials Slider ===== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s var(--ease-out-expo);
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 33.333%;
    }
}

.testimonial-card-enhanced {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    height: 100%;
    transition: all var(--transition-smooth);
    position: relative;
}

.testimonial-card-enhanced::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 6rem;
    font-family: serif;
    color: rgba(99, 102, 241, 0.1);
    line-height: 1;
}

.testimonial-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating .star {
    color: #f59e0b;
    font-size: 1.1rem;
}

.testimonial-card-enhanced blockquote {
    margin: 0 0 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-photo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-author-info .name {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author-info .company {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 45px;
    height: 45px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.slider-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

.slider-dot.active {
    background: var(--gradient-primary);
    transform: scale(1.2);
}

/* ===== Stats Counter Enhanced ===== */
.stats-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--color-primary);
    transition: all var(--transition);
}

.stat-card:hover .stat-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== Category Tabs ===== */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 0.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

.category-tab:hover {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}

.category-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

/* ===== Values/Pillars Section ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-smooth);
    position: relative;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: width var(--transition-smooth);
    border-radius: 2px 2px 0 0;
}

.value-card:hover::after {
    width: 80%;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--color-primary);
    transition: all var(--transition);
}

.value-card:hover .value-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0 0 0.75rem;
    font-weight: 700;
}

.value-card p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle,
    .floating-shape,
    .scroll-indicator .mouse::before {
        animation: none;
    }
}
