
/* ===== BACKGROUND ANIMATIONS CSS ===== */

/* Background Container */
.animated-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Floating Particles */
.bg-particle {
    position: absolute;
    background: radial-gradient(circle, 
        rgba(37, 99, 235, 0.2) 0%,
        rgba(124, 58, 237, 0.15) 50%,
        rgba(6, 182, 212, 0.1) 100%);
    border-radius: 50%;
    filter: blur(40px);
    animation: particleFloat 25s infinite ease-in-out;
    opacity: 0.4;
}

/* Grid Pattern */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
    opacity: 0.3;
}

/* Floating Orbs */
.bg-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(37, 99, 235, 0.15) 0%,
        rgba(124, 58, 237, 0.1) 30%,
        rgba(6, 182, 212, 0.05) 60%,
        transparent 80%
    );
    filter: blur(60px);
    animation: orbFloat 20s infinite ease-in-out;
}

/* Pulse Rings */
.bg-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.1);
    animation: pulseRing 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0.5;
}

/* Code Lines */
.bg-code-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(37, 99, 235, 0.3), 
        transparent);
    animation: codeLineFlow 5s linear infinite;
    opacity: 0.15;
}

/* Binary Rain */
.bg-binary {
    position: absolute;
    top: -50px;
    color: rgba(37, 99, 235, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    animation: binaryFall 20s linear infinite;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
    opacity: 0.4;
}

/* Data Lines */
.bg-data-line {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(37, 99, 235, 0.2), 
        rgba(124, 58, 237, 0.2), 
        transparent);
    animation: dataFlow 10s linear infinite;
    border-radius: 1px;
}

/* Connection Dots */
.bg-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: dotPulse 3s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* ===== ANIMATION KEYFRAMES ===== */

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-100px) translateX(100px) scale(1.1) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-50px) translateX(-50px) scale(0.9) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(100px) translateX(-100px) scale(1.05) rotate(270deg);
        opacity: 0.5;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-60px, -60px);
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-50px) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    70% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes codeLineFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes binaryFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes dataFlow {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
    }
}

/* Holographic Effect */
.bg-grid:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 70%);
    animation: holographicShine 8s linear infinite;
}

@keyframes holographicShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 1024px) {
    .bg-particle {
        width: 80px !important;
        height: 80px !important;
        filter: blur(30px);
    }
    
    .bg-orb {
        width: 300px;
        height: 300px;
    }
    
    .bg-ring {
        width: 200px;
        height: 200px;
    }
    
    .bg-binary {
        font-size: 14px;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .bg-particle {
        display: none;
    }
    
    .bg-orb {
        width: 200px;
        height: 200px;
        opacity: 0.2;
    }
    
    .bg-ring {
        display: none;
    }
    
    .bg-binary {
        font-size: 12px;
        opacity: 0.2;
    }
    
    .bg-data-line,
    .bg-code-line {
        opacity: 0.1;
    }
    
    .bg-grid {
        background-size: 40px 40px;
        opacity: 0.2;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .bg-particle,
    .bg-grid,
    .bg-orb,
    .bg-ring,
    .bg-code-line,
    .bg-binary,
    .bg-data-line,
    .bg-dot,
    .bg-grid:after {
        animation: none !important;
        opacity: 0.1 !important;
    }
}

/* Performance optimization for mobile */
@media (max-width: 480px) and (orientation: portrait) {
    .animated-background-container {
        display: none;
    }
}
  /* ===== CSS Variables ===== */
        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --primary-light: #60a5fa;
            --secondary: #7c3aed;
            --secondary-light: #a78bfa;
            --accent: #06b6d4;
            --accent-light: #22d3ee;
            --dark: #0f172a;
            --dark-light: #1e293b;
            --light: #f8fafc;
            --gray: #64748b;
            --gray-light: #e2e8f0;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
            --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
            
            --transition-fast: 0.2s ease;
            --transition-normal: 0.3s ease;
            --transition-slow: 0.5s ease;
            
            --border-radius: 12px;
            --border-radius-lg: 20px;
            --border-radius-xl: 30px;
            
            --container-padding: 1.5rem;
        }
        
        /* ===== Base Styles ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--dark);
            background-color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            cursor: none;
        }
        
        h1, h2, h3, h4, h5, h6 {
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 1rem;
        }
        
        h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            letter-spacing: -0.02em;
        }
        
        h2 {
            font-size: clamp(2rem, 4vw, 3rem);
            letter-spacing: -0.01em;
        }
        
        h3 {
            font-size: clamp(1.5rem, 3vw, 2rem);
        }
        
        p {
            color: var(--gray);
            margin-bottom: 1.5rem;
            font-size: clamp(1rem, 2vw, 1.125rem);
            font-weight: 400;
        }
        
        a {
            text-decoration: none;
            color: inherit;
            transition: var(--transition-fast);
        }
        
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        
        .container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 var(--container-padding);
        }
        
        section {
            padding: clamp(3rem, 8vw, 6rem) 0;
            position: relative;
        }
        
        /* ===== Utility Classes ===== */
        .text-gradient {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: clamp(0.875rem, 2vw, 1rem) clamp(1.75rem, 3vw, 2.25rem);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-weight: 600;
            font-size: clamp(0.95rem, 1.5vw, 1rem);
            cursor: pointer;
            transition: all var(--transition-normal);
            position: relative;
            overflow: hidden;
            z-index: 1;
            box-shadow: var(--shadow-md);
            white-space: nowrap;
        }
        
        .btn:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
            z-index: -1;
            opacity: 0;
            transition: opacity var(--transition-normal);
        }
        
        .btn:hover:before {
            opacity: 1;
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }
        
        .btn:active {
            transform: translateY(-1px);
        }
        
        .btn-outline {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
            box-shadow: none;
        }
        
        .btn-outline:before {
            background: var(--primary);
        }
        
        .btn-outline:hover {
            color: white;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 1rem;
            color: var(--light);
        }
        
        .section-subtitle {
            text-align: center;
            max-width: 700px;
            margin: 0 auto clamp(3rem, 5vw, 4rem);
            font-size: clamp(1rem, 2vw, 1.25rem);
            color: var(--gray);
        }
        
        /* ===== FLOATING TEXT ANIMATIONS ===== */
        .floating-text-container {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }

        .floating-text {
            position: absolute;
            font-size: 3.5rem;
            font-weight: 900;
            opacity: 0.03;
            color: var(--light);
            user-select: none;
            white-space: nowrap;
            animation: floatText 25s linear infinite;
            text-transform: uppercase;
            letter-spacing: 2px;
            z-index: -1;
        }

        .floating-text:nth-child(1) { 
            top: 15%; left: -30%; 
            animation-delay: 0s;
            animation-duration: 30s;
        }
        .floating-text:nth-child(2) { 
            top: 40%; left: -40%; 
            animation-delay: 5s;
            animation-duration: 35s;
            font-size: 4rem;
        }
        .floating-text:nth-child(3) { 
            top: 70%; left: -50%; 
            animation-delay: 10s;
            animation-duration: 40s;
            opacity: 0.02;
        }
        .floating-text:nth-child(4) { 
            top: 25%; right: -40%; 
            animation-delay: 2s;
            animation-duration: 32s;
            animation-direction: reverse;
        }
        .floating-text:nth-child(5) { 
            top: 65%; right: -50%; 
            animation-delay: 8s;
            animation-duration: 28s;
            font-size: 3rem;
        }
        .floating-text:nth-child(6) { 
            top: 85%; left: -35%; 
            animation-delay: 12s;
            animation-duration: 45s;
            opacity: 0.025;
        }

        /* ===== TYPING ANIMATION ===== */
        .typing-container {
            display: inline-block;
            position: relative;
        }

        .typing-text {
            display: inline-block;
            overflow: hidden;
            white-space: nowrap;
            border-right: 3px solid var(--primary);
            animation: typingCursor 0.8s step-end infinite;
        }

        /* ===== GLITCH TEXT EFFECT ===== */
        .glitch-text {
            position: relative;
            display: inline-block;
        }

        .glitch-text::before,
        .glitch-text::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark);
        }

        .glitch-text::before {
            left: 2px;
            text-shadow: -1px 0 var(--primary);
            animation: glitch-1 2s infinite linear alternate-reverse;
            clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
        }

        .glitch-text::after {
            left: -2px;
            text-shadow: 1px 0 var(--secondary);
            animation: glitch-2 3s infinite linear alternate-reverse;
            clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
        }

        /* ===== PULSING ELEMENTS ===== */
        .pulse-element {
            animation: pulseGlow 2s ease-in-out infinite;
            box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
        }

        /* ===== WAVE ANIMATION ===== */
        .wave-text {
            display: inline-block;
        }

        .wave-text span {
            display: inline-block;
            animation: wave 1.5s ease-in-out infinite;
            animation-delay: calc(0.1s * var(--i));
        }

        /* ===== CUSTOM CURSOR ===== */
        .cursor {
            position: fixed;
            width: 70px; height: 70px;
            border: 4px solid var(--primary);
            border-radius: 50%;
            pointer-events: none;
            z-index: 10000;
            transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
            mix-blend-mode: difference;
        }
        .cursor.hover { transform: scale(1.8); background: var(--primary); }

        .cursor-trail {
            position: fixed;
            width: 8px; height: 8px;
            background: var(--primary-light);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s;
        }

        /* ===== ENHANCED BACKGROUND ANIMATIONS ===== */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -2;
            pointer-events: none;
        }

        /* Floating Particles with Enhanced Movement */
        .particle {
            position: absolute;
            background: linear-gradient(135deg, 
                rgba(37, 99, 235, 0.15), 
                rgba(124, 58, 237, 0.15), 
                rgba(6, 182, 212, 0.15));
            border-radius: 50%;
            filter: blur(20px);
            animation: particleFloatEnhanced 25s infinite linear;
            opacity: 0.3;
        }

        .particle:nth-child(1) {
            width: 100px;
            height: 100px;
            top: 10%;
            left: 5%;
            animation-delay: 0s;
            animation-duration: 30s;
        }

        .particle:nth-child(2) {
            width: 150px;
            height: 150px;
            top: 60%;
            right: 10%;
            animation-delay: 5s;
            animation-duration: 35s;
        }

        .particle:nth-child(3) {
            width: 80px;
            height: 80px;
            top: 30%;
            right: 20%;
            animation-delay: 10s;
            animation-duration: 25s;
        }

        .particle:nth-child(4) {
            width: 120px;
            height: 120px;
            bottom: 20%;
            left: 15%;
            animation-delay: 15s;
            animation-duration: 40s;
        }

        /* Animated Grid Lines with Horizontal Flow */
        .grid-lines {
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 200%;
            background-image: 
                linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
                linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
            background-size: 60px 60px;
            animation: gridMoveHorizontal 25s linear infinite;
            opacity: 0.4;
        }

        /* Animated Gradient Orb with Vertical Movement */
        .gradient-orb {
            position: absolute;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: radial-gradient(
                circle at center,
                rgba(37, 99, 235, 0.25) 0%,
                rgba(124, 58, 237, 0.2) 30%,
                rgba(6, 182, 212, 0.15) 60%,
                transparent 80%
            );
            filter: blur(80px);
            animation: orbFloatVertical 20s ease-in-out infinite;
            top: 30%;
            left: 70%;
            transform: translate(-50%, -50%);
        }

        /* Pulse Rings with Expanding Effect */
        .pulse-ring {
            position: absolute;
            border-radius: 50%;
            border: 3px solid rgba(37, 99, 235, 0.15);
            animation: pulseRingExpand 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
            opacity: 0.5;
        }

        .pulse-ring:nth-child(1) {
            width: 350px;
            height: 350px;
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .pulse-ring:nth-child(2) {
            width: 250px;
            height: 250px;
            bottom: 30%;
            right: 15%;
            animation-delay: 2s;
        }

        .pulse-ring:nth-child(3) {
            width: 450px;
            height: 450px;
            top: 50%;
            right: 25%;
            animation-delay: 4s;
        }

        /* Code Line Animation - Top to Bottom */
        .code-line-animation {
            position: absolute;
            width: 2px;
            height: 100%;
            background: linear-gradient(to bottom, transparent, var(--primary), transparent);
            animation: codeLineVertical 4s linear infinite;
            opacity: 0.15;
        }

        .code-line-animation:nth-child(1) {
            left: 25%;
            animation-delay: 0s;
        }

        .code-line-animation:nth-child(2) {
            left: 50%;
            animation-delay: 1s;
        }

        .code-line-animation:nth-child(3) {
            left: 75%;
            animation-delay: 2s;
        }

        /* Binary Rain Effect - Top to Bottom */
        .binary-rain {
            position: absolute;
            top: -100px;
            color: rgba(37, 99, 235, 0.2);
            font-family: 'Courier New', monospace;
            font-size: 18px;
            font-weight: bold;
            animation: binaryFallVertical 15s linear infinite;
            text-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
        }

        .binary-rain:nth-child(1) {
            left: 10%;
            animation-delay: 0s;
            animation-duration: 20s;
        }

        .binary-rain:nth-child(2) {
            left: 30%;
            animation-delay: 3s;
            animation-duration: 17s;
        }

        .binary-rain:nth-child(3) {
            left: 50%;
            animation-delay: 6s;
            animation-duration: 23s;
        }

        .binary-rain:nth-child(4) {
            left: 70%;
            animation-delay: 9s;
            animation-duration: 19s;
        }

        .binary-rain:nth-child(5) {
            left: 90%;
            animation-delay: 12s;
            animation-duration: 21s;
        }

        /* Data Connection Lines - Diagonal Movement */
        .data-line {
            position: absolute;
            height: 3px;
            background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
            animation: dataFlowDiagonal 10s linear infinite;
            border-radius: 2px;
        }

        .data-line:nth-child(1) {
            width: 200px;
            top: 20%;
            left: 5%;
            transform: rotate(45deg);
            animation-delay: 0s;
        }

        .data-line:nth-child(2) {
            width: 150px;
            top: 70%;
            right: 10%;
            transform: rotate(-30deg);
            animation-delay: 3s;
        }

        .data-line:nth-child(3) {
            width: 250px;
            bottom: 40%;
            left: 20%;
            transform: rotate(15deg);
            animation-delay: 6s;
        }

        /* Holographic Grid Effect */
        .holographic-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 200%;
            background: 
                linear-gradient(90deg, transparent 49%, rgba(37, 99, 235, 0.1) 50%, transparent 51%),
                linear-gradient(transparent 49%, rgba(37, 99, 235, 0.1) 50%, transparent 51%);
            background-size: 80px 80px;
            animation: holographicMoveDiagonal 30s linear infinite;
            opacity: 0.2;
        }

        /* Content Flow Animation */
        .flow-in-left {
            animation: flowFromLeft 1s ease-out forwards;
            opacity: 0;
        }

        .flow-in-right {
            animation: flowFromRight 1s ease-out forwards;
            opacity: 0;
        }

        .flow-in-top {
            animation: flowFromTop 1s ease-out forwards;
            opacity: 0;
        }

        .flow-in-bottom {
            animation: flowFromBottom 1s ease-out forwards;
            opacity: 0;
        }
        
        /* ===== Header & Navigation ===== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: rgba(15, 23, 42, 0.97);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: all var(--transition-normal);
        }
        
        header.scrolled {
            box-shadow: var(--shadow-md);
            padding: 0.5rem 0;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: clamp(1rem, 2vw, 1.5rem) var(--container-padding);
            transition: padding var(--transition-normal);
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: clamp(1.5rem, 3vw, 1.75rem);
            font-weight: 900;
            color: var(--light);
        }
        
        .logo-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: clamp(35px, 5vw, 40px);
            height: clamp(35px, 5vw, 40px);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 10px;
            font-size: clamp(1rem, 2vw, 1.25rem);
            animation: pulse 3s infinite ease-in-out;
        }
        
        .logo span {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .nav-links {
            display: flex;
            align-items: center;
            gap: clamp(1.5rem, 3vw, 2.5rem);
        }
        
        .nav-link {
            font-weight: 600;
            font-size: clamp(0.9rem, 1.5vw, 1rem);
            position: relative;
            padding: 0.5rem 0;
            color: var(--gray);
        }
        
        .nav-link:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            transition: width var(--transition-normal);
        }
        
        .nav-link:hover:after {
            width: 100%;
        }
        
        .nav-link.active:after {
            width: 100%;
        }
        
        .mobile-menu-btn {
            display: none;
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            cursor: pointer;
            color: var(--light);
            font-size: 1.5rem;
            z-index: 1001;
            position: relative;
        }
        
       /* ===== HERO SECTION - MOBILE FIX ===== */
.hero {
    padding: clamp(4rem, 8vw, 6rem) 1rem clamp(2rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    overflow: visible; /* CHANGED from hidden to visible */
    position: relative;
    min-height: auto; /* CHANGED from 100vh to auto */
    display: block; /* CHANGED from flex to block */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-container {
    display: flex; /* CHANGED from grid to flex */
    flex-direction: column; /* Stack vertically on mobile */
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ✅ FIX: Ensure hero-content is fully visible */
.hero-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block; /* Ensure it's visible */
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important;
}

.hero-title {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.1;
    color: var(--light);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    max-width: 100%; /* CHANGED: Allow full width */
    color: var(--gray);
    line-height: 1.6;
    overflow-wrap: break-word;
    padding: 0 0.5rem; /* Add some padding */
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ✅ FIX: Ensure hero-visual is fully visible */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block !important; /* Force display */
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important;
    min-height: 300px; /* Ensure minimum height */
}

.hero-visual-container {
    position: relative;
    width: 100%;
    height: auto;
    animation: floatSoft 8s ease-in-out infinite;
}

.code-block {
    background: linear-gradient(145deg, #0a192f, #172a45);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    box-shadow: 
        var(--shadow-xl),
        0 0 50px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    overflow: visible; /* CHANGED from hidden to visible */
    width: 100%;
    border: 1px solid rgba(37, 99, 235, 0.2);
    /* Remove 3D transform on mobile */
    transform: none;
    margin: 1rem 0;
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
    .hero {
        padding: 3rem 1rem;
        min-height: auto;
        overflow: visible;
    }
    
    .hero-container {
        display: block; /* Simple block layout */
        gap: 2rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
        display: block !important;
    }
    
    .hero-visual {
        display: block !important;
        margin-top: 2rem;
        height: auto;
        min-height: 250px;
    }
    
    .code-block {
        transform: none !important;
        margin: 0;
        overflow-x: auto; /* Allow horizontal scroll for code */
        -webkit-overflow-scrolling: touch;
    }
    
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        padding: 0 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.9rem 1.5rem;
    }
    
    .code-block {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .code-line {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .hero-content, 
    .hero-visual {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .code-block {
        transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero {
        padding: clamp(6rem, 10vw, 8rem) 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        overflow: hidden;
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(2rem, 4vw, 3rem);
        padding: 0 clamp(1.5rem, 4vw, 3rem);
    }
    
    .hero-content {
        text-align: left;
        max-width: none;
        margin: 0;
    }
    
    .hero-visual {
        max-width: none;
        margin: 0;
    }
    
    .code-block {
        transform: perspective(1500px) rotateY(-8deg) rotateX(3deg);
    }
    
    .code-block:hover {
        transform: perspective(1500px) rotateY(0) rotateX(0) translateY(-10px);
    }
}

/* Force display classes - Add these */
.force-show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

.hero-content.force-show,
.hero-visual.force-show {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
        
        /* ===== EXTRAORDINARY SERVICES SECTION ===== */
        .services {
            background-color: var(--dark);
            position: relative;
            overflow: hidden;
        }
        
        .services-slider-container {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .services-slider {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            padding: 2rem 0;
            position: relative;
        }
        
        .service-card-3d {
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius-lg);
            padding: 2.5rem;
            box-shadow: 
                var(--shadow-lg),
                0 10px 30px rgba(37, 99, 235, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            z-index: 1;
            border: 1px solid rgba(37, 99, 235, 0.1);
            transform-style: preserve-3d;
            transform: perspective(1000px) rotateY(0) rotateX(0);
            backdrop-filter: blur(10px);
        }
        
        .service-card-3d:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
            z-index: 2;
        }
        
        .service-card-3d:after {
            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.7s ease;
            z-index: 1;
        }
        
        .service-card-3d:hover:after {
            left: 100%;
        }
        
        .service-card-3d:hover {
            transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-15px);
            box-shadow: 
                var(--shadow-xl),
                0 20px 50px rgba(37, 99, 235, 0.2),
                0 0 0 1px rgba(37, 99, 235, 0.1);
        }
        
        .service-icon-3d {
            width: 90px;
            height: 90px;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2.5rem;
            color: var(--primary-light);
            position: relative;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            box-shadow: 
                0 10px 20px rgba(37, 99, 235, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        
        .service-icon-3d:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        
        .service-icon-3d i {
            position: relative;
            z-index: 2;
            transition: all 0.5s ease;
        }
        
        .service-card-3d:hover .service-icon-3d {
            transform: scale(1.15) rotate(10deg) translateZ(20px);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            box-shadow: 
                0 15px 30px rgba(37, 99, 235, 0.25),
                0 0 30px rgba(37, 99, 235, 0.2);
        }
        
        .service-card-3d:hover .service-icon-3d:before {
            opacity: 1;
        }
        
        .service-card-3d:hover .service-icon-3d i {
            color: white;
            animation: iconBounce 0.8s ease;
        }
        
        .service-card-3d h3 {
            margin-bottom: 1rem;
            text-align: center;
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .service-card-3d p {
            font-size: 1rem;
            margin-bottom: 1.5rem;
            text-align: center;
            line-height: 1.6;
            color: var(--gray);
        }
        
        .service-features {
            list-style: none;
            margin-bottom: 2rem;
            padding: 0;
        }
        
        .service-features li {
            padding: 0.5rem 0;
            color: var(--gray);
            position: relative;
            padding-left: 1.5rem;
        }
        
        .service-features li:before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success);
            font-weight: bold;
        }
        
        .service-link-3d {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary-light);
            font-weight: 600;
            font-size: 1rem;
            margin: 0 auto;
            justify-content: center;
            width: 100%;
            padding: 0.75rem 1.5rem;
            background: rgba(37, 99, 235, 0.1);
            border-radius: var(--border-radius);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .service-link-3d:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
            transition: left 0.5s ease;
        }
        
        .service-link-3d:hover:before {
            left: 100%;
        }
        
        .service-link-3d:hover {
            background: rgba(37, 99, 235, 0.15);
            transform: translateX(5px);
        }
        
        .service-link-3d i {
            transition: transform 0.3s ease;
        }
        
        .service-link-3d:hover i {
            transform: translateX(5px);
        }
        
        
        
        
        
        
        
        
      
        
        /* ===== UNIQUE PORTFOLIO SECTION ===== */
        .portfolio {
            background-color: var(--dark-light);
            position: relative;
            overflow: hidden;
        }
        
        .portfolio-container {
            position: relative;
            perspective: 1000px;
        }
        
        .portfolio-filter {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
            position: relative;
            z-index: 2;
        }
        
        .filter-btn-3d {
            padding: 0.75rem 2rem;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(37, 99, 235, 0.1);
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-weight: 600;
            font-size: 0.95rem;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            color: var(--gray);
        }
        
        .filter-btn-3d:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
            transition: left 0.5s ease;
        }
        
        .filter-btn-3d.active, .filter-btn-3d:hover {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-color: transparent;
            box-shadow: 
                var(--shadow-md),
                0 10px 20px rgba(37, 99, 235, 0.2);
            transform: translateY(-3px);
        }
        
        .filter-btn-3d.active:before, .filter-btn-3d:hover:before {
            left: 100%;
        }
        
        .portfolio-grid-3d {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2.5rem;
            perspective: 1000px;
        }
        
        .portfolio-item-3d {
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius-lg);
            overflow: hidden;
            box-shadow: 
                var(--shadow-lg),
                0 15px 35px rgba(0, 0, 0, 0.2);
            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            opacity: 0;
            transform: translateY(30px) rotateX(10deg);
            animation: portfolioAppear 0.8s ease forwards;
            transform-style: preserve-3d;
            backdrop-filter: blur(10px);
        }
        
        .portfolio-item-3d.visible {
            opacity: 1;
            transform: translateY(0) rotateX(0);
        }
        
        .portfolio-item-3d:hover {
            transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
            box-shadow: 
                var(--shadow-xl),
                0 25px 50px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(37, 99, 235, 0.1);
        }
        
        .portfolio-img-3d {
            height: 250px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
            position: relative;
            overflow: hidden;
        }
        
        .portfolio-img-3d:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        }
        
        .portfolio-img-3d:after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.7s ease;
        }
        
        .portfolio-item-3d:hover .portfolio-img-3d:after {
            left: 100%;
        }
        
        .portfolio-img-3d i {
            animation: float 4s infinite ease-in-out;
            filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
        }
        
        .portfolio-content-3d {
            padding: 2rem;
            position: relative;
            background: transparent;
        }
        
        .portfolio-content-3d:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s ease;
        }
        
        .portfolio-item-3d:hover .portfolio-content-3d:before {
            transform: scaleX(1);
        }
        
        .portfolio-content-3d h3 {
            margin-bottom: 1rem;
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .portfolio-content-3d p {
            margin-bottom: 1.5rem;
            line-height: 1.6;
            color: var(--gray);
        }
        
        .portfolio-tech {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        
        .tech-tag {
            padding: 0.25rem 0.75rem;
            background: rgba(37, 99, 235, 0.1);
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--primary-light);
        }
        
        .portfolio-link-3d {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary-light);
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            background: rgba(37, 99, 235, 0.1);
            border-radius: var(--border-radius);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .portfolio-link-3d:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
            transition: left 0.5s ease;
        }
        
        .portfolio-link-3d:hover:before {
            left: 100%;
        }
        
        .portfolio-link-3d:hover {
            background: rgba(37, 99, 235, 0.15);
            transform: translateX(5px);
        }
        
        .portfolio-link-3d i {
            transition: transform 0.3s ease;
        }
        
        .portfolio-link-3d:hover i {
            transform: translateX(5px);
        }
        
        /* ===== Stats Section ===== */
        .stats {
            background: linear-gradient(135deg, var(--dark), var(--dark-light));
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .stats:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>'),
                radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
        }
        
        .stats h2 {
            color: white;
            position: relative;
        }
        
        .stats h2:after {
            content: '';
            position: absolute;
            width: 80px;
            height: 4px;
            background: white;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            margin-top: 4rem;
            position: relative;
        }
        
        .stat-box-3d {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease forwards;
            position: relative;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius-lg);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.5s ease;
        }
        
        .stat-box-3d:hover {
            transform: translateY(-10px) translateZ(20px);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 
                0 20px 40px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1);
        }
        
        .stat-box-3d h3 {
            font-size: 3.5rem;
            margin-bottom: 0.5rem;
            color: white;
            background: linear-gradient(135deg, white, #e2e8f0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .stat-box-3d p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
        }
        
        /* ===== CTA Section ===== */
        .cta {
            text-align: center;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
            border-radius: var(--border-radius-xl);
            padding: 5rem 3rem;
            margin: 0 auto;
            max-width: 900px;
            box-shadow: 
                var(--shadow-lg),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(37, 99, 235, 0.1);
        }
        
        .cta:before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 200%;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
            z-index: 0;
            animation: ctaPulse 8s ease-in-out infinite;
        }
        
        .cta-content {
            position: relative;
            z-index: 1;
        }
        
        .cta h2 {
            margin-bottom: 1.5rem;
            color: var(--light);
        }
        
        .cta-buttons {
            display: flex;
            gap: 1.25rem;
            justify-content: center;
            margin-top: 2.5rem;
            flex-wrap: wrap;
        }
        
        .cta-buttons .btn {
            flex: 1;
            min-width: 180px;
            max-width: 250px;
        }
        
        /* ===== Footer ===== */
        footer {
            background: linear-gradient(135deg, var(--dark), var(--dark-light));
            color: white;
            padding: 5rem 0 2rem;
            position: relative;
            overflow: hidden;
        }
        
        footer:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
            position: relative;
            z-index: 1;
        }
        
        .footer-logo {
            font-size: 1.8rem;
            font-weight: 900;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .footer-description {
            color: #94a3b8;
            margin-bottom: 1.5rem;
            font-size: 1rem;
        }
        
        .social-icons-3d {
            display: flex;
            gap: 1rem;
        }
        
        .social-icon-3d {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: white;
            font-size: 1.25rem;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            transform-style: preserve-3d;
        }
        
        .social-icon-3d:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }
        
        .social-icon-3d i {
            position: relative;
            z-index: 2;
            transition: transform 0.3s ease;
        }
        
        .social-icon-3d:hover:before {
            opacity: 1;
        }
        
        .social-icon-3d:hover {
            transform: translateY(-5px) rotateY(10deg) scale(1.1);
            box-shadow: 
                0 10px 20px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(37, 99, 235, 0.3);
        }
        
        .footer-links h4 {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: white;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 1rem;
        }
        
        .footer-links a {
            color: #94a3b8;
            transition: all 0.3s ease;
            font-size: 1rem;
            display: inline-block;
        }
        
        .footer-links a:hover {
            color: white;
            transform: translateX(5px);
        }
        
        .footer-contact li {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        
        .footer-contact i {
            color: var(--primary-light);
            margin-top: 0.25rem;
            font-size: 1rem;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #64748b;
            font-size: 0.95rem;
            position: relative;
            z-index: 1;
        }
        
        /* ===== ENHANCED ANIMATION KEYFRAMES ===== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-20px);
            }
        }
        
        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.8;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        @keyframes shine {
            0% {
                transform: translateX(-100%) translateY(-100%) rotate(45deg);
            }
            100% {
                transform: translateX(100%) translateY(100%) rotate(45deg);
            }
        }
        
        @keyframes typing {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }
        
        @keyframes iconBounce {
            0%, 100% {
                transform: scale(1);
            }
            30% {
                transform: scale(1.2);
            }
            60% {
                transform: scale(0.9);
            }
        }

        /* New Enhanced Animation Keyframes */
        @keyframes floatText {
            0% { transform: translateX(-100%) rotate(0deg); }
            100% { transform: translateX(100vw) rotate(5deg); }
        }

        @keyframes typingCursor {
            0%, 100% { border-color: transparent; }
            50% { border-color: var(--primary); }
        }

        @keyframes glitch-1 {
            0% { transform: translate(0); }
            20% { transform: translate(-2px, 2px); }
            40% { transform: translate(-2px, -2px); }
            60% { transform: translate(2px, 2px); }
            80% { transform: translate(2px, -2px); }
            100% { transform: translate(0); }
        }

        @keyframes glitch-2 {
            0% { transform: translate(0); }
            10% { transform: translate(2px, -1px); }
            30% { transform: translate(-1px, 2px); }
            50% { transform: translate(1px, -2px); }
            70% { transform: translate(-2px, 1px); }
            90% { transform: translate(1px, 1px); }
            100% { transform: translate(0); }
        }

        @keyframes pulseGlow {
            0%, 100% { 
                box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
                transform: scale(1.05);
            }
        }

        @keyframes wave {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        @keyframes particleFloatEnhanced {
            0% {
                transform: translateY(0) translateX(0) rotate(0deg) scale(1);
                opacity: 0.2;
            }
            25% {
                transform: translateY(-150px) translateX(150px) rotate(90deg) scale(1.1);
                opacity: 0.4;
            }
            50% {
                transform: translateY(-75px) translateX(-75px) rotate(180deg) scale(1);
                opacity: 0.3;
            }
            75% {
                transform: translateY(150px) translateX(-150px) rotate(270deg) scale(0.9);
                opacity: 0.4;
            }
            100% {
                transform: translateY(0) translateX(0) rotate(360deg) scale(1);
                opacity: 0.2;
            }
        }

        @keyframes gridMoveHorizontal {
            0% {
                transform: translate(0, 0);
            }
            100% {
                transform: translate(-60px, 0);
            }
        }

        @keyframes holographicMoveDiagonal {
            0% {
                transform: translate(0, 0);
            }
            100% {
                transform: translate(-80px, -80px);
            }
        }

        @keyframes orbFloatVertical {
            0%, 100% {
                transform: translate(-50%, -50%) scale(1) rotate(0deg);
                top: 30%;
                opacity: 0.3;
            }
            50% {
                transform: translate(-50%, -50%) scale(1.15) rotate(180deg);
                top: 40%;
                opacity: 0.5;
            }
        }

        @keyframes pulseRingExpand {
            0% {
                transform: scale(0.8);
                opacity: 1;
                box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
            }
            70% {
                opacity: 0.5;
                box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
            }
            100% {
                transform: scale(1.8);
                opacity: 0;
                box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
            }
        }

        @keyframes codeLineVertical {
            0% {
                transform: translateY(-100%);
                opacity: 0;
            }
            20% {
                opacity: 0.3;
            }
            80% {
                opacity: 0.3;
            }
            100% {
                transform: translateY(100%);
                opacity: 0;
            }
        }

        @keyframes binaryFallVertical {
            0% {
                transform: translateY(-100px) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.5;
            }
            90% {
                opacity: 0.5;
            }
            100% {
                transform: translateY(100vh) rotate(360deg);
                opacity: 0;
            }
        }

        @keyframes dataFlowDiagonal {
            0% {
                background-position: -100% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }

        @keyframes floatSoft {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-20px) rotate(2deg);
            }
        }

        @keyframes codeShine {
            0% {
                transform: translateX(-100%);
            }
            20%, 100% {
                transform: translateX(100%);
            }
        }

        @keyframes portfolioAppear {
            0% {
                opacity: 0;
                transform: translateY(30px) rotateX(10deg);
            }
            100% {
                opacity: 1;
                transform: translateY(0) rotateX(0);
            }
        }

        @keyframes ctaPulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.1;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.2;
            }
        }

        @keyframes flowFromLeft {
            0% {
                opacity: 0;
                transform: translateX(-50px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes flowFromRight {
            0% {
                opacity: 0;
                transform: translateX(50px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes flowFromTop {
            0% {
                opacity: 0;
                transform: translateY(-50px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes flowFromBottom {
            0% {
                opacity: 0;
                transform: translateY(50px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* ===== IMPROVED RESPONSIVE DESIGN ===== */
        @media screen and (max-width: 1200px) {
            .hero-container {
                max-width: 1000px;
            }
            
            .portfolio-grid-3d {
                grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            }
        }
        
        @media screen and (max-width: 992px) {
            .hero-container {
                text-align: center;
            }
            
            .hero-buttons {
                justify-content: center;
            }
            
            .hero-visual-container {
                margin: 0 auto;
            }
            
            .mobile-menu-btn {
                display: flex;
            }
            
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 400px;
                height: 100vh;
                background: var(--dark);
                flex-direction: column;
                align-items: flex-start;
                padding: 6rem 2rem 2rem;
                box-shadow: var(--shadow-xl);
                transition: right var(--transition-normal);
                z-index: 1000;
                overflow-y: auto;
            }
            
            .nav-links.active {
                right: 0;
            }
            
            .nav-link {
                font-size: 1.2rem;
                padding: 1rem 0;
                width: 100%;
            }
            
            .nav-link:after {
                display: none;
            }
            
            .nav-link:hover, .nav-link.active {
                color: var(--primary-light);
            }
            
            .mobile-menu-btn.active .menu-icon {
                display: none;
            }
            
            .mobile-menu-btn.active .close-icon {
                display: block;
            }
            
            .close-icon {
                display: none;
            }
            
            .header-container {
                padding: 1rem var(--container-padding);
            }

            /* Adjust background animations for tablet */
            .particle {
                width: 70px !important;
                height: 70px !important;
            }

            .pulse-ring {
                width: 250px !important;
                height: 250px !important;
            }

            .gradient-orb {
                width: 350px;
                height: 350px;
            }

            .floating-text {
                font-size: 2.5rem;
            }
        }
        
        @media screen and (max-width: 768px) {
            :root {
                --container-padding: 1rem;
            }
            
            section {
                padding: clamp(2.5rem, 6vw, 4rem) 0;
            }
            
            .hero {
                padding-top: clamp(7rem, 10vw, 8rem);
                min-height: auto;
                padding-bottom: 3rem;
            }
            
            .hero-content {
                padding: 0 0.5rem;
            }
            
            .hero-title {
                font-size: clamp(2rem, 4.5vw, 2.5rem);
            }
            
            .hero-description {
                font-size: clamp(0.95rem, 1.8vw, 1.1rem);
                padding: 0 0.5rem;
            }
            
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .hero-buttons .btn {
                width: 100%;
                max-width: 280px;
            }
            
            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .cta-buttons .btn {
                width: 100%;
                max-width: 280px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
                gap: clamp(1.5rem, 3vw, 2.5rem);
            }

            /* Further reduce background animations for mobile */
            .particle {
                display: none;
            }

            .pulse-ring {
                display: none;
            }

            .gradient-orb {
                width: 250px;
                height: 250px;
                opacity: 0.1;
            }

            .data-line, .code-line-animation {
                opacity: 0.05;
            }

            .binary-rain {
                font-size: 12px;
                opacity: 0.05;
            }

            .grid-lines, .holographic-grid {
                background-size: 40px 40px;
                opacity: 0.1;
            }

            .code-block {
                padding: 1rem;
            }

            .code-line {
                font-size: 0.8rem;
                margin-bottom: 0.4rem;
            }

            .line-number {
                margin-right: 0.75rem;
                min-width: 20px;
            }

            .portfolio-grid-3d {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .service-card-3d {
                padding: 2rem;
            }

            .service-icon-3d {
                width: 70px;
                height: 70px;
                font-size: 2rem;
            }

            .floating-text {
                font-size: 2rem;
                opacity: 0.02;
            }
        }
        
        @media screen and (max-width: 576px) {
            .hero-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
            
            .service-card-3d {
                padding: 1.5rem 1rem;
            }
            
            .portfolio-filter {
                gap: 0.5rem;
            }
            
            .filter-btn-3d {
                padding: 0.5rem 1.5rem;
                font-size: 0.85rem;
            }
            
            .stat-item {
                padding: 0.75rem;
            }
            
            .stat-number {
                font-size: clamp(1.5rem, 2.5vw, 1.75rem);
            }

            .stat-box-3d {
                padding: 1.5rem;
            }

            .stat-box-3d h3 {
                font-size: 2.5rem;
            }

            .cta {
                padding: 3rem 1.5rem;
            }

            .floating-text {
                font-size: 1.5rem;
            }
        }
        
        @media screen and (max-width: 480px) {
            .hero-buttons .btn, .cta-buttons .btn {
                min-width: 100%;
            }
            
            .logo {
                font-size: 1.3rem;
            }
            
            .logo-icon {
                width: 32px;
                height: 32px;
                font-size: 1rem;
            }
            
            .hero-stats {
                grid-template-columns: 1fr;
                max-width: 250px;
            }
            
            .hero-title {
                font-size: clamp(1.75rem, 4vw, 2.2rem);
            }
            
            .hero-description {
                font-size: 0.95rem;
            }

            .service-icon-3d {
                width: 60px;
                height: 60px;
                font-size: 1.75rem;
            }

            .social-icon-3d {
                width: 44px;
                height: 44px;
                font-size: 1.1rem;
            }

            .floating-text {
                font-size: 1.2rem;
            }
        }

        @media screen and (max-width: 360px) {
            .hero-title {
                font-size: 1.6rem;
            }
            
            .hero-description {
                font-size: 0.9rem;
            }
            
            .btn {
                padding: 0.75rem 1.25rem;
                font-size: 0.9rem;
            }

            .service-icon-3d {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }

            .floating-text {
                font-size: 1rem;
            }
        }

        /* Reduce motion for users who prefer it */
        @media (prefers-reduced-motion: reduce) {
            .particle,
            .grid-lines,
            .holographic-grid,
            .gradient-orb,
            .pulse-ring,
            .code-line-animation,
            .binary-rain,
            .data-line,
            .hero-visual-container,
            .code-block:after,
            .code-block:before,
            .service-icon-3d,
            .portfolio-img-3d i,
            .logo-icon,
            .social-icon-3d,
            .btn,
            .service-card-3d,
            .portfolio-item-3d,
            .stat-box-3d,
            .filter-btn-3d,
            .service-link-3d,
            .portfolio-link-3d,
            .floating-text,
            .cursor,
            .cursor-trail,
            .typing-text,
            .glitch-text::before,
            .glitch-text::after,
            .wave-text span,
            .pulse-element {
                animation: none !important;
                transition: none !important;
            }
            
            .code-line {
                animation: none !important;
                opacity: 1;
            }

            .flow-in-left,
            .flow-in-right,
            .flow-in-top,
            .flow-in-bottom {
                animation: none !important;
                opacity: 1;
                transform: none !important;
            }
        }
        /* Add these styles to your existing CSS */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0c1d 0%, #161b2d 50%, #1a1f35 100%);
}

/* Background Grid Pattern */
.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

/* Floating Code Brackets */
.hero:after {
    content: '{ }';
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 300px;
    color: rgba(37, 99, 235, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatBrackets 30s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Animated Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatElement 25s infinite linear;
    filter: blur(1px);
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    animation-duration: 20s;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation-duration: 25s;
    animation-delay: 5s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    animation-duration: 18s;
    animation-delay: 10s;
}

.floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 25%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation-duration: 22s;
    animation-delay: 15s;
}

/* Binary Rain Effect */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.binary-digit {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(96, 165, 250, 0.3);
    font-size: 14px;
    animation: binaryFall 10s linear infinite;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

/* Hexagon Network */
.hexagon-network {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: hexagonPulse 15s ease-in-out infinite;
    z-index: 1;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
    animation: lineFlow 8s linear infinite;
}

/* Particle System */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(96, 165, 250, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Keyframes for animations */
@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes floatBrackets {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.03;
    }
    33% {
        transform: translate(-48%, -52%) scale(1.05) rotate(120deg);
        opacity: 0.05;
    }
    66% {
        transform: translate(-52%, -48%) scale(0.95) rotate(240deg);
        opacity: 0.02;
    }
}

@keyframes floatElement {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes binaryFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes hexagonPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes lineFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, 100px)) scale(0);
        opacity: 0;
    }
}

/* Container styles to ensure content stays above background */
.hero-container {
    position: relative;
    z-index: 2;
}

/* Update hero content to ensure readability */
.hero-content, .hero-visual {
    position: relative;
    z-index: 3;
}

/* Add media query for performance on mobile */
@media (max-width: 768px) {
    .hero:after {
        font-size: 150px;
    }
    
    .floating-element {
        display: none;
    }
    
    .binary-digit {
        font-size: 10px;
    }
}
/* ===== SERVICES SECTION - EXPERT ANIMATIONS ===== */
.services {
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #0a0c1d 0%, #151928 30%, #1c2038 100%);
    perspective: 2000px;
}

/* ANIMATED PARTICLE FIELD BACKGROUND */
.services-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Quantum Dot Field */
.quantum-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.quantum-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, 
        rgba(96, 165, 250, 0.8) 0%, 
        rgba(139, 92, 246, 0.6) 50%, 
        transparent 100%);
    border-radius: 50%;
    filter: blur(1px);
    animation: quantumFloat 15s infinite linear;
    box-shadow: 
        0 0 15px rgba(96, 165, 250, 0.5),
        0 0 30px rgba(139, 92, 246, 0.3);
}

/* Neural Network Lines */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
}

.neural-path {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(96, 165, 250, 0.8) 15%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(96, 165, 250, 0.8) 85%, 
        transparent 100%);
    filter: blur(1px);
    animation: neuralPulse 3s infinite ease-in-out;
}

/* Holographic Grid */
.hologrid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridWarp 30s infinite linear;
    transform-style: preserve-3d;
    transform: perspective(500px) rotateX(60deg);
    z-index: 1;
}

/* ===== SECTION TITLE ANIMATIONS (Always visible) ===== */
.section-title {
    opacity: 1;
    animation: titleGlitch 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    text-shadow: 
        0 0 10px rgba(96, 165, 250, 0.5),
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 30px rgba(96, 165, 250, 0.2);
}

.section-subtitle {
    opacity: 1;
    animation: subtitleParticles 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.3s;
}

/* ===== CARD BASE STYLES (Make sure they're visible) ===== */
.service-card-3d {
    position: relative;
    opacity: 1; /* CHANGED FROM 0 TO 1 */
    transform-style: preserve-3d;
    perspective: 1000px;
    transform-origin: center center;
    isolation: isolate;
    will-change: transform, opacity;
    background: linear-gradient(145deg, #0a192f, #172a45);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    box-shadow: 
        var(--shadow-xl),
        0 0 50px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: perspective(1500px) rotateY(-8deg) rotateX(3deg);
    transition: all var(--transition-normal);
    border: 1px solid rgba(37, 99, 235, 0.2);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    animation: cardFadeIn 0.5s ease-out forwards; /* Default fade in */
}

/* Make sure card content is visible */
.service-card-3d .card-content {
    opacity: 1;
    transform: none;
}

/* Card Reveal Effects */
.card-reveal {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== AUTO-TRIGGERED CARD ANIMATIONS ===== */
/* Trigger animations immediately when loaded */
.services-slider.animated .service-card-3d:nth-child(1) {
    animation: quantumEntrance 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.services-slider.animated .service-card-3d:nth-child(2) {
    animation: wormholeEntrance 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
}

.services-slider.animated .service-card-3d:nth-child(3) {
    animation: hologramProject 1.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
    animation-delay: 0.4s;
}

.services-slider.animated .service-card-3d:nth-child(4) {
    animation: timeWarpEntrance 1.5s cubic-bezier(0.86, 0, 0.07, 1) forwards;
    animation-delay: 0.6s;
}

/* Default fade in animation as fallback */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card 1: Quantum Entanglement Animation */
@keyframes quantumEntrance {
    0% {
        opacity: 0;
        transform: 
            translateX(-500px) 
            translateY(200px) 
            rotateY(90deg) 
            rotateX(45deg) 
            scale(0.2);
        filter: blur(20px) hue-rotate(180deg);
    }
    50% {
        opacity: 0.7;
        transform: 
            translateX(50px) 
            translateY(-30px) 
            rotateY(-20deg) 
            rotateX(10deg) 
            scale(1.1);
        filter: blur(5px) hue-rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: 
            translateX(0) 
            translateY(0) 
            rotateY(0) 
            rotateX(0) 
            scale(1);
        filter: blur(0) hue-rotate(0);
    }
}

/* Card 2: Wormhole Portal Animation */
@keyframes wormholeEntrance {
    0% {
        opacity: 0;
        transform: 
            scale(0) 
            rotate(720deg) 
            translateY(500px);
        filter: blur(30px) brightness(200%);
    }
    50% {
        opacity: 0.8;
        transform: 
            scale(1.3) 
            rotate(180deg) 
            translateY(-50px);
        filter: blur(10px) brightness(150%) drop-shadow(0 0 50px rgba(139, 92, 246, 0.8));
    }
    100% {
        opacity: 1;
        transform: 
            scale(1) 
            rotate(0) 
            translateY(0);
        filter: blur(0) brightness(100%);
    }
}

/* Card 3: Holographic Projection Animation */
@keyframes hologramProject {
    0% {
        opacity: 0;
        transform: 
            translateX(500px) 
            translateY(-200px) 
            scale(0.3) 
            skew(45deg, 45deg);
        filter: 
            blur(25px) 
            sepia(100%) 
            hue-rotate(200deg);
    }
    40% {
        opacity: 0.6;
        transform: 
            translateX(-80px) 
            translateY(80px) 
            scale(1.2) 
            skew(-20deg, -20deg);
        filter: 
            blur(10px) 
            sepia(50%) 
            hue-rotate(100deg)
            drop-shadow(0 0 40px rgba(96, 165, 250, 0.6));
    }
    100% {
        opacity: 1;
        transform: 
            translateX(0) 
            translateY(0) 
            scale(1) 
            skew(0, 0);
        filter: 
            blur(0) 
            sepia(0) 
            hue-rotate(0);
    }
}

/* Card 4: Time Warp Animation */
@keyframes timeWarpEntrance {
    0% {
        opacity: 0;
        transform: 
            translateY(500px) 
            rotateX(90deg) 
            scale(0.1);
        filter: blur(40px) contrast(300%);
        box-shadow: 
            0 0 0 0 rgba(255,255,255,0),
            0 0 0 0 rgba(96, 165, 250, 0),
            0 0 0 0 rgba(139, 92, 246, 0);
    }
    30% {
        opacity: 0.5;
        transform: 
            translateY(-150px) 
            rotateX(-20deg) 
            scale(1.4);
        filter: blur(15px) contrast(200%);
        box-shadow: 
            0 0 200px 100px rgba(255,255,255,0.1),
            0 0 100px 50px rgba(96, 165, 250, 0.3),
            0 0 50px 25px rgba(139, 92, 246, 0.2);
    }
    60% {
        opacity: 0.8;
        transform: 
            translateY(100px) 
            rotateX(10deg) 
            scale(0.9);
        filter: blur(5px) contrast(150%);
        box-shadow: 
            0 0 100px 50px rgba(255,255,255,0.05),
            0 0 50px 25px rgba(96, 165, 250, 0.2),
            0 0 25px 12px rgba(139, 92, 246, 0.1);
    }
    100% {
        opacity: 1;
        transform: 
            translateY(0) 
            rotateX(0) 
            scale(1);
        filter: blur(0) contrast(100%);
        box-shadow: 
            var(--shadow-xl),
            0 0 30px rgba(37, 99, 235, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* ===== CARD HOVER ANIMATIONS ===== */
.service-card-3d:hover {
    transform: 
        perspective(1500px) 
        rotateY(-5deg) 
        rotateX(5deg) 
        translateY(-20px) 
        scale(1.05);
    box-shadow: 
        0 35px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.service-card-3d:hover::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        #60a5fa22, 
        #8b5cf622, 
        #10b98122, 
        #f59e0b22);
    z-index: -1;
    border-radius: inherit;
    animation: borderFlow 3s linear infinite;
    filter: blur(20px);
}

/* Quantum Ripple Effect on Hover */
.card-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), 
        rgba(96, 165, 250, 0.3) 0%, 
        transparent 50%);
    animation: rippleExpand 0.8s ease-out;
    z-index: 1;
    pointer-events: none;
}

/* Holographic Data Stream Effect */
.service-card-3d:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: dataStream 1.5s ease-out;
    z-index: 2;
}

/* ===== CARD CONTENT ANIMATIONS ===== */
.service-icon-3d {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #60a5fa;
    animation: iconOrbit 20s infinite linear;
    transform-style: preserve-3d;
    display: inline-block;
}

.service-icon-3d i {
    animation: iconFloat 3s infinite ease-in-out;
}

/* Staggered content animations */
.services-slider.animated .service-card-3d:nth-child(1) .card-content > * {
    animation: contentReveal 0.8s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
    transform: translateY(20px);
}

.services-slider.animated .service-card-3d:nth-child(2) .card-content > * {
    animation: contentReveal 0.8s ease-out forwards;
    animation-delay: 1.6s;
    opacity: 0;
    transform: translateY(20px);
}

.services-slider.animated .service-card-3d:nth-child(3) .card-content > * {
    animation: contentReveal 0.8s ease-out forwards;
    animation-delay: 2s;
    opacity: 0;
    transform: translateY(20px);
}

.services-slider.animated .service-card-3d:nth-child(4) .card-content > * {
    animation: contentReveal 0.8s ease-out forwards;
    animation-delay: 2.4s;
    opacity: 0;
    transform: translateY(20px);
}

/* Service features list animation */
.service-features li {
    opacity: 0;
    transform: translateX(-30px);
    animation: featureReveal 0.6s ease-out forwards;
}

.services-slider.animated .service-card-3d:nth-child(1) .service-features li:nth-child(1) { animation-delay: 1.8s; }
.services-slider.animated .service-card-3d:nth-child(1) .service-features li:nth-child(2) { animation-delay: 1.9s; }
.services-slider.animated .service-card-3d:nth-child(1) .service-features li:nth-child(3) { animation-delay: 2.0s; }
.services-slider.animated .service-card-3d:nth-child(1) .service-features li:nth-child(4) { animation-delay: 2.1s; }

.services-slider.animated .service-card-3d:nth-child(2) .service-features li:nth-child(1) { animation-delay: 2.2s; }
.services-slider.animated .service-card-3d:nth-child(2) .service-features li:nth-child(2) { animation-delay: 2.3s; }
.services-slider.animated .service-card-3d:nth-child(2) .service-features li:nth-child(3) { animation-delay: 2.4s; }
.services-slider.animated .service-card-3d:nth-child(2) .service-features li:nth-child(4) { animation-delay: 2.5s; }

.services-slider.animated .service-card-3d:nth-child(3) .service-features li:nth-child(1) { animation-delay: 2.6s; }
.services-slider.animated .service-card-3d:nth-child(3) .service-features li:nth-child(2) { animation-delay: 2.7s; }
.services-slider.animated .service-card-3d:nth-child(3) .service-features li:nth-child(3) { animation-delay: 2.8s; }
.services-slider.animated .service-card-3d:nth-child(3) .service-features li:nth-child(4) { animation-delay: 2.9s; }

.services-slider.animated .service-card-3d:nth-child(4) .service-features li:nth-child(1) { animation-delay: 3.0s; }
.services-slider.animated .service-card-3d:nth-child(4) .service-features li:nth-child(2) { animation-delay: 3.1s; }
.services-slider.animated .service-card-3d:nth-child(4) .service-features li:nth-child(3) { animation-delay: 3.2s; }
.services-slider.animated .service-card-3d:nth-child(4) .service-features li:nth-child(4) { animation-delay: 3.3s; }

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes quantumFloat {
    0%, 100% {
        transform: 
            translate3d(var(--tx), var(--ty), var(--tz)) 
            scale(1) 
            rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: 
            translate3d(calc(var(--tx) * 1.5), calc(var(--ty) * 1.5), calc(var(--tz) * 2)) 
            scale(1.5) 
            rotate(180deg);
        opacity: 1;
    }
}

@keyframes neuralPulse {
    0%, 100% {
        width: 0;
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        width: var(--w);
    }
}

@keyframes gridWarp {
    0% {
        transform: perspective(500px) rotateX(60deg) translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: perspective(500px) rotateX(60deg) translate(-100px, -100px);
        opacity: 0.6;
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translate(0, 0);
        opacity: 0.3;
    }
}

@keyframes borderFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

@keyframes rippleExpand {
    0% {
        transform: scale(0.1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes dataStream {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

@keyframes iconOrbit {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

@keyframes contentReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes featureReveal {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleGlitch {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(3);
        filter: blur(30px) hue-rotate(360deg);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    30% {
        opacity: 0.5;
        transform: translateY(50px) scale(1.5);
        filter: blur(10px) hue-rotate(180deg);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-20px) scale(0.9);
        filter: blur(5px) hue-rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) hue-rotate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes subtitleParticles {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0);
        filter: blur(20px);
        letter-spacing: 50px;
    }
    50% {
        opacity: 0.7;
        transform: translateY(-20px) scale(1.2);
        filter: blur(5px);
        letter-spacing: -5px;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        letter-spacing: normal;
    }
}

/* ===== RESPONSIVE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .service-card-3d {
        animation-duration: 0.8s !important;
        min-height: 350px;
    }
    
    .services {
        perspective: 1000px;
    }
    
    .hologrid {
        display: none;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ===== STATS SECTION - EXPERT ANIMATIONS ===== */
.stats {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    perspective: 2000px;
}

/* Pulsing Energy Core Background */
.stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(37, 99, 235, 0.15) 0%,
        rgba(139, 92, 246, 0.1) 30%,
        transparent 70%);
    transform: translate(-50%, -50%);
    animation: energyPulse 8s infinite ease-in-out;
    filter: blur(60px);
    z-index: 1;
}

/* Animated Grid Pattern */
.stats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 40s linear infinite;
    transform: rotate(15deg);
    z-index: 1;
}

/* Floating Data Particles */
.data-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.data-particle {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(96, 165, 250, 0.6);
    font-weight: bold;
    animation: dataFloat 20s infinite linear;
    text-shadow: 0 0 10px currentColor;
}

/* Energy Orbs */
.energy-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.energy-orb {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(96, 165, 250, 0.2) 0%,
        rgba(139, 92, 246, 0.1) 50%,
        transparent 70%);
    animation: orbFloat 20s infinite ease-in-out;
    filter: blur(20px);
}

/* Connection Lines */
.stats-connections {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.connection-path {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(96, 165, 250, 0.6) 50%,
        transparent 100%);
    animation: connectionFlow 4s infinite linear;
    transform-origin: left center;
}

/* ===== STAT BOX ANIMATIONS ===== */
.stats-grid {
    position: relative;
    z-index: 2;
}

.stat-box-3d {
    position: relative;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
    opacity: 0;
    animation-fill-mode: forwards;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated Border */
.stat-box-3d::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #60a5fa, 
        #8b5cf6, 
        #10b981, 
        #f59e0b,
        #60a5fa);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: borderGradient 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-box-3d:hover::before {
    opacity: 1;
}

/* Inner Glow Effect */
.stat-box-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), 
        rgba(96, 165, 250, 0.15) 0%,
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.stat-box-3d:hover::after {
    opacity: 1;
}

/* ===== NUMBER COUNTING ANIMATION ===== */
.stat-box-3d h3 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

/* Counter Animation */
.stat-box-3d h3::before {
    content: attr(data-target);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: countUp 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

/* Animated Underline */
.stat-box-3d h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    transform: translateX(-50%);
    animation: underlineExpand 1s ease-out forwards 2.5s;
    border-radius: 2px;
}

/* ===== CARD ENTRANCE ANIMATIONS ===== */
.stats-grid.animated .stat-box-3d:nth-child(1) {
    animation: cardDashInLeft 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.1s;
}

.stats-grid.animated .stat-box-3d:nth-child(2) {
    animation: cardDashInBottom 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.2s;
}

.stats-grid.animated .stat-box-3d:nth-child(3) {
    animation: cardDashInTop 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.3s;
}

.stats-grid.animated .stat-box-3d:nth-child(4) {
    animation: cardDashInRight 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.4s;
}

/* ===== TEXT ANIMATIONS ===== */
.stat-box-3d p {
    font-size: 1.2rem;
    color: #cbd5e1;
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease-out forwards;
}

.stats-grid.animated .stat-box-3d:nth-child(1) p { animation-delay: 1.3s; }
.stats-grid.animated .stat-box-3d:nth-child(2) p { animation-delay: 1.4s; }
.stats-grid.animated .stat-box-3d:nth-child(3) p { animation-delay: 1.5s; }
.stats-grid.animated .stat-box-3d:nth-child(4) p { animation-delay: 1.6s; }

/* ===== SECTION TITLE ANIMATION ===== */
.section-title {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: titleDashIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    text-shadow: 
        0 0 20px rgba(96, 165, 250, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes energyPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

@keyframes gridMove {
    0% {
        transform: rotate(15deg) translate(0, 0);
    }
    100% {
        transform: rotate(15deg) translate(-100px, -100px);
    }
}

@keyframes dataFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.5);
        opacity: 0;
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(calc(var(--tx, 0) * 1.5), calc(var(--ty, 0) * 1.5)) scale(1.5);
        opacity: 0.6;
    }
}

@keyframes connectionFlow {
    0% {
        transform: scaleX(0) rotate(var(--rotate, 0deg));
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1) rotate(var(--rotate, 0deg));
        opacity: 0;
    }
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes countUp {
    0% {
        opacity: 1;
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    50% {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
    100% {
        opacity: 0;
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    }
}

@keyframes underlineExpand {
    0% {
        width: 0;
    }
    100% {
        width: 80px;
    }
}

/* Card Entrance Animations */
@keyframes cardDashInLeft {
    0% {
        opacity: 0;
        transform: 
            translateX(-500px) 
            rotateY(45deg) 
            scale(0.5);
        filter: blur(20px) hue-rotate(180deg);
    }
    70% {
        opacity: 0.8;
        transform: 
            translateX(30px) 
            rotateY(-10deg) 
            scale(1.05);
        filter: blur(5px) hue-rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: 
            translateX(0) 
            rotateY(0) 
            scale(1);
        filter: blur(0) hue-rotate(0);
    }
}

@keyframes cardDashInBottom {
    0% {
        opacity: 0;
        transform: 
            translateY(500px) 
            rotateX(-45deg) 
            scale(0.5);
        filter: blur(20px) brightness(200%);
    }
    70% {
        opacity: 0.8;
        transform: 
            translateY(-30px) 
            rotateX(10deg) 
            scale(1.05);
        filter: blur(5px) brightness(150%);
    }
    100% {
        opacity: 1;
        transform: 
            translateY(0) 
            rotateX(0) 
            scale(1);
        filter: blur(0) brightness(100%);
    }
}

@keyframes cardDashInTop {
    0% {
        opacity: 0;
        transform: 
            translateY(-500px) 
            rotateX(45deg) 
            scale(0.5);
        filter: blur(20px) contrast(300%);
    }
    70% {
        opacity: 0.8;
        transform: 
            translateY(30px) 
            rotateX(-10deg) 
            scale(1.05);
        filter: blur(5px) contrast(200%);
    }
    100% {
        opacity: 1;
        transform: 
            translateY(0) 
            rotateX(0) 
            scale(1);
        filter: blur(0) contrast(100%);
    }
}

@keyframes cardDashInRight {
    0% {
        opacity: 0;
        transform: 
            translateX(500px) 
            rotateY(-45deg) 
            scale(0.5);
        filter: blur(20px) saturate(300%);
    }
    70% {
        opacity: 0.8;
        transform: 
            translateX(-30px) 
            rotateY(10deg) 
            scale(1.05);
        filter: blur(5px) saturate(200%);
    }
    100% {
        opacity: 1;
        transform: 
            translateX(0) 
            rotateY(0) 
            scale(1);
        filter: blur(0) saturate(100%);
    }
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleDashIn {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
        filter: blur(30px);
        letter-spacing: 50px;
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) scale(0.9);
        filter: blur(5px);
        letter-spacing: -5px;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        letter-spacing: normal;
    }
}

/* Hover Effects */
.stat-box-3d:hover {
    transform: 
        translateY(-15px) 
        scale(1.05) 
        rotateX(5deg) 
        rotateY(-5deg);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(96, 165, 250, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.stat-box-3d:hover h3 {
    animation: numberPulse 1s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 
            0 0 20px rgba(96, 165, 250, 0.5),
            0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 
            0 0 30px rgba(96, 165, 250, 0.8),
            0 0 60px rgba(139, 92, 246, 0.5),
            0 0 90px rgba(96, 165, 250, 0.3);
    }
}

/* Sparkle Effect */
.stat-box-3d .sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    filter: blur(2px);
    animation: sparklePop 1.5s infinite;
    opacity: 0;
}

.stat-box-3d:hover .sparkle {
    opacity: 1;
}

@keyframes sparklePop {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .stat-box-3d {
        padding: 1.5rem;
    }
    
    .stat-box-3d h3 {
        font-size: 3rem;
    }
    
    .energy-orbs {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Add this to your main CSS file */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    width: 100%;
}

* {
    max-width: 100%;
}

/* Prevent any element from causing horizontal overflow */
.container, .hero-container, .services-slider-container {
    overflow-x: hidden;
}

/* Specifically target common offenders */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Prevent tables from causing overflow */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* For flexbox containers */
.flex-container {
    flex-wrap: wrap;
}

/* For grid containers */
.grid-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
