/*
 * ═══════════════════════════════════════════════
 *  VELOX — Landing Page Styles
 *  Resend-inspired Design Language + BMW M8 Feel
 * ═══════════════════════════════════════════════
 *  1.  CSS Custom Properties (Design Tokens)
 *  2.  Reset & Base
 *  3.  Layout (Container, Sections)
 *  4.  Navigation
 *  5.  Hero (Centered, Resend-style)
 *  6.  Buttons (Glass + animated border)
 *  7.  Stats Row
 *  8.  Section Headers
 *  9.  Services (6 cards, 3×2 grid)
 *  10. Process (5 steps + sticky timeline)
 *  11. Stack (4 categories, chips)
 *  12. Projects (3 case studies)
 *  13. AI Section (cards + terminal)
 *  14. Contact (info + form)
 *  15. Footer
 *  16. Dividers
 *  17. Language Dropdown (i18n)
 *  18. Animations (@keyframes)
 *  19. Media Queries (≤900px)
 * ═══════════════════════════════════════════════
 */

/* ─── 1. CSS CUSTOM PROPERTIES ─── */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --bg-card: #0f0f0f;
  --text: #ededec;
  --text-muted: #8a8a8a;
  --text-dim: #4a4a4a;
  --accent: #40c4ff;
  --accent-glow: rgba(64, 196, 255, 0.12);
  --accent-glow-soft: rgba(64, 196, 255, 0.05);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(64, 196, 255, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

/* ─── 2. RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── GRAIN TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* Fine grain on top */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.02;
  mix-blend-mode: screen;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ─── 3. LAYOUT ─── */
section { position: relative; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── GRADIENT TEXT UTILITY ─── */
.effect-font-gradient {
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 4. NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(0,0,0,0.65);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px; height: 32px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.logo-mark svg { width: 32px; height: 32px; }

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 9px 20px !important;
  background: linear-gradient(104deg, rgba(253,253,253,0.04) 5%, rgba(240,240,228,0.08) 100%) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: var(--radius-sm) !important;
  backdrop-filter: blur(20px);
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* ─── 5. HERO (Centered, Resend-style) ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(64,196,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(100,100,120,0.03) 0%, transparent 50%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-glow-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 30%;
  width: 40%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(64,196,255,0.04) 0%, transparent 70%);
}

/* Hero — centered layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - 80px);
  gap: 48px;
  padding: 40px 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-cube-wrap {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

.hero-cube-wrap::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 50px;
  background: radial-gradient(ellipse, rgba(64,196,255,0.06) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

#heroVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 32px;
  background: rgba(255,255,255,0.02);
  letter-spacing: 0.04em;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 820px;
  /* gradient text effect */
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── 6. BUTTONS (glass + animated border) ─── */
@property --btn-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes border-spin {
  from { --btn-angle: 0deg; }
  to   { --btn-angle: 360deg; }
}

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(104deg, rgba(253,253,253,0.05) 5%, rgba(240,240,228,0.1) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
  z-index: 0;
  animation: border-spin 4s linear infinite;
  backdrop-filter: blur(25px);
}

.btn-primary svg path {
  stroke: #fff;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: conic-gradient(
    from var(--btn-angle),
    transparent 0deg,
    transparent 200deg,
    rgba(255,255,255,0.15) 240deg,
    rgba(255,255,255,0.4) 270deg,
    rgba(255,255,255,0.15) 300deg,
    transparent 340deg,
    transparent 360deg
  );
  z-index: -1;
  animation: border-spin 4s linear infinite;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(104deg, rgba(20,20,20,0.95) 5%, rgba(15,15,15,0.97) 100%);
  z-index: -1;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.9);
  color: #000;
  transform: translateY(-1px);
}

.btn-primary:hover svg path {
  stroke: #000;
}

.btn-primary:hover::after {
  background: rgba(255,255,255,0.9);
}

.btn-secondary {
  padding: 14px 28px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  z-index: 0;
  animation: border-spin 5s linear infinite;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: conic-gradient(
    from var(--btn-angle),
    transparent 0deg,
    transparent 210deg,
    rgba(64,196,255,0.1) 245deg,
    rgba(64,196,255,0.35) 270deg,
    rgba(64,196,255,0.1) 295deg,
    transparent 340deg,
    transparent 360deg
  );
  z-index: -1;
  animation: border-spin 5s linear infinite;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--bg);
  z-index: -1;
  transition: background 0.2s;
}

.btn-secondary:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.btn-secondary:hover::after {
  background: rgba(64,196,255,0.03);
}

/* ─── 7. STATS ROW ─── */
.stats-row {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 20px 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  /* gradient effect on numbers */
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-num span {
  -webkit-text-fill-color: var(--accent);
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── TRUST ROW ─── */
.trust-row {
  padding: 48px 0 0;
  text-align: center;
}

.trust-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.trust-logo:hover { opacity: 0.6; }

/* ─── 8. SECTION HEADERS ─── */
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  display: inline-block;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  /* gradient text */
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 400;
}

/* ─── 9. SERVICES ─── */
#services {
  padding: 140px 0 0;
}

.services-header {
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
  cursor: default;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%);
  opacity: 1;
  transition: opacity 0.3s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(64,196,255,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::after { opacity: 1; }

.service-card:hover {
  background: var(--bg-2);
}

.service-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--text-dim);
  transition: all 0.3s;
}

.service-icon svg { flex-shrink: 0; }

.service-card:hover .service-icon {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: rgba(64,196,255,0.3);
  box-shadow: 0 0 24px var(--accent-glow-soft);
}

.service-name {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.service-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
}

.service-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}

/* ─── 10. PROCESS ─── */
#process {
  padding: 140px 0 0;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 56px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: none; }

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  min-width: 28px;
  padding-top: 3px;
  opacity: 0.6;
}

.step-content {}

.step-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.step-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.process-right {
  position: sticky;
  top: 120px;
}

.process-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(64,196,255,0.3), transparent);
  opacity: 0.5;
}

.timeline-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.7;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-week {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.timeline-phase {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.timeline-bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  margin-top: 4px;
  overflow: hidden;
}

.timeline-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(64,196,255,0.3));
  border-radius: 1px;
  animation: bar-fill 2s ease-out forwards;
  transform-origin: left;
}

@keyframes bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ─── 11. STACK ─── */
#stack {
  padding: 140px 0 0;
}

.stack-header {
  margin-bottom: 48px;
}

.stack-categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stack-category-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s;
  cursor: default;
  backdrop-filter: blur(5px);
}

.stack-item:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--accent-glow-soft);
  box-shadow: 0 0 20px var(--accent-glow-soft);
}

.stack-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── 12. PROJECTS ─── */
#projects {
  padding: 140px 0 0;
}

.projects-header {
  margin-bottom: 56px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(64,196,255,0.02) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover::after { opacity: 1; }

.project-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover::before { opacity: 1; }

.project-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.7;
}

.project-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 28px;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.metric-value {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}

.metric-value span { color: var(--accent); }

.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.project-card.featured .project-metrics {
  grid-template-columns: repeat(4, 1fr);
  border-top: none;
  padding-top: 0;
  border-left: 1px solid var(--border);
  padding-left: 40px;
  height: 100%;
  align-items: center;
  display: grid;
  grid-template-rows: repeat(2, auto);
}

/* ─── 13. AI SECTION ─── */
#ai {
  padding: 140px 0 0;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 56px;
}

.ai-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
}

.ai-card:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.ai-card-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color 0.25s;
}

.ai-card:hover .ai-card-icon {
  color: var(--accent);
}

.ai-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.ai-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

.ai-visual {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.ai-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(64,196,255,0.25), transparent);
  opacity: 0.5;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.terminal-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-muted);
}

.terminal-line .cmd { color: var(--accent); }
.terminal-line .str { color: #a5d6a7; }
.terminal-line .comment { color: var(--text-dim); }
.terminal-line .kw { color: #ce93d8; }

.cursor-blink {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  animation: blink 1.2s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── 14. CONTACT ─── */
#contact {
  padding: 140px 0 140px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}

.contact-info h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.contact-info p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover { color: var(--text); }

.contact-link-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color 0.2s;
}

.contact-link:hover .contact-link-icon {
  color: var(--text);
}

/* ─── 14.1. FORM ─── */
.contact-form {
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(64,196,255,0.2), transparent);
  opacity: 0.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-select option { background: #0a0a0a; color: var(--text); }

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(64,196,255,0.3);
  box-shadow: 0 0 0 3px rgba(64,196,255,0.05);
}

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

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

.form-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(104deg, rgba(253,253,253,0.05) 5%, rgba(240,240,228,0.1) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
  backdrop-filter: blur(20px);
}

.form-submit:hover {
  background: rgba(255,255,255,0.9);
  color: #000;
  border-color: rgba(255,255,255,0.2);
}

.form-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ─── 15. FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

/* ─── 16. DIVIDERS ─── */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent 100%);
  margin: 0;
  position: relative;
}

/* ─── 17. LANGUAGE DROPDOWN ─── */
.lang-dropdown {
  position: relative;
  margin-left: 16px;
  flex-shrink: 0;
}

.lang-toggle {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
}

.lang-toggle:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.lang-arrow {
  color: var(--text-dim);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lang-arrow.open { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
}

.lang-menu.open { display: flex; }

.lang-option {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  text-align: left;
  width: 100%;
}

.lang-option b { color: var(--text-muted); min-width: 28px; font-weight: 600; }
.lang-option span { color: var(--text-dim); }
.lang-option:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.lang-option:hover b { color: var(--text); }
.lang-option.active { background: rgba(255,255,255,0.05); }
.lang-option.active b { color: var(--text); }
.lang-option.active span { color: var(--text-muted); }

/* ─── 18. SKIP LINK (a11y) ─── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ─── 19. BURGER MENU ─── */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  order: 3;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── 20. HERO LINK ─── */
.hero-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  padding: 14px 0;
  font-weight: 500;
}

.hero-link:hover {
  color: var(--text);
}

/* ─── 21. MEDIA QUERIES ─── */
@media (max-width: 900px) {
  nav { padding: 16px 20px; flex-wrap: wrap; }
  .burger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 16px 0 8px;
    order: 4;
  }
  .nav-links.open { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .nav-links .nav-cta {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: none !important;
    padding: 12px 0 !important;
    text-align: left;
    backdrop-filter: none;
  }

  .container { padding: 0 20px; }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0 20px;
    gap: 32px;
    text-align: center;
  }
  .hero-left { align-items: center; }
  .hero-visual { order: -1; }
  .hero-cube-wrap { width: 280px; height: 280px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }

  #services, #process, #stack, #projects, #ai, #contact {
    padding-top: 80px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-right { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .project-card.featured .project-metrics {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
