/* ==========================================
   XcelMR Services Ltd - Main Stylesheet
   Quality Talent. Exceptional Service.
   ========================================== */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Colors */
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #f59e0b;
    --secondary-light: #fbbf24;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(59, 130, 246, 0.9) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-4xl) 0;
    position: relative;
}

.section-gray {
    background-color: var(--gray-50);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   ANIMATIONS - KEYFRAMES
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, -200px)) rotate(720deg);
        opacity: 0;
    }
}

@keyframes heroSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-100px) scale(0.95);
    }
}

/* ==========================================
   SCROLL ANIMATIONS (Applied via JS)
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

.animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

.animate-rotate {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-rotate.animated {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.animated > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.stagger-children.animated > *:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

.btn i {
    font-size: 1.1em;
    transition: transform var(--transition-base);
}

.btn:hover i {
    transform: translateX(3px);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    padding: var(--spacing-md) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
}

.header.scrolled .nav-link {
    color: var(--gray-700);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary);
}

.header.scrolled .logo-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

.header.scrolled .logo-text {
    color: var(--dark);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 800;
    font-size: var(--font-size-2xl);
    z-index: 10;
    color: var(--white);
    transition: all var(--transition-base);
}

.header.scrolled .logo {
    color: var(--dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-weight: 800;
    transition: all var(--transition-base);
}

.logo-icon-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-right: -15px;
    transition: all var(--transition-base);
}

.logo-text {
    color: var(--white);
    transition: all var(--transition-base);
}

.header.scrolled .logo-text {
    color: var(--dark);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: var(--spacing-sm) 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link i {
    font-size: 0.7em;
    transition: transform var(--transition-base);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Nav CTA Button */
.nav-cta {
    margin-left: var(--spacing-md);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: all var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: all var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.header.scrolled .hamburger,
.header.scrolled .hamburger::before,
.header.scrolled .hamburger::after {
    background: var(--dark);
}

/* Mobile Menu Active State */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ==========================================
   HERO SECTION WITH SLIDER
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%);
}

/* Parallax Elements */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.parallax-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.parallax-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.parallax-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.parallax-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    bottom: -50px;
    left: -50px;
    animation-delay: 1s;
}

.parallax-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 10s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; --tx: 50px; --ty: -150px; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; top: 80%; --tx: -30px; --ty: -200px; animation-duration: 12s; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; top: 40%; --tx: 80px; --ty: -180px; animation-duration: 10s; animation-delay: 2s; }
.particle:nth-child(4) { left: 50%; top: 60%; --tx: -60px; --ty: -220px; animation-duration: 9s; animation-delay: 0.5s; }
.particle:nth-child(5) { left: 70%; top: 30%; --tx: 40px; --ty: -160px; animation-duration: 11s; animation-delay: 1.5s; }
.particle:nth-child(6) { left: 80%; top: 70%; --tx: -50px; --ty: -190px; animation-duration: 13s; animation-delay: 3s; }
.particle:nth-child(7) { left: 90%; top: 50%; --tx: 30px; --ty: -170px; animation-duration: 7s; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 40%; top: 90%; --tx: -40px; --ty: -210px; animation-duration: 14s; animation-delay: 4s; }

/* Hero Content */
.hero > .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 100px;
    min-height: 100vh;
}

.hero-content {
    color: var(--white);
    max-width: 850px;
}

.hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    justify-content: center;
}

.hero-stats {
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: var(--secondary);
    animation: pulse 2s ease infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, var(--font-size-6xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 50%, var(--white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.stat-item {
    text-align: center;
    padding: 0 var(--spacing-md);
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--white);
    font-weight: 500;
    margin-top: var(--spacing-xs);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Image/Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInRight 1s ease forwards 0.5s;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

/* Morphing Blob Behind Image */
.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.3;
    animation: morphBlob 8s ease-in-out infinite;
    z-index: -1;
}

/* Hero Slider Controls */
.hero-slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-md);
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.slider-dot.active::after {
    border-color: var(--secondary);
}

/* Slider Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.slider-progress-bar {
    height: 100%;
    background: var(--secondary);
    width: 0;
    transition: width 0.1s linear;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    z-index: 10;
    animation: bounce 2s ease infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, var(--font-size-4xl));
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 1px solid var(--gray-200);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-card.featured::before {
    background: var(--gradient-secondary);
}

.service-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--secondary);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: icon-glow-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Glowing pulse animation for service icons */
@keyframes icon-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), 0 0 40px rgba(59, 130, 246, 0.1);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.2);
        transform: translateY(-5px);
    }
}

/* Rotating glow ring around icon */
.service-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius-lg) + 4px);
    background: linear-gradient(45deg, var(--primary-light), var(--secondary), var(--primary-light), var(--secondary));
    background-size: 400% 400%;
    animation: gradient-rotate 4s linear infinite;
    opacity: 0.5;
    z-index: -1;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Icon inner movement */
.service-icon i {
    animation: icon-float 2.5s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.3);
}

.service-card:hover .service-icon i {
    animation: none;
    transform: scale(1.2);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    animation: icon-glow-pulse-featured 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes icon-glow-pulse-featured {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(245, 158, 11, 0.2);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px rgba(245, 158, 11, 0.4);
        transform: translateY(-5px);
    }
}

.service-card.featured .service-icon::before {
    background: linear-gradient(45deg, var(--secondary), var(--white), var(--secondary), var(--white));
    background-size: 400% 400%;
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.service-card.featured .service-title {
    color: var(--white);
}

.service-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.service-card.featured .service-description {
    color: rgba(255, 255, 255, 0.85);
}

.service-features {
    margin-bottom: var(--spacing-lg);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

.service-features li i {
    color: var(--accent);
    font-size: 0.9em;
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-card.featured .service-features li i {
    color: var(--secondary);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary);
    font-weight: 600;
    transition: all var(--transition-base);
}

.service-link i {
    transition: transform var(--transition-base);
}

.service-link:hover {
    gap: var(--spacing-md);
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-card.featured .service-link {
    color: var(--secondary);
}

/* ==========================================
   WHY CHOOSE US SECTION
   ========================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.why-us-content .section-tag {
    margin-bottom: var(--spacing-md);
}

.why-us-content .section-title {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.section-text {
    color: var(--gray-600);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

.features-list {
    display: grid;
    gap: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.feature-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
}

.feature-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.feature-content p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

/* ==========================================
   INDUSTRIES SECTION
   ========================================== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    cursor: pointer;
}

.industry-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.industry-card:hover i {
    color: var(--secondary);
    transform: scale(1.2);
}

.industry-card span {
    font-weight: 600;
    color: var(--gray-700);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 4s ease infinite;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: pulse 4s ease infinite 1s;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, var(--font-size-4xl));
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--gray-100);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-rating i {
    color: var(--secondary);
}

.testimonial-text {
    color: var(--gray-700);
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.author-info h4 {
    font-weight: 700;
    color: var(--dark);
}

.author-info span {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding-top: var(--spacing-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-description {
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.footer-links ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links ul li a {
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-contact ul li i {
    color: var(--primary-light);
    margin-top: 4px;
}

.footer-contact ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ==========================================
   FLOATING ELEMENTS
   ========================================== */

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    animation: whatsapp-pulse 2s ease infinite;
    /* Prevent overflow issues */
    max-width: calc(100vw - 40px);
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 50px rgba(37, 211, 102, 0.3);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero > .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .service-card.featured {
        transform: none;
    }

    .service-card.featured:hover {
        transform: translateY(-10px);
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .why-us-image {
        order: -1;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all var(--transition-base);
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-link {
        font-size: var(--font-size-xl);
        color: var(--white);
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1000;
        position: relative;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: var(--spacing-lg);
    }

    .dropdown-menu li a {
        color: var(--gray-400);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .stat-number {
        font-size: var(--font-size-3xl);
    }

    .industries-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .back-to-top {
        bottom: 75px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
}

/* Prevent horizontal scroll on all devices */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ==========================================
   MOBILE FIXES
   ========================================== */

/* Mobile menu toggle - ensure visibility */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        background: var(--white) !important;
    }

    .header.scrolled .hamburger,
    .header.scrolled .hamburger::before,
    .header.scrolled .hamburger::after {
        background: var(--dark) !important;
    }

    /* Industries/Clients section mobile fix */
    .industries-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: var(--spacing-md) !important;
        justify-items: center;
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }

    .industry-card {
        width: 100%;
        min-width: unset !important;
        padding: var(--spacing-lg);
        text-align: center;
    }

    .industry-card span {
        font-size: var(--font-size-sm);
        word-wrap: break-word;
    }

    .industry-card i {
        font-size: 2rem;
    }

    /* Footer contact WhatsApp icon fix */
    .footer-contact ul li i.fab.fa-whatsapp {
        display: inline-block !important;
        color: #25D366;
    }

    /* Ensure footer icons show */
    .footer-contact ul li i {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .industries-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--spacing-sm) !important;
    }

    .industry-card {
        padding: var(--spacing-md);
    }

    .industry-card i {
        font-size: 1.5rem;
    }

    .industry-card span {
        font-size: var(--font-size-xs);
    }
}

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    animation: pulse 1.5s ease infinite;
}

.preloader-logo .logo-icon {
    display: inline-flex;
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-700);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   PAGE TRANSITIONS
   ========================================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}

.page-transition.active {
    transform: translateY(0);
}

/* ==========================================
   CUSTOM CURSOR (Optional)
   ========================================== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, background 0.15s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(30, 64, 175, 0.2);
}

/* ==========================================
   INNER PAGES STYLES
   ========================================== */

/* Page Header Banner */
.page-header {
    background: var(--gradient-primary);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 50px;
}

.page-header-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.page-header-title {
    font-size: clamp(2rem, 5vw, var(--font-size-5xl));
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.page-header-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--secondary);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Careers Page */
.job-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    margin-bottom: var(--spacing-lg);
}

.job-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.job-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark);
}

.job-type {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.job-meta {
    display: flex;
    gap: var(--spacing-lg);
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.job-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--white);
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
    transition: all var(--transition-base);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
    animation: pulse 2s ease infinite;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.4);
}

.step-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

/* ==========================================
   PARTNERS SECTION
   ========================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-xl);
    align-items: center;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.partner-logo:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.partner-logo i {
    font-size: 2.5rem;
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.partner-logo:hover i {
    color: var(--primary);
}

.partner-logo span {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    font-weight: 500;
}

/* ==========================================
   RESPONSIVE - PROCESS & PARTNERS
   ========================================== */
@media (max-width: 1024px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .partner-logo {
        padding: var(--spacing-lg);
    }
}

/* ==========================================
   STATS SECTION - Enhanced with Parallax & Animations
   ========================================== */
.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: parallax-drift 20s linear infinite;
}

@keyframes parallax-drift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Floating orbs for parallax effect */
.stats-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-orb 8s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on hover */
.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.stat-box:hover::before {
    left: 100%;
}

/* Glow effect */
.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--primary-light));
    background-size: 200% 100%;
    animation: gradient-flow 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover::after {
    opacity: 1;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.stat-box:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(59, 130, 246, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-box .stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
    transition: all 0.4s ease;
    position: relative;
}

/* Rotating border animation */
.stat-box .stat-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-md) + 3px);
    padding: 3px;
    background: linear-gradient(45deg, var(--secondary), var(--primary-light), var(--secondary));
    background-size: 300% 300%;
    animation: rotate-border 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover .stat-icon::before {
    opacity: 1;
}

@keyframes rotate-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stat-box:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-box .stat-icon i {
    font-size: 1.25rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.stat-box:hover .stat-icon i {
    transform: scale(1.1);
}

.stat-box .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--white);
    display: block;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-box:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.stat-box .stat-label {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.75);
    display: block;
    margin-top: var(--spacing-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.stat-box:hover .stat-label {
    color: var(--secondary);
}

/* Staggered animation on scroll */
.stat-box:nth-child(1) { animation-delay: 0s; }
.stat-box:nth-child(2) { animation-delay: 0.1s; }
.stat-box:nth-child(3) { animation-delay: 0.2s; }
.stat-box:nth-child(4) { animation-delay: 0.3s; }

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: var(--spacing-2xl) 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: var(--spacing-md);
    }

    .stat-box {
        padding: var(--spacing-md);
    }

    .stat-box .stat-number {
        font-size: var(--font-size-2xl);
    }

    .stat-box .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-box .stat-icon i {
        font-size: 1rem;
    }

    .stat-box .stat-label {
        font-size: 0.65rem;
    }
}

/* ==========================================
   LEGAL PAGES (Privacy Policy, Terms)
   ========================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content .legal-updated {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.legal-content h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.legal-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.legal-content p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.legal-content ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.legal-content ul li {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: var(--spacing-md);
}

.legal-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-dark);
}
