:root {
    /* Colors */
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #5A52E0;
    --accent: #00D9FF;
    --accent-2: #FF6584;
    --accent-3: #36D399;
    --accent-4: #FBBD23;

    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-tertiary: #1A1A2E;
    --bg-card: rgba(26, 26, 46, 0.6);
    --bg-glass: rgba(18, 18, 26, 0.8);

    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C8;
    --text-muted: #6B6B80;

    --border: rgba(108, 99, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.06);

    --gradient-1: linear-gradient(135deg, #6C63FF 0%, #00D9FF 100%);
    --gradient-2: linear-gradient(135deg, #FF6584 0%, #6C63FF 100%);
    --gradient-3: linear-gradient(135deg, #00D9FF 0%, #36D399 100%);
    --gradient-text: linear-gradient(135deg, #6C63FF 0%, #00D9FF 50%, #FF6584 100%);

    /* Spacing */
    --nav-height: 72px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(0, 217, 255, 0.2);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ---------- SELECTION ---------- */
::selection {
    background: rgba(108, 99, 255, 0.3);
    color: #fff;
}

/* ---------- PARTICLE CANVAS ---------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- CURSOR GLOW ---------- */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: transform;
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
    position: relative;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-orbit {
    opacity: 0.6;
}

.logo-orbit.orbit-1 { animation: logoSpin 8s linear infinite; transform-origin: 25px 25px; }
.logo-orbit.orbit-2 { animation: logoSpin 12s linear infinite reverse; transform-origin: 25px 25px; }
.logo-orbit.orbit-3 { animation: logoSpin 10s linear infinite; transform-origin: 25px 25px; }

.logo-electron { animation: electronPulse 2s ease-in-out infinite alternate; }
.logo-electron.e2 { animation-delay: 0.5s; }
.logo-electron.e3 { animation-delay: 1s; }

@keyframes logoSpin {
    to { transform: rotate(360deg); }
}

@keyframes electronPulse {
    to { opacity: 0.4; r: 1.5; }
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-orion { color: var(--primary-light); }
.logo-dev { color: var(--accent); }
.logo-core { color: var(--text-primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 1px;
}

.nav-link:hover {
    background: rgba(108, 99, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-chat-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
}

.btn-chat-toggle:hover {
    color: var(--accent);
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
    transform: scale(1.05);
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    pointer-events: all;
    opacity: 1;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(30px);
}

.mobile-menu-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.mobile-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-link:hover {
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.1);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.08);
    transform: translateY(-2px);
}

.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3); }
    50% { box-shadow: 0 4px 40px rgba(108, 99, 255, 0.6), 0 0 60px rgba(0, 217, 255, 0.2); }
}

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 32px;
    font-weight: 500;
    animation: fadeInUp 0.8s var(--ease-out);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-title .gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s var(--ease-out) 0.3s both;
}

.hero-orb {
    width: 480px;
    height: 480px;
    position: relative;
}

.orb-container {
    width: 100%;
    height: 100%;
    position: relative;
    animation: orbFloat 6s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: orbSpin linear infinite;
}

.orb-ring-1 {
    inset: 0;
    border-color: rgba(108, 99, 255, 0.2);
    animation-duration: 20s;
}

.orb-ring-2 {
    inset: 40px;
    border-color: rgba(0, 217, 255, 0.15);
    animation-duration: 15s;
    animation-direction: reverse;
}

.orb-ring-3 {
    inset: 80px;
    border-color: rgba(255, 101, 132, 0.1);
    animation-duration: 25s;
}

.orb-ring-4 {
    inset: 120px;
    border-color: rgba(108, 99, 255, 0.2);
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes orbSpin {
    to { transform: rotate(360deg); }
}

.orb-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3), rgba(0, 217, 255, 0.1), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orbPulse 3s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { box-shadow: 0 0 60px rgba(108, 99, 255, 0.2), inset 0 0 60px rgba(108, 99, 255, 0.1); }
    50% { box-shadow: 0 0 100px rgba(108, 99, 255, 0.4), inset 0 0 100px rgba(0, 217, 255, 0.2); }
}

.orb-inner-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.5);
    animation: coreGlow 2s ease-in-out infinite alternate;
}

@keyframes coreGlow {
    to { box-shadow: 0 0 80px rgba(108, 99, 255, 0.8), 0 0 120px rgba(0, 217, 255, 0.3); }
}

/* Floating orb particles */
.orb-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: orbParticle linear infinite;
}

.orb-particle:nth-child(1) { top: 10%; left: 50%; background: var(--primary); animation-duration: 4s; }
.orb-particle:nth-child(2) { top: 50%; left: 95%; background: var(--accent); animation-duration: 3s; animation-delay: 1s; }
.orb-particle:nth-child(3) { top: 90%; left: 40%; background: var(--accent-2); animation-duration: 5s; animation-delay: 2s; }
.orb-particle:nth-child(4) { top: 30%; left: 5%; background: var(--accent-3); animation-duration: 3.5s; animation-delay: 0.5s; }
.orb-particle:nth-child(5) { top: 70%; left: 80%; background: var(--accent-4); animation-duration: 4.5s; animation-delay: 1.5s; }
.orb-particle:nth-child(6) { top: 20%; left: 80%; background: var(--primary-light); animation-duration: 3.8s; animation-delay: 0.8s; }

@keyframes orbParticle {
    0%, 100% { opacity: 0; transform: scale(0); }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0) translateY(-20px); }
}

/* Floating code snippet */
.floating-code {
    position: absolute;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    animation: floatCode 5s ease-in-out infinite;
    white-space: nowrap;
}

.floating-code-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.floating-code-2 {
    bottom: 15%;
    left: -30px;
    animation-delay: 2s;
}

@keyframes floatCode {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.code-keyword { color: var(--primary-light); }
.code-string { color: var(--accent-3); }
.code-func { color: var(--accent); }
.code-comment { color: var(--text-muted); }

/* ---------- SECTIONS COMMON ---------- */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-icon.icon-dev { background: rgba(108, 99, 255, 0.15); }
.service-icon.icon-ai { background: rgba(0, 217, 255, 0.15); }
.service-icon.icon-cloud { background: rgba(54, 211, 153, 0.15); }
.service-icon.icon-devops { background: rgba(255, 101, 132, 0.15); }
.service-icon.icon-mobile { background: rgba(251, 189, 35, 0.15); }
.service-icon.icon-consult { background: rgba(108, 99, 255, 0.15); }

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.service-tag {
    padding: 4px 12px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- ABOUT SECTION ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.value-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}

.value-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.value-item .value-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.value-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 6px;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* About Visual */
.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 420px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(10px);
}

.metric-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ---------- WORK / PORTFOLIO ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    backdrop-filter: blur(10px);
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.work-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.work-image-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.work-image-bg.project-1 { background: linear-gradient(135deg, #1a1a3e, #2d1b69); }
.work-image-bg.project-2 { background: linear-gradient(135deg, #0a2a1a, #1b4332); }
.work-image-bg.project-3 { background: linear-gradient(135deg, #2a1a0a, #5c3d2e); }

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card), transparent 60%);
}

.work-body {
    padding: 28px;
}

.work-category {
    font-size: 0.75rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.work-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tech-tag {
    padding: 4px 12px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
}

/* ---------- TECH STACK ---------- */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(10px);
}

.tech-category:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.tech-category h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 99, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
    font-weight: 500;
}

.tech-item:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(0, 217, 255, 0.08);
    transform: translateY(-2px);
}

.tech-item .tech-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* ---------- CONTACT SECTION ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(108, 99, 255, 0.1);
    flex-shrink: 0;
}

.contact-method h4 {
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-method p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B80' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

/* ---------- CHAT WIDGET ---------- */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    max-height: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-spring);
}

.chat-widget.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 217, 255, 0.08));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    position: relative;
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 3s linear infinite;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.avatar-icon {
    width: 100%;
    height: 100%;
}

.mini-orbit {
    animation: orbSpin 4s linear infinite;
    transform-origin: 20px 20px;
}

.mini-orbit:nth-child(3) { animation-duration: 5s; animation-direction: reverse; }
.mini-orbit:nth-child(4) { animation-duration: 6s; }

.avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.avatar-status.online { background: var(--accent-3); }

.chat-header h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.chat-status {
    font-size: 0.72rem;
    color: var(--accent-3);
}

.chat-header-actions {
    display: flex;
    gap: 4px;
}

.chat-minimize, .chat-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.chat-minimize:hover, .chat-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    max-height: 350px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.message {
    display: flex;
    gap: 10px;
    animation: messageIn 0.4s var(--ease-spring);
    max-width: 90%;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.message.bot .message-avatar {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
}

.message.user .message-avatar {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent);
}

.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.6;
}

.message.bot .message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-top-left-radius: 4px;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 217, 255, 0.1));
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Chat suggestions */
.chat-suggestions {
    padding: 8px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-light);
}

.suggestion-chip {
    padding: 6px 14px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--primary);
    color: var(--text-primary);
}

/* Chat input */
.chat-input-area {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    transition: border-color 0.3s;
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary);
}

#chat-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    max-height: 100px;
    line-height: 1.5;
}

#chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: #fff;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}

.chat-powered {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 8px;
    opacity: 0.6;
}

/* Chat FAB */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.4);
    transition: all 0.4s var(--ease-spring);
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.6);
}

.chat-fab.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: fabPulse 2s ease-out infinite;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.social-link svg { width: 18px; height: 18px; }

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 6px 0;
    transition: all 0.3s;
}

.footer-col a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ---------- PAGE TRANSITIONS ---------- */
.page-transition-enter {
    animation: pageIn 0.5s var(--ease-out);
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content { max-width: 100%; }
    .hero-description { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }

    .hero-visual { order: -1; }
    .hero-orb { width: 320px; height: 320px; }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .section { padding: 80px 0; }
    .section-header { margin-bottom: 48px; }

    .services-grid { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .tech-categories { grid-template-columns: 1fr; }
    .about-values { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .hero-orb { width: 260px; height: 260px; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.8rem; }

    .floating-code { display: none; }

    .chat-widget {
        width: calc(100% - 16px);
        right: 8px;
        bottom: 8px;
        max-height: 80vh;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-container { padding: 40px 16px; }
    .container { padding: 0 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
}