/* ── CSS Variables ── */
:root {
  /* Core Colors */
  --primary:   #111827;   /* Rich charcoal (main brand) */
  --accent:    #6366F1;   /* Indigo (innovation) */
  --accent-2:  #22C55E;   /* Green (growth) */
  --cyan: var(--accent);
  --cyan-dim: #4F46E5;

  /* Backgrounds */
  --bg:        #F9FAFB;
  --bg-card:   #FFFFFF;
  --bg-alt:    #F3F4F6;

  /* Text */
  --text:      #1F2937;
  --text-2:    #6B7280;
  --text-light:#9CA3AF;

  /* Borders */
  --border:    #E5E7EB;

  /* Effects */
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius:    16px;
  --radius-sm: 10px;

  /* Gradient */
  --grad: linear-gradient(135deg, #6366F1, #22C55E);

  /* Layout */
  --nav-h: 68px;

  /* Motion */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg:        #020617;
  --bg-card:   #0F172A;
  --bg-alt:    #111827;

  --text:      #E5E7EB;
  --text-2:    #9CA3AF;
  --text-light:#6B7280;

  --border:    #1F2937;

  --shadow:    0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.7);
}


/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  color: var(--text);
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: normal;
  color: var(--cyan);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
}

.section-header {
  margin-bottom: 3rem;
}

/* ── Layout ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.fade-up, .fade-left, .fade-right {
  opacity: 1;
}

.fade-up.animated   { animation: fadeUp   0.7s ease forwards; }
.fade-left.animated  { animation: fadeLeft  0.7s ease forwards; }
.fade-right.animated { animation: fadeRight 0.7s ease forwards; }

.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.35s !important; }
.delay-4 { animation-delay: 0.5s !important; }
.delay-5 { animation-delay: 0.65s !important; }

/* ═══════════════ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,173,181,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-alt);
  color: var(--text-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.btn-ghost:hover {
  background: var(--border);
  color: var(--text);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ═══════════════ NAVBAR ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(6, 14, 26, 0.92);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-bracket { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--cyan); background: rgba(0,173,181,0.07); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text);
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-cta {
  background: var(--grad);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(0,173,181,0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,173,181,0.4); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════ HERO ═══ */
.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2.5rem;
  background: radial-gradient(circle at 30% 30%, #1F2937, #020617);
}

[data-theme="dark"] .hero { background: #030b17; }

/* Grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,173,181,0.25), transparent 70%);
  top: -100px; right: -100px;
  animation-duration: 10s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
  bottom: -80px; left: -80px;
  animation-duration: 13s;
  animation-delay: -4s;
}
/* HERO GRID BALANCE */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
  position: relative;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* LEFT SIDE — CONTROL OVERFLOW */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.hero-left-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 0.75rem;
  text-align: center;
}

.hero-photo-wrap {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 0 1rem 0;
  align-self: center;
}

.hero-photo-inner {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #112240, #1a3a6b);
  border: 3px solid rgba(0,173,181,0.25);
}

.hero-photo-placeholder svg { width: 125px; height: 125px; }

.hero-name {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
   text-align: center;
  line-height: 1.00;
}

/* RIGHT SIDE STRUCTURE */
.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: left;
}

.hero-right-inner {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
}

.hero-badge-right {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cyan);
  background: rgba(0,173,181,0.1);
  border: 1px solid rgba(0,173,181,0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

/* TEXT IMPROVEMENT */
.hero-right-title {
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  color: #fff;
  line-height: 1.4;
  font-weight: 700;
  max-width: 100%;
  margin: 0;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0;
  line-height: 1.75;
}

/* CTA GROUP — CLEAN STACK */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
  align-items: flex-start;
}

/* Make primary dominant */
.btn-primary {
  width: 100%;
  justify-content: center;
}

.btn-outline,
.btn-ghost {
  width: 100%;
  justify-content: center;
}

/* STATS — BAR */
.hero-stats {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 3rem auto 0;
}

/* STATS FULL WIDTH ROW */
.hero-stats {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,173,181,0.12);
  border: 1px solid rgba(0,173,181,0.3);
  color: var(--cyan);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Photo */
.hero-photo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 0 1.75rem 0;
  align-self: center;
}

.hero-photo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 4px solid transparent;
  background: var(--grad) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 10s linear infinite;
}

.hero-photo-inner {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #112240, #1a3a6b);
  border: 3px solid rgba(0,173,181,0.25);
}

.hero-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-placeholder svg { width: 100px; height: 100px; }

.hero-photo-status {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-2);
}
.status-dot {
  width: 6px; height: 6px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-name {
  text-align: center;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.05;
}
.hero-name em {
  font-style: normal;
  color: var(--cyan);
}

.hero-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  min-height: 2em;
}

.typing-wrap { display: inline-flex; align-items: center; gap: 2px; }
.typing-cursor {
  color: var(--cyan);
  font-weight: 300;
  animation: blink 0.9s step-end infinite;
}

.hero-right-title {
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  color: #fff;
  line-height: 1.5;
  font-weight: 600;
  max-width: 560px;
  margin: 0;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
  margin-top: 0.75rem;
}


.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0,173,181,0.6), transparent);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left,
  .hero-right {
    align-items: center;
    text-align: center;
  }

  .hero-name {
    text-align: center;
  }

  .hero-ctas,
  .hero-stats {
    justify-content: center;
  }
}


/* ═══════════════ ABOUT ═══ */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.about-body {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  background: rgba(0,173,181,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,173,181,0.2);
}

/* ═══════════════ PILLARS ═══ */
.pillars { background: var(--bg-alt); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,173,181,0.3);
}

.pillar-card.featured {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.25), var(--shadow);
}


.pillar-icon {
  width: 52px;
  height: 52px;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.pillar-icon svg { width: 100%; height: 100%; }

.pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-2);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pillar-list li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 1.25rem;
  position: relative;
}
.pillar-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.75rem;
}

.pillar-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.pillar-card:hover .pillar-accent,
.pillar-card.featured .pillar-accent { transform: scaleX(1); }

/* ═══════════════ SKILLS ═══ */
.skills { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.skill-group-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-group-icon {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-size: 0.9rem;
}

.skill-bars { display: flex; flex-direction: column; gap: 1.25rem; }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.skill-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 500;
}

.skill-track {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 50px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 50px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-stack {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tech-stack-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tech-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.chip {
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }

/* ═══════════════ PROJECTS ═══ */
.projects { background: var(--bg-alt); }

.project-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,173,181,0.25);
}

.project-card.featured {
  border-color: rgba(0,173,181,0.35);
  background: linear-gradient(160deg, var(--bg-card) 70%, rgba(0,173,181,0.04));
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: rgba(0,173,181,0.1);
  color: var(--cyan);
  font-weight: 500;
}

.project-year {
  font-size: 0.78rem;
  color: var(--text-2);
}

.project-icon-wrap {
  width: 42px; height: 42px;
  color: var(--cyan);
  opacity: 0.6;
}
.project-icon-wrap svg { width: 100%; height: 100%; }

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.project-problem, .project-solution {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

.project-impact {
  font-size: 0.875rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0,173,181,0.06);
  border-left: 3px solid var(--cyan);
  color: var(--text-2);
  line-height: 1.6;
}

.impact-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.project-tech span {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(0,173,181,0.25);
  transition: all var(--transition);
}
.project-link svg { width: 14px; height: 14px; }
.project-link:hover {
  background: rgba(0,173,181,0.1);
  border-color: var(--cyan);
}

/* Project card hidden for filter */
.project-card.hidden { display: none; }

/* ═══════════════ CASE STUDY ═══ */
.case-study {
  background: #020617;
  margin-top: 2rem;
}

[data-theme="dark"] .case-study { background: #030b17; }

.case-study .section-tag { color: var(--cyan); }
.case-study .section-title { color: #fff; }
.case-study .section-sub { color: rgba(255,255,255,0.5); }

.case-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,173,181,0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.case-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.case-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.case-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.case-section.highlight {
  border-color: rgba(0,173,181,0.3);
  background: rgba(0,173,181,0.04);
}

.case-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.case-section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
}

.case-section p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.case-results {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.case-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case-result-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.case-result-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.case-tech span {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background: rgba(0,173,181,0.1);
  border: 1px solid rgba(0,173,181,0.25);
  color: var(--cyan);
}

/* ═══════════════ SERVICES ═══ */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,173,181,0.3);
}

.service-icon {
  width: 48px; height: 48px;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-features li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 1.25rem;
  position: relative;
}
.service-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.75rem;
}

.services-cta {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(34,197,94,0.08));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.services-cta p {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ═══════════════ TESTIMONIALS ═══ */
.testimonials { background: var(--bg-alt); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quote-mark {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  color: var(--cyan);
  line-height: 0.8;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-2);
}

/* ═══════════════ CONTACT ═══ */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}
.contact-item:hover {
  border-color: rgba(0,173,181,0.35);
  transform: translateX(4px);
}

.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(0,173,181,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; }

.contact-item-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 0.15rem;
}

.contact-item-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,173,181,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-2); opacity: 0.7; }

.form-success {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #16A34A;
  font-size: 0.875rem;
  text-align: center;
}
.form-success.show { display: block; }

/* ═══════════════ FOOTER ═══ */
.footer {
  background: #020617;
  padding: 4rem 0 2rem;
}
[data-theme="dark"] .footer { background: #030b17; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 1rem; display: inline-block; }

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.footer-venture {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4, .footer-social h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cyan); }

.social-icons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.social-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,173,181,0.08);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem !important;
  color: rgba(0,173,181,0.5) !important;
}

/* ═══════════════ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .section { padding: 4rem 0; }

  .hero-stats { gap: 1rem; }
  .stat-divider { height: 30px; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .pillars-grid { grid-template-columns: 1fr; }

  .skills-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .case-grid { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-name { font-size: 2.5rem; }
  .hero-stats { flex-direction: column; gap: 0.75rem; }
  .stat-divider { display: none; }
  .case-results { flex-direction: column; }
}