/* ============================================
   PHARZA TECHNOLOGY - Premium Enterprise Design System
   Apple + Vercel + Linear + Cisco + Fortinet
   ============================================ */

/* CSS Variables - Premium Color Palette */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --secondary: #00C8FF;
    --accent: #6C63FF;
    --bg-primary: #050816;
    --bg-secondary: #0B1120;
    --bg-tertiary: #111827;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition-slow);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: rgba(15, 23, 42, 0.75);
    --text-tertiary: rgba(15, 23, 42, 0.5);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.2);
}

[data-theme="light"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
}

[data-theme="light"] .hero-text h1,
[data-theme="light"] .hero-text {
    color: var(--text-primary);
}

[data-theme="light"] .hero-description {
    color: var(--text-secondary);
}

[data-theme="light"] .services,
[data-theme="light"] .why-us,
[data-theme="light"] .statistics,
[data-theme="light"] .cta-section,
[data-theme="light"] .footer {
    background: var(--bg-secondary);
}

[data-theme="light"] .glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .nav-menu a {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mobile-menu-toggle span {
    background: var(--text-primary);
}

[data-theme="light"] .mega-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .scroll-indicator {
    color: var(--text-tertiary);
}

[data-theme="light"] .logo {
    padding: 0.5rem 0;
    background: transparent;
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   PREMIUM BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 18px 44px;
    font-size: 1.125rem;
}

/* ============================================
   GLASSMORPHISM HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    overflow: visible;
}

.header.scrolled {
    background: rgba(5, 8, 22, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    min-height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 80px;
    overflow: visible;
    padding: 0.5rem 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 120px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(79, 182, 203, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(79, 182, 203, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a:hover::before {
    width: 60%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    min-width: 600px;
    z-index: 100;
}

.nav-item-has-children:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mega-menu-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column li {
    margin-bottom: 0.75rem;
}

.mega-menu-column a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: block;
    border-radius: 8px;
    transition: var(--transition);
}

.mega-menu-column a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

/* ============================================
   GLASS CARD EFFECT
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTION - PREMIUM DARK THEME
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

#three-container {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 55%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#three-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    #three-container {
        width: 100%;
        left: 0;
        right: 0;
    }
}

.hero-shape {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(0, 200, 255, 0.1) 30%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: floatShape 8s ease-in-out infinite;
}

/* Network Visualization */
.network-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 550px;
    height: 450px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.network-svg {
    width: 100%;
    height: 100%;
}

.network-device {
    animation: devicePulse 3s ease-in-out infinite;
}

@keyframes devicePulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Animated connections */
.network-svg path {
    stroke-dasharray: 5, 5;
    animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

/* Data packet animation */
.network-svg circle[fill="#00C8FF"] {
    animation: packetGlow 2s ease-in-out infinite;
}

@keyframes packetGlow {
    0%, 100% { 
        opacity: 0.7; 
        r: 3;
    }
    50% { 
        opacity: 1; 
        r: 5;
    }
}

[data-theme="light"] .network-visual {
    opacity: 0.95;
}

[data-theme="light"] .network-svg path {
    opacity: 0.9;
}

.hero-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulseShape 4s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(20px); }
}

@keyframes pulseShape {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@media (max-width: 1024px) {
    .hero-shape {
        width: 300px;
        height: 300px;
        right: 50%;
        transform: translate(50%, -50%);
    }
    
    .hero-shape::before {
        width: 200px;
        height: 200px;
    }
}


.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: 20%;
    left: 20%;
    animation-delay: 15s;
}

@keyframes floatGradient {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--primary); }
    50% { opacity: 0.5; box-shadow: 0 0 20px var(--secondary); }
}

.hero-text h1 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.hero-stat {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--bg-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    text-shadow: 0 0 10px var(--secondary);
    font-size: 1.1rem;
}

.service-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-top: auto;
    font-size: 1rem;
}

.service-link:hover {
    gap: 1rem;
    color: var(--text-primary);
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.statistics {
    background: var(--bg-primary);
    padding: 6rem 0;
    position: relative;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.1;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    opacity: 0.2;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.stat-plus {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us {
    background: var(--bg-secondary);
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.why-us-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.why-us-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.why-us-card:hover::before {
    opacity: 1;
}

.why-us-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1.75rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
    flex-shrink: 0;
}

.why-us-card:hover .why-us-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
}

.why-us-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.why-us-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   PROCESS SECTION - FIXED 3x2 GRID
   ============================================ */
.process {
    background: var(--bg-primary);
    position: relative;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.4);
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(0, 102, 255, 0.6);
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-item:hover .timeline-content::before {
    opacity: 1;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */
.industries {
    background: var(--bg-secondary);
    position: relative;
}

.industries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 200, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.industry-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.industry-card:hover::before {
    opacity: 1;
}

.industry-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1.75rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
    flex-shrink: 0;
}

.industry-card:hover .industry-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
}

.industry-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.industry-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners {
    background: var(--bg-primary);
    padding: 4rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.partner-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
    min-height: 140px;
}

.partner-logo-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.partner-logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border-radius: 14px;
    font-size: 1.75rem;
    transition: var(--transition);
}

.partner-logo-item:hover .partner-logo-icon {
    transform: scale(1.15);
}

.partner-name {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.partner-logo-item:hover .partner-name {
    color: var(--text-primary);
}

.partner-logo-item:nth-child(1) .partner-logo-icon { background: linear-gradient(135deg, #1BA0D7, #00C8FF); }
.partner-logo-item:nth-child(2) .partner-logo-icon { background: linear-gradient(135deg, #EE3124, #FF6B6B); }
.partner-logo-item:nth-child(3) .partner-logo-icon { background: linear-gradient(135deg, #0078D4, #00C8FF); }
.partner-logo-item:nth-child(4) .partner-logo-icon { background: linear-gradient(135deg, #293287, #6C63FF); }
.partner-logo-item:nth-child(5) .partner-logo-icon { background: linear-gradient(135deg, #FA6A15, #FFAA00); }
.partner-logo-item:nth-child(6) .partner-logo-icon { background: linear-gradient(135deg, #0064C8, #00C8FF); }
.partner-logo-item:nth-child(7) .partner-logo-icon { background: linear-gradient(135deg, #1877F2, #4DA3FF); }
.partner-logo-item:nth-child(8) .partner-logo-icon { background: linear-gradient(135deg, #0073C8, #00C8FF); }
.partner-logo-item:nth-child(9) .partner-logo-icon { background: linear-gradient(135deg, #0078D4, #00C8FF); }
.partner-logo-item:nth-child(10) .partner-logo-icon { background: linear-gradient(135deg, #0078D4, #6C63FF); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--bg-secondary);
    padding: 6rem 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.4);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-card h2 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-section .btn-secondary {
    background: white;
    color: var(--primary);
    border-color: white;
}

.cta-section .btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-primary);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: white;
    margin-bottom: 1.25rem;
}

.footer-about p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-contact-icon {
    color: var(--secondary);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .mega-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .services-grid,
    .why-us-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.why-us-card,
.timeline-item,
.industry-card,
.stat-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(1),
.why-us-card:nth-child(1),
.timeline-item:nth-child(1),
.industry-card:nth-child(1) { animation-delay: 0.1s; }

.service-card:nth-child(2),
.why-us-card:nth-child(2),
.timeline-item:nth-child(2),
.industry-card:nth-child(2) { animation-delay: 0.2s; }

.service-card:nth-child(3),
.why-us-card:nth-child(3),
.timeline-item:nth-child(3),
.industry-card:nth-child(3) { animation-delay: 0.3s; }

.service-card:nth-child(4),
.why-us-card:nth-child(4),
.timeline-item:nth-child(4),
.industry-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:nth-child(5),
.why-us-card:nth-child(5),
.timeline-item:nth-child(5),
.industry-card:nth-child(5) { animation-delay: 0.5s; }

.service-card:nth-child(6),
.why-us-card:nth-child(6),
.timeline-item:nth-child(6),
.industry-card:nth-child(6) { animation-delay: 0.6s; }