/* ==========================================================================
   SUDHIR KUMAR | SOFTWARE ENGINEER PORTFOLIO
   Design System: Obsidian Glass & Cyber Luminescence
   ========================================================================== */

/* -------------------- 1. CSS VARIABLES & THEMES -------------------- */
:root {
  /* Default Theme: Cyber Violet */
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-bright: #c084fc;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --accent-soft: rgba(139, 92, 246, 0.12);
  --accent-border: rgba(139, 92, 246, 0.28);
  --accent-hover: rgba(139, 92, 246, 0.2);

  /* Secondary Accents */
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --amber: #f59e0b;

  /* Surfaces & Backgrounds */
  --bg-dark: #07080e;
  --bg-card: rgba(14, 16, 28, 0.75);
  --bg-card-hover: rgba(22, 25, 42, 0.9);
  --bg-surface: #0f111e;
  --bg-elevated: #161828;

  /* Text Colors */
  --text-main: #f1f3f9;
  --text-sub: #9ca3af;
  --text-muted: #6b7280;
  --text-bright: #ffffff;

  /* Glass Borders */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-strong: rgba(255, 255, 255, 0.16);

  /* Dimensions & Spacing */
  --header-h: 74px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Fonts */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

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

/* Palette Overrides: Electric Cyan */
body[data-theme="cyan"] {
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-bright: #67e8f9;
  --accent-glow: rgba(6, 182, 212, 0.35);
  --accent-soft: rgba(6, 182, 212, 0.12);
  --accent-border: rgba(6, 182, 212, 0.28);
  --accent-hover: rgba(6, 182, 212, 0.2);
}

/* Palette Overrides: Matrix Emerald */
body[data-theme="emerald"] {
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-bright: #6ee7b7;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --accent-soft: rgba(16, 185, 129, 0.12);
  --accent-border: rgba(16, 185, 129, 0.28);
  --accent-hover: rgba(16, 185, 129, 0.2);
}

/* -------------------- 2. RESET & BASE -------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Selection Highlight */
::selection {
  background: var(--accent);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--emerald));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* -------------------- 3. CUSTOM MOUSE CURSOR -------------------- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-bright);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-glow {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent-light);
  background: var(--accent-glow);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

@media (pointer: coarse), (max-width: 768px) {
  .cursor-dot, .cursor-glow {
    display: none !important;
  }
}

/* -------------------- 4. TOAST NOTIFICATIONS -------------------- */
.toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(17, 20, 36, 0.95);
  color: var(--text-bright);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* -------------------- 5. HEADER & NAVIGATION -------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 500;
  transition: background 0.3s, border-bottom 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(7, 8, 14, 0.88);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
}

.nav-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-bright);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  letter-spacing: -0.02em;
}

.brand-code {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.brand-name {
  color: var(--text-bright);
}

.brand-accent {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-bright);
}

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

.nav-link-btn {
  background: var(--accent-soft);
  color: var(--accent-light) !important;
  border: 1px solid var(--accent-border);
  padding: 0.5rem 1.15rem !important;
  border-radius: var(--radius-sm);
  font-size: 0.84rem !important;
  transition: all var(--transition-fast) !important;
}

.nav-link-btn::after {
  display: none !important;
}

.nav-link-btn:hover {
  background: var(--accent);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* Nav Action Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  color: var(--text-bright);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.theme-dropdown {
  position: relative;
}

.theme-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
  right: 6px;
}

.theme-palette {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 17, 30, 0.95);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 130px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-palette.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-opt:hover, .theme-opt.active {
  background: var(--accent-soft);
  color: var(--text-bright);
}

.opt-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.opt-color.violet { background: #8b5cf6; }
.opt-color.cyan { background: #06b6d4; }
.opt-color.emerald { background: #10b981; }

.hidden {
  display: none !important;
}

/* Hamburger for Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text-bright);
  transition: all 0.3s;
  border-radius: 2px;
}

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

/* -------------------- 6. HERO SECTION -------------------- */
.hero-section {
  min-height: 100vh;
  padding: calc(var(--header-h) + 3.5rem) 0 4rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

/* Hero Badge */
.badge-wrapper {
  margin-bottom: 1.3rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--accent-border);
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border-glass-strong);
  padding-left: 0.5rem;
}

/* Hero Headings */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.greeting {
  display: block;
  font-size: 0.45em;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}

.name-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-light) 75%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dynamic Typewriter Box */
.typewriter-box {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.role-prefix {
  color: var(--cyan);
  margin-right: 0.4rem;
}

.typewriter-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent-light);
  margin-left: 2px;
}

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

/* Pitch Summary */
.hero-bio {
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-bio strong {
  color: var(--text-bright);
  font-weight: 600;
}

/* Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.82rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7033ea);
  color: #ffffff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-bright);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
}

.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--text-bright);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Social Icon Bar */
.social-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.social-divider {
  width: 1px;
  height: 24px;
  background: var(--border-glass-strong);
  margin: 0 0.25rem;
}

.social-note {
  font-size: 0.78rem;
  color: var(--emerald);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Stats Strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-number.highlight-accent {
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.35;
}

/* -------------------- 7. 3D AVATAR & SHOWCASE -------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-card-3d {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: var(--radius-xl);
  perspective: 1000px;
}

.card-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.avatar-ring-container {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto 1.4rem;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.avatar-ring-container:hover {
  transform: scale(1.03);
}

.avatar-ring-container:hover .avatar-ring-spin {
  animation-duration: 4s;
  filter: blur(4px);
}

.avatar-click-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 8, 14, 0.88);
  border: 1px solid var(--accent-border);
  backdrop-filter: blur(8px);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-light);
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.2s ease;
}

.avatar-ring-container:hover .avatar-click-hint {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.avatar-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-dark);
  background: var(--bg-surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.profile-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 50%;
}

/* Floating Tech Badges */
.floating-badge {
  position: absolute;
  background: rgba(17, 20, 36, 0.92);
  border: 1px solid var(--accent-border);
  backdrop-filter: blur(16px);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
  z-index: 3;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.floating-badge:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--accent-light);
}

.badge-top-left {
  top: 15px;
  left: -30px;
  animation: float-1 6s ease-in-out infinite;
}

.badge-top-right {
  top: 35px;
  right: -25px;
  animation: float-2 7s 1s ease-in-out infinite;
}

.badge-bottom-left {
  top: 140px;
  bottom: auto;
  left: -35px;
  animation: float-2 6.5s 0.5s ease-in-out infinite;
}

.badge-bottom-right {
  top: 160px;
  bottom: auto;
  right: -25px;
  animation: float-1 7.5s 1.5s ease-in-out infinite;
}

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

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

.badge-icon {
  font-size: 1.15rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Avatar View Toggle (Code vs Recruiter Snapshot) */
.avatar-view-toggle {
  display: flex;
  background: rgba(14, 17, 30, 0.85);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}

.view-toggle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
  color: var(--text-bright);
}

.view-toggle-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Mini Live Code Snippet Box */
.live-code-snippet {
  background: rgba(10, 12, 22, 0.95);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  min-height: 190px;
}

.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-glass);
}

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

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.snippet-tabs {
  display: flex;
  gap: 4px;
}

.code-tab {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-tab:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.code-tab.active {
  color: var(--accent-bright);
  background: var(--accent-soft);
  font-weight: 700;
}

.code-panel {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
  line-height: 1.5;
  overflow-x: auto;
}

.code-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.code-kw { color: #c084fc; font-weight: 600; }
.code-cls { color: #67e8f9; }
.code-str { color: #86efac; }

/* Recruiter Quick Snapshot Card */
.recruiter-quick-card {
  background: rgba(12, 15, 28, 0.96);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-soft);
  animation: fadeIn 0.25s ease;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}

.recruiter-quick-card.hidden {
  display: none !important;
}

.rq-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.rq-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.02em;
}

.rq-loc {
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 600;
}

.rq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.rq-item {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-sub);
}

.rq-k {
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 0.25rem;
}

.rq-v {
  color: var(--text-bright);
}

.rq-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* -------------------- 8. TERMINAL DRAWER -------------------- */
.terminal-drawer {
  padding: 0 0 3rem;
  display: none;
  animation: slide-down 0.35s ease;
}

.terminal-drawer.active {
  display: block;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.terminal-window {
  background: rgba(9, 11, 20, 0.96);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-glow);
  backdrop-filter: blur(20px);
}

.terminal-bar {
  background: rgba(18, 21, 38, 0.95);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  cursor: pointer;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-hints {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-sub);
  max-height: 320px;
  overflow-y: auto;
  line-height: 1.6;
}

.term-line {
  margin-bottom: 0.4rem;
  word-break: break-word;
}

.term-line.banner {
  color: var(--accent-light);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.term-accent {
  color: var(--cyan);
  font-weight: 700;
}

.term-success {
  color: var(--emerald);
}

.term-input-cmd {
  color: #f1f5f9;
  font-weight: 700;
}

.terminal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(14, 17, 30, 0.6);
}

.chip-cmd {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-strong);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-cmd:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.4rem;
  background: rgba(12, 14, 25, 0.9);
  border-top: 1px solid var(--border-glass);
}

.term-prompt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--emerald);
  font-weight: 700;
  margin-right: 0.75rem;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* -------------------- 9. SECTIONS & GENERAL GLASS -------------------- */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, rgba(7, 8, 14, 0.4) 0%, rgba(11, 13, 24, 0.75) 50%, rgba(7, 8, 14, 0.4) 100%);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.eyebrow-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.6;
}

/* Glass Card Common */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px var(--accent-soft);
}

/* -------------------- 10. ABOUT GRID -------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.about-story {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-heading {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1.1rem;
}

.about-story p {
  color: var(--text-sub);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.about-story p strong {
  color: var(--text-bright);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-glass);
}

.story-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.pillar-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------------------- 11. SKILLS MATRIX -------------------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.8rem;
}

.filter-tab, .proj-filter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover, .proj-filter:hover {
  background: var(--accent-soft);
  color: var(--text-bright);
  border-color: var(--accent-border);
}

.filter-tab.active, .proj-filter.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.skill-card:hover {
  transform: translateY(-3px);
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.skill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
}

.skill-info {
  display: flex;
  flex-direction: column;
}

.skill-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.skill-level {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.skill-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------- 12. ARCHITECTURE VISUALIZER -------------------- */
.arch-container {
  padding: 2.5rem;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.arch-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  text-align: center;
  min-width: 175px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.arch-node:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.arch-node.active {
  background: rgba(139, 92, 246, 0.16);
  border-color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
}

.node-icon {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.node-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-bright);
}

.node-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.node-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
}

.arch-node.active .node-pulse {
  opacity: 1;
  box-shadow: 0 0 10px var(--accent);
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  position: relative;
}

.arrow-dot {
  width: 24px;
  height: 2px;
  background: var(--accent-border);
  position: relative;
}

.arrow-dot::after {
  content: '>';
  position: absolute;
  right: -4px;
  top: -8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.connector-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  white-space: nowrap;
}

.arch-details-card {
  background: rgba(10, 12, 22, 0.85);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.details-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.details-badge {
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.details-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}

.details-desc {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.details-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spec-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* -------------------- 13. PROJECTS SECTION -------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.06em;
}

/* Clickable Live Link Badge in Card Header */
.project-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.project-live-badge:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: #10b981;
  color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.live-pulse-dot {
  width: 6.5px;
  height: 6.5px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-glow 2s infinite ease-in-out;
}

.project-live-badge.code-badge {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--accent-light);
}

.project-live-badge.code-badge:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Project Titles - Compact & Refined */
.project-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.project-tagline {
  font-size: 0.83rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.highlight-tag {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: var(--accent-border);
}

/* Collapsible Points Section */
.project-bullet-points {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-card.expanded .project-bullet-points {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(8, 10, 18, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.p-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.81rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.b-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.p-bullet strong {
  color: var(--text-bright);
}

/* Project Footer & Controls */
.project-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-toggle-points {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.32rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-toggle-points:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-light);
}

.toggle-chevron {
  transition: transform 0.3s ease;
}

.project-card.expanded .toggle-chevron {
  transform: rotate(180deg);
}

.project-card.expanded .btn-toggle-points {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border-color: var(--accent);
}

.project-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* -------------------- 14. TIMELINE (EXPERIENCE) -------------------- */
.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-track {
  position: absolute;
  top: 35px;
  bottom: 35px;
  left: 21px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--cyan) 50%, var(--accent-border) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 68px;
  margin-bottom: 2.2rem;
}

.timeline-node {
  position: absolute;
  top: 18px;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 18, 36, 0.96);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
  z-index: 2;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-node {
  transform: scale(1.1);
  border-color: var(--accent-light);
  box-shadow: 0 0 24px var(--accent-glow);
}

.node-emoji {
  font-size: 1.25rem;
}

.timeline-card {
  padding: 1.7rem 1.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass-strong);
  background: rgba(14, 17, 32, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-light);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px var(--accent-soft);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.role-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.role-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}

.verified-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}

.company-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.company-name {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.95rem;
}

.company-loc {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.duration-badge {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-bright);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.exp-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.exp-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
}

.timeline-summary {
  color: var(--text-sub);
  font-size: 0.91rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.55;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 700;
}

.timeline-bullets li strong {
  color: var(--text-bright);
}

.timeline-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.t-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.t-pill:hover {
  background: var(--accent-soft);
  color: var(--text-bright);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

/* -------------------- 15. EDUCATION & CERTIFICATIONS -------------------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.degree-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.degree-top {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.edu-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.degree-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
}

.degree-spec {
  color: var(--accent-light);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.degree-college {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.edu-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.edu-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

.edu-pill.highlight {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-bright);
  font-weight: 700;
}

.cw-title {
  font-size: 0.85rem;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cw-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Certifications Box */
.cert-card-wrap {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1.4rem;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.cert-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.cert-item:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.cert-ico {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-info {
  flex: 1;
}

.cert-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-bright);
}

.cert-issuer {
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 600;
}

.cert-details {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cert-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.ats-box {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-top: auto;
}

.ats-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.ats-text {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.ats-text strong {
  color: var(--text-bright);
}

/* -------------------- 16. CONTACT SECTION -------------------- */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.contact-left-col {
  padding: 3rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.05));
  border-right: 1px solid var(--border-glass);
}

.contact-col-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
}

.contact-col-desc {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  transition: all var(--transition-fast);
}

.channel-card:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.ch-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ch-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ch-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.ch-val {
  font-size: 0.88rem;
  color: var(--text-bright);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.ch-val:hover {
  color: var(--accent-bright);
}

.ch-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.ch-copy:hover {
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.08);
}

/* Form Right Column */
.contact-right-col {
  padding: 3rem;
}

.c-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.required {
  color: #ef4444;
}

.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 16px var(--accent-glow);
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-bright);
}

.form-alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
}

.form-alert.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* -------------------- 17. FOOTER -------------------- */
.footer {
  padding: 4.5rem 0 3rem;
  border-top: 1px solid var(--border-glass);
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-left {
  max-width: 480px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.copy-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.keyboard-hints {
  display: flex;
  gap: 0.8rem;
}

.kbd-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.kbd-chip strong {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-strong);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-bright);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--accent-glow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

/* -------------------- 18. MODALS (RESUME & ARCHITECTURE) -------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.85);
  backdrop-filter: blur(20px);
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-soft);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.resume-card {
  max-width: 820px;
}

.modal-header {
  padding: 1.5rem 2rem;
  background: rgba(22, 25, 42, 0.95);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
}

.modal-sub {
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 600;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.7;
}

.modal-body h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin: 1.2rem 0 0.5rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body ul {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.modal-body ul li {
  margin-bottom: 0.45rem;
}

.modal-diagram-box {
  background: rgba(8, 10, 18, 0.95);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan);
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.5;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.modal-footer {
  padding: 1.2rem 2rem;
  background: rgba(18, 20, 34, 0.95);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

/* Resume Specific Styling */
.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-footer {
  padding: 1.2rem 2rem;
  background: rgba(22, 25, 42, 0.95);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-footer-left {
  display: flex;
  align-items: center;
}

.page-count-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
}

.modal-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.resume-card {
  max-width: 860px;
}

.resume-sheet {
  background: rgba(11, 14, 25, 0.6);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
}

.resume-preview-header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.r-profile .r-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.r-profile .r-contact {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
}

.r-profile .r-contact a {
  color: var(--text-sub);
  text-decoration: none;
}

.r-profile .r-contact a:hover {
  color: var(--accent-light);
}

.r-profile .r-links {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.r-profile .r-links a {
  color: var(--cyan);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.r-profile .r-links a:hover {
  color: var(--accent-light);
}

.resume-section-block {
  margin-bottom: 1.2rem;
}

.resume-section-block:last-child {
  margin-bottom: 0;
}

.r-section-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-glass-strong);
  padding-bottom: 0.25rem;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.resume-section-block p {
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 0.3rem;
}

.resume-section-block strong {
  color: var(--text-bright);
}

.r-skills-list {
  font-size: 0.85rem;
  line-height: 1.55;
}

.r-job {
  margin-bottom: 0.85rem;
}

.r-job:last-child {
  margin-bottom: 0;
}

.r-job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.r-job-head strong {
  color: var(--text-bright);
  font-size: 0.9rem;
}

.r-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.r-tech-stack {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.r-job ul {
  padding-left: 1.2rem;
  margin-bottom: 0.2rem;
}

.r-job ul li {
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--text-sub);
  margin-bottom: 0.25rem;
}

.r-edu-cert-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-sub);
}

.r-edu strong {
  color: var(--text-bright);
}

/* ========================================================
   SINGLE-PAGE ATS PRINT STYLESHEET
   Guarantees 100% fit on a single A4 / Letter real resume page
   ======================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm 6mm 10mm;
  }

  *, *::before, *::after {
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    overflow: visible !important;
  }

  /* Hide everything except resume modal */
  body > *:not(#resume-modal) {
    display: none !important;
  }

  header, main, footer, .toast, .back-to-top, .terminal-drawer,
  .modal-overlay:not(#resume-modal), .theme-selector-panel {
    display: none !important;
  }

  #resume-modal {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999999 !important;
  }

  #resume-modal .modal-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  #resume-modal .modal-header,
  #resume-modal .modal-footer,
  #resume-modal .modal-close-btn,
  #resume-modal .modal-header-actions {
    display: none !important;
  }

  #resume-modal .modal-body,
  #resume-modal .resume-body {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    color: #111111 !important;
    background: #ffffff !important;
  }

  .resume-sheet {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Header */
  .resume-preview-header {
    text-align: center !important;
    margin: 0 0 4pt 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  .r-name {
    font-size: 14pt !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #000000 !important;
    margin: 0 0 1.5pt 0 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
  }

  .r-contact {
    font-size: 7.8pt !important;
    line-height: 1.2 !important;
    color: #222222 !important;
    margin: 0 0 1.5pt 0 !important;
  }

  .r-contact a {
    color: #222222 !important;
    text-decoration: none !important;
  }

  .r-links {
    font-size: 7.8pt !important;
    line-height: 1.2 !important;
    color: #222222 !important;
    margin: 0 0 3pt 0 !important;
  }

  .r-links a {
    color: #0b57d0 !important;
    text-decoration: underline !important;
  }

  /* Section Blocks */
  .resume-section-block {
    margin-bottom: 3.5pt !important;
    padding: 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .r-section-title {
    font-size: 8.5pt !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    color: #000000 !important;
    border-bottom: 1.2px solid #000000 !important;
    padding-bottom: 1pt !important;
    margin: 0 0 2pt 0 !important;
    line-height: 1.1 !important;
  }

  .resume-section-block p,
  .r-skills-list {
    font-size: 7.8pt !important;
    line-height: 1.22 !important;
    color: #222222 !important;
    margin: 0 !important;
  }

  .resume-section-block strong {
    color: #000000 !important;
  }

  /* Jobs & Experience */
  .r-job {
    margin-bottom: 2.8pt !important;
    padding: 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .r-job-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    margin-bottom: 0.8pt !important;
    font-size: 7.9pt !important;
  }

  .r-job-head strong {
    font-size: 8pt !important;
    font-weight: 700 !important;
    color: #000000 !important;
  }

  .r-date {
    font-size: 7.6pt !important;
    font-weight: 500 !important;
    color: #333333 !important;
    white-space: nowrap !important;
  }

  .r-tech-stack {
    font-size: 7.5pt !important;
    font-style: italic !important;
    color: #444444 !important;
    margin-bottom: 1pt !important;
    line-height: 1.15 !important;
  }

  .r-job ul {
    margin: 0 !important;
    padding-left: 11pt !important;
  }

  .r-job ul li {
    font-size: 7.7pt !important;
    line-height: 1.2 !important;
    color: #222222 !important;
    margin-bottom: 0.8pt !important;
  }

  /* Education & Certs */
  .r-edu-cert-row {
    font-size: 7.8pt !important;
    line-height: 1.22 !important;
    color: #222222 !important;
  }

  .r-edu {
    margin-bottom: 2pt !important;
  }

  .r-certs {
    font-size: 7.8pt !important;
    line-height: 1.22 !important;
  }
}

/* -------------------- 19. RESPONSIVE DESIGN (MEDIA QUERIES) -------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-bio {
    margin: 0 auto 2rem;
  }

  .hero-actions, .social-bar {
    justify-content: center;
  }

  .hero-stats {
    max-width: 600px;
    margin: 0 auto;
  }

  .about-grid, .edu-grid, .contact-box {
    grid-template-columns: 1fr;
  }

  .contact-left-col {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 2.2rem;
  }

  .contact-right-col {
    padding: 2.2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 8, 14, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.15rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

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

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

  .floating-badge {
    display: none;
  }

  .avatar-ring-container {
    width: 200px;
    height: 200px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .contact-left-col, .contact-right-col, .about-story, .timeline-card {
    padding: 1.6rem;
  }

  .timeline-track {
    left: 17px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-node {
    left: 0;
    width: 36px;
    height: 36px;
    top: 18px;
  }

  .node-emoji {
    font-size: 1.05rem;
  }
}
