/* ============================================================
   ZILO PERSONALISATION — Landing Page Styles v2
   Design: Modern Dark Cinema + Glassmorphism + Neon Tech
   Typography: Gilroy (headings) + DM Sans (body)
   ============================================================ */

/* ---------- LOCAL FONTS ---------- */
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy/Gilroy-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy/Gilroy-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy/Gilroy-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy/Gilroy-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy/Gilroy-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy/Gilroy-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans/DM-Sans-300.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans/DM-Sans-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans/DM-Sans-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans/DM-Sans-600.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dm-sans/DM-Sans-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- DESIGN TOKENS ---------- */
:root {
    --bg-deep: #050507;
    --bg-base: #0a0a0f;
    --bg-elevated: #111118;
    --bg-card: #14141e;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --fg: #ededef;
    --fg-muted: #a0a4ae;
    --fg-dim: #727882;
    --accent-cyan: #00d4ff;
    --accent-violet: #8b5cf6;
    --accent-emerald: #22c55e;
    --accent-amber: #f59e0b;
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    --gradient-alt: linear-gradient(135deg, var(--accent-violet), #ec4899);
    --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.06), transparent 40%);
    --font-heading: 'Gilroy', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --section-padding: clamp(80px, 12vh, 160px);
    --container-width: 1280px;
    --container-padding: clamp(20px, 4vw, 48px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 600ms;
    --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; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg);
    background-color: var(--bg-deep);
    overflow-x: hidden;
    cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; font: inherit; color: inherit; cursor: none; }
::selection { background: rgba(0, 212, 255, 0.3); color: #fff; }

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
    position: fixed; top: 0; left: 0; width: 8px; height: 8px;
    background: var(--accent-cyan); border-radius: 50%;
    pointer-events: none; z-index: 10000; transform: translate(-50%, -50%);
    transition: width var(--duration-fast) var(--ease-out), height var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
.cursor-follower {
    position: fixed; top: 0; left: 0; width: 36px; height: 36px;
    border: 1px solid rgba(0, 212, 255, 0.4); border-radius: 50%;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    transition: width var(--duration-normal) var(--ease-out), height var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}
body:hover .cursor.hovering { width: 48px; height: 48px; background: rgba(0, 212, 255, 0.15); border: 1px solid var(--accent-cyan); }
body:hover .cursor-follower.hovering { width: 64px; height: 64px; border-color: rgba(139, 92, 246, 0.3); }

/* ---------- CONTAINER ---------- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding); }

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0; transition: all var(--duration-normal) var(--ease-out);
}
.nav.scrolled {
    padding: 12px 0; background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-padding);
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1001; }
.logo-canvas {
    width: 44px; height: 44px; display: block; pointer-events: none;
    border-radius: 4px;
}
.logo-text { font-family: var(--font-heading); font-size: 24px; font-weight: 700; letter-spacing: 4px; color: var(--fg); }
.nav-links-desktop { display: flex; align-items: center; gap: 36px; }
.nav-link {
    font-family: var(--font-body); font-size: 14px; font-weight: 500;
    color: var(--fg-muted); transition: color var(--duration-normal) var(--ease-out); position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--accent-cyan);
    transition: width var(--duration-normal) var(--ease-out);
}
.nav-link:hover { color: var(--accent-violet); }
.nav-link:hover::after { width: 100%; background: var(--accent-violet); }
.nav-link--cta {
    color: var(--bg-deep); background: var(--fg); padding: 10px 24px;
    border-radius: 100px; font-weight: 600; transition: all var(--duration-normal) var(--ease-out);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
    color: #fff; background: var(--accent-violet);
    transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { display: flex; align-items: center; gap: 5px; }
.nav-dropdown > .nav-link .dropdown-arrow {
    width: 12px; height: 12px; transition: transform var(--duration-normal) var(--ease-out);
}
.nav-dropdown:hover > .nav-link .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: 100%; left: -16px; padding-top: 12px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu-inner {
    background: rgba(14, 14, 22, 0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 8px; min-width: 260px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.dropdown-item {
    display: block; padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--fg-muted);
    transition: all var(--duration-fast) var(--ease-out);
}
.dropdown-item:hover { background: var(--surface-hover); color: var(--fg); }
.dropdown-item small {
    display: block; font-size: 12px; color: var(--fg-dim); margin-top: 2px; font-weight: 400;
}

/* Mobile nav toggle — hidden on desktop */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; padding: 8px;
    cursor: pointer; position: relative; z-index: 1001; width: 40px; height: 40px;
    align-items: center; justify-content: center;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--fg);
    border-radius: 2px; transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE DRAWER ---------- */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 9998;
    pointer-events: none; visibility: hidden;
}
.mobile-drawer.open { pointer-events: auto; visibility: visible; }
.mobile-drawer-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0); transition: background 0.3s ease;
}
.mobile-drawer.open .mobile-drawer-backdrop { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(4px); }
[data-theme="light"] .mobile-drawer.open .mobile-drawer-backdrop { background: rgba(0, 0, 0, 0.4); }
.mobile-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 320px; max-width: 85vw;
    background: #16162a; border-left: 1px solid rgba(139, 92, 246, 0.15);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
[data-theme="light"] .mobile-drawer-panel {
    background: #ffffff; border-left-color: rgba(99, 102, 241, 0.1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
}
.mobile-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.mobile-drawer-close {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
    color: var(--fg-muted); cursor: pointer; transition: all var(--duration-fast) var(--ease-out);
}
.mobile-drawer-close:hover { background: var(--surface-hover); color: var(--fg); }
.mobile-drawer-links {
    flex: 1; padding: 16px 24px; display: flex; flex-direction: column; gap: 4px;
}
.mobile-link {
    display: block; padding: 10px 16px; border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-size: 16px; font-weight: 600;
    color: var(--fg-muted); transition: all var(--duration-fast) var(--ease-out);
}
.mobile-link:hover, .mobile-link.active { color: var(--fg); background: var(--surface); }
.mobile-link.active { color: var(--accent-violet); }
.mobile-link--sub {
    font-size: 14px; font-weight: 500; padding: 8px 16px 8px 28px; font-family: var(--font-body);
}
.mobile-label {
    display: block; padding: 6px 16px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: var(--fg-dim);
}
.mobile-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-drawer-footer {
    padding: 20px 24px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: var(--bg-deep);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(5, 5, 7, 0.4) 60%, var(--bg-deep) 100%);
}

/* Hero floating orbs */
.hero-orb {
    position: absolute; border-radius: 50%; z-index: 1; pointer-events: none;
    filter: blur(60px);
}
.hero-orb--1 {
    width: 400px; height: 400px; background: rgba(0, 212, 255, 0.18);
    top: 10%; left: 15%; animation: float-orb 20s ease-in-out infinite;
}
.hero-orb--2 {
    width: 300px; height: 300px; background: rgba(139, 92, 246, 0.16);
    bottom: 20%; right: 10%; animation: float-orb 25s ease-in-out infinite reverse;
}
.hero-orb--3 {
    width: 200px; height: 200px; background: rgba(236, 72, 153, 0.12);
    top: 50%; left: 60%; animation: float-orb 18s ease-in-out infinite 5s;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 10px) scale(1.02); }
}

.hero-content {
    position: relative; z-index: 3; text-align: center;
    padding: 0 var(--container-padding); max-width: 960px;
    margin-top: 60px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px; border-radius: 100px; border: 1px solid var(--border);
    background: var(--surface); backdrop-filter: blur(10px);
    font-size: 13px; font-weight: 500; color: var(--fg-muted);
    margin-bottom: 24px;
}
.js-animated .hero-badge { opacity: 0; transform: translateY(20px);
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-emerald); box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-family: var(--font-heading); font-size: clamp(32px, 5vw, 64px);
    font-weight: 700; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero-line { display: block; overflow: hidden; padding-bottom: 4px; }
/* Hero text visible by default for LCP — JS adds .js-animated to hide before animating */
.hero-word { display: inline-block; }
.js-animated .hero-word { opacity: 0; transform: translateY(110%); }
.hero-word--whole { display: inline-block; }
.hero-char {
    display: inline-block; opacity: 0; transform: translateY(100%);
    transition: color 0.3s ease;
}
.hero-char.spinning {
    display: inline-block;
    animation: char-spin 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--accent-cyan);
}
@keyframes char-spin {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(360deg); }
}
.hero-sub .sub-char {
    display: inline;
    transition: color 0.3s ease;
}
.hero-sub .sub-char.spinning {
    display: inline-block;
    animation: char-spin 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--accent-cyan);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% auto;
}
.gradient-text-alt {
    background: var(--gradient-alt);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% auto;
}

.hero-sub {
    font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7; color: var(--fg-muted);
    max-width: 560px; margin: 0 auto 28px;
}
.js-animated .hero-sub { opacity: 0; transform: translateY(20px); }
.hero-actions {
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.js-animated .hero-actions { opacity: 0; transform: translateY(20px); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: 100px;
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer; position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--duration-normal) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--fg); color: var(--bg-deep); }
.btn-primary:hover { background: var(--accent-cyan); box-shadow: 0 4px 30px rgba(0, 212, 255, 0.3); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--fg); background: var(--surface); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--border-hover); background: var(--surface-hover); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* Hero scroll indicator — hidden on short viewports */
.hero-scroll-indicator {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.js-animated .hero-scroll-indicator { opacity: 0; }
@media (max-height: 750px) { .hero-scroll-indicator { display: none; } }
.hero-scroll-indicator span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--fg-dim); }
.scroll-line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

/* ---------- FLOATING SHAPES ---------- */
.float-shape {
    position: absolute; pointer-events: none; z-index: 0;
}
.float-shape--ring {
    width: 300px; height: 300px; top: 10%; right: -80px;
    border: 1px solid rgba(0, 212, 255, 0.06); border-radius: 50%;
}
.float-shape--ring::after {
    content: ''; position: absolute; inset: 30px;
    border: 1px solid rgba(139, 92, 246, 0.05); border-radius: 50%;
}
.float-shape--dots {
    width: 200px; height: 200px; bottom: 15%; left: -40px;
    background-image: radial-gradient(circle, rgba(0, 212, 255, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
}
.float-shape--cross {
    width: 100px; height: 100px; top: 20%; right: 10%;
    opacity: 0.08;
}
.float-shape--cross::before, .float-shape--cross::after {
    content: ''; position: absolute; background: var(--accent-cyan);
}
.float-shape--cross::before { width: 1px; height: 100%; left: 50%; }
.float-shape--cross::after { width: 100%; height: 1px; top: 50%; }
.float-shape--grid {
    width: 400px; height: 400px; top: 5%; right: -100px;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotate(15deg);
}

/* ---------- SECTION BG MESH ---------- */
.section-bg-mesh {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}

/* ---------- SECTION DECORATION SVGs ---------- */
.section-decor {
    position: absolute; pointer-events: none; z-index: 0;
}
.section-decor svg { width: 100%; height: 100%; overflow: visible; }
.section-decor--about-tl { top: -60px; left: -80px; width: 500px; height: 500px; opacity: 1; }
.section-decor--about-br { bottom: -40px; right: -60px; width: 350px; height: 350px; opacity: 1; }
.section-decor--services-tr { top: -40px; right: -60px; width: 550px; height: 550px; opacity: 1; }
.section-decor--services-bl { bottom: -60px; left: -40px; width: 400px; height: 400px; opacity: 1; }
.section-decor--projects-r { top: 50%; right: -100px; width: 400px; height: 400px; opacity: 1; transform: translateY(-50%); }
.section-decor--tech-tl { top: -30px; left: -60px; width: 500px; height: 500px; opacity: 1; }
.section-decor--tech-br { bottom: -40px; right: -40px; width: 400px; height: 400px; opacity: 1; }
.section-decor--cta-center { top: 50%; left: 50%; width: 700px; height: 700px; opacity: 1; transform: translate(-50%, -50%); }

/* ---------- SECTION COMMON ---------- */
.section { padding: var(--section-padding) 0; position: relative; overflow: hidden; content-visibility: auto; }
.section-label {
    display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
    font-size: 13px; font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent-cyan);
}
.label-line { display: block; width: 40px; height: 1px; background: var(--accent-cyan); }
.section-title {
    font-family: var(--font-heading); font-size: clamp(32px, 5vw, 56px);
    font-weight: 700; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 48px;
}

/* ---------- ABOUT SECTION ---------- */
.about { background: var(--bg-base); border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-left { position: relative; }
.about-graphic {
    position: relative; width: 260px; height: 260px; margin-top: 32px; opacity: 0.6;
}
.about-graphic svg { width: 100%; height: 100%; }
.about-text { font-size: 18px; line-height: 1.8; color: var(--fg-muted); margin-bottom: 24px; }
.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border);
}
.stat { }
.stat-number, .stat-suffix { font-family: var(--font-heading); font-size: 42px; font-weight: 700; line-height: 1; }
.stat-number { color: var(--fg); }
.stat-suffix { color: var(--accent-cyan); }
.stat-label { display: block; }
.stat-label { font-size: 13px; color: var(--fg-dim); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- SERVICES SECTION ---------- */
.services { background: var(--bg-deep); position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; z-index: 1; }
.service-card {
    position: relative; padding: 48px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--bg-card);
    transition: all var(--duration-slow) var(--ease-out); overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
    background: var(--gradient-glow); opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-glow {
    position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
    width: 200px; height: 100px; border-radius: 50%;
    background: rgba(0, 212, 255, 0.06); filter: blur(40px);
    transition: all var(--duration-slow) var(--ease-out); opacity: 0;
}
.service-card:hover .service-glow { opacity: 1; bottom: -40px; }
.service-icon {
    position: relative; z-index: 1; width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md); background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2); margin-bottom: 24px;
    transition: all var(--duration-normal) var(--ease-out);
}
.service-card:hover .service-icon { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 212, 255, 0.15); }
.service-icon svg { width: 24px; height: 24px; color: var(--accent-cyan); }
.service-icon--violet { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.2); }
.service-icon--violet svg { color: var(--accent-violet); }
.service-icon--emerald { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }
.service-icon--emerald svg { color: var(--accent-emerald); }
.service-icon--amber { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.service-icon--amber svg { color: var(--accent-amber); }
.service-number {
    position: absolute; top: 32px; right: 40px;
    font-family: var(--font-heading); font-size: 64px; font-weight: 700;
    color: rgba(255, 255, 255, 0.03); line-height: 1; z-index: 0;
}
.service-title {
    position: relative; z-index: 1; font-family: var(--font-heading);
    font-size: 22px; font-weight: 600; margin-bottom: 16px; color: var(--fg);
}
.service-desc { position: relative; z-index: 1; font-size: 15px; line-height: 1.7; color: var(--fg-muted); margin-bottom: 24px; }
.service-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
    padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 500;
    border: 1px solid var(--border); color: var(--fg-dim); background: var(--surface);
    transition: all var(--duration-normal) var(--ease-out);
}
.service-card:hover .service-tags span { border-color: rgba(0, 212, 255, 0.2); color: var(--fg-muted); }

/* ---------- APPROACH GRID ---------- */
.approach-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.approach-card {
    padding: 36px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--bg-card);
    transition: all var(--duration-slow) var(--ease-out);
}
.approach-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.approach-card h3 {
    font-family: var(--font-heading); font-size: 18px; font-weight: 600;
    margin: 20px 0 10px; color: var(--fg);
}
.approach-card p { font-size: 15px; line-height: 1.7; color: var(--fg-muted); }
@media (max-width: 768px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---------- MARQUEE ---------- */
.marquee-strip {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    overflow: hidden; position: relative;
    background: var(--bg-base);
    padding: 0;
}
/* Static gradient — clipped to text area only */
.marquee-gradient {
    position: absolute; top: 50%; left: 0; right: 0;
    height: 18px; transform: translateY(-50%);
    background: linear-gradient(90deg,
        #00d4ff, #6366f1, #8b5cf6, #c850c0, #ec4899,
        #f59e0b, #22c55e, #00d4ff, #6366f1, #8b5cf6
    );
    z-index: 1; pointer-events: none;
}
/* Light mode — same structure, inverted colors, screen blend */
[data-theme="light"] .marquee-strip { background: var(--bg-base); }
[data-theme="light"] .marquee-mask { background: var(--bg-base); mix-blend-mode: screen; }
[data-theme="light"] .marquee-track { color: #000; }
[data-theme="light"] .marquee-dot { background: #000; opacity: 0.5; }
[data-theme="light"] .marquee-gradient {
    background: linear-gradient(90deg,
        #4f46e5, #7c3aed, #a855f7, #c026d3, #db2777,
        #d97706, #059669, #4f46e5, #7c3aed, #a855f7
    );
}
.marquee-mask {
    position: relative; z-index: 2;
    background: var(--bg-base);
    mix-blend-mode: multiply;
    padding: 24px 0;
}
.marquee-track {
    display: flex; white-space: nowrap;
    font-family: var(--font-heading); font-size: 16px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: #fff;
    will-change: transform;
}
.marquee-set {
    display: flex; align-items: center; gap: 40px;
    flex-shrink: 0;
    padding-right: 40px;
}
.marquee-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    flex-shrink: 0;
    background: #fff; opacity: 0.5;
}

/* ---------- PROJECTS SECTION ---------- */
.projects {
    background: var(--bg-base); border-top: 1px solid var(--border);
}
.projects-stack {
    display: flex; flex-direction: column; gap: 40px;
    padding: 0 var(--container-padding);
    max-width: var(--container-width); margin: 0 auto;
}
.project-card { margin-bottom: 0; }
.project-card-inner {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
    border-radius: var(--radius-xl); border: 1px solid var(--border);
    background: var(--bg-card); overflow: hidden;
    transition: border-color var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
.project-card:nth-child(even) .project-card-inner {
    grid-template-columns: 1fr 1.2fr;
}
.project-card:nth-child(even) .project-image { order: 2; }
.project-card:nth-child(even) .project-info { order: 1; }
.project-card-inner:hover {
    border-color: var(--border-hover);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.project-image { position: relative; overflow: hidden; min-height: 340px; }
.project-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--ease-out);
    filter: brightness(2.35);
}
.project-card-inner:hover .project-image img { transform: scale(1.03); }
.project-info { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.project-category {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent-cyan); margin-bottom: 16px; display: block;
}
.project-name {
    font-family: var(--font-heading); font-size: 28px; font-weight: 600;
    margin-bottom: 16px; color: var(--fg);
}
.project-description { font-size: 15px; line-height: 1.7; color: var(--fg-muted); margin-bottom: 24px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tech span {
    padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 500;
    border: 1px solid var(--border); color: var(--fg-dim);
    transition: all var(--duration-normal) var(--ease-out);
}
.project-card-inner:hover .project-tech span { border-color: var(--border-hover); color: var(--fg-muted); }

/* ---------- TECHNOLOGY SECTION ---------- */
.tech { background: var(--bg-deep); position: relative; }
.tech-subtitle { font-size: 18px; color: var(--fg-muted); max-width: 560px; margin-bottom: 64px; line-height: 1.7; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.tech-group {
    padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--border);
    background: var(--bg-card); transition: all var(--duration-slow) var(--ease-out);
}
.tech-group:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.tech-group-title {
    font-family: var(--font-heading); font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; color: var(--accent-cyan);
    margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.tech-items { display: flex; flex-direction: column; gap: 12px; }
.tech-item {
    font-size: 15px; color: var(--fg-muted); padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative; padding-left: 0;
}
.tech-item::before {
    content: ''; display: inline-block; width: 0; height: 1px; margin-right: 0;
    background: var(--accent-cyan); vertical-align: middle;
    transition: all var(--duration-normal) var(--ease-out);
}
.tech-group:hover .tech-item::before { width: 12px; margin-right: 10px; }
.tech-item:last-child { border-bottom: none; }
.tech-group:hover .tech-item { color: var(--fg); }

/* ---------- CTA SECTION ---------- */
.cta {
    background: var(--bg-base); border-top: 1px solid var(--border);
    text-align: center; position: relative; overflow: hidden;
}
.cta-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), rgba(139, 92, 246, 0.04), transparent 70%);
    pointer-events: none;
}
.cta-glow--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 60%);
    top: 30%; left: 60%;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
    font-family: var(--font-heading); font-size: clamp(36px, 5vw, 60px);
    font-weight: 700; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 24px;
}
.cta-text { font-size: 18px; color: var(--fg-muted); max-width: 540px; margin: 0 auto 40px; line-height: 1.7; }
.cta-actions { margin-bottom: 48px; }
.cta-details { display: flex; align-items: center; justify-content: center; gap: 40px; }
.cta-detail { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-muted); }
.cta-detail svg { width: 18px; height: 18px; color: var(--accent-cyan); }

/* ---------- MODAL ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all var(--duration-normal) var(--ease-out);
}
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(12px);
}
.modal {
    position: relative; z-index: 1;
    width: 94%; max-width: 600px;
    background: #1a1a2e; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl); padding: 52px;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--duration-normal) var(--ease-out);
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(99, 102, 241, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; margin: 16px 0; }
.modal::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3); border-radius: 3px;
}
.modal::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.5); }
[data-theme="light"] .modal { scrollbar-color: rgba(99, 102, 241, 0.25) transparent; }
[data-theme="light"] .modal::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.25); }
[data-theme="light"] .modal::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.4); }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 20px; right: 20px;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
    color: var(--fg-muted); cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}
.modal-close:hover { background: var(--surface-hover); color: var(--fg); }
.modal-title { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.modal-sub { font-size: 15px; color: var(--fg-muted); margin-bottom: 32px; line-height: 1.6; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600; color: var(--fg);
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.form-group .optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--fg-dim); }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px 18px;
    background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--fg); font-family: var(--font-body); font-size: 15px;
    transition: border-color var(--duration-fast) var(--ease-out);
    outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-cyan); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--fg-dim); }
.form-feedback { text-align: center; padding: 32px 0; }
.form-feedback h4 { font-family: var(--font-heading); font-size: 20px; margin: 16px 0 8px; }
.form-feedback p { font-size: 14px; color: var(--fg-muted); }
.form-feedback a { color: var(--accent-cyan); }

/* ---------- BUTTON LOADING SPINNER ---------- */
.btn-loading {
    pointer-events: none;
    background: var(--accent-violet) !important;
    color: #fff !important;
}
.btn-loading .btn-spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    vertical-align: middle;
}
.btn-loading .btn-label { margin-left: 10px; color: #fff; font-weight: 600; }
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ---------- NAV ACTIVE STATE ---------- */
.nav-link.active { color: var(--fg); }
.nav-link.active::after { width: 100%; }

/* ---------- 404 PAGE ---------- */
.error-page {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden;
    padding: 120px 0 80px; background: var(--bg-deep);
}
.error-bg {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0.8;
}
.error-bg svg { width: 100%; max-width: 800px; height: auto; }
.error-content { position: relative; z-index: 1; }
.error-code {
    font-family: var(--font-heading); font-size: clamp(100px, 20vw, 200px);
    font-weight: 900; line-height: 1; margin-bottom: 16px;
    letter-spacing: -8px; color: var(--fg);
}
.error-zero {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; background-size: 200% auto;
}
.error-title {
    font-family: var(--font-heading); font-size: clamp(20px, 3vw, 32px);
    font-weight: 600; margin-bottom: 12px; color: var(--fg);
}
.error-text {
    font-size: 16px; line-height: 1.7; color: var(--fg-muted);
    max-width: 440px; margin: 0 auto 32px;
}
.error-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo-text { font-size: 28px; margin-bottom: 16px; display: block; }
.footer-tagline { font-size: 14px; color: var(--fg-dim); line-height: 1.7; max-width: 280px; }
.footer-links h5,
.footer-accordion-toggle {
    font-family: var(--font-heading); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; color: var(--fg); margin-bottom: 20px;
    background: none; border: 0; padding: 0; text-align: left; width: 100%; display: block;
}
.footer-chevron { display: none; }
.footer-links a {
    display: block; font-size: 14px; color: var(--fg-dim); padding: 6px 0;
    transition: color var(--duration-normal) var(--ease-out);
}
.footer-links a:hover { color: var(--accent-violet); }
.trademark { font-size: 1em; font-weight: 500; color: var(--fg-muted); vertical-align: middle; }
.footer-brand .trademark { color: var(--fg); }

/* Footer social icons */
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--fg-muted); transition: all var(--duration-normal) var(--ease-out);
}
.footer-social a:hover { color: var(--accent-violet); border-color: var(--accent-violet); background: rgba(139, 92, 246, 0.1); }

/* Footer legal/docs row */
.footer-legal {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    padding: 20px 0; border-top: 1px solid var(--border);
    margin-top: 40px;
}
.footer-legal a {
    font-size: 12px; color: var(--fg-dim);
    transition: color var(--duration-normal) var(--ease-out);
}
.footer-legal a:hover { color: var(--accent-violet); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-dim);
}
.footer-credit { display: flex; align-items: center; gap: 6px; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal-text, .reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-text.revealed, .reveal-up.revealed {
    opacity: 1; transform: translateY(0);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
    cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.theme-icon { width: 18px; height: 18px; color: var(--fg-muted); }
.theme-icon--light { display: none; }
[data-theme="light"] .theme-icon--dark { display: none; }
[data-theme="light"] .theme-icon--light { display: block; }

/* Services nav parent — non-clickable */
.nav-link--parent { cursor: default; }
.nav-link--parent::after { display: none; }

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
    --bg-deep: #f8f7fc;
    --bg-base: #f0eef6;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --surface: rgba(99, 102, 241, 0.05);
    --surface-hover: rgba(99, 102, 241, 0.08);
    --border: rgba(99, 102, 241, 0.12);
    --border-hover: rgba(139, 92, 246, 0.25);
    --fg: #1a1a2e;
    --fg-muted: #4a4a6a;
    --fg-dim: #7a7a9a;
    --gradient-glow: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.08), transparent 40%);
}
[data-theme="light"] .hero,
[data-theme="light"] .page-hero {
    background: linear-gradient(180deg, #f0eef6 0%, #e8e4f4 100%);
}
[data-theme="light"] .hero-overlay {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(200, 80, 192, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
}
[data-theme="light"] .hero-orb { opacity: 0.6; }
[data-theme="light"] .nav.scrolled {
    background: rgba(248, 247, 252, 0.9); border-bottom-color: rgba(99, 102, 241, 0.1);
}
[data-theme="light"] .nav-dropdown-menu-inner {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    border-color: rgba(99, 102, 241, 0.12);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12);
}
[data-theme="light"] .dropdown-item { color: #4a4a6a; }
[data-theme="light"] .dropdown-item:hover { background: rgba(139, 92, 246, 0.06); color: #1a1a2e; }
[data-theme="light"] .dropdown-item small { color: #7a7a9a; }
[data-theme="light"] .nav-link--cta {
    color: #fff; background: var(--accent-violet);
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}
[data-theme="light"] .nav-link--cta:hover {
    color: #fff; background: #7c3aed;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
[data-theme="light"] .btn-primary {
    background: var(--accent-violet); color: #fff;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
}
[data-theme="light"] .btn-primary:hover {
    background: #7c3aed; color: #fff;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
}
[data-theme="light"] .btn-ghost {
    border-color: rgba(99, 102, 241, 0.2); color: var(--fg);
    background: rgba(255, 255, 255, 0.7);
}
[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% auto;
}
[data-theme="light"] .gradient-text-alt {
    background: linear-gradient(135deg, #8b5cf6, #c850c0);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% auto;
}
[data-theme="light"] .modal {
    background: #ffffff; border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 40px 100px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.05);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #f8f7fc; border-color: rgba(99, 102, 241, 0.15); color: #1a1a2e;
}
[data-theme="light"] .logo-text { color: #1a1a2e; }
[data-theme="light"] .service-card,
[data-theme="light"] .tech-group,
[data-theme="light"] .value-card,
[data-theme="light"] .stat-block,
[data-theme="light"] .process-step,
[data-theme="light"] .service-detail-card {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.1);
    box-shadow: 0 2px 16px rgba(99, 102, 241, 0.06);
}
[data-theme="light"] .service-card:hover,
[data-theme="light"] .tech-group:hover,
[data-theme="light"] .value-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}
[data-theme="light"] .project-card-inner {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.06);
}
/* Service visual (used on homepage approach section) */
.service-visual { margin-bottom: 40px; }
.service-visual img { width: 100%; height: auto; border-radius: var(--radius-lg); border: none; filter: brightness(2.35); }
[data-theme="light"] .project-image img,
[data-theme="light"] .service-visual img {
    filter: invert(1) hue-rotate(180deg) saturate(2.0) brightness(1.0);
}
[data-theme="light"] .section-label { color: var(--accent-violet); }
[data-theme="light"] .label-line { background: var(--accent-violet); }
[data-theme="light"] .stat-suffix { color: var(--accent-violet); }
[data-theme="light"] .cursor { background: var(--accent-violet); box-shadow: 0 0 8px rgba(139, 92, 246, 0.5); }
[data-theme="light"] .cursor-follower { border-color: rgba(139, 92, 246, 0.3); }
[data-theme="light"] ::selection { background: rgba(139, 92, 246, 0.2); }
[data-theme="light"] .cta { background: var(--bg-base); }
[data-theme="light"] .footer {
    background: #eeedf5; border-top-color: rgba(99, 102, 241, 0.08);
}
[data-theme="light"] .tech-tag {
    background: #ffffff; border-color: rgba(99, 102, 241, 0.12);
}
[data-theme="light"] .tech-tag:hover { border-color: rgba(139, 92, 246, 0.3); }
[data-theme="light"] .about-hero-bg {
    background:
        radial-gradient(ellipse at 25% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 60%, rgba(200, 80, 192, 0.1) 0%, transparent 50%);
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .nav-links-desktop { display: none; }
    .nav-toggle { display: flex; }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .services-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .project-card-inner { grid-template-columns: 1fr; }
    .project-card:nth-child(even) .project-card-inner { grid-template-columns: 1fr; }
    .project-card:nth-child(even) .project-image { order: 0; }
    .project-card:nth-child(even) .project-info { order: 0; }
    .project-image { min-height: 260px; }
}

@media (max-width: 768px) {
    .hero-title { letter-spacing: -1px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .stat-number, .stat-suffix { font-size: 28px; }
    .service-card { padding: 32px; }
    .tech-grid { grid-template-columns: 1fr; }
    .about-graphic { display: none; }
    .project-card { position: relative; top: auto; }
    .project-image { min-height: 200px; }
    .project-info { padding: 28px; }
    .project-name { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-grid .footer-brand { margin-bottom: 24px; }
    .footer-links { border-bottom: 1px solid var(--border); }
    .footer-links:last-child { border-bottom: none; }
    .footer-accordion-toggle {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 0; padding: 16px 0; cursor: pointer;
    }
    .footer-chevron {
        display: block; color: var(--fg-dim);
        transition: transform var(--duration-normal) var(--ease-out);
    }
    .footer-links.open .footer-chevron { transform: rotate(180deg); }
    .footer-accordion-content {
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s var(--ease-out), padding 0.3s var(--ease-out);
        padding-bottom: 0;
    }
    .footer-links.open .footer-accordion-content {
        max-height: 600px; padding-bottom: 16px;
    }
    .footer-legal { justify-content: center; text-align: center; gap: 8px 16px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; margin-top: 24px; }
    .cta-details { flex-direction: column; gap: 16px; }
    .float-shape { display: none; }
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
    button, a { cursor: pointer; }
}

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

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-text, .reveal-up { opacity: 1; transform: none; }
    .hero-word, .hero-char { opacity: 1; transform: none; }
    .hero-badge, .hero-sub, .hero-actions, .hero-scroll-indicator { opacity: 1; transform: none; }
    .scroll-line { animation: none; }
    .hero-orb { animation: none; }
}
