/* ============================================
   Global Media - Futuristic Digital Agency
   Modern CSS with Advanced Animations
   ============================================ */

/* CSS Variables - Dark Mode (Default) */
:root {
    /* Colors */
    --bg: #030305;
    --bg-elevated: #0a0a0f;
    --bg-card: #0f0f14;
    --bg-card-hover: #14141a;
    
    --primary: #c8ff00;
    --primary-dim: #a8d900;
    --primary-dark: #7ab800;
    --primary-rgb: 200, 255, 0;
    --primary-glow: rgba(200, 255, 0, 0.4);
    
    --secondary: #00d4ff;
    --secondary-rgb: 0, 212, 255;
    
    --accent: #ff006e;
    --accent-rgb: 255, 0, 110;
    
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    
    --border: #1a1a22;
    --border-light: #2a2a35;
    --border-glow: rgba(200, 255, 0, 0.2);
    
    --btn-text: #030305;
    
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-colored: rgba(200, 255, 0, 0.1);
    
    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --nav-height: 72px;
    --section-padding: 6rem;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
    
    /* Glass effect */
    --glass-bg: rgba(15, 15, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: 20px;
}

/* Light Mode */
body:not(.dark-mode) {
    --bg: #fafafa;
    --bg-elevated: #f0f0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5fa;
    
    --primary: #84cc16;
    --primary-dim: #65a30d;
    --primary-dark: #4d7c0f;
    --primary-rgb: 132, 204, 22;
    --primary-glow: rgba(132, 204, 22, 0.3);
    
    --text: #0a0a0b;
    --text-muted: #525252;
    --text-dim: #737373;
    
    --border: #e5e5e5;
    --border-light: #d4d4d4;
    --border-glow: rgba(132, 204, 22, 0.2);
    
    --btn-text: #ffffff;
    
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-colored: rgba(132, 204, 22, 0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
}

address {
    font-style: normal;
}

/* ============================================
   Cursor Glow Effect
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

body:hover .cursor-glow {
    opacity: 0.5;
}

/* ============================================
   Background Effects
   ============================================ */
.bg-pattern {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    opacity: 0.15;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: 20%;
    left: -100px;
    opacity: 0.1;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -100px;
    right: 20%;
    opacity: 0.08;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.container-md {
    max-width: 900px;
}

.container-sm {
    max-width: 700px;
}

/* ============================================
   Glass Card Effect
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--primary);
    color: var(--btn-text);
}

.btn-primary:hover {
    background: var(--primary-dim);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 40px var(--primary-glow), 0 10px 40px var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-hover-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 0;
}

.btn-hover-fill:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-hover-fill:hover {
    color: var(--btn-text);
    border-color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Button Loading State */
.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

body:not(.dark-mode) .navbar {
    background: rgba(250, 250, 250, 0.9);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

.logo-pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

.logo-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

/* Nav Links */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   Navigation Dropdown
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-dropdown-trigger svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-trigger::after {
    display: none;
}

.nav-dropdown:hover .nav-dropdown-trigger {
    color: var(--text);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    padding: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.nav-dropdown-menu a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    flex-shrink: 0;
}

.nav-dropdown-menu a:hover svg {
    opacity: 1;
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text);
    border-color: var(--border-light);
}

.icon-sun { display: block; }
.icon-moon { display: none; }

body:not(.dark-mode) .icon-sun { display: none; }
body:not(.dark-mode) .icon-moon { display: block; }

.nav-cta {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    align-items: center;
    justify-content: center;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s var(--ease-out-expo) 0.2s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Hero Brand Name */
.hero-brand {
    display: block;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
    opacity: 0.9;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brand-shimmer 3s ease-in-out infinite;
}

@keyframes brand-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero Title */
.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-main {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.hero-title-main:hover {
    transform: translateX(10px);
}

.hero-title-main:hover .text-primary {
    text-shadow: 
        0 0 30px var(--primary),
        0 0 60px var(--primary-glow),
        0 0 90px rgba(200, 255, 0, 0.3);
}

.text-primary {
    color: var(--primary);
}

.text-glow {
    text-shadow: 0 0 40px var(--primary-glow);
}

/* ============================================
   Heading Hover Animation
   ============================================ */
.heading-hover {
    position: relative;
    display: inline-block;
    transition: all 0.4s var(--ease-out-expo);
    cursor: default;
}

.heading-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 0;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 255, 0, 0.1),
        rgba(200, 255, 0, 0.2),
        rgba(200, 255, 0, 0.1),
        transparent
    );
    transition: width 0.6s var(--ease-out-expo);
    pointer-events: none;
    z-index: -1;
}

.heading-hover:hover::before {
    width: 120%;
}

.heading-hover:hover {
    text-shadow: 
        0 0 20px rgba(200, 255, 0, 0.3),
        0 0 40px rgba(200, 255, 0, 0.2),
        0 0 60px rgba(200, 255, 0, 0.1);
    transform: translateX(5px);
}

.heading-hover:hover .text-primary {
    text-shadow: 
        0 0 30px var(--primary),
        0 0 60px var(--primary-glow);
}

/* Alternative: Underline sweep animation */
.heading-underline-hover {
    position: relative;
    display: inline-block;
}

.heading-underline-hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent, #00ffcc));
    transition: width 0.4s var(--ease-out-expo);
    border-radius: 3px;
}

.heading-underline-hover:hover::after {
    width: 100%;
}

/* Section title hover */
.section-title {
    transition: all 0.4s var(--ease-out-expo);
}

.section-title:hover {
    transform: translateX(5px);
}

.section-title:hover .text-primary {
    text-shadow: 
        0 0 20px var(--primary),
        0 0 40px var(--primary-glow);
}

/* Service hero h1 hover */
.service-hero h1 {
    transition: all 0.4s var(--ease-out-expo);
}

.service-hero h1:hover {
    transform: translateX(8px);
}

.service-hero h1:hover .text-primary {
    text-shadow: 
        0 0 25px var(--primary),
        0 0 50px var(--primary-glow);
}

/* CTA title hover */
.cta-title {
    transition: all 0.4s var(--ease-out-expo);
}

.cta-title:hover {
    transform: scale(1.02);
}

.cta-title:hover .text-primary {
    text-shadow: 
        0 0 30px var(--primary),
        0 0 60px var(--primary-glow);
}

/* Glitch Effect */
.glitch-text {
    position: relative;
}

.glitch-text:hover::before,
.glitch-text:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text:hover::before {
    color: var(--secondary);
    animation: glitch-1 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text:hover::after {
    color: var(--accent);
    animation: glitch-2 0.3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    position: relative;
    overflow: hidden;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
    overflow: hidden;
}

.stat-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out-expo);
}

.stat.animated .stat-bar::after {
    transform: scaleX(1);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 500px;
    opacity: 0;
    transform: translateX(30px);
    animation: heroFadeIn 1s var(--ease-out-expo) 0.5s forwards;
}

/* Visual Sphere */
.hero-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.grid-line {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid var(--border);
    border-radius: 50%;
    animation: gridRotate 20s linear infinite;
}

.grid-line:nth-child(2) {
    width: 220px;
    height: 220px;
    animation-direction: reverse;
    animation-duration: 15s;
}

.grid-line:nth-child(3) {
    width: 140px;
    height: 140px;
    animation-duration: 10s;
}

@keyframes gridRotate {
    from { transform: rotateX(60deg) rotateZ(0deg); }
    to { transform: rotateX(60deg) rotateZ(360deg); }
}

.visual-sphere {
    position: relative;
    width: 200px;
    height: 200px;
}

.sphere-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

.sphere-ring-1 {
    animation: sphereRing 8s linear infinite;
}

.sphere-ring-2 {
    animation: sphereRing 8s linear infinite reverse;
    animation-delay: -2s;
    transform: rotateY(60deg);
}

.sphere-ring-3 {
    animation: sphereRing 8s linear infinite;
    animation-delay: -4s;
    transform: rotateX(60deg);
}

@keyframes sphereRing {
    from { transform: rotateY(0deg) rotateX(30deg); }
    to { transform: rotateY(360deg) rotateX(30deg); }
}

.sphere-core {
    position: absolute;
    inset: 30%;
    background: radial-gradient(circle at 30% 30%, var(--primary), var(--primary-dark));
    border-radius: 50%;
    box-shadow: 0 0 60px var(--primary-glow), inset 0 0 30px rgba(255,255,255,0.2);
    animation: spherePulse 4s ease-in-out infinite;
}

@keyframes spherePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Particles */
.visual-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; left: 70%; animation-delay: -1s; }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: -2s; }
.particle:nth-child(4) { top: 80%; left: 60%; animation-delay: -3s; }
.particle:nth-child(5) { top: 30%; left: 80%; animation-delay: -4s; }
.particle:nth-child(6) { top: 70%; left: 40%; animation-delay: -5s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 40px var(--shadow);
    z-index: 10;
}

.float-card-top {
    top: 10%;
    right: 0;
    animation: floatCard 4s ease-in-out infinite;
}

.float-card-bottom {
    bottom: 20%;
    left: -5%;
    animation: floatCard 4s ease-in-out infinite;
    animation-delay: -1.5s;
}

.float-card-right {
    top: 50%;
    right: -10%;
    animation: floatCard 4s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text);
}

.float-card-icon-dim {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
}

.float-card-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.float-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Scroll Indicator */
.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-dim);
    font-size: 0.8rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

/* ============================================
   Trusted By Section
   ============================================ */
.section-trusted {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.trusted-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.trusted-logos {
    position: relative;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 4rem;
    animation: logoScroll 30s linear infinite;
    width: max-content;
}

@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.client-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dim);
    white-space: nowrap;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.client-logo:hover {
    opacity: 1;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--section-padding) 1.5rem;
    position: relative;
    z-index: 1;
}

.section-elevated {
    background: var(--bg-elevated);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title.text-left {
    text-align: left;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Heading Reveal Animations
   ============================================ */
/* Heading reveal animations - disabled for stability */
.heading-reveal {
    opacity: 1;
    transform: none;
}

.heading-reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Section header and content - always visible */
.section,
.section-elevated,
.section-header,
.section-header .section-label,
.section-header .section-title,
.section-header .section-desc,
.service-hero,
.service-hero-content,
.service-hero-grid,
.service-hero-text,
.service-hero-visual,
.tech-grid,
.tech-item,
.service-process,
.service-process-item,
.service-features-grid,
.service-feature-card,
.pricing-grid,
.pricing-card,
.code-window,
.code-body {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Word animation for headings - disabled */
.heading-words .word {
    display: inline-block;
    opacity: 1;
    transform: none;
}

/* Split text animation for headings */
.heading-split {
    overflow: hidden;
}

.heading-split .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.heading-split.revealed .char {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for characters */
.heading-split.revealed .char:nth-child(1) { transition-delay: 0.02s; }
.heading-split.revealed .char:nth-child(2) { transition-delay: 0.04s; }
.heading-split.revealed .char:nth-child(3) { transition-delay: 0.06s; }
.heading-split.revealed .char:nth-child(4) { transition-delay: 0.08s; }
.heading-split.revealed .char:nth-child(5) { transition-delay: 0.10s; }
.heading-split.revealed .char:nth-child(6) { transition-delay: 0.12s; }
.heading-split.revealed .char:nth-child(7) { transition-delay: 0.14s; }
.heading-split.revealed .char:nth-child(8) { transition-delay: 0.16s; }
.heading-split.revealed .char:nth-child(9) { transition-delay: 0.18s; }
.heading-split.revealed .char:nth-child(10) { transition-delay: 0.20s; }
.heading-split.revealed .char:nth-child(11) { transition-delay: 0.22s; }
.heading-split.revealed .char:nth-child(12) { transition-delay: 0.24s; }
.heading-split.revealed .char:nth-child(13) { transition-delay: 0.26s; }
.heading-split.revealed .char:nth-child(14) { transition-delay: 0.28s; }
.heading-split.revealed .char:nth-child(15) { transition-delay: 0.30s; }
.heading-split.revealed .char:nth-child(n+16) { transition-delay: 0.32s; }

/* Word by word reveal animation */
.heading-words .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-20deg);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.heading-words.revealed .word {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Stagger delays for words */
.heading-words.revealed .word:nth-child(1) { transition-delay: 0.05s; }
.heading-words.revealed .word:nth-child(2) { transition-delay: 0.12s; }
.heading-words.revealed .word:nth-child(3) { transition-delay: 0.19s; }
.heading-words.revealed .word:nth-child(4) { transition-delay: 0.26s; }
.heading-words.revealed .word:nth-child(5) { transition-delay: 0.33s; }
.heading-words.revealed .word:nth-child(6) { transition-delay: 0.40s; }
.heading-words.revealed .word:nth-child(n+7) { transition-delay: 0.47s; }

/* Slide up with fade for section headers */
.section-header .section-label,
.section-header .section-title,
.section-header .section-desc {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.section-header.revealed .section-label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.section-header.revealed .section-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.section-header.revealed .section-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Underline reveal animation */
.heading-underline {
    position: relative;
    display: inline-block;
}

.heading-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.8s var(--ease-out-expo);
    transition-delay: 0.3s;
}

.heading-underline.revealed::after {
    width: 60px;
}

/* Clip reveal animation */
.heading-clip {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0.8s var(--ease-out-expo);
}

.heading-clip.revealed {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Glow animation on reveal */
.heading-glow {
    text-shadow: none;
    transition: text-shadow 0.5s ease;
}

.heading-glow.revealed {
    animation: headingGlowPulse 2s ease-out;
}

@keyframes headingGlowPulse {
    0% { text-shadow: 0 0 0 transparent; }
    30% { text-shadow: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow); }
    100% { text-shadow: none; }
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.service-card {
    padding: 1.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover .service-card-glow {
    opacity: 0.15;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--btn-text);
    transform: scale(1.1);
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.3s;
}

.service-card:hover .service-link {
    gap: 0.6rem;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-sphere-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.about-sphere {
    position: absolute;
    inset: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--bg-card), var(--bg));
    border: 1px solid var(--border);
    overflow: hidden;
}

.sphere-layer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed var(--primary);
    opacity: 0.3;
}

.sphere-layer-1 {
    animation: sphereLayerSpin 20s linear infinite;
}

.sphere-layer-2 {
    inset: 20%;
    animation: sphereLayerSpin 15s linear infinite reverse;
}

.sphere-layer-3 {
    inset: 40%;
    animation: sphereLayerSpin 10s linear infinite;
}

@keyframes sphereLayerSpin {
    from { transform: rotateZ(0deg); }
    to { transform: rotateZ(360deg); }
}

.orbit-items {
    position: absolute;
    inset: 0;
    animation: orbitSpin 30s linear infinite;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-item {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: orbitItemCounter 30s linear infinite;
}

@keyframes orbitItemCounter {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.orbit-item-1 { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-item-2 { top: 50%; right: 0; transform: translateY(-50%); }
.orbit-item-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit-item-4 { top: 50%; left: 0; transform: translateY(-50%); }

.about-content {
    max-width: 540px;
}

.about-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.feature-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Process Section
   ============================================ */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 50px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
    z-index: 0;
}

.process-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-out-expo);
}

.process-card:hover {
    transform: translateY(-8px);
}

.process-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.process-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
    transition: all 0.3s;
}

.process-card:hover .process-icon {
    background: var(--primary);
    color: var(--btn-text);
}

.process-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.25rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-image {
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.portfolio-item-large .portfolio-image {
    aspect-ratio: 16 / 14;
}

.portfolio-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card), var(--bg));
    color: var(--text-dim);
}

.portfolio-content {
    padding: 1.25rem;
}

.portfolio-item-large .portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.portfolio-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.portfolio-item-large .portfolio-title {
    font-size: 1.25rem;
}

.portfolio-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.portfolio-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-stats span {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-us-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s;
}

.why-us-card:hover::before {
    opacity: 0.15;
}

.why-us-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
}

.why-us-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
    transition: all 0.3s;
}

.why-us-card:hover .why-us-icon {
    background: var(--primary);
    color: var(--btn-text);
    transform: scale(1.1);
}

.why-us-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.why-us-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active {
    border-color: var(--border-light);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--text);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.3s var(--ease-out-expo);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.section-cta {
    padding: var(--section-padding) 1.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-grid {
    position: absolute;
    inset: -100px;
    background-image: 
        linear-gradient(var(--primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.03;
    transform: perspective(500px) rotateX(60deg);
    animation: ctaGridMove 20s linear infinite;
}

@keyframes ctaGridMove {
    from { transform: perspective(500px) rotateX(60deg) translateY(0); }
    to { transform: perspective(500px) rotateX(60deg) translateY(80px); }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    padding: 2.5rem;
    border-radius: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-dim);
}

.form-select {
    cursor: pointer;
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--accent);
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: var(--accent);
}

.form-group.error .form-error {
    display: block;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 16px;
    transition: all 0.3s;
}

.contact-info-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-info-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 5rem 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--btn-text);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.footer-links nav,
.footer-links address {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-links span {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 2.5rem;
    z-index: 1;
    animation: modalSlideIn 0.4s var(--ease-out-expo);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.modal-features-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-features {
    margin-bottom: 1.5rem;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-cta {
    flex: 1;
    text-align: center;
}

.modal-close-btn {
    padding: 0.875rem 1.5rem;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 1;
    animation: slideIn 0.3s var(--ease-out-expo);
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 1rem 1.25rem;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

/* Mobile Dropdown */
.mobile-nav-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.mobile-dropdown-trigger svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.mobile-dropdown-trigger.active svg {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0 0.5rem 1rem;
    margin-top: 0.25rem;
}

.mobile-dropdown-menu.active {
    display: flex;
}

.mobile-dropdown-link {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
    border-left: 2px solid var(--border);
}

.mobile-dropdown-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mobile-cta {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 1.1rem;
}

/* ============================================
   Notification
   ============================================ */
.notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification {
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: var(--btn-text);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    font-weight: 500;
    animation: notificationSlide 0.4s var(--ease-out-expo);
}

.notification-error {
    background: var(--accent);
    color: #fff;
}

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
    cursor: pointer;
}

.notification-close:hover {
    opacity: 1;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .portfolio-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .contact-info-grid {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-illustration {
        height: 400px;
        order: -1;
    }
    
    .about-visual {
        order: -1;
    }
    
    .about-sphere-container {
        width: 280px;
        height: 280px;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-line {
        display: none;
    }
    
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .float-card-right {
        display: none;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 4rem;
    }
    
    .hero {
        padding-top: calc(var(--nav-height) + 1rem);
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .process-timeline,
    .features-grid,
    .form-grid,
    .portfolio-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item-large {
        grid-column: span 1;
    }
    
    .hero-illustration {
        height: 300px;
    }
    
    .float-card {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-suffix {
        font-size: 1.1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .notification-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .notification {
        width: 100%;
    }
}

/* ============================================
   Accessibility & Preferences
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--btn-text);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ============================================
   Cookie Banner (GDPR)
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
    box-shadow: 0 -10px 40px var(--shadow);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 280px;
}

.cookie-text svg {
    flex-shrink: 0;
    color: var(--primary);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cookie-settings-modal.active {
    display: flex;
}

.cookie-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.cookie-settings-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    z-index: 1;
    animation: modalSlideIn 0.4s var(--ease-out-expo);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.cookie-settings-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.cookie-settings-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-settings-close:hover {
    background: var(--bg-elevated);
}

.cookie-category {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cookie-category-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text);
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle.active {
    background: var(--primary);
}

.cookie-toggle.active::after {
    transform: translateX(22px);
    background: var(--btn-text);
}

.cookie-settings-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cookie-settings-actions .btn {
    flex: 1;
}

/* Legal Pages */
.legal-page {
    padding: calc(var(--nav-height) + 4rem) 1.5rem 4rem;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-section li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.legal-section a {
    color: var(--primary);
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-contact {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.legal-contact p {
    margin-bottom: 0.5rem;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

/* Cookie Table */
.cookie-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cookie-table th {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--text);
}

.cookie-table td {
    color: var(--text-muted);
}

/* GDPR Rights Grid */
.gdpr-rights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gdpr-right {
    padding: 1.25rem;
    border-radius: 12px;
}

.gdpr-right h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.gdpr-right p {
    font-size: 0.9rem;
    margin: 0;
}

/* Service Page Specific Styles */
.service-page {
    padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
}

/* ============================================
   Breadcrumb Navigation - Modern Design
   ============================================ */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s var(--ease-out-expo);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.breadcrumb a:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.breadcrumb span:not(:last-child) {
    color: var(--text-dim);
    padding: 0 0.25rem;
}

.breadcrumb > span:last-child {
    color: var(--primary);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 20px;
}

/* Breadcrumb Separator Icon */
.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: var(--text-dim);
    padding: 0 0.25rem;
}

.breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}

.service-hero {
    padding: calc(var(--nav-height) + 3rem) 0 4rem;
    position: relative;
    overflow: visible;
    display: block !important;
    min-height: 70vh;
}

.service-hero-content {
    position: relative;
    z-index: 2;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-hero-text {
    text-align: left;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-badge svg {
    width: 16px;
    height: 16px;
}

.service-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    opacity: 1 !important;
    transform: none !important;
}

.service-hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
}

.service-hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.service-hero-stats {
    display: flex;
    gap: 2.5rem;
}

.service-stat {
    text-align: left;
}

.service-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.service-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.service-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Service Animated Visuals */
.service-visual-animation {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-visual-core {
    position: relative;
    width: 280px;
    height: 280px;
}

/* Animated rings */
.visual-ring {
    position: absolute;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    animation: ring-rotate 20s linear infinite;
}

.visual-ring-1 {
    inset: 0;
    border-color: rgba(var(--primary-rgb), 0.4);
    animation-duration: 25s;
}

.visual-ring-2 {
    inset: 20px;
    border-style: dashed;
    border-color: rgba(var(--primary-rgb), 0.25);
    animation-duration: 30s;
    animation-direction: reverse;
}

.visual-ring-3 {
    inset: 40px;
    border-color: rgba(var(--primary-rgb), 0.15);
    animation-duration: 35s;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Center icon */
.visual-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.6));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.4);
    animation: center-pulse 3s ease-in-out infinite;
}

.visual-center svg {
    width: 50px;
    height: 50px;
    color: var(--bg);
    stroke: var(--bg);
}

@keyframes center-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.4); }
    50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 80px rgba(var(--primary-rgb), 0.6); }
}

/* Floating icons around visual */
.visual-float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-bounce 4s ease-in-out infinite;
}

.visual-float-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    stroke: var(--primary);
}

.visual-float-icon-1 { top: 10%; left: 10%; animation-delay: 0s; }
.visual-float-icon-2 { top: 15%; right: 5%; animation-delay: 0.5s; }
.visual-float-icon-3 { bottom: 20%; left: 5%; animation-delay: 1s; }
.visual-float-icon-4 { bottom: 10%; right: 15%; animation-delay: 1.5s; }

@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Particle dots */
.visual-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

.visual-dot-1 { top: 25%; left: 30%; animation-delay: 0s; }
.visual-dot-2 { top: 40%; right: 25%; animation-delay: 0.3s; }
.visual-dot-3 { bottom: 30%; left: 35%; animation-delay: 0.6s; }
.visual-dot-4 { bottom: 45%; right: 30%; animation-delay: 0.9s; }
.visual-dot-5 { top: 60%; left: 20%; animation-delay: 1.2s; }

@keyframes dot-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Connecting lines */
.visual-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.4), transparent);
    animation: line-scan 3s ease-in-out infinite;
}

.visual-line-1 { top: 30%; left: 0; right: 0; animation-delay: 0s; }
.visual-line-2 { top: 50%; left: 0; right: 0; animation-delay: 1s; }
.visual-line-3 { top: 70%; left: 0; right: 0; animation-delay: 2s; }

@keyframes line-scan {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Code Window Animation */
.code-window {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    font-family: 'Fira Code', 'SF Mono', monospace;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.code-dot:nth-child(2) {
    background: #ffbd2e;
}

.code-dot:nth-child(3) {
    background: #28c840;
}

.code-body {
    padding: 1.5rem;
}

.code-line {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.code-line .keyword {
    color: #c678dd;
}

.code-line .function {
    color: #61afef;
}

.code-line .string {
    color: #98c379;
}

.code-line .property {
    color: #e5c07b;
}

.code-line .punctuation {
    color: #abb2bf;
}

/* Ranking Visual */
.ranking-visual {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.ranking-header {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.ranking-list {
    padding: 1rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.ranking-item:last-child {
    margin-bottom: 0;
}

.ranking-1 {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--primary);
}

.ranking-item .rank {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 30px;
}

.ranking-1 .rank {
    color: var(--primary);
}

.ranking-item .url {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badge-you {
    padding: 0.25rem 0.5rem;
    background: var(--primary);
    color: var(--bg-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Service Hero */
@media (max-width: 992px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-hero-text {
        text-align: center;
    }
    
    .service-hero-desc {
        margin: 0 auto 2rem;
    }
    
    .service-hero-actions {
        justify-content: center;
    }
    
    .service-hero-stats {
        justify-content: center;
    }
    
    .service-stat {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .service-hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .service-hero-actions {
        flex-direction: column;
    }
    
    .service-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Service Features Grid */
.service-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-feature-card {
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s var(--ease-out-expo);
}

.service-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-card-hover-shadow);
}

.service-feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-feature-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.service-feature-list li:last-child {
    border-bottom: none;
}

@media (max-width: 992px) {
    .service-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .service-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Service Process Grid
   ============================================ */
.service-process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-process-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.service-process-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-process-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--primary-rgb), 0.1);
}

.service-process-item:hover::before {
    opacity: 1;
}

.service-process-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    text-shadow: 0 0 30px var(--primary-glow);
}

.service-process-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.service-process-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .service-process {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .service-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-process {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Tech Stack Grid
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.tech-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(var(--primary-rgb), 0.15);
}

.tech-item:hover::before {
    opacity: 1;
}

@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-color);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-color-body);
    font-size: 0.95rem;
}

.pricing-features li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-featured {
        transform: none;
    }
}

/* Service Hero Icon (fallback) */
.service-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.service-main h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-main p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.service-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.service-feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.service-sidebar-card {
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.service-sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-sidebar-card li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-sidebar-card li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 0.5rem;
}

@media (max-width: 900px) {
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        justify-content: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}
