/* ==========================================================================
   ANANTA KISHORE SWAIN - PORTFOLIO DESIGN SYSTEM
   FUSION: GLASSMORPHISM × NEUMORPHISM (NEUMORPHIC GLASS)
   ========================================================================== */

:root {
  /* Color Palette - Cyber Dark (Default) */
  --bg-primary: #080c14;
  --bg-secondary: #0d1322;
  --bg-tertiary: #131c31;
  --bg-surface: #101726;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(16, 23, 38, 0.65);
  --glass-bg-hover: rgba(22, 32, 54, 0.78);
  --glass-bg-active: rgba(26, 38, 64, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(6, 182, 212, 0.35);
  --glass-blur: blur(16px);
  --glass-highlight: rgba(255, 255, 255, 0.06);

  /* Neumorphism Tokens */
  --neu-shadow-dark: 12px 12px 30px rgba(0, 0, 0, 0.65);
  --neu-shadow-light: -8px -8px 24px rgba(255, 255, 255, 0.02);
  --neu-shadow-raised: 12px 12px 30px rgba(0, 0, 0, 0.65), -8px -8px 24px rgba(255, 255, 255, 0.02), inset 1px 1px 1px var(--glass-highlight);
  --neu-shadow-hover: 16px 16px 36px rgba(0, 0, 0, 0.75), -10px -10px 28px rgba(6, 182, 212, 0.05), inset 1px 1px 2px rgba(255, 255, 255, 0.12);
  --neu-shadow-inset: inset 4px 4px 10px rgba(0, 0, 0, 0.7), inset -3px -3px 8px rgba(255, 255, 255, 0.025);
  --neu-shadow-btn: 6px 6px 16px rgba(0, 0, 0, 0.5), -4px -4px 12px rgba(255, 255, 255, 0.025), inset 1px 1px 1px rgba(255, 255, 255, 0.08);
  --neu-shadow-btn-pressed: inset 3px 3px 8px rgba(0, 0, 0, 0.7), inset -2px -2px 6px rgba(255, 255, 255, 0.03);

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.35);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-accent: #38bdf8;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Light Theme - Pearlescent Quartz Neumorphic Glass */
[data-theme="light"] {
  --bg-primary: #eaf0f8;
  --bg-secondary: #dfe7f2;
  --bg-tertiary: #d5e0ee;
  --bg-surface: #f1f6fc;

  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-bg-active: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-hover: rgba(2, 132, 199, 0.4);
  --glass-highlight: rgba(255, 255, 255, 0.9);

  --neu-shadow-dark: 10px 10px 24px rgba(166, 180, 202, 0.65);
  --neu-shadow-light: -10px -10px 24px rgba(255, 255, 255, 0.9);
  --neu-shadow-raised: 10px 10px 24px rgba(166, 180, 202, 0.65), -10px -10px 24px rgba(255, 255, 255, 0.9), inset 1px 1px 2px rgba(255, 255, 255, 0.8);
  --neu-shadow-hover: 14px 14px 30px rgba(166, 180, 202, 0.75), -12px -12px 28px rgba(255, 255, 255, 1), inset 1px 1px 2px rgba(255, 255, 255, 0.9);
  --neu-shadow-inset: inset 4px 4px 8px rgba(166, 180, 202, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.9);
  --neu-shadow-btn: 6px 6px 14px rgba(166, 180, 202, 0.6), -6px -6px 14px rgba(255, 255, 255, 0.9), inset 1px 1px 1px rgba(255, 255, 255, 0.8);
  --neu-shadow-btn-pressed: inset 3px 3px 6px rgba(166, 180, 202, 0.7), inset -3px -3px 6px rgba(255, 255, 255, 0.95);

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.25);
  --accent-blue: #2563eb;
  --accent-blue-glow: rgba(37, 99, 235, 0.25);
  --accent-purple: #7c3aed;
  --accent-purple-glow: rgba(124, 58, 237, 0.25);
  --accent-emerald: #059669;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-accent: #0284c7;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

::selection {
  background: var(--accent-cyan);
  color: #000000;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ==========================================================================
   AMBIENT BACKGROUND EFFECTS
   ========================================================================== */

.ambient-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: orbFloat 22s ease-in-out infinite alternate;
  will-change: transform;
}

.ambient-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(6, 182, 212, 0) 70%);
  top: -10%;
  left: -5%;
  animation-duration: 25s;
}

.ambient-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple) 0%, rgba(139, 92, 246, 0) 70%);
  top: 40%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.ambient-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-blue) 0%, rgba(59, 130, 246, 0) 70%);
  bottom: -15%;
  left: 20%;
  animation-duration: 28s;
  animation-delay: -10s;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

[data-theme="light"] .ambient-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ==========================================================================
   NEUMORPHIC-GLASS CORE UTILITIES
   ========================================================================== */

/* Raised Glass Card */
.neu-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neu-shadow-raised);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  overflow: hidden;
}

.neu-glass-card:hover {
  box-shadow: var(--neu-shadow-hover);
  border-color: var(--glass-border-hover);
}

/* Inset Neumorphic Container (for terminal, metric panels, inputs) */
.neu-inset-panel {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: var(--neu-shadow-inset);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

[data-theme="light"] .neu-inset-panel {
  background: rgba(220, 230, 242, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Tactile Neumorphic Button */
.neu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neu-shadow-btn);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.neu-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--neu-shadow-hover);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.neu-btn:active {
  transform: translateY(1px);
  box-shadow: var(--neu-shadow-btn-pressed);
}

/* Accent Glow Button */
.neu-btn-primary {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(59, 130, 246, 0.2) 100%), var(--glass-bg);
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25), var(--neu-shadow-btn);
  color: #fff;
}

.neu-btn-primary:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4) 0%, rgba(59, 130, 246, 0.3) 100%), var(--glass-bg);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.45), var(--neu-shadow-hover);
  border-color: var(--accent-cyan);
}

/* Neumorphic Icon Button (circle) */
.neu-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neu-shadow-btn);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.neu-icon-btn:hover {
  transform: translateY(-2px);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow), var(--neu-shadow-hover);
}

.neu-icon-btn:active {
  transform: translateY(1px);
  box-shadow: var(--neu-shadow-btn-pressed);
}

/* Badges */
.neu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neu-shadow-inset);
  color: var(--accent-cyan);
}

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

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4 0%, #38bdf8 40%, #818cf8 80%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-header .section-tag {
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   STARTING ANIMATION (PRELOADER / BOOT SEQUENCE)
   ========================================================================== */

#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #04070e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

#boot-screen.boot-finished {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.boot-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 80%);
}

.boot-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Pulsing Cyber Monogram */
.boot-monogram-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(6, 182, 212, 0.4);
  animation: rotateRing 12s linear infinite;
}

.boot-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  animation: rotateRingRev 8s linear infinite;
}

.boot-monogram {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(16, 23, 38, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5), inset 0 0 15px rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 1px;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateRingRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.boot-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.boot-subtitle {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-code);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Console Logs Window */
.boot-terminal-box {
  width: 100%;
  height: 110px;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: #94a3b8;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.boot-log-line {
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.boot-log-line.active {
  color: #38bdf8;
  font-weight: 600;
  opacity: 1;
}

.boot-log-line.active::after {
  content: '▋';
  margin-left: 4px;
  animation: blink 0.8s infinite;
  color: var(--accent-cyan);
}

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

/* Progress Bar */
.boot-progress-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.boot-progress-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.boot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.8);
  transition: width 0.1s linear;
}

.boot-percentage {
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  min-width: 45px;
  text-align: right;
}

/* Skip Button */
.boot-skip-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

.boot-skip-btn:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* ==========================================================================
   INTRO POPUP (MODAL BRIEFING)
   ========================================================================== */

#intro-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.intro-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--neu-shadow-raised);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#intro-modal.active .intro-modal-card {
  transform: translateY(0) scale(1);
}

.intro-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.intro-close-btn:hover {
  color: #fff;
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent-rose);
  transform: rotate(90deg);
}

.intro-header-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.intro-avatar-frame {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.intro-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-surface);
}

.intro-avatar-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent-emerald);
  border: 3px solid var(--bg-surface);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
}

.intro-header-text h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.intro-header-text p {
  color: var(--text-accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.2rem;
}

.intro-highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.intro-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--neu-shadow-inset);
}

.intro-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.intro-highlight-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.intro-highlight-text span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

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

.intro-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.intro-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  cursor: pointer;
  user-select: none;
}

.intro-checkbox-wrap input {
  cursor: pointer;
  accent-color: var(--accent-cyan);
}

/* ==========================================================================
   NAVIGATION BAR (MODERN, SPACIOUS NEUMORPHIC DOCK)
   ========================================================================== */

#navbar {
  position: fixed;
  top: 1.2rem;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.6rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), var(--neu-shadow-raised);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.nav-brand-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-brand-tag {
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

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

.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: var(--neu-shadow-inset);
  font-weight: 600;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* AI Assistant Pill in Navbar */
.neu-btn-ai-pill {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2), var(--neu-shadow-btn);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.neu-btn-ai-pill:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(139, 92, 246, 0.35));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow), var(--neu-shadow-hover);
  transform: translateY(-2px);
}

.ai-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 1.8s infinite ease-in-out;
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-typewriter-wrap {
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-code);
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2rem;
  background: var(--accent-cyan);
  animation: blink 0.9s infinite;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
  width: 100%;
}

.hero-btn-primary {
  flex-shrink: 0;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.hero-social-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-location-badge {
  flex-shrink: 0;
}

/* Photo Card (Neumorphic Glass Frame) */
.hero-photo-column {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.hero-photo-card {
  position: relative;
  border-radius: 36px;
  padding: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.7), -12px -12px 35px rgba(255, 255, 255, 0.02), inset 1px 1px 2px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-photo-inner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--neu-shadow-inset);
  aspect-ratio: 4 / 4.8;
  background: #0d1322;
}

.hero-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-photo-card:hover .hero-photo-inner img {
  transform: scale(1.04);
}

.hero-photo-glow-border {
  position: absolute;
  inset: -2px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), transparent 50%, rgba(139, 92, 246, 0.4));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.7;
}

/* Floating Badges on Photo */
.floating-chip {
  position: absolute;
  z-index: 4;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neu-shadow-raised);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: floatChip 6s ease-in-out infinite alternate;
  white-space: nowrap;
}

.floating-chip i {
  color: var(--accent-cyan);
}

.floating-chip-1 {
  top: 10%;
  left: -15%;
  animation-delay: 0s;
}

.floating-chip-2 {
  bottom: 22%;
  right: -12%;
  animation-delay: -2s;
}

.floating-chip-3 {
  bottom: -4%;
  left: 6%;
  animation-delay: -4s;
}

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

/* ==========================================================================
   METRICS SECTION (NEUMORPHIC STATS COUNTER)
   ========================================================================== */

.metrics-section {
  padding: 3rem 0;
  position: relative;
  z-index: 3;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  padding: 1.75rem 1.4rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neu-shadow-raised);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--neu-shadow-hover);
}

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

.metric-icon {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

/* ==========================================================================
   INTERACTIVE ARCHITECTURE VISUALIZER
   ========================================================================== */

.arch-visualizer-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
}

.arch-flow-diagram {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
  margin-bottom: 2.5rem;
}

.arch-node {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-shadow-btn);
  padding: 1.25rem 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

[data-theme="light"] .arch-node {
  background: rgba(255, 255, 255, 0.7);
}

.arch-node.active, .arch-node:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 0 20px var(--accent-cyan-glow), var(--neu-shadow-hover);
}

.arch-node-badge {
  font-family: var(--font-code);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.arch-node-icon {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.arch-node-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.arch-node-tech {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* Node Details Inspector Drawer */
.arch-details-drawer {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--neu-shadow-inset);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-theme="light"] .arch-details-drawer {
  background: rgba(255, 255, 255, 0.5);
}

.arch-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}

.arch-details-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.arch-details-content {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.arch-details-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.arch-metric-pill {
  font-family: var(--font-code);
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
  opacity: 0.4;
}

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

.timeline-node-pin {
  position: absolute;
  top: 1.5rem;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 2;
}

.timeline-card {
  padding: 2rem;
}

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

.timeline-role-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.timeline-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 0.2rem;
}

.timeline-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline-badge-duration {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.timeline-point {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-point::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  line-height: 1.4;
}

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

.tech-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

/* ==========================================================================
   SKILLS & COMPETENCIES SECTION
   ========================================================================== */

.skills-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-tab-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neu-shadow-btn);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.filter-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.25));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow), var(--neu-shadow-hover);
}

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

.skill-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-normal);
}

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

.skill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: var(--neu-shadow-btn);
}

.skill-level-badge {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.skill-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.skill-progress-bar {
  height: 5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: var(--radius-full);
  transition: width 0.8s ease-out;
}

/* ==========================================================================
   INTERACTIVE CYBER TERMINAL PLAYGROUND
   ========================================================================== */

.terminal-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), var(--neu-shadow-raised);
}

.terminal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: rgba(8, 12, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-window-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-btn-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn-red { background: #ef4444; }
.terminal-btn-yellow { background: #f59e0b; }
.terminal-btn-green { background: #10b981; }

.terminal-title-text {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-quick-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.term-chip {
  font-family: var(--font-code);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-chip:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
}

.terminal-body {
  height: 380px;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(4, 7, 14, 0.94);
  font-family: var(--font-code);
  font-size: 0.875rem;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
}

.terminal-output-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.term-line {
  line-height: 1.6;
}

.term-prompt {
  color: var(--accent-cyan);
  font-weight: 700;
  margin-right: 0.5rem;
}

.term-command {
  color: #f8fafc;
}

.term-response {
  color: #94a3b8;
  white-space: pre-wrap;
  padding-left: 0.5rem;
}

.term-response-highlight {
  color: #38bdf8;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.terminal-input-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-code);
  font-size: 0.875rem;
  color: #f8fafc;
  caret-color: var(--accent-cyan);
}

/* ==========================================================================
   EDUCATION & CERTIFICATIONS & AWARDS
   ========================================================================== */

.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.edu-column h3, .cert-column h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.edu-card, .cert-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.edu-degree {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-institution {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.2rem;
}

.edu-year {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.35rem;
}

.cert-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cert-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.award-badge-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.award-icon {
  font-size: 1.6rem;
  color: var(--accent-amber);
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  font-size: 1.2rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-copy-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--font-code);
  border-radius: var(--radius-full);
}

.contact-form-card {
  padding: 2.5rem;
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--neu-shadow-inset);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.925rem;
  outline: none;
  transition: all var(--transition-fast);
}

[data-theme="light"] .form-input, [data-theme="light"] .form-textarea {
  background: rgba(255, 255, 255, 0.6);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow), var(--neu-shadow-inset);
}

.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 5rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999999;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(16, 23, 38, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-cyan-glow);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE OPTIMIZATIONS)
   ========================================================================== */

/* Tablet & Smaller Laptops (1024px and below) */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-container {
    padding: 0.55rem 1.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-photo-column {
    order: -1;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .hero-content {
    align-items: center;
    width: 100%;
  }

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

  .hero-actions {
    justify-content: center;
    max-width: 480px;
    margin: 0 auto 2.25rem auto;
  }

  .hero-btn-group {
    justify-content: center;
  }

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

  .hero-photo-wrapper {
    max-width: 330px;
  }

  .floating-chip-1 {
    left: -4%;
  }

  .floating-chip-2 {
    right: -4%;
  }

  .floating-chip-3 {
    left: 8%;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .arch-visualizer-card {
    padding: 2rem;
  }

  .arch-flow-diagram {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .terminal-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .edu-cert-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobile & Small Tablet (768px and below) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.15rem);
  }

  .section-header p {
    font-size: 0.95rem;
  }

  #navbar {
    top: 0.75rem;
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0.5rem 1rem;
  }

  .nav-resume-btn {
    display: none;
  }

  .neu-btn-ai-pill {
    padding: 0.42rem 0.8rem;
    font-size: 0.78rem;
  }

  .hero-section {
    padding-top: 7.25rem;
    padding-bottom: 3.5rem;
    min-height: auto;
  }

  .hero-photo-column {
    order: -1;
    margin-bottom: 2rem;
    width: 100%;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-badge-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(2rem, 6.5vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-typewriter-wrap {
    font-size: 0.95rem;
    min-height: 2rem;
    justify-content: center;
  }

  .hero-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    text-align: center;
  }

  .hero-actions {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 2rem auto;
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .hero-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }

  .hero-btn-sub {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }

  .hero-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .hero-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .hero-location-badge {
    margin: 0 auto;
  }

  .hero-photo-wrapper {
    max-width: 280px;
  }

  .floating-chip {
    padding: 0.45rem 0.8rem;
    font-size: 0.74rem;
  }

  .floating-chip-1 {
    top: 5%;
    left: -2%;
  }

  .floating-chip-2 {
    bottom: 16%;
    right: -2%;
  }

  .floating-chip-3 {
    bottom: -2%;
    left: 6%;
  }

  .metrics-section {
    padding: 2rem 0;
  }

  .metric-card {
    padding: 1.25rem 1rem;
  }

  .metric-number {
    font-size: 1.85rem;
  }

  .metric-label {
    font-size: 0.8rem;
  }

  .metric-sub {
    font-size: 0.72rem;
  }

  /* Filter Tabs touch-scroll */
  .skills-filter-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.2rem;
    gap: 0.5rem;
    scrollbar-width: none;
  }

  .skills-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
  }

  .skill-card {
    padding: 1.25rem 1rem;
  }

  /* Architecture Visualizer */
  .arch-visualizer-card {
    padding: 1.35rem;
  }

  .arch-flow-diagram {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .arch-node {
    padding: 1rem 0.75rem;
  }

  .arch-node-name {
    font-size: 0.82rem;
  }

  .arch-node-tech {
    font-size: 0.68rem;
  }

  .arch-details-drawer {
    padding: 1.25rem 1rem;
  }

  .arch-details-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .arch-details-title {
    font-size: 1.05rem;
  }

  .arch-details-content {
    font-size: 0.875rem;
  }

  /* Terminal Playground */
  .terminal-top-bar {
    padding: 0.75rem 1rem;
  }

  .terminal-title-text {
    font-size: 0.75rem;
  }

  .terminal-quick-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    gap: 0.4rem;
    scrollbar-width: none;
  }

  .terminal-quick-chips::-webkit-scrollbar {
    display: none;
  }

  .term-chip {
    flex-shrink: 0;
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
  }

  .terminal-body {
    height: 320px;
    padding: 1rem;
    font-size: 0.82rem;
  }

  .terminal-input-row input {
    font-size: 16px;
  }

  /* Experience Timeline */
  .experience-timeline::before {
    left: 10px;
  }

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

  .timeline-node-pin {
    left: 1px;
    width: 16px;
    height: 16px;
  }

  .timeline-card {
    padding: 1.4rem 1.15rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .timeline-meta {
    text-align: left;
  }

  .timeline-role-info h3 {
    font-size: 1.2rem;
  }

  .timeline-company {
    font-size: 0.95rem;
  }

  .timeline-point {
    font-size: 0.875rem;
    padding-left: 1.3rem;
  }

  .timeline-tags {
    gap: 0.4rem;
    padding-top: 0.85rem;
  }

  .tech-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
  }

  /* Education & Honors */
  .edu-card, .cert-card, .award-badge-card {
    padding: 1.25rem 1rem;
  }

  /* Contact & Form */
  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }

  .contact-item-card {
    padding: 1.1rem 1.2rem;
  }

  .form-input, .form-textarea {
    font-size: 16px;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0;
    margin-top: 3.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* Intro Modal */
  .intro-modal-card {
    padding: 1.5rem 1.25rem;
    max-height: 86vh;
  }

  .intro-header-block {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .intro-avatar-frame {
    margin: 0 auto;
  }

  .intro-action-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .intro-action-buttons .neu-btn {
    flex: 1;
    min-width: 130px;
    justify-content: center;
  }

  .boot-container {
    width: 90%;
  }

  .boot-title {
    font-size: 1.25rem;
  }
}

/* Compact Mobile (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.9rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  #navbar {
    top: 0.5rem;
    padding: 0 0.5rem;
  }

  .nav-container {
    padding: 0.45rem 0.75rem;
  }

  .nav-brand-tag {
    display: none;
  }

  .nav-logo-icon {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .nav-brand-name {
    font-size: 0.92rem;
  }

  .neu-btn-ai-pill {
    padding: 0.38rem 0.65rem;
    font-size: 0.75rem;
  }

  .neu-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .nav-tools a[aria-label="GitHub"] {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .hero-photo-column {
    order: -1;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .hero-photo-wrapper {
    max-width: 250px;
    margin: 0 auto;
  }

  .floating-chip {
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
    border-radius: var(--radius-sm);
  }

  .floating-chip-1 {
    top: 2%;
    left: 0;
  }

  .floating-chip-2 {
    bottom: 14%;
    right: 0;
  }

  .floating-chip-3 {
    bottom: -4%;
    left: 4%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.75rem auto;
    gap: 0.65rem;
  }

  .hero-btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.78rem 1.1rem;
    font-size: 0.9rem;
  }

  .hero-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
  }

  .hero-btn-sub {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .hero-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .hero-social-icons .neu-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .hero-location-badge {
    margin: 0 auto;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .metric-card {
    padding: 1rem 0.5rem;
  }

  .metric-icon {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
  }

  .metric-number {
    font-size: 1.55rem;
  }

  .metric-label {
    font-size: 0.74rem;
  }

  .metric-sub {
    font-size: 0.68rem;
  }

  .arch-flow-diagram {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .arch-node {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.85rem 1rem;
  }

  .arch-node-icon {
    margin-bottom: 0;
    font-size: 1.25rem;
  }

  .arch-node-badge {
    margin-bottom: 0;
    order: 3;
  }

  .arch-details-metrics {
    flex-direction: column;
    gap: 0.5rem;
  }

  .arch-metric-pill {
    width: 100%;
  }

  .experience-timeline::before {
    left: 8px;
  }

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

  .timeline-node-pin {
    left: 0;
    width: 14px;
    height: 14px;
  }

  .timeline-card {
    padding: 1.15rem 0.95rem;
  }

  .timeline-role-info h3 {
    font-size: 1.1rem;
  }

  .contact-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .contact-item-left {
    width: 100%;
  }

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

  .contact-form-card {
    padding: 1.25rem 1rem;
  }

  .intro-modal-card {
    padding: 1.2rem 0.95rem;
  }

  .intro-action-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .intro-action-buttons .neu-btn {
    width: 100%;
    justify-content: center;
  }

  .boot-monogram-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }

  .boot-monogram {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
  }

  .boot-title {
    font-size: 1.15rem;
  }

  .boot-subtitle {
    font-size: 0.72rem;
  }

  .boot-skip-btn {
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }

  #toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    text-align: center;
    justify-content: center;
  }
}

/* Very Narrow Devices (360px and below) */
@media (max-width: 360px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .nav-brand-name {
    font-size: 0.85rem;
  }

  .hero-photo-wrapper {
    max-width: 220px;
  }
}
