:root {
  --bg: #050816;
  --bg-alt: #050b1f;
  --accent: #00f6ff;
  --accent2: #ff00c3;
  --accent3: #7b5cff;
  --text: #f5f5ff;
  --muted: #9ca3af;
  --card-bg: rgba(15, 23, 42, 0.9);
  --border-glow: 0 0 15px rgba(0, 246, 255, 0.35);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.85);
  --blur: 26px;
  --grid-size: 40px;
}

/* RESET / BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: radial-gradient(circle at top, #1f2933 0, #020617 40%, #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(0, 246, 255, 0.12), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(123, 92, 255, 0.18), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(255, 0, 195, 0.15), 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.18;
  background-image:
    linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  z-index: -2;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
  animation: grid-drift 40s linear infinite;
}

.bg-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 246, 255, 0.18) 50%, transparent 100%);
  mix-blend-mode: soft-light;
  opacity: 0;
  animation: scanline 6s 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(-40px, -40px, 0); }
}

@keyframes scanline {
  0% { transform: translateY(-100%); opacity: 0; }
  15% { opacity: 0.35; }
  50% { opacity: 0.1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* LAYOUT */

.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px) 80px;
}

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.86));
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  margin-top: 10px;
  margin-bottom: 28px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), var(--shadow-soft);
  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(-20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-orb {
  width: 32px;
  height: 32px;
  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%, #ffffff, #020617 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.05em;
}

.nav-title {
  line-height: 1.1;
}

.nav-title-main {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-title-sub {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.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, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(0,246,255,0.4), transparent 55%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5), 0 0 25px rgba(0,246,255,0.35);
  transform: translateY(-1px);
}

.nav-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: radial-gradient(circle at top left, rgba(0, 246, 255, 0.18), transparent 55%);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(15,23,42,0.8);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 40%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.45s ease;
}

.nav-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 246, 255, 0.5);
  border-color: rgba(226, 232, 240, 0.9);
  background: radial-gradient(circle at top left, rgba(0, 246, 255, 0.24), transparent 55%);
}

.nav-cta:hover::after {
  transform: translateX(120%);
  opacity: 1;
}

.nav-cta-icon {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.65);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 40px);
  align-items: center;
  padding-top: 28px;
  padding-bottom: 70px;
}

.hero-left {
  min-width: 0;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  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 10px rgba(0, 246, 255, 0.7);
}

.hero-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 12px;
  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), var(--accent3), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.9);
}

/* TYPING SUBTITLE */

.hero-subtitle {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  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: 6px;
  height: 1.1em;
  margin-left: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.9);
  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.9);
  max-width: 38rem;
  margin-bottom: 24px;
  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: 22px;
  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.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(0,246,255,0.12), transparent 60%);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.6s ease;
}

.tag:hover::before {
  opacity: 1;
  transform: translateX(80%);
}

.tag-pip {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent2);
  box-shadow: 0 0 10px rgba(255, 0, 195, 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: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid rgba(148, 163, 184, 0.85);
  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: radial-gradient(circle at 0 0, rgba(0, 246, 255, 0.35), transparent 60%),
              linear-gradient(120deg, #0f172a, #020617);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 246, 255, 0.3), var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.4) 45%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.55s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(226, 232, 240, 0.9);
  background: radial-gradient(circle at 10% 0, rgba(0, 246, 255, 0.5), transparent 60%),
              linear-gradient(120deg, #020617, #020617);
  box-shadow: 0 20px 55px rgba(0, 246, 255, 0.5), var(--shadow-soft);
}

.btn-primary:hover::after {
  transform: translateX(120%);
  opacity: 1;
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
  border-color: rgba(148, 163, 184, 1);
  box-shadow: 0 0 25px rgba(123, 92, 255, 0.5);
}

.btn-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  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: 430px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(0, 246, 255, 0.1), transparent 60%),
              linear-gradient(145deg, rgba(15,23,42,0.97), rgba(15,23,42,0.97));
  box-shadow: var(--shadow-soft), 0 0 40px rgba(0, 246, 255, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 12px 14px 14px;
  position: relative;
  overflow: hidden;
  animation: card-float 9s ease-in-out infinite;
}

@keyframes card-float {
  0% { transform: translateY(0px) translateX(0); }
  50% { transform: translateY(-8px) translateX(-3px); }
  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;
  box-shadow: 0 0 10px rgba(15, 23, 42, 0.7);
}

.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(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 0 12px rgba(0,0,0,0.8);
}

.terminal-body {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, #020617 0, #020617 55%, #000 100%);
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: inset 0 0 40px rgba(15, 23, 42, 1);
}

/* CODE SYNTAX COLOURS + SCROLL */

.code-scroll {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #e5e7eb;
  padding: 14px 16px;
  max-height: 260px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.code-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.code-comment { color: #6b7280; }
.code-keyword { color: #7dd3fc; }
.code-func    { color: #a5b4fc; }
.code-string  { color: #f9a8d4; }
.code-type    { color: #bef264; }
.code-const   { color: #f97373; }
.code-prop    { color: #facc15; }

.code-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.06), transparent 40%, rgba(244, 114, 182, 0.08));
  mix-blend-mode: screen;
  pointer-events: none;
}

.code-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0, rgba(0, 246, 255, 0.18), transparent 50%);
  opacity: 0.9;
  filter: blur(12px);
  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(20px, -10px, 0); opacity: 1; }
  100% { transform: translate3d(-10px, 8px, 0); opacity: 0.9; }
}

.hero-orbit {
  position: absolute;
  inset: -30px;
  border-radius: 40px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  pointer-events: none;
  opacity: 0.7;
  animation: orbit-spin 30s linear infinite;
}

.hero-orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 25px rgba(0, 246, 255, 0.85);
  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(-6px, 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.16em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.92);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

/* SCROLL HINT */

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
  margin-top: -16px;
  margin-bottom: 38px;
  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.8);
  position: relative;
  overflow: hidden;
}

.scroll-wheel {
  width: 3px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  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: 70px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
  color: rgba(209, 213, 219, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-line {
  height: 1px;
  width: 36px;
  background: linear-gradient(to right, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.9));
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  max-width: 270px;
}

/* ABOUT & SKILLS */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 140deg, transparent 0, rgba(0,246,255,0.15), transparent 32%, rgba(255,0,195,0.15), transparent 60%);
  opacity: 0.5;
  filter: blur(22px);
  mix-blend-mode: screen;
  animation: about-glow 16s linear infinite;
}

@keyframes about-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.about-card-inner {
  position: relative;
}

.about-text {
  font-size: 14px;
  color: rgba(226, 232, 240, 0.94);
  line-height: 1.6;
  margin-bottom: 12px;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.meta-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: rgba(209, 213, 219, 0.9);
  background: radial-gradient(circle at top left, rgba(0, 246, 255, 0.12), transparent 60%);
}

.skills-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.7);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 30px rgba(37, 99, 235, 0.5);
}

.skills-header {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.9);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.skills-badge {
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.9);
  padding: 4px 9px;
  font-size: 10px;
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.3), transparent 55%);
  color: #e0e7ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skill-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.9);
}

.skill-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 1);
}

.skill-bar-outer {
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.skill-bar-inner {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent3), var(--accent2));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  transform-origin: left;
  animation: skill-fill 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skill-java { width: 80%; animation-delay: 0.1s; }
.skill-html { width: 85%; animation-delay: 0.2s; }
.skill-js   { width: 86%; animation-delay: 0.3s; }
.skill-py   { width: 75%; animation-delay: 0.4s; }
.skill-sql  { width: 72%; animation-delay: 0.5s; }
.skill-net  { width: 78%; animation-delay: 0.6s; }

@keyframes skill-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* JOURNEY TIMELINE */

.timeline {
  position: relative;
  padding-left: 26px;
  display: grid;
  gap: 18px;
}

.timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent3), var(--accent2));
  opacity: 0.7;
}

.timeline-item {
  position: relative;
  padding-left: 12px;
}

.timeline-dot {
  position: absolute;
  left: 2px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0, 246, 255, 0.9);
}

.timeline-content {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 10px 12px 11px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(96, 165, 250, 1);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 1);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 1);
}

.timeline-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.timeline-body {
  font-size: 13px;
  color: rgba(209, 213, 219, 0.9);
}

/* 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));
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 246, 255, 0.28), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

.project:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(96, 165, 250, 1);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.95), 0 0 28px rgba(96, 165, 250, 0.58);
}

.project:hover::before {
  opacity: 0.65;
}

.project-preview {
  position: relative;
  padding: 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  background:
    radial-gradient(circle at 0 0, rgba(0, 246, 255, 0.2), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 0, 195, 0.18), transparent 60%);
}

.project-screen {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  height: 120px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 35px rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: stretch;
}

.project-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #e5e7eb;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
  animation: project-code-scroll 10s linear infinite;
}

@keyframes project-code-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.project-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.project-name {
  font-size: 15px;
  font-weight: 500;
}

.project-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: rgba(209, 213, 219, 0.95);
}

.project-desc {
  font-size: 13px;
  color: rgba(209, 213, 219, 0.9);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.project-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: rgba(156, 163, 175, 0.95);
}

.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  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;
}

.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 (REFINED ANIMATIONS, CENTRED BUTTONS) */

.contact-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 1);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9), 0 0 25px rgba(0, 246, 255, 0.3);
}

.contact-text {
  max-width: 420px;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.95);
}

.contact-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(148, 163, 184, 1);
  margin-top: 6px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-pill {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(209, 213, 219, 1);
  background: rgba(15, 23, 42, 0.98);
}

.contact-pill span {
  color: var(--accent);
}

/* FOOTER */

footer {
  margin-top: 40px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 1);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

footer a {
  color: rgba(156, 163, 175, 1);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }
  /* show code panel first on mobile for extra flex */
  .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);
  }
}

@media (max-width: 600px) {
  /* prevent sideways scroll from orbit/glows on tiny screens */
  .hero-orbit,
  .hero-orbit-dot {
    display: none;
  }

  .hero-subtitle {
    flex-wrap: wrap;
  }

  .hero-typing {
    white-space: normal;
  }

  .hero {
    padding-bottom: 40px;
  }

  .section {
    margin-bottom: 50px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .contact-actions .btn,
  .contact-pill {
    text-align: center;
  }

  .contact-actions .btn,
  .contact-pill {
    justify-content: center;
  }
}
