:root {
  --bg: oklch(15% 0.025 250);
  --bg-elev: oklch(18% 0.03 250);
  --bg-card: oklch(20% 0.035 250 / 0.6);
  --border: oklch(32% 0.04 250 / 0.5);
  --border-strong: oklch(42% 0.06 240 / 0.6);
  --fg: oklch(96% 0.01 250);
  --fg-dim: oklch(78% 0.02 250);
  --fg-muted: oklch(60% 0.03 250);
  --accent: oklch(72% 0.18 240);
  --accent-2: oklch(78% 0.15 200);
  --accent-3: oklch(70% 0.2 280);
  --glow: oklch(72% 0.2 240 / 0.35);
  --grad-aurora: radial-gradient(ellipse 80% 60% at 50% -10%, oklch(40% 0.2 250 / 0.45), transparent 60%),
                 radial-gradient(ellipse 60% 50% at 90% 30%, oklch(45% 0.18 200 / 0.25), transparent 60%),
                 radial-gradient(ellipse 60% 50% at 10% 80%, oklch(40% 0.2 280 / 0.2), transparent 60%);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-soft: 0 8px 28px -12px oklch(0% 0 0 / 0.6), 0 2px 6px oklch(0% 0 0 / 0.4);
  --shadow-glow: 0 0 0 1px var(--border-strong), 0 20px 60px -20px var(--glow);
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

.bg-aurora {
  position: fixed; inset: 0; background: var(--grad-aurora); z-index: -2; pointer-events: none;
}
.bg-grid {
  position: fixed; inset: 0;
  background-image: linear-gradient(to right, oklch(50% 0.05 250 / 0.06) 1px, transparent 1px),
                    linear-gradient(to bottom, oklch(50% 0.05 250 / 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 90%);
  z-index: -1; pointer-events: none;
}

.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 20px; background: oklch(15% 0.025 250 / 0.7);
  border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(20px) saturate(140%); z-index: 100;
}
.nav-logo { font-family: var(--font-mono); font-weight: 500; color: var(--fg); text-decoration: none; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { color: var(--fg-dim); text-decoration: none; padding: 8px 14px; font-size: 14px; border-radius: 999px; transition: 0.2s; }
.nav-links a:hover { color: var(--fg); background: oklch(25% 0.03 250 / 0.5); }

.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 24px 80px; position: relative; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }

.hero-status {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: oklch(20% 0.03 250 / 0.5); margin-bottom: 28px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(78% 0.18 145); animation: pulse 2.4s infinite; }

.hero h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 500; line-height: 1; margin-bottom: 24px; }
.hero h1 .gradient {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text; color: transparent;
}
.hero-role { font-family: var(--font-mono); font-size: 15px; color: var(--fg-dim); margin-bottom: 18px; }
.hero-tagline { font-size: clamp(17px, 1.7vw, 20px); color: var(--fg-dim); max-width: 540px; margin-bottom: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 500; text-decoration: none; transition: 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: oklch(12% 0.02 250); box-shadow: 0 8px 24px -8px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px var(--glow); }
.btn-ghost { background: oklch(20% 0.03 250 / 0.5); color: var(--fg); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: oklch(25% 0.03 250 / 0.8); }

.hero-visual { position: relative; max-width: 320px; justify-self: end; width: 100%; aspect-ratio: 1; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); margin: 0 auto; }
.hero-visual:hover { transform: translateY(-10px) scale(1.03); }
.hero-visual::before { content: ''; position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background: url('assets/tech_bg.png') center/cover; border-radius: 24px; opacity: 0.3; z-index: -1; animation: floatBg 8s ease-in-out infinite; filter: blur(4px); }
@keyframes floatBg { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
.hero-photo-wrap { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; border: 2px solid oklch(25% 0.05 250); background: linear-gradient(135deg, oklch(15% 0.02 250), oklch(10% 0.01 250)); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.hero-photo-wrap img.profile-img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; transition: filter 0.4s; }
.hero-visual:hover .hero-photo-wrap img.profile-img { filter: contrast(1.1) brightness(1.1); }

.section { padding: 100px 24px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-title { font-size: 32px; font-weight: 600; margin-bottom: 40px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 32px; transition: 0.3s; }
.card:hover { transform: translateY(-5px); border-color: oklch(35% 0.05 250); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
.card h3 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.card p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }

.card-number { position: absolute; top: 16px; right: 20px; font-family: var(--font-mono); font-size: 18px; color: var(--fg-dim); opacity: 0.2; font-weight: 600; }
.search-container { margin-bottom: 24px; display: flex; justify-content: flex-end; }
.search-input { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border-strong); background: oklch(12% 0.02 250 / 0.5); color: var(--fg); font-family: var(--font-sans); width: 100%; max-width: 320px; transition: border-color 0.3s; backdrop-filter: blur(10px); }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 15px oklch(65% 0.18 200 / 0.2); }

.skills-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { background: oklch(15% 0.025 250); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.lang-toggle { display:flex; background:oklch(10% 0.02 250 / 0.6); border:1px solid var(--border); border-radius:999px; padding:3px; font-family:var(--font-mono); font-size:12px; margin-left: 14px; }
.lang-toggle a { color:var(--fg-muted); padding:5px 10px; border-radius:999px; text-decoration:none; transition:0.2s; }
.lang-toggle a.active { background:var(--accent); color:oklch(12% 0.02 250); font-weight:600; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.gallery-item { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.article-date { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); margin-bottom: 8px; display: block; }
/* About Section Layout */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-label { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.about-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); display: inline-block; }
.about-headline { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.1; margin-bottom: 40px; letter-spacing: -0.02em; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: oklch(15% 0.02 250); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; transition: 0.3s; box-shadow: inset 0 2px 10px oklch(0% 0 0 / 0.2); }
.stat-card:hover { border-color: var(--accent); background: oklch(18% 0.03 250); }
.stat-number { font-size: 42px; font-weight: 500; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-label { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); }

.about-text { font-size: 17px; color: var(--fg-dim); line-height: 1.7; margin-bottom: 24px; }
.dropcap { float: left; font-size: 64px; line-height: 0.8; color: var(--accent); font-weight: 600; margin-right: 12px; margin-top: 4px; }

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.about-tag { background: transparent; border: 1px solid var(--border-strong); padding: 8px 16px; border-radius: 999px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim); }
.graph-container { position: relative; height: 500px; border: 1px solid var(--border); border-radius: var(--r-md); background: oklch(12% 0.02 250); overflow: hidden; }
.graph-node { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 11px; text-align: center; cursor: pointer; transition: 0.3s; color: var(--fg); font-family: var(--font-mono); box-shadow: var(--shadow-glow); transform: translate(-50%, -50%); z-index: 10; }
.graph-node:hover { border-color: var(--accent); transform: translate(-50%, -50%) scale(1.1); }
.graph-node.central { width: 110px; height: 110px; background: url('assets/futuristic_brain.png') center/cover no-repeat; color: transparent; font-weight: bold; border: 2px solid var(--accent); box-shadow: 0 0 40px var(--accent); z-index: 20; }
.graph-line { position: absolute; background: var(--border-strong); transform-origin: 0 50%; z-index: 1; pointer-events: none; }
.side-panel { position: fixed; top: 0; right: -400px; width: 400px; height: 100vh; background: oklch(15% 0.025 250 / 0.95); backdrop-filter: blur(20px); border-left: 1px solid var(--border); box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 1000; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 40px 24px; overflow-y: auto; }
.side-panel.open { right: 0; }
.close-panel { position: absolute; top: 20px; right: 20px; cursor: pointer; color: var(--fg-muted); font-size: 24px; }

.lab-container { display: flex; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; min-height: 400px; }
.lab-sidebar { width: 250px; background: oklch(18% 0.02 250); border-right: 1px solid var(--border); }
.lab-tab { padding: 16px 20px; cursor: pointer; color: var(--fg-dim); border-bottom: 1px solid var(--border); transition: 0.2s; font-family: var(--font-mono); font-size: 13px; }
.lab-tab:hover, .lab-tab.active { background: oklch(22% 0.03 250); color: var(--accent); border-left: 3px solid var(--accent); }
.lab-content { flex: 1; padding: 32px; background: var(--bg-elev); position: relative; }
.lab-input, .calc-input, .diag-input { width: 100%; background: oklch(15% 0.02 250); border: 1px solid var(--border); color: var(--fg); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-family: inherit; }
.lab-result { margin-top: 24px; padding: 20px; background: oklch(12% 0.02 250); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 14px; min-height: 100px; color: var(--accent-2); }
.spinner { display: none; width: 24px; height: 24px; border: 3px solid var(--border); border-top: 3px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.calc-res-box { text-align: center; padding: 24px; background: oklch(18% 0.02 250); border-radius: var(--r-md); border: 1px solid var(--border); margin-bottom: 16px; }
.calc-val { font-size: 36px; font-weight: bold; color: var(--accent); }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: reveal 0.5s ease; }

/* ── LOGO STRIP ─────────────────────────────── */
.logo-strip-wrap { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; overflow: hidden; }
.logo-strip-label { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.logo-strip { overflow: hidden; position: relative; }
.logo-strip::before, .logo-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.logo-strip::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.logo-strip::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.logo-track { display: flex; gap: 0; width: max-content; animation: marquee 28s linear infinite; }
.logo-track:hover { animation-play-state: paused; }
.logo-item { padding: 10px 40px; font-family: var(--font-mono); font-size: 15px; color: var(--fg-muted); white-space: nowrap; transition: color 0.2s; border-right: 1px solid var(--border); }
.logo-item:hover { color: var(--accent); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── SERVICES GRID ──────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px 32px; transition: 0.3s; position: relative; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); border-color: oklch(40% 0.08 250); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4); }
.service-card--featured { border-color: var(--accent); background: linear-gradient(145deg, oklch(18% 0.035 250 / 0.8), oklch(14% 0.02 250 / 0.8)); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px -20px var(--glow); }
.service-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: oklch(12% 0.02 250); font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 16px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; }
.service-icon { font-size: 40px; margin-bottom: 20px; line-height: 1; }
.service-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 14px; }
.service-card p { color: var(--fg-dim); font-size: 15px; line-height: 1.65; margin-bottom: 20px; flex: 1; }
.service-list { list-style: none; padding: 0; margin-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.service-list li { font-size: 14px; color: var(--fg-dim); padding-left: 20px; position: relative; }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.service-btn { width: 100%; justify-content: center; margin-top: auto; }

/* ── FLOATING CTA ───────────────────────────── */
.floating-cta { position: fixed; bottom: 32px; right: 32px; z-index: 900; display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: oklch(12% 0.02 250); padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 8px 32px -8px var(--glow); transition: transform 0.25s, box-shadow 0.25s; overflow: hidden; animation: floatBounce 3s ease-in-out infinite; }
.floating-cta:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 40px -10px var(--glow); animation-play-state: paused; }
.floating-cta-text { max-width: 80px; white-space: nowrap; }
@keyframes floatBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── LEAD MAGNET MODAL ──────────────────────── */
.lead-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lead-modal { background: linear-gradient(145deg, oklch(18% 0.03 250), oklch(13% 0.02 250)); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: 48px 40px; max-width: 500px; width: 100%; position: relative; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--border-strong); animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.85) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.lead-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--fg-muted); font-size: 28px; cursor: pointer; line-height: 1; transition: color 0.2s; }
.lead-close:hover { color: var(--fg); }

/* ── RESPONSIVE HERO VISUAL FIX ─────────────── */
@media (max-width: 700px) { .hero-visual { max-width: 220px; } .services-grid { grid-template-columns: 1fr; } .floating-cta-text { display: none; } .floating-cta { padding: 14px; } }

/* ── BACK TO TOP ────────────────────────────── */
.back-top { position: fixed; bottom: 32px; left: 32px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: oklch(20% 0.03 250 / 0.8); border: 1px solid var(--border-strong); color: var(--fg-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); opacity: 0; transform: translateY(16px); transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s; pointer-events: none; }
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { border-color: var(--accent); color: var(--accent); background: oklch(22% 0.04 250); }
