/* Cyberpunk HUD Design Tokens & System */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #05070f;
  --bg-secondary: #0a0e1a;
  --bg-card: rgba(13, 20, 36, 0.75);
  --bg-card-hover: rgba(18, 28, 52, 0.9);
  
  --neon-cyan: #00f0ff;
  --neon-violet: #8a2be2;
  --neon-pink: #ff007f;
  --neon-green: #00ff88;
  
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-cyan: rgba(0, 240, 255, 0.3);
  --border-violet: rgba(138, 43, 226, 0.3);
  --border-glow: 0 0 20px rgba(0, 240, 255, 0.25);
  
  --font-hud: 'Orbitron', sans-serif;
  --font-code: 'Fira Code', monospace;
  --font-sans: 'Inter', sans-serif;
}

/* Theme Variant Classes */
body.theme-matrix {
  --neon-cyan: #00ff88;
  --neon-violet: #008844;
  --neon-pink: #ccff00;
  --border-cyan: rgba(0, 255, 136, 0.3);
  --border-glow: 0 0 20px rgba(0, 255, 136, 0.3);
}

body.theme-synth {
  --neon-cyan: #ffaa00;
  --neon-violet: #ff0055;
  --neon-pink: #ff00ff;
  --border-cyan: rgba(255, 170, 0, 0.3);
  --border-glow: 0 0 20px rgba(255, 170, 0, 0.3);
}

body.theme-ultra {
  --neon-cyan: #b000ff;
  --neon-violet: #7000ff;
  --neon-pink: #00f0ff;
  --border-cyan: rgba(176, 0, 255, 0.3);
  --border-glow: 0 0 20px rgba(176, 0, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  padding-bottom: 70px;
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #matrix-canvas { display: none !important; }
  .scanline { display: none !important; }
  .pulse-dot { animation: none !important; box-shadow: none !important; }
  .btn-enter-cyber.active { animation: none !important; }
  .cyberCore, .innerIco, .particlesMesh { animation: none !important; }
}

/* CYBERPUNK FLOATING RECRUITER QUICK TOOLS BAR */
.cyber-recruiter-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
  padding: 10px 24px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 200;
  font-family: var(--font-code);
  flex-wrap: nowrap;
}

.recruiter-bar-label {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  margin-right: 6px;
  white-space: nowrap;
}

.cyber-bar-btn {
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cyber-bar-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.cyber-bar-btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  color: #000;
  border: none;
  font-weight: 700;
}

.cyber-bar-btn-primary:hover {
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
}

/* CYBERPUNK PRELOADER SCREEN */
#cyber-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #030409;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#cyber-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Scanline Effect */
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0, 240, 255, 0.05) 50%,
    rgba(0, 240, 255, 0.05)
  );
  background-size: 100% 4px;
  pointer-events: none;
}

.preloader-frame {
  width: 90%;
  max-width: 650px;
  background: rgba(10, 14, 26, 0.95);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
  position: relative;
  font-family: var(--font-code);
}

.preloader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 12px;
}

.preloader-title {
  font-family: var(--font-hud);
  font-size: 1.2rem;
  color: var(--neon-cyan);
  letter-spacing: 2px;
}

.preloader-percent {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon-pink);
}

/* Progress Bar */
.preloader-bar-track {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-cyan);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), var(--neon-pink));
  box-shadow: 0 0 15px var(--neon-cyan);
  transition: width 0.1s linear;
}

/* Boot Sequence Logs */
.preloader-logs {
  font-size: 0.85rem;
  color: var(--neon-green);
  min-height: 120px;
  max-height: 140px;
  overflow-y: auto;
  margin-bottom: 24px;
  line-height: 1.6;
}

.log-line {
  margin-bottom: 4px;
}

/* Enter System Button */
.enter-btn-wrapper {
  text-align: center;
}

.btn-enter-cyber {
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  transition: all 0.3s ease;
  display: none;
  margin: 0 auto;
}

.btn-enter-cyber.active {
  display: inline-flex;
  animation: pulseBtn 1.5s infinite;
}

@keyframes pulseBtn {
  0% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); }
  50% { transform: scale(1.04); box-shadow: 0 0 40px rgba(0, 240, 255, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); }
}

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

/* Matrix Rain Overlay Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#matrix-canvas.active {
  opacity: 0.45;
}

/* Cyber Overlay Grid */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Theme Switcher Bar */
.theme-picker {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-cyan);
  padding: 4px 8px;
  border-radius: 20px;
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.theme-dot:hover {
  transform: scale(1.25);
}

.dot-cyber { background: #00f0ff; }
.dot-matrix { background: #00ff88; }
.dot-synth { background: #ffaa00; }
.dot-ultra { background: #b000ff; }

/* Header & Glass Navbar */
.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 1300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), var(--border-glow);
  z-index: 100;
}

.brand-logo {
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--neon-cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
  z-index: 101;
}

.brand-logo span {
  color: var(--neon-violet);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-code);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-cyan);
  color: var(--neon-cyan);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  color: var(--neon-green);
  cursor: pointer;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 8% 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

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

/* Cyberpunk Hero Avatar HUD Card */
.hero-avatar-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.cyber-avatar-card {
  position: relative;
  background: rgba(10, 14, 26, 0.88);
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.25), inset 0 0 20px rgba(0, 240, 255, 0.05);
  max-width: 330px;
  width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cyber-avatar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.45), inset 0 0 25px rgba(0, 240, 255, 0.1);
  border-color: var(--neon-cyan);
}

.avatar-image-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: #020308;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.cyber-avatar-card:hover .hero-avatar-img {
  transform: scale(1.03);
}

/* Hologram scanline effect over avatar */
.avatar-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 240, 255, 0) 0%,
    rgba(0, 240, 255, 0.08) 50%,
    rgba(0, 240, 255, 0) 100%
  );
  background-size: 100% 8px;
  pointer-events: none;
  opacity: 0.6;
}

/* Futuristic Tech Corners */
.avatar-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
}

.corner-tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
}

.corner-tr {
  top: 8px;
  right: 8px;
  border-top: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}

.corner-bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
}

.corner-br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}

.avatar-status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  font-family: var(--font-code);
  font-size: 0.76rem;
  color: var(--neon-green);
  letter-spacing: 1px;
}

.avatar-meta-bar {
  text-align: center;
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.avatar-meta-bar span {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Resume Thumbnail */
.resume-avatar-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  flex-shrink: 0;
}

.hud-tag {
  font-family: var(--font-code);
  color: var(--neon-cyan);
  font-size: clamp(0.72rem, 1.05vw, 0.85rem);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.hud-tag::before {
  content: '//';
  color: var(--neon-pink);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-hud);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 50%, var(--neon-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-family: var(--font-code);
  font-size: 1.4rem;
  color: var(--neon-cyan);
  margin-bottom: 24px;
}

.hero-description {
  max-width: 780px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-violet);
  padding: 24px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cyber {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--border-cyan);
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Sections */
.section-container {
  padding: 80px 8%;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-hud);
  font-size: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-cyan), transparent);
  margin-left: 16px;
}

/* Skills Matrix */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  padding: 24px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: var(--border-glow);
}

.skill-icon {
  font-size: 1.8rem;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.skill-category-title {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

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

.skill-tag {
  font-family: var(--font-code);
  font-size: 0.8rem;
  padding: 4px 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  color: var(--neon-cyan);
}

/* Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-violet);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--neon-pink);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.25);
}

.project-header {
  padding: 24px 24px 12px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-type {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--neon-pink);
  text-transform: uppercase;
}

.project-year {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-title {
  font-family: var(--font-hud);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 12px;
}

.project-body {
  padding: 0 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.project-highlights {
  list-style: none;
  margin-bottom: 20px;
}

.project-highlights li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.project-highlights li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-pill {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 3px 8px;
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid var(--border-violet);
  border-radius: 4px;
  color: var(--text-primary);
}

/* Architecture Flow Visualizer Box */
.arch-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px dashed var(--neon-cyan);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--neon-cyan);
}

.arch-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  color: #fff;
}

.arch-step {
  padding: 3px 8px;
  background: rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  border: 1px solid var(--border-cyan);
}

/* INTERACTIVE SIMULATION MODAL */
.sim-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

.sim-modal-overlay.active {
  display: flex;
}

.sim-modal-card {
  width: 90%;
  max-width: 680px;
  background: #080c17;
  border: 1px solid var(--neon-cyan);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
  font-family: var(--font-code);
  position: relative;
}

.sim-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.sim-modal-close:hover {
  color: var(--neon-pink);
}

.sim-output-box {
  background: #000;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  min-height: 160px;
  max-height: 240px;
  overflow-y: auto;
  color: var(--neon-green);
  font-size: 0.85rem;
  margin: 16px 0;
  line-height: 1.6;
}

/* Resume Reader HUD */
.resume-hud {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--border-glow);
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-cyan);
  padding-bottom: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.resume-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab-btn {
  font-family: var(--font-code);
  font-size: 0.85rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--border-cyan);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.education-item, .exp-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Toast Copy Notification */
.toast-notice {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--neon-cyan);
  color: #000;
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  z-index: 500;
  display: none;
}

/* Terminal Card */
.terminal-card {
  background: #000;
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
  font-family: var(--font-code);
}

.terminal-header {
  background: #0d121f;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.term-title {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-left: 12px;
}

.terminal-body {
  padding: 20px;
  min-height: 260px;
  max-height: 420px;
  overflow-y: auto;
  color: var(--neon-green);
  font-size: 0.9rem;
}

.terminal-line {
  margin-bottom: 8px;
}

.terminal-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.terminal-prompt {
  color: var(--neon-pink);
  white-space: nowrap;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-code);
  font-size: 0.9rem;
  flex-grow: 1;
}

footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* PDF Viewer Styles */
.pdf-viewer-container {
  margin-top: 24px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-violet);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdf-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-violet);
}

.pdf-viewer-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  overflow: hidden;
  min-height: 400px;
}

.pdf-viewer-wrapper canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
}

.pdf-loading, .pdf-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--neon-cyan);
  font-family: var(--font-code);
  font-size: 1rem;
  text-align: center;
}

.pdf-error {
  color: var(--neon-pink);
}

.pdf-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .cyber-recruiter-bar { width: 92%; justify-content: center; overflow-x: auto; }
  .recruiter-bar-label { display: none; }
  .pdf-controls { gap: 6px; }
  .pdf-controls button, .pdf-controls a { padding: 6px 10px; font-size: 0.7rem; }
  .pdf-viewer-wrapper { min-height: 300px; }
}

/* Mobile-first touch targets & spacing improvements */
@media (max-width: 768px) {
  /* Ensure all interactive elements meet 44px minimum touch target */
  .btn-cyber,
  .cyber-bar-btn,
  .tab-btn,
  .skill-tag,
  .tech-pill,
  .nav-links a,
  .status-badge,
  .audio-toggle-btn,
  .btn-enter-cyber {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

/* Hero section mobile spacing */
  .hero-section {
    padding: 90px 16px 32px;
    align-items: center;
    text-align: center;
  }

  .hud-tag { font-size: clamp(0.62rem, 2.5vw, 0.76rem); white-space: nowrap; justify-content: center; }
  .hero-title { font-size: 1.9rem; line-height: 1.1; }
  .hero-subtitle { font-size: 1rem; }
  .hero-description { font-size: 0.9rem; padding: 14px; }
  .cta-group { flex-direction: column; width: 100%; gap: 10px; }
  .cta-group .btn-cyber { width: 100%; justify-content: center; padding: 14px 20px; }

  /* Navbar mobile improvements */
  .navbar { padding: 10px 16px; top: 10px; width: 96%; }
  .brand-logo { font-size: 1.1rem; }
  
  .hamburger { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: rgba(5, 7, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-cyan);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 100px 20px 20px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-links {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  
  .nav-links li { width: 100%; }
  
  .nav-links a {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    text-align: center;
  }
  
  .nav-links a:hover,
  .nav-links a:focus {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--border-cyan);
    color: var(--neon-cyan);
  }
  
  .nav-actions {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .status-badge {
    padding: 10px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .status-badge .pulse-dot { width: 6px; height: 6px; }

  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; }
  
  /* Skill tags - mobile: wrap and ellipsis if needed */
  .skill-tags { gap: 6px; flex-wrap: wrap; justify-content: flex-start; }
  .skill-tag { 
    font-size: 0.7rem; 
    padding: 4px 8px; 
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    align-self: center;
    word-break: break-word;
  }
  
  /* Tech pills - prevent overflow */
  .tech-pill { 
    font-size: 0.65rem; 
    padding: 2px 6px; 
    white-space: nowrap;
  }
  
  /* Arch flow - prevent overflow */
  .arch-flow { gap: 3px; flex-wrap: wrap; }
  .arch-step { 
    padding: 2px 6px; 
    font-size: 0.65rem; 
    white-space: nowrap;
  }
  
  /* Recruiter bar mobile - wrap buttons on small screens */
  .cyber-recruiter-bar { padding: 8px 16px; gap: 6px; flex-wrap: wrap; }
  .cyber-bar-btn { 
    padding: 8px 12px; 
    font-size: 0.7rem; 
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Resume header buttons */
  .resume-header > div:last-child { gap: 8px; }
  .resume-header .btn-cyber { 
    padding: 10px 14px; 
    font-size: 0.75rem; 
    white-space: nowrap;
  }

  /* Resume HUD mobile */
  .resume-hud { padding: 20px; }
  .resume-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .resume-header > div:last-child { width: 100%; justify-content: stretch; }
  .resume-header .btn-cyber { flex: 1; text-align: center; }
  .resume-tabs { justify-content: center; }
  .tab-btn { padding: 10px 16px; font-size: 0.8rem; }
  .education-item, .exp-item { padding-bottom: 16px; margin-bottom: 16px; }

  /* Terminal mobile */
  .terminal-body { min-height: 200px; max-height: 300px; font-size: 0.85rem; }
  .terminal-input-wrapper { flex-wrap: wrap; gap: 8px; }
  .terminal-prompt { display: none; }
  .terminal-input { width: 100%; min-height: 44px; font-size: 16px; /* prevents zoom on iOS */ }

  /* Simulator modal mobile */
  .sim-modal-card { width: 95%; padding: 20px; margin: 10px; }
  .sim-output-box { min-height: 120px; max-height: 200px; font-size: 0.8rem; }

  /* Preloader mobile */
  .preloader-frame { padding: 24px; margin: 16px; }
  .btn-enter-cyber { width: 100%; padding: 16px; }

  /* Contact section mobile */
  #contact .section-container { padding: 60px 20px; }
  #contact div[style*="grid-template-columns"] { grid-template-columns: 1fr; }

  /* Footer mobile */
  footer { padding: 30px 16px; font-size: 0.8rem; }

  /* Section containers mobile */
  .section-container { padding: 48px 20px; }
  .section-title { font-size: 1.5rem; }

  /* PDF viewer mobile enhancements */
  .pdf-viewer-container { padding: 16px; margin-top: 16px; }
  .pdf-viewer-header { flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
  .pdf-viewer-header h4 { margin: 0; }
  .pdf-viewer-wrapper { min-height: 250px; border-radius: 6px; }
  .pdf-controls { gap: 4px; }
  .pdf-controls button,
  .pdf-controls a {
    padding: 8px 10px;
    font-size: 0.7rem;
    min-height: 40px;
    flex: 1;
    min-width: 0;
  }
  #pdf-page-info { order: -1; width: 100%; text-align: center; margin-bottom: 4px; }
}

/* Certificates Section Styles */
.certificates-section {}

/* Certificate Category Filter Bar */
.cert-filter-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 10px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(14px);
}

.cert-filter-btn {
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cert-filter-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--border-cyan);
  color: var(--neon-cyan);
}

.cert-filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(138, 43, 226, 0.25));
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.cert-badge-count {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.certificate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.certificate-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--border-glow);
}

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

.certificate-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.certificate-icon {
  font-size: 1.8rem;
  line-height: 1;
  padding: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}

.certificate-title-wrap {
  flex-grow: 1;
}

.certificate-title {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.certificate-issuer {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 2px;
}

.certificate-date {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Category Badges */
.cert-category-tag {
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.tag-ds {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--border-cyan);
  color: var(--neon-cyan);
}

.tag-hackathon {
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
}

.tag-industry {
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid var(--border-violet);
  color: #c084fc;
}

.tag-science {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: var(--neon-green);
}

.tag-academic {
  background: rgba(255, 189, 46, 0.15);
  border: 1px solid rgba(255, 189, 46, 0.4);
  color: #ffbd2e;
}

.certificate-body {
  margin-top: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.certificate-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.55;
}

/* Dual Action Buttons on Cards */
.cert-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.btn-cert-view {
  flex: 1;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-cyan);
  color: var(--neon-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-cert-view:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.btn-cert-download {
  font-family: var(--font-code);
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-cert-download:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
}

.certificates-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-cyan);
}

/* Tablet & Mobile Responsive rules */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-avatar-wrapper {
    order: -1;
  }
  .avatar-image-container {
    height: 320px;
  }
  .cyber-avatar-card {
    max-width: 290px;
  }
}

@media (max-width: 768px) {
  .certificate-card {
    padding: 20px;
  }
  .certificate-title {
    font-size: 1.05rem;
  }
  .certificate-description {
    font-size: 0.82rem;
  }
  .cert-filter-container {
    gap: 6px;
    padding: 8px;
  }
  .cert-filter-btn {
    font-size: 0.72rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .certificate-card {
    padding: 16px;
  }
  .certificate-title {
    font-size: 0.98rem;
  }
  .certificate-description {
    font-size: 0.78rem;
  }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-description { font-size: 0.85rem; padding: 12px; }
  .section-title { font-size: 1.2rem; }
  .skill-category-title { font-size: 0.95rem; }
  .project-title { font-size: 1.1rem; }
  .brand-logo { font-size: 0.95rem; }
  .cyber-recruiter-bar { padding: 6px 10px; gap: 4px; }
  .cyber-bar-btn { padding: 6px 8px; font-size: 0.65rem; }
  .preloader-title { font-size: 1rem; }
  .preloader-percent { font-size: 1.2rem; }
  .nav-menu { width: 90%; padding: 100px 16px 16px; }
  .nav-links a { padding: 12px 14px; font-size: 0.9rem; }
  .status-badge { font-size: 0.75rem; padding: 8px 12px; }
  .btn-cyber { padding: 12px 16px; font-size: 0.8rem; }
  .section-container { padding: 48px 16px; }
  .resume-header .btn-cyber { padding: 8px 12px; font-size: 0.7rem; }
  .avatar-image-container { height: 280px; }
  .cyber-avatar-card { max-width: 260px; }
}
