:root {
  --bg: #03071e;
  --bg-alt: #050b1f;
  --accent: #22d3ee;
  --accent2: #818cf8;
  --accent3: #a78bfa;
  --green: #4ade80;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --card-bg: rgba(10, 20, 46, 0.85);
  --border: rgba(148, 163, 184, 0.12);
  --border-bright: rgba(148, 163, 184, 0.35);
  --border-glow: 0 0 20px rgba(34, 211, 238, 0.28);
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 60px rgba(0,0,0,0.8);
  --blur: 24px;
  --grid-size: 44px;
}

/* RESET / BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: radial-gradient(ellipse at 20% 0%, #0c1445 0, #03071e 45%, #000 100%);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* BACKGROUND LAYERS */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.09), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(167, 139, 250, 0.13), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(129, 140, 248, 0.1), transparent 55%);
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: bg-pulse 24s ease-in-out infinite alternate;
}

.bg-grid {
  position: fixed;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  z-index: -2;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: grid-drift 50s linear infinite;
}

.bg-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 0%, rgba(34, 211, 238, 0.12) 50%, transparent 100%);
  mix-blend-mode: soft-light;
  opacity: 0;
  animation: scanline 8s linear infinite;
}

@keyframes bg-pulse {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate3d(0, -10px, 0) scale(1.04); opacity: 1; }
  100% { transform: translate3d(-12px, 8px, 0) scale(1.02); opacity: 0.85; }
}

@keyframes grid-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-44px, -44px, 0); }
}

@keyframes scanline {
  0% { transform: translateY(-100%); opacity: 0; }
  15% { opacity: 0.25; }
  50% { opacity: 0.08; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* LAYOUT */

.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px) 80px;
}

/* SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(to right, rgba(10, 20, 46, 0.92), rgba(10, 20, 46, 0.82));
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  margin-top: 10px;
  margin-bottom: 32px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2), 0 8px 32px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: nav-drop 700ms cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-orb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent3), var(--accent2), var(--accent));
  padding: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--border-glow);
}

.logo-orb-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, #e0f7ff, #020617 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.05em;
}

.nav-title {
  line-height: 1.1;
}

.nav-title-main {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-title-sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.3);
}

.nav-cta-icon {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

/* AVAILABILITY BADGE */

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  opacity: 0;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px rgba(74, 222, 128, 0.8); }
  50% { box-shadow: 0 0 14px rgba(74, 222, 128, 1), 0 0 22px rgba(74, 222, 128, 0.4); }
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  padding-top: 16px;
  padding-bottom: 72px;
}

.hero-left {
  min-width: 0;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  opacity: 0;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.eyebrow-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 14px;
  opacity: 0;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards;
}

.hero-title .highlight {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent3) 60%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* TYPING SUBTITLE */

.hero-subtitle {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
  min-height: 1.6em;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.hero-typing {
  white-space: nowrap;
  overflow: hidden;
}

.hero-caret {
  display: inline-block;
  width: 5px;
  height: 1.1em;
  margin-left: 4px;
  border-radius: 1px;
  background: var(--muted);
  animation: caret-blink 1s steps(1, end) infinite;
}

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

.hero-body {
  font-size: 15px;
  color: rgba(226, 232, 240, 0.88);
  max-width: 38rem;
  line-height: 1.7;
  margin-bottom: 26px;
  opacity: 0;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(34, 211, 238, 0.04);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tag:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.tag-pip {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent2);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.btn {
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--text);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.15), 0 8px 32px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.3) 45%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(34, 211, 238, 0.8);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22) 0%, rgba(167, 139, 250, 0.16) 100%);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.35), 0 12px 40px rgba(0,0,0,0.5);
}

.btn-primary:hover::after {
  transform: translateX(120%);
  opacity: 1;
}

.btn-ghost {
  background: rgba(10, 20, 46, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--muted);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(10, 20, 46, 0.95);
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.25);
}

.btn-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO RIGHT TERMINAL */

.hero-right {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.terminal-wrap {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  background: rgba(10, 20, 46, 0.97);
  box-shadow: var(--shadow-soft), 0 0 50px rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 12px 14px 14px;
  position: relative;
  overflow: hidden;
  animation: card-float 10s ease-in-out infinite;
}

.terminal-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(34, 211, 238, 0.5), transparent);
}

@keyframes card-float {
  0%   { transform: translateY(0px) translateX(0); }
  50%  { transform: translateY(-7px) translateX(-2px); }
  100% { transform: translateY(0px) translateX(0); }
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.traffic-dot.red    { background: #ff5f57; }
.traffic-dot.yellow { background: #febc2e; }
.traffic-dot.green  { background: #28c840; }

.terminal-tab {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 20, 46, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.terminal-body {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(34, 211, 238, 0.15);
}

/* CODE SYNTAX */

.code-scroll {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #e5e7eb;
  padding: 14px 16px;
  max-height: 260px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.code-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.code-comment { color: #4b5563; }
.code-keyword { color: #7dd3fc; }
.code-func    { color: #a5b4fc; }
.code-string  { color: #f9a8d4; }
.code-type    { color: #bef264; }
.code-const   { color: #f87171; }
.code-prop    { color: #fbbf24; }

.code-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.04), transparent 40%, rgba(244, 114, 182, 0.06));
  mix-blend-mode: screen;
  pointer-events: none;
}

.code-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0, rgba(34, 211, 238, 0.12), transparent 50%);
  filter: blur(14px);
  animation: code-glow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes code-glow {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.8; }
  50%  { transform: translate3d(18px, -8px, 0); opacity: 1; }
  100% { transform: translate3d(-8px, 6px, 0); opacity: 0.9; }
}

.hero-orbit {
  position: absolute;
  inset: -30px;
  border-radius: 40px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  pointer-events: none;
  animation: orbit-spin 35s linear infinite;
}

.hero-orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.9);
  top: 12%;
  right: 12%;
  animation: orbit-dot 7s ease-in-out infinite;
}

@keyframes orbit-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbit-dot {
  0%   { transform: translate(0,0); }
  50%  { transform: translate(-5px, 4px); }
  100% { transform: translate(0,0); }
}

/* HERO LABEL */

.hero-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  background: rgba(10, 20, 46, 0.9);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
}

/* SCROLL HINT */

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.7);
  margin-top: -10px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.scroll-mouse {
  width: 14px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-wheel {
  width: 3px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  70%  { transform: translate(-50%, 8px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* SECTION HEADERS */

.section {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-line {
  height: 1px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--accent));
  opacity: 0.8;
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  text-align: right;
  line-height: 1.5;
}

/* ABOUT & SKILLS */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}

.about-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(34, 211, 238, 0.4), transparent);
}

.about-card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: var(--shadow-soft), 0 0 30px rgba(34, 211, 238, 0.08);
}

.about-card-inner {
  position: relative;
}

.about-text {
  font-size: 14px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.meta-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--muted);
  background: rgba(34, 211, 238, 0.04);
}

/* SKILLS CARD */

.skills-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 140, 248, 0.25);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 30px rgba(129, 140, 248, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skills-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(129, 140, 248, 0.6), transparent);
}

.skills-card:hover {
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: var(--shadow-soft), 0 0 40px rgba(129, 140, 248, 0.18);
}

.skills-header {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.9);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.skills-badge {
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  padding: 3px 9px;
  font-size: 10px;
  background: rgba(129, 140, 248, 0.08);
  color: rgba(167, 139, 250, 0.9);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-group-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.5);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip-a {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
  color: rgba(34, 211, 238, 0.9);
}

.chip-a:hover {
  background: rgba(34, 211, 238, 0.14);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.2);
}

.chip-b {
  background: rgba(167, 139, 250, 0.07);
  border-color: rgba(167, 139, 250, 0.25);
  color: rgba(167, 139, 250, 0.9);
}

.chip-b:hover {
  background: rgba(167, 139, 250, 0.13);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.2);
}

.chip-c {
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--muted);
}

.chip-c:hover {
  background: rgba(148, 163, 184, 0.1);
}

/* JOURNEY TIMELINE */

.timeline {
  position: relative;
  padding-left: 28px;
  display: grid;
  gap: 14px;
}

.timeline-line {
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent3), var(--accent2), transparent);
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  padding-left: 14px;
}

.timeline-dot {
  position: absolute;
  left: 1px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  transform: translateX(-3px);
}

.timeline-content {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(34, 211, 238, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 24px rgba(34, 211, 238, 0.1);
  transform: translateY(-2px) translateX(3px);
}

.timeline-item:hover .timeline-content::before {
  opacity: 1;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.75;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.timeline-body {
  font-size: 13px;
  color: rgba(209, 213, 219, 0.8);
  line-height: 1.6;
}

/* PORTFOLIO */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.project {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(34, 211, 238, 0.5), rgba(167, 139, 250, 0.5), transparent);
}

.project:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 28px 60px rgba(0,0,0,0.9), 0 0 30px rgba(34, 211, 238, 0.12);
}

.project-preview {
  position: relative;
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background:
    radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(167, 139, 250, 0.1), transparent 60%);
}

.project-screen {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  height: 130px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
  display: flex;
  align-items: stretch;
}

.project-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #e5e7eb;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
  animation: project-code-scroll 12s linear infinite;
}

@keyframes project-code-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.project-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.project-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.project-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: rgba(167, 139, 250, 0.9);
  background: rgba(129, 140, 248, 0.07);
  white-space: nowrap;
}

.project-desc {
  font-size: 13px;
  color: rgba(209, 213, 219, 0.8);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.project-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(10, 20, 46, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--muted);
}

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.project-links a {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}

.project-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent3));
  transition: width 0.22s ease;
}

.project-links a:hover::after {
  width: 100%;
}

/* CONTACT */

.contact-card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(34, 211, 238, 0.5), rgba(129, 140, 248, 0.5), transparent);
}

.contact-card:hover {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: var(--shadow-soft), 0 0 40px rgba(34, 211, 238, 0.08);
}

.contact-text {
  max-width: 440px;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
}

.contact-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-pill {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  background: rgba(10, 20, 46, 0.9);
}

.contact-pill span {
  color: var(--accent);
}

/* FOOTER */

footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.55);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

footer a {
  color: rgba(148, 163, 184, 0.55);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 16px;
  }
  .hero-right {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding-inline: 14px;
    gap: 10px;
  }
  .nav-links {
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-title-sub {
    font-size: 14px;
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-subtitle {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .hero-orbit,
  .hero-orbit-dot {
    display: none;
  }

  .hero-subtitle {
    flex-wrap: wrap;
  }

  .hero-typing {
    white-space: normal;
  }

  .hero {
    padding-bottom: 40px;
  }

  .section {
    margin-bottom: 56px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .contact-actions {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .contact-actions .btn,
  .contact-pill {
    text-align: center;
    justify-content: center;
  }
}
