﻿/* ================================================================
   KETER CAPITAL GROUP LLC — Design System v2
   Inspired by: shadcn/ui, Framer, Linear, Vercel, Craft
================================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:       #08090d;
  --bg-surface:    #0e0f16;
  --bg-elevated:   #13141e;
  --bg-overlay:    rgba(255,255,255,0.03);

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-default:rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.14);
  --border-accent: rgba(99,102,241,0.45);

  /* Brand */
  --indigo:        #6366f1;
  --indigo-light:  #818cf8;
  --cyan:          #22d3ee;
  --cyan-light:    #67e8f9;
  --emerald:       #34d399;
  --amber:         #fbbf24;

  /* Gradient */
  --grad-brand:    linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --grad-subtle:   linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(34,211,238,0.08) 100%);
  --grad-glow:     radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 70%);

  /* Text */
  --text-high:     #f1f2f6;
  --text-medium:   #9ca3af;
  --text-low:      #4b5563;
  --text-xlow:     #374151;

  /* Spacing */
  --section-y:     130px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.25);

  /* Motion */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   0.18s;
  --dur-base:   0.32s;
  --dur-slow:   0.55s;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
}

/* ── Base ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: rgba(99,102,241,0.3); color: #fff; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(99,102,241,0.4);
  border-radius: var(--r-full);
}

/* ── Noise texture overlay ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Container ───────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Utilities ───────────────────────────────────────────────── */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 18px;
}

.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--grad-brand);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text-high);
  margin-bottom: 16px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.75;
  max-width: 540px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--dur-base) var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.5) inset, var(--shadow-glow);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}

.btn-primary:hover::after { background: rgba(255,255,255,0.07); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 56px rgba(99,102,241,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-medium);
  border: 1px solid var(--border-default);
}

.btn-ghost:hover {
  color: var(--text-high);
  border-color: var(--border-strong);
  background: var(--bg-overlay);
}

/* ── Reveal animations — sphere opening ─────────────────────── */
.reveal {
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
  transition: opacity 0.5s var(--ease), clip-path 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  clip-path: circle(150% at 50% 50%);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* ================================================================
   BRAND INTRO
================================================================ */
#brandIntro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  pointer-events: none;

  /* Phase 1 → visible; transitions handled via JS classes */
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#brandIntro.intro-hide {
  opacity: 0;
}

#brandIntroInner {
  display: flex;
  align-items: baseline;
  gap: 0.22em;

  /* Appear */
  animation: brandAppear 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;

  /* Shrink-to-navbar when .intro-shrink is added */
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top left;
}

#brandIntro.intro-shrink #brandIntroInner {
  /* Will be set by JS based on actual nav-logo position */
  transform: var(--brand-target-transform);
  opacity: 0;
}

@keyframes brandAppear {
  from {
    opacity: 0;
    letter-spacing: 0.25em;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    letter-spacing: normal;
    filter: blur(0);
  }
}

.brand-intro-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-high);
  white-space: normal;
  text-align: center;
}

.brand-intro-llc {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================================
   NAVBAR
================================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: padding var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  padding: 16px 0;
  background: rgba(8,9,13,0.75);
  backdrop-filter: blur(32px) saturate(200%) brightness(0.96);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(0.96);
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--dur-fast);
}
.nav-logo:hover { opacity: 0.82; }

.nav-logo span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  display: block;
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--text-low);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-high);
  background: rgba(255,255,255,0.05);
}

.nav-links a.active {
  color: var(--text-high);
  background: rgba(99,102,241,0.1);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.22) inset;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Language toggle ─────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  padding: 5px 13px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-medium);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--border-accent);
  background: rgba(99,102,241,0.06);
  color: var(--text-high);
}

.lang-active {
  color: var(--text-high);
}

.lang-inactive {
  color: var(--text-xlow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4.5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-medium);
  border-radius: var(--r-full);
  transition: var(--dur-base) var(--ease);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8,9,13,0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-low);
  padding: 12px 32px;
  border-radius: var(--r-md);
  transition: color var(--dur-fast), background var(--dur-fast);
  width: 260px;
  text-align: center;
}

.mobile-menu a:hover {
  color: var(--text-high);
  background: var(--bg-overlay);
}

.mobile-menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-medium);
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.mobile-menu-close:hover { color: var(--text-high); border-color: var(--border-strong); }

/* ================================================================
   HERO
================================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Layered background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Top glow — richer dual-center radial */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 150vw);
  max-width: 150vw;
  height: 800px;
  background:
    radial-gradient(ellipse 55% 50% at 48% 28%, rgba(99,102,241,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 62% 40%, rgba(34,211,238,0.10) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  from { opacity: 0.8; }
  to   { opacity: 1; }
}

/* Grid */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 20%, transparent 80%);
}

/* ── Floating orb decorations ────────────────────────────────── */
#hero::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 30%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
  border: 1px solid rgba(99,102,241,0.08);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 8px;
  border-radius: var(--r-full);
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.18);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-medium);
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: var(--r-full);
}

.badge-dot span {
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 28px;
  color: var(--text-high);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-medium);
  max-width: 520px;
  line-height: 1.78;
  margin-bottom: 52px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.hero-scroll span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-low);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--indigo), transparent);
  animation: scrollDown 2.2s var(--ease) infinite;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  90%  { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ================================================================
   STATS BAR
================================================================ */
#stats {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

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

.stat-item {
  padding: 44px 28px;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
}

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

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--dur-base);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-low);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ================================================================
   ABOUT
================================================================ */
#about { padding: var(--section-y) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

/* Terminal card */
.about-visual { position: relative; }

.terminal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg),
              0 0 0 1px rgba(255,255,255,0.04) inset;
}

.terminal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0.7;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border-subtle);
}

.t-dot { width: 11px; height: 11px; border-radius: var(--r-full); }
.t-dot:nth-child(1) { background: #ff5f57; }
.t-dot:nth-child(2) { background: #ffbd2e; }
.t-dot:nth-child(3) { background: #28ca41; }

.terminal-filename {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-low);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 24px 28px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-medium);
}

.line-num { color: var(--text-xlow); margin-right: 20px; user-select: none; font-size: 0.72rem; }
.key  { color: #c084fc; }
.val  { color: #67e8f9; }
.str  { color: #86efac; }
.punc { color: var(--text-low); }

.terminal-glow {
  position: absolute;
  bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  pointer-events: none;
}

.terminal-badge {
  position: absolute;
  bottom: -18px; right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--r-md);
  font-size: 0.76rem;
  color: var(--emerald);
  font-weight: 500;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.terminal-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Values */
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.value-card {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-base), background var(--dur-base);
  cursor: default;
}

.value-card:hover {
  border-color: var(--border-accent);
  background: rgba(99,102,241,0.04);
}

.value-icon { font-size: 1.3rem; margin-bottom: 10px; }
.value-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: var(--text-high); }
.value-desc  { font-size: 0.8rem; color: var(--text-low); line-height: 1.6; }

/* ================================================================
   PROJECTS
================================================================ */
#projects {
  padding: var(--section-y) 0;
  background: var(--bg-surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 24px;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Project cards */
.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease),
    box-shadow   var(--dur-base) var(--ease);
  cursor: default;
}

.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.08) inset;
}

.project-card.featured { grid-column: span 2; }

.project-thumb {
  position: relative;
  overflow: hidden;
}

.project-card:not(.featured) .project-thumb { height: 180px; }
.project-card.featured .project-thumb { height: 240px; }

.project-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.7s var(--ease);
}

.project-card:hover .project-thumb-bg { transform: scale(1.06); }

/* Shimmer overlay on thumb */
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(19,20,30,0.7) 100%);
}

/* Tags */
.project-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.tag-live    { background: rgba(52,211,153,0.12); color: var(--emerald); border: 1px solid rgba(52,211,153,0.25); }
.tag-dev     { background: rgba(251,191,36,0.1);  color: var(--amber);   border: 1px solid rgba(251,191,36,0.2); }
.tag-concept { background: rgba(99,102,241,0.1);  color: var(--indigo-light); border: 1px solid rgba(99,102,241,0.22); }

.project-body { padding: 24px 26px 28px; }

.project-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--text-high);
}

.project-desc {
  font-size: 0.855rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 18px;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  margin-bottom: 18px;
}

.feature-block-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.feature-tag {
  padding: 3px 11px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.18);
  color: var(--indigo-light);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.feature-tag:hover {
  background: rgba(99,102,241,0.14);
  border-color: rgba(99,102,241,0.35);
}

.project-vision {
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.72;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--indigo);
  opacity: 0.85;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }

.tech-pill {
  padding: 3px 11px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-default);
  color: var(--text-low);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.tech-pill:hover { color: var(--text-medium); border-color: var(--border-strong); }

/* ================================================================
   SERVICES
================================================================ */
#services { padding: var(--section-y) 0; }

.services-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 68px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  padding: 32px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-base),
    background   var(--dur-base);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse 80% 60% at 10% 90%, rgba(99,102,241,0.07), transparent 60%);
  transition: opacity var(--dur-slow);
}

.service-card:hover::after { opacity: 1; }
.service-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
}

.service-icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 22px;
  transition: background var(--dur-base), border-color var(--dur-base);
}

.service-card:hover .service-icon-wrap {
  background: rgba(99,102,241,0.16);
  border-color: rgba(99,102,241,0.35);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-high);
}

.service-desc {
  font-size: 0.855rem;
  color: var(--text-medium);
  line-height: 1.72;
  margin-bottom: 22px;
}

.service-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-low);
}

.service-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: var(--r-full);
  background: var(--indigo);
  flex-shrink: 0;
}

/* ================================================================
   CONTACT
================================================================ */
#contact {
  padding: var(--section-y) 0;
  background: var(--bg-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info { padding-top: 4px; }

.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-base);
}

.contact-detail:hover { border-color: var(--border-accent); }

.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(99,102,241,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-low);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-detail-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-high);
}

/* Form */
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

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

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-medium);
  margin-bottom: 9px;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 13px 17px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-high);
  outline: none;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: rgba(99,102,241,0.55);
  background: rgba(99,102,241,0.04);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.10);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(255,255,255,0.2);
}
.form-textarea { min-height: 128px; resize: vertical; }

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

.contact-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: var(--text-low);
  font-weight: 500;
}

.contact-trust::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 15px 26px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 32px rgba(99,102,241,0.3), var(--shadow-glow);
}

.btn-submit:hover {
  box-shadow: 0 0 48px rgba(99,102,241,0.45);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--emerald);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--r-md);
  background: rgba(52,211,153,0.05);
  margin-top: 12px;
}

/* ================================================================
   FOOTER
================================================================ */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 96px 0 44px;
  background: var(--bg-base);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0.25;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 72px;
}

.footer-brand .nav-logo {
  font-size: 0.95rem;
  margin-bottom: 18px;
  display: block;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-high);
  margin-bottom: 12px;
  line-height: 1.4;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.78;
  max-width: 280px;
}

.footer-social { display: flex; gap: 8px; margin-top: 28px; }

.social-link {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}

.social-link:hover {
  color: var(--text-high);
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 16px rgba(99,102,241,0.2);
}

.footer-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 22px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.28);
  transition: color var(--dur-fast);
  letter-spacing: 0.005em;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.18); }

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

.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.18);
  transition: color var(--dur-fast);
}

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

/* ================================================================
   FLOAT GALLERY
================================================================ */
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

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

/* Cards float with staggered phases */
.project-card { animation: floatCard 5.0s ease-in-out infinite; }
.service-card  { animation: floatCard 4.8s ease-in-out infinite; }
.value-card    { animation: floatGentle 4.2s ease-in-out infinite; }
.stat-item     { animation: floatGentle 3.8s ease-in-out infinite; }
.terminal-card { animation: floatCard 6.0s ease-in-out infinite; }
.contact-form  { animation: floatGentle 5.2s ease-in-out infinite; }
.contact-detail { animation: floatGentle 4.0s ease-in-out infinite; }

/* Staggered phases per nth-child so they float independently */
.project-card:nth-child(1)  { animation-delay: 0s; }
.project-card:nth-child(2)  { animation-delay: -1.7s; }
.project-card:nth-child(3)  { animation-delay: -3.2s; }
.project-card:nth-child(4)  { animation-delay: -0.9s; }

.service-card:nth-child(1)  { animation-delay: -2.1s; }
.service-card:nth-child(2)  { animation-delay: -0.6s; }
.service-card:nth-child(3)  { animation-delay: -3.6s; }
.service-card:nth-child(4)  { animation-delay: -1.2s; }
.service-card:nth-child(5)  { animation-delay: -2.8s; }

.value-card:nth-child(1)    { animation-delay: -1.0s; }
.value-card:nth-child(2)    { animation-delay: -2.5s; }
.value-card:nth-child(3)    { animation-delay: 0s; }
.value-card:nth-child(4)    { animation-delay: -1.8s; }

.stat-item:nth-child(1)     { animation-delay: 0s; }
.stat-item:nth-child(2)     { animation-delay: -1.2s; }
.stat-item:nth-child(3)     { animation-delay: -2.0s; }
.stat-item:nth-child(4)     { animation-delay: -0.7s; }

.contact-detail:nth-child(1) { animation-delay: -0.5s; }
.contact-detail:nth-child(2) { animation-delay: -1.5s; }
.contact-detail:nth-child(3) { animation-delay: -2.5s; }

/* ================================================================
   RESPONSIVE — Full mobile-first overhaul
================================================================ */

/* ── Tablet ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid            { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid         { grid-template-columns: 1fr 1fr; gap: 16px; }
  .project-card.featured { grid-column: span 2; }
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid          { gap: 52px; }
  .services-grid         { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Global */
  :root { --section-y: 80px; }
  .container { padding: 0 18px; }

  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .hamburger            { display: flex; }
  #navbar               { padding: 18px 0; }
  #navbar.scrolled      { padding: 12px 0; }
  .nav-logo             { font-size: 0.85rem; }
  .lang-toggle          { padding: 4px 10px; font-size: 0.7rem; }

  /* Brand intro */
  .brand-intro-name { font-size: clamp(1.5rem, 8vw, 2.4rem); }
  .brand-intro-llc  { font-size: clamp(0.9rem, 4vw, 1.4rem); }

  /* Hero */
  #hero { padding: 110px 0 80px; }
  .hero-headline { font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: -0.03em; }
  .hero-sub      { font-size: 0.97rem; margin-bottom: 36px; }
  .hero-actions  { gap: 10px; }
  .hero-actions .btn { padding: 11px 20px; font-size: 0.82rem; }
  #hero::after   { display: none; } /* hide decorative orb */

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item  { padding: 32px 16px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--border-subtle); }
  .stat-number { font-size: 1.9rem; }

  /* About */
  .about-grid   { grid-template-columns: 1fr; gap: 40px; }
  .about-values { grid-template-columns: 1fr 1fr; gap: 10px; }
  .terminal-body { font-size: 0.74rem; padding: 16px 18px; }

  /* Projects */
  .projects-grid         { grid-template-columns: 1fr; gap: 14px; }
  .project-card.featured { grid-column: span 1; }
  .project-card:not(.featured) .project-thumb { height: 160px; }
  .project-card.featured .project-thumb       { height: 200px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card  { padding: 24px 22px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 26px 22px; }
  .form-row     { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  footer          { padding: 64px 0 36px; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-tagline { font-size: 0.95rem; }
  .footer-desc    { max-width: 100%; }
}

/* ── Small phones ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Navbar */
  .nav-logo   { font-size: 0.78rem; }
  .lang-toggle { padding: 3px 8px; font-size: 0.65rem; }

  /* Hero */
  #hero { padding: 100px 0 70px; }
  .hero-headline { font-size: clamp(2rem, 11vw, 2.8rem); }
  .hero-badge    { font-size: 0.68rem; padding: 4px 12px 4px 6px; }
  .hero-sub      { font-size: 0.92rem; }
  .hero-actions  { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .stat-item   { padding: 24px 10px; }
  .stat-number { font-size: 1.6rem; }
  .stat-label  { font-size: 0.65rem; }

  /* About */
  .about-values  { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }

  /* Projects */
  .project-body  { padding: 18px 18px 22px; }
  .project-name  { font-size: 0.98rem; }

  /* Services */
  .service-card  { padding: 22px 18px; }

  /* Contact */
  .contact-form  { padding: 22px 16px; }
  .contact-details { gap: 8px; }
  .contact-detail  { padding: 13px 14px; }

  /* Footer */
  .footer-grid           { gap: 28px; }
  .footer-bottom-links   { gap: 16px; }
  .social-link           { width: 34px; height: 34px; }
}

/* ── Extra small (SE, old phones) ───────────────────────────── */
@media (max-width: 360px) {
  .hero-headline { font-size: 1.85rem; }
  .hero-actions .btn { padding: 10px 16px; font-size: 0.8rem; }
  .contact-form  { padding: 18px 14px; }
}

/* Reduce float animation on mobile to avoid jitter */
@media (max-width: 768px) {
  .project-card,
  .service-card,
  .value-card,
  .stat-item,
  .terminal-card,
  .contact-form,
  .contact-detail {
    animation: floatGentle 6s ease-in-out infinite;
  }
}

/* ================================================================
   LUCIDE ICON SYSTEM
================================================================ */

/* Base icon reset */
.value-icon i,
.service-icon-wrap i,
.contact-detail-icon i {
  display: block;
  width: 100%;
  height: 100%;
}

.value-icon i svg,
.service-icon-wrap i svg,
.contact-detail-icon i svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

/* Value card icons */
.value-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--indigo-light);
  filter: drop-shadow(0 0 8px rgba(99,102,241,0.4));
  transition: color var(--dur-base), filter var(--dur-base);
}

.value-card:hover .value-icon {
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(34,211,238,0.5));
}

/* Service card icons */
.service-icon-wrap {
  width: 46px;
  height: 46px;
  padding: 11px;
  color: var(--indigo-light);
  transition: color var(--dur-base), background var(--dur-base),
              border-color var(--dur-base), filter var(--dur-base);
}

.service-card:hover .service-icon-wrap {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(34,211,238,0.4));
}

/* Contact detail icons */
.contact-detail-icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  color: var(--indigo-light);
}

.contact-detail:hover .contact-detail-icon {
  color: var(--cyan);
}

/* Project thumb SVG art */
.project-thumb-bg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-bg svg {
  position: relative;
  z-index: 1;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}

.project-card:hover .project-thumb-bg svg {
  transform: scale(1.08) rotate(3deg);
  opacity: 0.85;
}
