/* ==========================================================================
   V PREMNATH - ELITE BACKEND & SYSTEMS ENGINEER PORTFOLIO
   Design System: Obsidian Luxe & Cyber Quantum (Three.js Enhanced)
   ========================================================================== */

/* --- CSS Reset & Custom Properties --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Tokens - Obsidian Luxe */
  --bg-primary: hsl(224, 45%, 4%);        /* Deepest obsidian black #05070e */
  --bg-secondary: hsl(224, 38%, 7%);      /* Rich dark slate #0a0e1c */
  --bg-tertiary: hsl(224, 32%, 11%);      /* Card base #12182b */
  --bg-glass: hsla(224, 40%, 8%, 0.75);   /* Premium frosted glass */
  --bg-glass-card: hsla(224, 35%, 11%, 0.68);
  --bg-glass-elevated: hsla(224, 35%, 14%, 0.85);
  --bg-code: hsl(224, 50%, 5%);

  /* Text Hierarchy */
  --text-primary: hsl(210, 40%, 98%);     /* Crisp diamond white */
  --text-secondary: hsl(215, 20%, 75%);   /* Clean silver slate */
  --text-tertiary: hsl(215, 15%, 52%);    /* Muted label slate */
  --text-accent: hsl(158, 85%, 45%);      /* Emerald speed */

  /* Accents & Quantum Glows */
  --accent-cyan: hsl(190, 95%, 50%);      /* Electric Cyan #06d6a0 */
  --accent-emerald: hsl(158, 85%, 45%);   /* Low-latency Emerald #10b981 */
  --accent-violet: hsl(270, 90%, 65%);    /* Quantum Violet #a855f7 */
  --accent-amber: hsl(38, 95%, 52%);      /* High-contrast Gold #f59e0b */
  --accent-glow-cyan: hsla(190, 95%, 50%, 0.3);
  --accent-glow-emerald: hsla(158, 85%, 45%, 0.3);
  --accent-glow-violet: hsla(270, 90%, 65%, 0.3);

  /* Borders & Grid */
  --border-subtle: hsla(215, 25%, 70%, 0.12);
  --border-glass: hsla(215, 30%, 85%, 0.15);
  --border-focus: hsla(190, 95%, 50%, 0.5);
  --border-emerald: hsla(158, 85%, 45%, 0.45);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Fluid Typography with clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.85rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.38vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.3rem, 1.15rem + 0.8vw, 1.65rem);
  --text-2xl: clamp(1.75rem, 1.45rem + 1.5vw, 2.45rem);
  --text-3xl: clamp(2.2rem, 1.8rem + 2.5vw, 3.4rem);
  --text-hero: clamp(2.8rem, 2.1rem + 4.2vw, 5rem);

  /* Spacing Scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7.5rem;

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Elevation Shadows & Glows */
  --shadow-sm: 0 4px 14px hsla(0, 0%, 0%, 0.35);
  --shadow-md: 0 12px 35px hsla(0, 0%, 0%, 0.55);
  --shadow-lg: 0 24px 60px hsla(0, 0%, 0%, 0.75);
  --shadow-glow: 0 0 40px var(--accent-glow-emerald);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-spring);
  --transition-base: 0.35s var(--ease-spring);
  --transition-slow: 0.6s var(--ease-spring);
}

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

/* 3D Background Canvas Container */
#three-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Ambient Radial Glow Overlays */
.ambient-glow-top {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(ellipse at center, hsla(190, 95%, 50%, 0.12) 0%, hsla(270, 90%, 65%, 0.08) 50%, transparent 80%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.ambient-glow-bottom {
  position: fixed;
  bottom: -150px;
  right: -100px;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse at center, hsla(158, 85%, 45%, 0.1) 0%, transparent 70%);
  filter: blur(90px);
  z-index: 1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: hsl(224, 30%, 18%);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

::selection {
  background: var(--accent-emerald);
  color: var(--bg-primary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 45%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Layout & Sections --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  position: relative;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  z-index: 2;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.text-center {
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-xs);
  padding: 5px 14px;
  background: hsla(190, 95%, 50%, 0.09);
  border: 1px solid hsla(190, 95%, 50%, 0.25);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 680px;
}

.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- Glassmorphic Containers --- */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md), 0 0 30px hsla(190, 95%, 50%, 0.12);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, hsl(160, 90%, 36%) 100%);
  color: hsl(224, 45%, 4%);
  font-weight: 700;
  box-shadow: 0 4px 25px var(--accent-glow-emerald);
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(158, 92%, 52%) 0%, var(--accent-emerald) 100%);
  box-shadow: 0 8px 32px hsla(158, 85%, 45%, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: hsla(224, 35%, 15%, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: hsla(224, 35%, 22%, 0.85);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: hsla(190, 95%, 50%, 0.05);
  color: var(--accent-cyan);
  border: 1px solid hsla(190, 95%, 50%, 0.4);
}

.btn-outline-cyan:hover {
  background: hsla(190, 95%, 50%, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-glow-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: var(--text-xs);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: hsla(215, 20%, 30%, 0.28);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  line-height: 1.4;
}

.badge-cyan {
  background: hsla(190, 95%, 50%, 0.12);
  color: var(--accent-cyan);
  border-color: hsla(190, 95%, 50%, 0.35);
}

.badge-emerald {
  background: hsla(158, 85%, 45%, 0.12);
  color: var(--accent-emerald);
  border-color: hsla(158, 85%, 45%, 0.35);
}

.badge-violet {
  background: hsla(270, 90%, 65%, 0.12);
  color: var(--accent-violet);
  border-color: hsla(270, 90%, 65%, 0.35);
}

.badge-amber {
  background: hsla(38, 95%, 52%, 0.12);
  color: var(--accent-amber);
  border-color: hsla(38, 95%, 52%, 0.35);
}

/* --- Status Pill --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: hsla(158, 85%, 45%, 0.1);
  border: 1px solid hsla(158, 85%, 45%, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-emerald);
  font-weight: 600;
  margin-bottom: var(--space-md);
  box-shadow: 0 0 20px hsla(158, 85%, 45%, 0.15);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.6;
  animation: pulseGlow 2s infinite ease-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 100;
  background: hsla(224, 45%, 4%, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.brand-icon {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 800;
  background: hsla(158, 85%, 45%, 0.15);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid hsla(158, 85%, 45%, 0.3);
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 10px var(--accent-glow-cyan));
  display: inline-block;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO SECTION (WITH PREMNATH'S PHOTO & FLOATING METRIC CARDS)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(76px + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-title {
  font-size: var(--text-hero);
  line-height: 1.08;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* --- Hero Photo & 3D Interactive Card --- */
.hero-profile-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.profile-avatar-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald), var(--accent-violet));
  box-shadow: 0 20px 60px hsla(0, 0%, 0%, 0.8), 0 0 50px hsla(190, 95%, 50%, 0.18);
  overflow: hidden;
}

.profile-avatar-frame::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, var(--accent-cyan), transparent 30%);
  animation: rotateFrame 6s linear infinite;
  z-index: 1;
}

@keyframes rotateFrame {
  100% { transform: rotate(360deg); }
}

.profile-image-inner {
  position: relative;
  z-index: 2;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 4 / 5;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-slow);
}

.profile-avatar-frame:hover .profile-photo {
  transform: scale(1.04);
}

.profile-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  padding: 10px 14px;
  background: hsla(224, 45%, 6%, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-role-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.profile-role-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

/* Floating Metric Chips */
.floating-chip {
  position: absolute;
  z-index: 10;
  padding: 10px 16px;
  background: hsla(224, 45%, 10%, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px hsla(0, 0%, 0%, 0.6), 0 0 20px hsla(190, 95%, 50%, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatChip 4s ease-in-out infinite;
}

.chip-top-right {
  top: -20px;
  right: -25px;
  border-color: hsla(158, 85%, 45%, 0.4);
}

.chip-bottom-left {
  bottom: 40px;
  left: -35px;
  animation-delay: 2s;
  border-color: hsla(190, 95%, 50%, 0.4);
}

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

.chip-icon {
  font-size: 1.3rem;
}

.chip-val {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.chip-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

/* --- Hero Metrics Ribbon --- */
.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.metric-card {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--accent-emerald);
  background: hsla(224, 35%, 10%, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px hsla(0, 0%, 0%, 0.4);
  border-color: var(--accent-emerald);
}

.metric-card.accent-cyan { border-left-color: var(--accent-cyan); }
.metric-card.accent-violet { border-left-color: var(--accent-violet); }
.metric-card.accent-amber { border-left-color: var(--accent-amber); }

.metric-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 3px;
}

.metric-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   INTERACTIVE API PLAYGROUND & TERMINAL SIMULATOR
   ========================================================================== */
.playground-section {
  position: relative;
}

.terminal-container {
  background: var(--bg-code);
  border: 1px solid hsla(190, 95%, 50%, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px hsla(190, 95%, 50%, 0.08);
}

.terminal-header {
  background: hsl(224, 45%, 8%);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-tabs {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding-bottom: 2px;
}

.terminal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.terminal-tab-btn:hover {
  background: hsla(224, 35%, 15%, 0.7);
  color: var(--text-primary);
}

.terminal-tab-btn.active {
  background: hsla(190, 95%, 50%, 0.15);
  color: var(--accent-cyan);
  border-color: hsla(190, 95%, 50%, 0.35);
}

.method-tag {
  font-weight: 700;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
}
.method-get { background: hsla(158, 85%, 45%, 0.2); color: var(--accent-emerald); }
.method-post { background: hsla(190, 95%, 50%, 0.2); color: var(--accent-cyan); }

.terminal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.terminal-request, .terminal-response {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.65;
}

.terminal-request {
  background: hsla(224, 50%, 5%, 0.85);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminal-panel-title {
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.request-meta-bar {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
}

.request-endpoint {
  color: var(--text-primary);
  font-weight: 600;
}

.code-block {
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}

.run-query-btn {
  margin-top: var(--space-md);
  width: 100%;
}

.terminal-response {
  background: hsl(224, 55%, 4%);
  position: relative;
  display: flex;
  flex-direction: column;
}

.response-status-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.status-badge-200 {
  background: hsla(158, 85%, 45%, 0.2);
  color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.latency-badge {
  color: var(--accent-cyan);
}

.terminal-footer-hint {
  padding: var(--space-xs) var(--space-md);
  background: hsla(224, 40%, 7%, 0.95);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   PROJECTS SHOWCASE
   ========================================================================== */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  background: hsla(224, 35%, 12%, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.filter-btn.active {
  background: hsla(190, 95%, 50%, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 20px var(--accent-glow-cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-violet));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.project-top {
  margin-bottom: var(--space-md);
}

.project-category-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  margin-bottom: var(--space-xs);
  display: inline-block;
  letter-spacing: 0.08em;
}

.project-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.project-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.project-highlights-list {
  list-style: none;
  margin-bottom: var(--space-md);
}

.project-highlights-list li {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: 7px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-highlights-list li::before {
  content: '⚡';
  font-size: 11px;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.project-metrics-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
}

.proj-metric-item {
  display: flex;
  flex-direction: column;
}

.proj-metric-item .val {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-emerald);
}

.proj-metric-item .lbl {
  font-size: 11px;
  color: var(--text-tertiary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xs);
}

.project-link-action {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-link-action:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-emerald) 0%, var(--accent-cyan) 50%, var(--border-subtle) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-xl) + 2px);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-emerald);
  box-shadow: 0 0 14px var(--accent-glow-emerald);
}

.experience-card {
  padding: var(--space-xl);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.role-title {
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.company-name {
  font-size: var(--text-md);
  color: var(--accent-cyan);
  font-weight: 600;
}

.experience-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: hsla(224, 35%, 15%, 0.8);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.experience-location {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
  display: block;
}

.experience-bullets {
  list-style: none;
  margin-bottom: var(--space-md);
}

.experience-bullets li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.65;
}

.experience-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.shipped-clients-row {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: hsla(224, 45%, 6%, 0.85);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.shipped-clients-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  display: block;
}

/* ==========================================================================
   TECHNICAL SKILLS MATRIX
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.skill-category-card {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.category-title-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.category-icon {
  font-size: 1.35rem;
}

.category-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 6px 13px;
  background: hsla(224, 40%, 14%, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  background: hsla(190, 95%, 50%, 0.18);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.skill-pill.featured {
  border-color: hsla(158, 85%, 45%, 0.4);
  color: var(--text-primary);
  background: hsla(158, 85%, 45%, 0.1);
}

/* ==========================================================================
   EDUCATION & CERTIFICATIONS
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.edu-card, .cert-card {
  padding: var(--space-xl);
}

.edu-title {
  font-size: var(--text-lg);
  margin-bottom: 4px;
}

.edu-school {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.edu-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.gpa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: hsla(38, 95%, 52%, 0.12);
  border: 1px solid hsla(38, 95%, 52%, 0.35);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.cert-list {
  list-style: none;
}

.cert-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.cert-item:last-child {
  border-bottom: none;
}

.cert-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  background: linear-gradient(180deg, hsla(224, 40%, 10%, 0.85) 0%, hsla(224, 45%, 6%, 0.98) 100%);
  border: 1px solid hsla(160, 84%, 42%, 0.3);
  box-shadow: 0 0 70px hsla(160, 84%, 42%, 0.09);
  border-radius: var(--radius-lg);
}

.contact-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.contact-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl) auto;
}

.contact-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.social-links-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.social-link-item:hover {
  color: var(--accent-cyan);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: hsl(224, 45%, 10%);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg), 0 0 25px var(--accent-glow-emerald);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-xl) 0;
  background: var(--bg-primary);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-tech-stack {
  font-family: var(--font-mono);
}

/* ==========================================================================
   SCROLL REVEAL & ANIMATIONS
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .profile-card-wrapper {
    margin-left: auto;
    margin-right: auto;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .terminal-body {
    grid-template-columns: 1fr;
  }
  .terminal-request {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: hsla(224, 47%, 6%, 0.98);
    backdrop-filter: blur(24px);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    gap: var(--space-md);
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics-bar {
    grid-template-columns: 1fr;
  }
  .floating-chip {
    display: none; /* Hide floating chips on narrow mobile for clean spacing */
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
