/* ============================================================
   PORTFOLIO.CSS — DevStation Design System
   Nachiketa Pandey | portfolio.fluttersolution.com
   An IDE/Terminal-themed developer portfolio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

/* ─── CSS Custom Properties — Dracula-Inspired Palette ──── */
:root {
  /* Backgrounds */
  --bg-deep: #13111c;
  --bg: #1a1825;
  --bg-surface: #211f2e;
  --bg-elevated: #2a2739;
  --bg-highlight: #332f45;
  --bg-overlay: rgba(19, 17, 28, 0.95);

  /* Foreground */
  --fg: #e8e4f0;
  --fg-muted: #a9a5b8;
  --fg-dim: #6e6a7c;
  --fg-faint: #3d3a4d;

  /* Syntax Colors */
  --syn-keyword: #c792ea;
  /* purple — class, const, final */
  --syn-string: #c3e88d;
  /* green — string values */
  --syn-function: #ffcb6b;
  /* orange/gold — function names */
  --syn-type: #89ddff;
  /* cyan — type names */
  --syn-comment: #546e7a;
  /* blue-gray — comments */
  --syn-variable: #eeffff;
  /* white — variables */
  --syn-number: #f78c6c;
  /* coral — numbers */
  --syn-tag: #ff5370;
  /* red — tags, errors */
  --syn-operator: #89ddff;
  /* cyan — operators */
  --syn-property: #f0c674;
  /* yellow — properties */
  --syn-decorator: #82aaff;
  /* blue — decorators, links */

  /* Accent */
  --accent: #c792ea;
  --accent-glow: rgba(199, 146, 234, 0.25);
  --accent-secondary: #89ddff;
  --accent-success: #c3e88d;
  --accent-warning: #ffcb6b;
  --accent-error: #ff5370;

  /* UI Chrome */
  --chrome-bg: #0d0b14;
  --chrome-border: #2a2739;
  --tab-active-bg: #1a1825;
  --tab-inactive-bg: #110f1a;
  --tab-border: #2a2739;
  --gutter-bg: rgba(0, 0, 0, 0.2);
  --gutter-text: #3d3a4d;
  --selection: rgba(199, 146, 234, 0.15);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --gutter: 24px;
  --section-gap: 100px;
  --nav-height: 84px;
  /* title bar + tabs */

  /* Radius */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Shooting star color */
  --star-color: rgba(95, 145, 255, 0.4);
  --star-trail: rgba(105, 155, 255, 0.4);
}

.resume-wrapper {
  padding: var(--gutter);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - var(--nav-height) - 40px);
}

.resume-wrapper .resume-container {
  margin: 0;
}

/* ─── Light Mode ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg-deep: #e0e7ff;
  --bg: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-highlight: #e2e8f0;
  --bg-overlay: rgba(241, 245, 249, 0.95);
  --fg: #0f172a;
  --fg-muted: #334155;
  --fg-dim: #64748b;
  --chrome-bg: #cbd5e1;
  --chrome-border: #94a3b8;

  --accent-primary: #2563eb;
  --accent-secondary: #0891b2;
  --accent-tertiary: #4f46e5;
  --accent-error: #dc2626;
  --accent-warning: #d97706;
  --accent-success: #16a34a;
  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.15);

  --fg-faint: #94a3b8;
  --syn-keyword: #4f46e5;
  --syn-string: #16a34a;
  --syn-function: #d97706;
  --syn-type: #0284c7;
  --syn-comment: #64748b;
  --syn-variable: #0f172a;
  --syn-number: #ea580c;
  --syn-tag: #dc2626;
  --syn-operator: #0284c7;
  --syn-property: #b45309;
  --syn-decorator: #2563eb;

  --tab-active-bg: #ffffff;
  --tab-inactive-bg: #e2e8f0;
  --tab-border: #cbd5e1;
  --gutter-bg: rgba(0, 0, 0, 0.03);
  --gutter-text: #94a3b8;
  --selection: rgba(37, 99, 235, 0.2);

  --terminal-bg: #f8fafc;
  --terminal-border: #cbd5e1;
  --terminal-fg: #0f172a;

  --star-color: rgba(59, 130, 246, 0.3);
  --star-trail: rgba(14, 165, 233, 0.8);
}

[data-theme="light"] .title-dot.red {
  background: #ff6259;
}

[data-theme="light"] .title-dot.yellow {
  background: #ffbf2e;
}

[data-theme="light"] .title-dot.green {
  background: #29c941;
}

[data-theme="light"] .hero-name {
  color: var(--fg);
}

[data-theme="light"] .bullet-content strong {
  color: var(--fg);
}

[data-theme="light"] .stat-number {
  color: var(--accent);
}

[data-theme="light"] .achievement-value {
  color: var(--accent);
}

[data-theme="light"] .hero-photo-inner img {
  filter: saturate(1) contrast(1);
}

[data-theme="light"] .dot-grid-bg {
  opacity: 0.12;
}

[data-theme="light"] #matrix-rain {
  opacity: 0.15 !important;
}

[data-theme="light"] .shooting-star {
  filter: drop-shadow(0 0 4px var(--star-trail));
}

[data-theme="light"] body {
  background: var(--bg-deep);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  background-color: var(--bg-deep);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="light"] body {
  background: linear-gradient(180deg, #eee8f5 0%, #ddd8eb 50%, #e8e4f0 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--fg-faint);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-dim);
}

::selection {
  background: var(--selection);
  color: #fff;
}

/* ─── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9001;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
  color: var(--fg-dim);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-toggle .fa-sun {
  display: none;
}

.theme-toggle .fa-moon {
  display: inline;
}

[data-theme="light"] .theme-toggle .fa-sun {
  display: inline;
}

[data-theme="light"] .theme-toggle .fa-moon {
  display: none;
}

/* ─── Shooting Stars ─────────────────────────────────────── */
.night-sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  perspective: 800px;
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--star-color), transparent);
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px var(--star-color),
    0 0 20px 4px var(--star-color);
}

@keyframes shootingStar3D {
  0% {
    transform: translate3d(20vw, -20vh, -500px) rotate(-45deg) scale(0.2);
    opacity: 0;
  }

  10% {
    opacity: 1;
    filter: blur(1px);
  }

  100% {
    transform: translate3d(-150vw, 150vh, 400px) rotate(-45deg) scale(3);
    opacity: 0;
    filter: blur(5px);
  }
}

.shooting-star:nth-child(1) {
  top: 10%;
  left: 80%;
  animation: shootingStar3D 4s linear infinite;
  animation-delay: 0s;
}

.shooting-star:nth-child(2) {
  top: 30%;
  left: 90%;
  animation: shootingStar3D 5s linear infinite;
  animation-delay: 1.5s;
}

.shooting-star:nth-child(3) {
  top: 5%;
  left: 50%;
  animation: shootingStar3D 6s linear infinite;
  animation-delay: 3s;
}

.shooting-star:nth-child(4) {
  top: 40%;
  left: 70%;
  animation: shootingStar3D 4.5s linear infinite;
  animation-delay: 2s;
}

.shooting-star:nth-child(5) {
  top: 20%;
  left: 100%;
  animation: shootingStar3D 5.5s linear infinite;
  animation-delay: 4.2s;
}

.shooting-star:nth-child(6) {
  top: 50%;
  left: 85%;
  animation: shootingStar3D 4.2s linear infinite;
  animation-delay: 1.1s;
}

.shooting-star:nth-child(7) {
  top: 15%;
  left: 60%;
  animation: shootingStar3D 5.8s linear infinite;
  animation-delay: 2.7s;
}

.shooting-star:nth-child(8) {
  top: 35%;
  left: 95%;
  animation: shootingStar3D 4.8s linear infinite;
  animation-delay: 0.8s;
}

/* ─── Nabh Project Visual Animation ──────────────────────── */
.nabh-visual-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-visual-icon {
  z-index: 2;
  position: relative;
}

.project-visual-tags {
  z-index: 2;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   BOOT SEQUENCE OVERLAY
   ============================================================ */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-overlay.boot-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-terminal {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-success);
  max-width: 520px;
  width: 90%;
  line-height: 1.8;
}

.boot-line {
  opacity: 0;
  transform: translateY(4px);
}

.boot-line.boot-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.boot-line .boot-prompt {
  color: var(--accent);
  margin-right: 8px;
}

.boot-line .boot-path {
  color: var(--accent-secondary);
}

.boot-line .boot-cmd {
  color: var(--fg);
}

.boot-line .boot-ok {
  color: var(--accent-success);
}

.boot-line .boot-version {
  color: var(--fg-dim);
}

.boot-cursor-block {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-success);
  animation: bootBlink 0.6s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes bootBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ============================================================
   WINDOW CHROME — IDE FRAME
   ============================================================ */
.ide-frame {
  position: relative;
  min-height: 100vh;
}

/* Title Bar */
.title-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: 38px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  user-select: none;
  -webkit-user-select: none;
}

.title-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.title-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.title-dot:hover {
  transform: scale(1.15);
}

.title-dot.red {
  background: #ff5f57;
}

.title-dot.yellow {
  background: #febc2e;
}

.title-dot.green {
  background: #28c840;
}

.title-bar-text {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
  letter-spacing: 0.03em;
}

.title-bar-text .title-icon {
  margin-right: 6px;
  color: var(--accent-secondary);
}

/* ============================================================
   TAB NAVIGATION (IDE TABS)
   ============================================================ */
.nav {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 36px;
  background: var(--tab-inactive-bg);
  border-bottom: 1px solid var(--chrome-border);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.nav-logo {
  display: none;
}

/* Hidden in IDE mode — title bar replaces it */

.nav-links {
  display: flex;
  align-items: stretch;
  height: 100%;
  flex: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  border-right: 1px solid var(--chrome-border);
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  background: var(--tab-inactive-bg);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-link:hover {
  color: var(--fg-muted);
  background: var(--bg);
}

.nav-link.active {
  color: var(--fg);
  background: var(--tab-active-bg);
}

.nav-link.active::before {
  background: var(--accent);
}

.nav-link .tab-icon {
  font-size: 0.7rem;
  opacity: 0.7;
}

.nav-link .tab-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link.active .tab-dot {
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-success);
  background: var(--tab-inactive-bg);
  border-left: 1px solid var(--chrome-border);
  margin-left: auto;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(195, 232, 141, 0.08);
  color: #fff;
}

.nav-cta i {
  font-size: 0.65rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-left: 1px solid var(--chrome-border);
  margin-left: auto;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg-dim);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-hamburger span:nth-child(1) {
  transform: translateY(-4px);
}

.nav-hamburger span:nth-child(3) {
  transform: translateY(4px);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(1.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-1.5px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px;
  flex-direction: column;
  border-bottom: 1px solid var(--chrome-border);
}

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

.nav-mobile .nav-link {
  display: flex;
  padding: 12px 16px;
  border-right: none;
  border-bottom: 1px solid var(--chrome-border);
  font-size: 0.82rem;
  color: var(--fg-muted);
  background: transparent;
}

.nav-mobile .nav-link:last-of-type {
  border-bottom: none;
}

.nav-mobile .nav-cta {
  margin-left: 0;
  margin-top: 8px;
  padding: 12px 16px;
  border-left: none;
  border-top: 1px solid var(--chrome-border);
  justify-content: center;
}

/* ============================================================
   DOT GRID BACKGROUND
   ============================================================ */
.dot-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--fg-faint) 0.5px, transparent 0.5px);
  background-size: 32px 32px;
  opacity: 0.25;
}

/* ============================================================
   SECTION STYLING
   ============================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--syn-comment);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section-label::before {
  content: '//';
  color: var(--syn-comment);
  font-weight: 500;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 48px;
  letter-spacing: -0.03em;
}

.section-headline span {
  color: var(--accent);
}

/* ─── Code Panel (Card) ─────────────────────────────────── */
.code-panel {
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.code-panel:hover {
  border-color: rgba(199, 146, 234, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
  transform: translateY(-3px);
}

.code-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
}

.panel-dots {
  display: flex;
  gap: 5px;
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.7;
}

.panel-dot.red {
  background: #ff5f57;
}

.panel-dot.yellow {
  background: #febc2e;
}

.panel-dot.green {
  background: #28c840;
}

.panel-filename {
  margin-left: 8px;
  color: var(--fg-muted);
}

.panel-filepath {
  margin-left: auto;
  color: var(--fg-faint);
  font-size: 0.62rem;
}

.code-panel-body {
  padding: 24px 28px;
}

/* ─── Glass Card (Legacy compat) ─────────────────────────── */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-md);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover {
  border-color: rgba(199, 146, 234, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

/* ─── Chip / Tag ─────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(137, 221, 255, 0.06);
  border: 1px solid rgba(137, 221, 255, 0.15);
  color: var(--accent-secondary);
  white-space: nowrap;
}

.chip.primary-chip {
  background: rgba(199, 146, 234, 0.08);
  border-color: rgba(199, 146, 234, 0.2);
  color: var(--accent);
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  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;
}

/* ============================================================
   HERO — CODE EDITOR STYLE
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(199, 146, 234, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(137, 221, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 5% 60%, rgba(195, 232, 141, 0.03) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* Orbs — more subtle */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(199, 146, 234, 0.06);
  top: 5%;
  right: 5%;
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(137, 221, 255, 0.05);
  bottom: 15%;
  left: 3%;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 180px;
  height: 180px;
  background: rgba(195, 232, 141, 0.04);
  top: 50%;
  right: 25%;
  animation-delay: -8s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(12px, -20px) scale(1.03);
  }

  66% {
    transform: translate(-10px, 14px) scale(0.97);
  }
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 80px;
}

/* ─── Hero Left: Code-style content ─────────────────────── */
.hero-content {
  position: relative;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--syn-comment);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-greeting::before {
  content: '//';
  color: var(--syn-comment);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 8px;
}

.hero-name .name-highlight {
  display: block;
  color: var(--accent);
  position: relative;
}

.hero-typewriter-wrap {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--syn-string);
  margin-bottom: 24px;
  min-height: 1.8em;
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-typewriter-wrap::before {
  content: '> ';
  color: var(--accent-secondary);
  margin-right: 6px;
}

#hero-cursor {
  color: var(--accent-success);
  animation: cursorBlink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-summary {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 2px solid var(--fg-faint);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Buttons — Terminal style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 16px var(--accent-glow);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(199, 146, 234, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--chrome-border);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(199, 146, 234, 0.05);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--fg-faint);
  background: transparent;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  background: rgba(137, 221, 255, 0.04);
}

/* Social links */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--fg-faint);
  color: var(--fg-dim);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.hero-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(199, 146, 234, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ─── Hero Right: Profile in Preview Pane ────────────────── */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-photo-ring {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--chrome-border);
  background: var(--bg-surface);
}

.hero-photo-ring::before {
  content: 'preview';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-faint);
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  z-index: 3;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-photo-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding-top: 22px;
}

.hero-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transition: filter 0.5s ease;
}

.hero-photo-ring:hover .hero-photo-inner img {
  filter: saturate(1) contrast(1);
}

.hero-photo-glow {
  position: absolute;
  inset: -40px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

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

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

.about-story {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.85;
}

.about-story p {
  margin-bottom: 16px;
}

.about-story strong {
  color: var(--fg);
  font-weight: 600;
}

.about-story .text-accent {
  color: var(--accent);
}

.about-story .text-secondary {
  color: var(--accent-secondary);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}

.stat-card {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Right: Skills */
.about-right {}

.skill-group {
  margin-bottom: 24px;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--syn-comment);
  margin-bottom: 10px;
}

.skill-group-title::before {
  content: '# ';
  color: var(--syn-comment);
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  transition: all 0.25s ease;
  cursor: default;
}

.skill-tag.primary-tag {
  background: rgba(199, 146, 234, 0.07);
  border: 1px solid rgba(199, 146, 234, 0.18);
  color: var(--accent);
}

.skill-tag.primary-tag:hover {
  background: rgba(199, 146, 234, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px var(--accent-glow);
}

.skill-tag.secondary-tag {
  background: rgba(137, 221, 255, 0.06);
  border: 1px solid rgba(137, 221, 255, 0.15);
  color: var(--accent-secondary);
}

.skill-tag.secondary-tag:hover {
  background: rgba(137, 221, 255, 0.12);
  transform: translateY(-1px);
}

.skill-tag i {
  font-size: 0.72rem;
  opacity: 0.75;
}

/* ============================================================
   EXPERIENCE — GIT LOG STYLE
   ============================================================ */
#experience {
  padding: var(--section-gap) 0;
  position: relative;
}

.timeline {
  position: relative;
  padding-left: 0;
  max-width: 880px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Hide original dot — replaced by git commit styling */
.timeline-dot {
  display: none;
}

.timeline-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
}

/* Git commit header */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--chrome-border);
  background: var(--chrome-bg);
}

.timeline-company {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}

.timeline-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 400;
}

.timeline-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(137, 221, 255, 0.06);
  border: 1px solid rgba(137, 221, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-secondary);
}

.timeline-badge.current-badge {
  background: rgba(195, 232, 141, 0.08);
  border-color: rgba(195, 232, 141, 0.2);
  color: var(--accent-success);
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 12px rgba(195, 232, 141, 0.15);
  }
}

/* Bullet Points */
.timeline-bullets,
.project-bullets {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 24px;
}

.timeline-bullet,
.project-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.timeline-bullet:hover,
.project-bullet:hover {
  background: rgba(199, 146, 234, 0.04);
}

.bullet-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  color: var(--accent-success);
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.timeline-bullet:hover .bullet-arrow,
.project-bullet:hover .bullet-arrow {
  opacity: 1;
  color: var(--accent);
}

.bullet-content {
  flex: 1;
}

.bullet-content strong {
  color: var(--fg);
  font-weight: 600;
}

/* Current job indicator */
.timeline-item.current .timeline-card {
  border-color: rgba(195, 232, 141, 0.2);
}

/* ============================================================
   PROJECTS
   ============================================================ */
#projects {
  padding: var(--section-gap) 0;
  position: relative;
}

.project-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
  overflow: hidden;
  margin-bottom: 56px;
  transition: all 0.4s ease;
}

.project-featured-card:hover {
  border-color: rgba(199, 146, 234, 0.3);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), 0 0 40px var(--accent-glow);
  transform: translateY(-4px);
}

.project-featured-visual {
  background:
    linear-gradient(135deg,
      rgba(199, 146, 234, 0.06) 0%,
      rgba(137, 221, 255, 0.04) 50%,
      rgba(195, 232, 141, 0.06) 100%),
    var(--bg-deep);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.project-featured-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 40%, rgba(199, 146, 234, 0.08), transparent);
}

.project-visual-icon {
  font-size: 5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(199, 146, 234, 0.3));
  animation: iconFloat 5s ease-in-out infinite;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.project-visual-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

.project-visual-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  z-index: 1;
}

.project-featured-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--syn-comment);
  margin-bottom: 8px;
}

.project-eyebrow::before {
  content: '// ';
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 5px;
  line-height: 1.2;
}

.project-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-secondary);
  margin-bottom: 16px;
  font-weight: 400;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-success);
  font-weight: 400;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-success);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(195, 232, 141, 0.15);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(195, 232, 141, 0.05);
  }
}

/* Internships */
.internships-section-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--fg-dim);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.internships-section-title::before {
  content: '//';
  color: var(--syn-comment);
}

.internships-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--chrome-border);
}

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

.intern-card {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.intern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.intern-company {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3px;
}

.intern-role {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 3px;
}

.intern-period {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-faint);
  margin-bottom: 10px;
}

.intern-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ============================================================
   SKILLS
   ============================================================ */
#skills {
  padding: var(--section-gap) 0;
  position: relative;
}

.skills-intro {
  max-width: 560px;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 48px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}

.skill-category-card {
  padding: 0;
  overflow: hidden;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
}

.skill-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.skill-cat-icon.blue {
  background: rgba(199, 146, 234, 0.1);
  color: var(--accent);
}

.skill-cat-icon.cyan {
  background: rgba(137, 221, 255, 0.1);
  color: var(--accent-secondary);
}

.skill-cat-icon.pink {
  background: rgba(255, 83, 112, 0.08);
  color: var(--accent-error);
}

.skill-cat-icon.gray {
  background: rgba(110, 106, 124, 0.15);
  color: var(--fg-dim);
}

.skill-cat-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.skill-cat-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-faint);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
}

.skill-item-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-item-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-item-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.skill-item-pct {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-faint);
}

.skill-bar-track {
  height: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Achievements */
.achievements-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.achievement-card {
  padding: 20px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
  transition: all 0.3s ease;
}

.achievement-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.achievement-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
  position: relative;
}

.achievement-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
  position: relative;
}

.achievement-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
  line-height: 1.4;
  position: relative;
}

/* ============================================================
   CONTACT — TERMINAL STYLE
   ============================================================ */
#contact {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

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

.contact-intro {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-intro strong {
  color: var(--fg);
}

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

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
  color: var(--fg-muted);
  transition: all 0.25s ease;
  font-family: var(--font-mono);
}

.contact-link-item:hover {
  border-color: var(--accent);
  color: var(--fg);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: rgba(199, 146, 234, 0.08);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-link-label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1px;
}

.contact-link-value {
  font-size: 0.82rem;
  color: var(--fg-muted);
  transition: color 0.25s;
}

.contact-link-item:hover .contact-link-value {
  color: var(--accent);
}

.contact-link-info {
  flex: 1;
}

/* Hire card */
.hire-card {
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.hire-card .code-panel-header-hire {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
}

.hire-card-body {
  padding: 28px 24px;
}

.hire-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(195, 232, 141, 0.08);
  border: 1px solid rgba(195, 232, 141, 0.2);
  color: var(--accent-success);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.hire-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  position: relative;
}

.hire-card-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}

.hire-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
  position: relative;
}

.hire-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.hire-feature i {
  color: var(--accent-success);
  font-size: 0.75rem;
}

.hire-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   COMMAND PALETTE
   ============================================================ */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}

.cmd-palette-overlay.open {
  display: flex;
}

.cmd-palette {
  width: 520px;
  max-width: 90vw;
  background: var(--bg-surface);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  animation: cmdSlideIn 0.15s ease;
}

@keyframes cmdSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--chrome-border);
  gap: 10px;
}

.cmd-input-wrap i {
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.cmd-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.cmd-input::placeholder {
  color: var(--fg-faint);
}

.cmd-shortcut {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--fg-faint);
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--chrome-border);
}

.cmd-results {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.cmd-result-item:hover,
.cmd-result-item.active {
  background: var(--bg-elevated);
  color: var(--fg);
}

.cmd-result-item i {
  width: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.cmd-result-item .cmd-section {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--fg-faint);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--chrome-bg);
  border-top: 1px solid var(--chrome-border);
  padding: 20px var(--gutter);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg-dim);
}

.footer-brand span {
  color: var(--accent);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-faint);
}

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

.footer-link {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

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

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 16px var(--accent-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(199, 146, 234, 0.45);
}

/* ============================================================
   NAV SCROLL STATES
   ============================================================ */
.nav.scrolled {
  /* Already fixed, just for consistency */
  background: var(--tab-inactive-bg);
}

/* Logo box compat — hidden in DevStation */
.logo-box,
.logo-text {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }

  .hero-greeting {
    justify-content: center;
  }

  .hero-summary {
    margin: 0 auto 32px;
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-photo-wrap {
    display: flex;
    justify-content: center;
    order: -1;
  }

  .hero-photo-ring {
    width: 220px;
    height: 220px;
  }

  .hero-typewriter-wrap {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .project-featured-card {
    grid-template-columns: 1fr;
  }

  .project-featured-visual {
    min-height: 200px;
  }

  .internships-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .achievements-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 72px;
    --nav-height: 74px;
  }

  .title-bar {
    height: 34px;
  }

  .nav {
    top: 34px;
    height: 32px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-photo-ring {
    width: 180px;
    height: 180px;
  }

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

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

  .achievements-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-header {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-bullets,
  .project-bullets {
    padding: 14px 18px;
  }

  .project-featured-info {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .cmd-palette {
    max-width: 95vw;
  }

  .title-bar-text {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .achievements-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hire-actions {
    flex-direction: column;
  }

  .hire-actions .btn-primary,
  .hire-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}