/* =========================================
   CSS VARIABLES & GLOBAL RESET
   ========================================= */
:root {
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.4);
    --bg-card-hover: rgba(15, 23, 42, 0.6);
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(15, 23, 42, 0.6);
    --glass-blur: blur(12px);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-text-anim: linear-gradient(to right, var(--secondary), var(--primary), var(--accent), var(--secondary));
    --font-main: 'Inter', sans-serif;
    
    /* Fluid Typography & Spacing */
    --h1-size: clamp(1.875rem, 5vw + 0.5rem, 4.5rem);
    --h2-size: clamp(1.625rem, 3vw + 0.75rem, 3rem);
    --h3-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.75rem);
    --p-size: clamp(0.9375rem, 0.5vw + 0.5rem, 1.125rem);
    --section-padding: clamp(3.5rem, 10vw, 10rem);
    --container-gap: clamp(1.25rem, 4vw, 4rem);
    --card-padding: clamp(1.25rem, 3vw, 2.5rem);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .text-center-mobile { text-align: center !important; }
    .stack-mobile { flex-direction: column !important; }
    .hide-mobile { display: none !important; }
}


.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    filter: blur(40px);
}

/* Marquee Styles */
.tech-marquee {
    overflow: hidden;
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
    white-space: nowrap;
}

.marquee-item:hover {
    opacity: 1;
    color: var(--primary-light);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 30vw, 300px), 1fr));
    gap: var(--container-gap);
    margin-top: 4rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
}

.step-number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    width: 100%;
}

/* Accessibility: Focus States */
*:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 4px;
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-1);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--secondary);
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    width: clamp(300px, 50vw, 600px);
    height: clamp(300px, 50vw, 600px);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
    pointer-events: none;
}

.glow-1 { top: 0; left: 0; transform: translate(-30%, -30%); }
.glow-2 { bottom: 5%; right: 0; transform: translateX(30%); background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(0,0,0,0) 70%); animation-delay: -5s; }
.glow-3 { top: 40%; left: 30%; background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(0,0,0,0) 70%); }

/* Reusable Classes */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2.5rem);
}

.section-padding {
    padding: var(--section-padding) 0;
}

/* Global Typography */
h1 { font-size: var(--h1-size); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 900; letter-spacing: -2px; word-break: break-word; overflow-wrap: break-word; }
h2 { font-size: var(--h2-size); line-height: 1.2; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -1px; word-break: break-word; overflow-wrap: break-word; }
h3 { font-size: var(--h3-size); line-height: 1.3; margin-bottom: 1rem; font-weight: 700; }
p { font-size: var(--p-size); line-height: 1.7; color: var(--text-muted); margin-bottom: 1rem; }


/* Typography */
.gradient-text {
    background: var(--gradient-text-anim);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: var(--h2-size);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: var(--p-size);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    z-index: -1;
    transition: left 0.7s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Cards with 3D Tilt */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================
   1. HEADER & NAVBAR & MEGA MENU
   ========================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1.5px;
    display: inline-block;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links > li > a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links > li > a:hover, .nav-links > li > a.active {
    color: var(--text-main);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links > li > a:hover::after, .nav-links > li > a.active::after {
    width: 100%;
}
 
 .mobile-only-header {
     display: none !important;
 }

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    background: none;
    border: none;
}

/* --- MEGA MENU DESKTOP STYLES --- */
.has-mega-menu {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: max-content;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 1000;
}

/* Invisible bridge so hover doesn't drop off */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 30px;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(10px);
}

.mega-menu-inner {
    display: flex;
    gap: 4rem;
}

.mega-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.8rem;
}

.mega-column h4 i {
    color: var(--secondary);
    font-size: 1.3rem;
}

.mega-column ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mega-column ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.mega-column ul li a:hover {
    color: var(--primary);
    padding-left: 6px;
}


/* =========================================
   2. HERO SECTION (REDESIGNED 2-COLUMN)
   ========================================= */
.hero {
    padding-top: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--container-gap);
    align-items: center;
}

.hero-left {
    text-align: left;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.hero-left h1 {
    font-size: clamp(2rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-left p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: 0;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

/* Trust Banner in Hero */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    margin-top: 1rem;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatars img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    margin-left: -15px;
    object-fit: cover;
}

.avatars img:first-child { margin-left: 0; }

.avatar-more {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: -15px;
    border: 3px solid var(--bg-dark);
    color: white;
}

.trust-text .stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: flex;
    gap: 3px;
}

.trust-text span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Hero Right Side - UI Visualization */
.hero-right {
    position: relative;
    z-index: 5;
}

.hero-visual-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    perspective: 1000px;
}

.hero-dashboard-mockup {
    width: 100%;
    height: clamp(240px, 40vw, 400px);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99,102,241,0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.mockup-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ef4444; }
.dot-y { background: #eab308; }
.dot-g { background: #22c55e; }

.mockup-inner {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.05);
    transform: translateZ(50px);
}

/* Floating Metric Cards around Mockup */
.floating-glass-card {
    position: absolute;
    background: rgba(20, 25, 40, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: float-offset 6s ease-in-out infinite;
    z-index: 10;
}

.fc-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.fc-2 {
    bottom: 10%;
    left: -5%;
    animation-delay: 3s;
}

.floating-glass-card i {
    font-size: 2rem;
    color: var(--secondary);
    background: rgba(6,182,212,0.15);
    padding: 0.8rem;
    border-radius: 12px;
}

.fc-2 i {
    color: var(--accent);
    background: rgba(168,85,247,0.15);
}

.floating-glass-card h4 {
    font-size: 1.6rem;
    color: white;
    margin: 0;
    line-height: 1;
}

.floating-glass-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    margin-top: 0.2rem;
}

@keyframes float-offset {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}


/* =========================================
   2.5 CLIENT LOGOS SECTION
   ========================================= */
.client-logos-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.01);
}

.client-logos-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.client-logo img {
    transition: all 0.3s ease;
    opacity: 0.6;
}

.client-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* =========================================
   3. ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.about-list i {
    color: var(--secondary);
    font-size: 1.5rem;
    background: rgba(6, 182, 212, 0.1);
    padding: 0.6rem;
    border-radius: 50%;
    margin-top: 0.2rem;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
}

.about-highlight {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateZ(40px);
}

.about-highlight i {
    font-size: 3rem;
    color: var(--secondary);
}

/* =========================================
   4. SERVICES SECTION
   ========================================= */
.services {
    background: rgba(255, 255, 255, 0.01);
    position: relative;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(30px);
}

.service-card:hover .service-icon {
    background: var(--gradient-1);
    color: white;
    transform: translateZ(30px) scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(99,102,241,0.3);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transform: translateZ(20px);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    transform: translateZ(10px);
}

/* =========================================
   5. WHY CHOOSE US
   ========================================= */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(6, 182, 212, 0.3), transparent 30%);
    animation: rotateGlow 5s linear infinite;
}

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.stat-content {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    padding: 3rem 2rem;
    border-radius: 20px;
}

.counter {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.counter-label {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 600;
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.f-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.f-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* =========================================
   6. TESTIMONIALS SECTION
   ========================================= */
.testimonials {
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    transform: translateZ(20px);
}

.testimonial-text {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    line-height: 1.8;
    transform: translateZ(10px);
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
    transform: translateZ(20px);
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.client-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: white;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   7. BLOG SECTION
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: white;
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* =========================================
   8. CONTACT SECTION & FORM
   ========================================= */
#contact {
    position: relative;
    background: linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.contact-details-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.c-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-item p {
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--secondary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* =========================================
   9. FOOTER & SEO LINKS
   ========================================= */
footer {
    background: #030407;
    border-top: 1px solid var(--border-glass);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: clamp(2rem, 4vw, 4rem);
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 1.5rem 0;
    max-width: 320px;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-main);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.4);
    color: white;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.03);
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.newsletter-form input:focus {
    border-color: var(--secondary);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 1.5rem;
    border-radius: 8px;
    border: none;
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* SEO Links Cloud */
.seo-locations-wrapper {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
}

.seo-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.seo-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2.5rem;
}

.seo-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.seo-column-title {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-column-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.seo-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.seo-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.seo-tag:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    border-color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   10. RESPONSIVE DESIGN (Media Queries)
   ========================================= */
@media (max-width: 1200px) {
    .container { padding: 0 5%; }
}

@media (max-width: 1024px) {
    .hero-split { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 3rem; 
        padding-top: 8rem;
    }
    
    .hero-left { max-width: 800px; margin: 0 auto; text-align: center; }
    .hero-left p { margin: 1.5rem auto 2.5rem; max-width: 600px; }
    .hero-left .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    
    .hero-visual-wrapper {
        max-width: 500px;
        margin: 0 auto;
        transform: none !important; /* Disable 3D tilt on tablet */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid, .why-us-grid, .contact-grid, .calculator-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .services-grid, .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero-split { padding-top: 6rem; text-align: center !important; }
    .hero-left { text-align: center !important; margin: 0 auto !important; }
    .hero-badge { margin: 0 auto 2rem !important; }
    .hero-buttons { justify-content: center !important; }
    .hero-left p { margin: 1.5rem auto 2.5rem !important; }
    .hero-trust { justify-content: center !important; }
    .hero-visual-wrapper { max-width: 100%; margin: 0 auto; }
    
    .nav-links {
        position: fixed;
        top: 0; left: -100%; width: min(85%, 360px); height: 100vh;
        background: #05070a;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0.5rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid var(--border-glass);
        z-index: 999;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links.active { left: 0; }
    
    .mobile-only-header {
        display: block !important;
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        width: 100%;
    }
    
    .has-mega-menu.active .mega-menu { display: block; }
    
    .mega-menu-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-cta { display: none; }
    
    #header { padding: 0.8rem 0 !important; }
    
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .mobile-menu-btn { 
        display: block !important; 
        z-index: 1001;
        position: relative;
        margin-left: auto;
    }

    .logo {
        font-size: 1.1rem !important;
        padding: 0.2rem 0.5rem !important;
        margin-left: 0 !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn { width: 100%; }

    /* Optimize cards for small screens */
    .glass-card { padding: 1.5rem; }
    .stat-box { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
    .counter { font-size: 3rem; }
    .case-study-metric .metric-value { font-size: 2rem; }
}
/* =========================================
   11. NEW HUB-SPECIFIC COMPONENTS
   ========================================= */

/* Parallax Sections */
.parallax-section {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Outcome Hero Animated Background */
.animated-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #020617, #0f172a, #1e1b4b);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Case Study Proof Grid */
.case-study-card {
    padding: 0 !important;
    overflow: hidden;
}

.case-study-header {
    background: var(--gradient-1);
    padding: 1.5rem;
    color: white;
}

.case-study-body {
    padding: 2rem;
}

.case-study-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.challenge-box, .action-box, .result-box {
    margin-bottom: 1.5rem;
}

.box-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    display: block;
}

/* ROI Estimator (Audit Tool) */
.audit-tool-box {
    max-width: 800px;
    margin: 4rem auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.input-group label span {
    color: var(--secondary);
    font-weight: 700;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.calc-results {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-item h4 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

/* Feature Definition List for SEO snippets */
.seo-features-list {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .seo-features-list {
        text-align: center;
    }
}


.seo-features-list dt {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.seo-features-list dd {
    color: var(--text-muted);
    margin-left: 0;
    line-height: 1.7;
}

/* Specialized Responsive Refinements */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.case-study-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-metric {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1;
}

/* Final Global Mobile Polish */
@media (max-width: 480px) {
    :root {
        --section-padding: 4rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 1.2rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }
}

/* =========================================
   ADDITIONAL RESPONSIVE POLISH
   ========================================= */

/* --- Tablet tweaks (769px–1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-left h1 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .mega-menu-inner {
        gap: 2.5rem;
    }

    .mega-menu {
        width: min(90vw, 640px);
        left: 0;
        transform: translateX(0) translateY(20px);
    }

    .has-mega-menu:hover .mega-menu {
        transform: translateX(0) translateY(10px);
    }
}

/* --- Shared tablet + mobile resets (≤1024px) --- */
@media (max-width: 1024px) {
    .about-highlight {
        position: static;
        transform: none;
        margin-top: 1.5rem;
        border-radius: 12px;
    }

    .about-image {
        overflow: visible;
    }

    .hero-visual-wrapper {
        overflow: hidden;
    }

    .tilt-card {
        transform: none !important;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding-top: 5rem;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        padding-top: 3rem;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-left {
        text-align: center;
        max-width: 100%;
    }

    .hero-left h1 {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
        letter-spacing: -0.5px;
    }

    .hero-left p {
        font-size: 0.975rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
        display: inline-flex;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    /* About section */
    .about-grid {
        gap: 2rem;
    }

    .about-content h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .about-highlight {
        position: static;
        transform: none;
        margin-top: 1.5rem;
        flex-direction: row;
        justify-content: flex-start;
    }

    /* Why us */
    .why-us-grid {
        gap: 2rem;
    }

    .stat-box {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Process */
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-section {
        text-align: center;
    }

    .contact-info-section .section-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .contact-item {
        justify-content: center;
        text-align: left;
    }

    .contact-details-box {
        gap: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-form input {
        border-radius: 12px;
    }

    .newsletter-form button {
        position: static;
        border-radius: 12px;
        padding: 1rem;
        width: 100%;
    }

    /* Marquee padding */
    .tech-marquee {
        padding: 2rem 0;
    }

    /* Section header margin */
    .section-header {
        margin-bottom: 3rem;
    }

    /* Stat content padding */
    .stat-content {
        padding: 2rem 1.5rem;
    }

    /* Hide floating hero cards on mobile - they overflow and aren't needed */
    .floating-glass-card {
        display: none;
    }

    /* Contain hero right side */
    .hero-right {
        overflow: hidden;
        width: 100%;
    }
}

/* --- Small phones (≤375px) --- */
@media (max-width: 375px) {
    :root {
        --section-padding: 3.5rem;
    }

    .logo {
        font-size: 1rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    .hero-left h1 {
        font-size: clamp(1.75rem, 9vw, 2.25rem);
        letter-spacing: -0.5px;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .counter {
        font-size: 2.5rem;
    }

    .marquee-content {
        gap: 2.5rem;
    }

    .f-icon {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }

    .service-icon {
        width: 54px;
        height: 54px;
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 1.2rem;
    }
}

/* --- Prevent horizontal overflow site-wide --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
    width: 100%;
}

section {
    overflow-x: hidden;
}

/* Ensure images never overflow */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure mega-menu doesn't overflow viewport on smaller desktops */
@media (max-width: 1100px) {
    .mega-menu {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(20px);
    }

    .has-mega-menu:hover .mega-menu {
        transform: translateX(0) translateY(10px);
    }
}

/* Mouse glow - disable on touch devices (performance) */
@media (hover: none) {
    .mouse-glow {
        display: none;
    }
}



