/* ============================================
   MISSION CONTROL — Design System
   Portfolio: Matías (Mtys24)
   Theme: Space / Tech / Science
   ============================================ */

/* ---------- Google Fonts (loaded in HTML) ---------- */
/* Space Grotesk — headings
   Inter — body
   JetBrains Mono — code/terminal */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brutalist Onyx Palette (Less generic AI, more authentic) */
  --bg-void: #050505;
  --bg-space: #0a0a0a;
  --bg-nebula: #121212;
  --bg-panel: #171717;

  /* Accent Spectrum (Chartreuse & Electric Orange) */
  --accent-indigo: #ccff00; /* Reusing var name for HTML compatibility */
  --accent-violet: #d4ff33;
  --accent-cyan: #ff4d00;
  --accent-teal: #ff6600;
  --accent-solar: #ff3300;
  --accent-solar-light: #ff5500;

  /* Text Hierarchy (High Contrast Base) */
  --text-bright: #ffffff;
  --text-primary: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;

  /* Neo-Brutalist Glass System */
  --glass-bg: rgba(23, 23, 23, 0.7);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-hover-border: rgba(204, 255, 0, 0.6);
  --glass-glow: rgba(204, 255, 0, 0.1);

  /* Typography */
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-smooth: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);

  /* Spacing */
  --section-gap: 7rem;
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

body.a11y-mode {
  --bg-void: #000000;
  --bg-space: #111111;
  --bg-nebula: #111111;
  --bg-panel: #222222;

  /* Okabe-Ito Color Blind Safe Palette */
  --accent-indigo: #56B4E9; /* Sky Blue */
  --accent-violet: #0072B2; /* Blue */
  --accent-cyan: #E69F00; /* Orange */
  --accent-teal: #F0E442; /* Yellow */
  --accent-solar: #D55E00; /* Vermillion */
  
  --glass-border: rgba(255,255,255,0.4);
  --glass-hover-border: #E69F00;
  
  --text-bright: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #bbbbbb;
}

body.light-theme {
  --bg-void: #ffffff;
  --bg-space: #f8f9fa;
  --bg-nebula: #f1f3f5;
  --bg-panel: #ffffff;

  --accent-indigo: #ff5500; /* Solar Orange */
  --accent-violet: #ff7700;
  --accent-cyan: #ccff00; /* Chartreuse */
  --accent-teal: #d4ff33;
  --accent-solar: #e65c00;
  --accent-solar-light: #ff8800;

  --text-bright: #0a0a0a;
  --text-primary: #171717;
  --text-secondary: #404040;
  --text-muted: #737373;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.15);
  --glass-hover-border: rgba(255, 85, 0, 0.5);
  --glass-glow: rgba(255, 85, 0, 0.05);
}

/* Light Theme Card Soft Shadows (Daytime aesthetics) */
body.light-theme .glass-card, 
body.light-theme .project-card, 
body.light-theme .modal-inner {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-left-color: rgba(0, 0, 0, 0.1);
}
body.light-theme .glass-card:hover, 
body.light-theme .project-card:hover {
  box-shadow: 0 15px 40px rgba(255, 85, 0, 0.12);
  border-color: rgba(255, 85, 0, 0.3);
}

/* Light Theme UI Overrides */
body.light-theme .hud-element {
  color: var(--text-secondary);
}
body.light-theme .hud-line {
  background: var(--text-secondary);
}
body.light-theme .navbar,
body.light-theme .glass-nav {
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
body.light-theme .navbar.scrolled,
body.light-theme .glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Fixes for Widgets, Tags and Cards in Light Theme */
body.light-theme .ecosystem-card,
body.light-theme .project-card,
body.light-theme .glass-card {
  border-color: rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .tech-tags li {
  color: var(--accent-solar);
  border-color: rgba(255, 85, 0, 0.3);
  background: rgba(255, 85, 0, 0.05);
}
body.light-theme .text-cyan, 
body.light-theme .text-emerald {
  color: var(--accent-solar-light);
}

/* Light Theme: To-Do & Terminal Widgets */
body.light-theme .mini-todo-container,
body.light-theme .mini-bot-container,
body.light-theme .terminal-window {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .todo-input-row input,
body.light-theme .mini-bot-input-row input,
body.light-theme .mini-todo-list li {
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .mini-todo-list li.completed {
  background: rgba(0, 0, 0, 0.02) !important;
  color: var(--text-muted) !important;
}

*:focus-visible {
  outline: 3px solid var(--accent-indigo);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

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

ul, ol {
  list-style: none;
}

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

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

::selection {
  background: var(--accent-indigo);
  color: white;
}

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

/* Static star layers via CSS (fallback) */
.stars-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
}

/* Nebula gradient overlays */
.nebula-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.nebula-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  top: -15%;
  left: -10%;
  animation: nebula-drift 20s ease-in-out infinite alternate;
}

.nebula-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
  bottom: -10%;
  right: -10%;
  animation: nebula-drift 25s ease-in-out infinite alternate-reverse;
}

.nebula-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 70%);
  top: 50%;
  left: 60%;
  animation: nebula-drift 18s ease-in-out infinite alternate;
}

@keyframes nebula-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.15); }
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.section-spacing {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 2;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1100px;
  z-index: 1000;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: var(--bg-panel);
  border-color: var(--glass-hover-border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.logo .bracket {
  color: var(--accent-indigo);
  font-weight: 300;
}

.logo .name {
  background: linear-gradient(135deg, var(--text-bright), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .dot {
  color: var(--accent-solar);
  font-size: 1.8rem;
  line-height: 1;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-bright);
  background: rgba(99, 102, 241, 0.08);
}

.nav-links a.active {
  color: var(--accent-violet);
  background: rgba(99, 102, 241, 0.12);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-bright);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.1);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 780px;
}

.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-violet);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  animation: badge-pulse 3s ease-in-out infinite;
}

.mission-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.05;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan), var(--accent-teal));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-subtitle .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent-cyan);
  margin-left: 2px;
  animation: cursor-blink 1s step-end infinite;
  vertical-align: text-bottom;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-indigo));
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-secondary:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
}

.btn-solar {
  background: linear-gradient(135deg, var(--accent-solar), #ea580c);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-solar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
}

/* ---------- Section Headers ---------- */
.section-header {
  margin-bottom: 3.5rem;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-indigo);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.section-label .number {
  color: var(--accent-solar);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
}

.section-line {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-indigo), transparent 60%);
  margin-top: 1rem;
  opacity: 0.4;
}

/* ---------- Glass Card System ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-indigo), var(--accent-cyan), transparent);
  transition: left 0.6s var(--ease-out-expo);
}

.glass-card:hover {
  border-color: var(--glass-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.05);
}

.glass-card:hover::before {
  left: 100%;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }
}

.profile-card {
  text-align: center;
}



/* ---------- Featured Projects (Landing) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-grid .project-card.featured {
    grid-column: span 2;
  }
}

/* ---------- Project Cards ---------- */
.project-card {
  position: relative;
  overflow: hidden;
}

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

.project-card:hover .card-accent-bar {
  opacity: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-violet);
}

.project-icon.cyan { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); }
.project-icon.teal { background: rgba(45, 212, 191, 0.1); color: var(--accent-teal); }
.project-icon.solar { background: rgba(249, 115, 22, 0.1); color: var(--accent-solar); }

.project-icon svg,
.project-icon i {
  width: 22px;
  height: 22px;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-links a {
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.project-links a:hover {
  color: var(--text-bright);
  transform: translateY(-2px);
}

.project-links svg,
.project-links i {
  width: 20px;
  height: 20px;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  transition: color var(--transition-fast);
}

.project-card:hover h3 {
  color: var(--accent-violet);
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tech-tags li {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-violet);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-violet);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  color: var(--accent-cyan);
  gap: 0.8rem;
}

.view-all-link svg,
.view-all-link i {
  width: 18px;
  height: 18px;
}

/* ---------- Skills Section ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-card {
  height: 100%;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.skill-card-header .skill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-violet);
}

.skill-card-header .skill-icon.cyan { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); }
.skill-card-header .skill-icon.teal { background: rgba(45, 212, 191, 0.1); color: var(--accent-teal); }

.skill-card-header .skill-icon svg,
.skill-card-header .skill-icon i {
  width: 20px;
  height: 20px;
}

.skill-card-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.skill-item-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-item-name svg,
.skill-item-name i {
  width: 14px;
  height: 14px;
  color: var(--accent-indigo);
  opacity: 0.6;
}

.signal-bar {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.signal-bar span {
  width: 4px;
  border-radius: 1px;
  background: rgba(99, 102, 241, 0.15);
  transition: background var(--transition-fast);
}

.signal-bar span.active {
  background: var(--accent-indigo);
}

.signal-bar span:nth-child(1) { height: 6px; }
.signal-bar span:nth-child(2) { height: 10px; }
.signal-bar span:nth-child(3) { height: 14px; }
.signal-bar span:nth-child(4) { height: 18px; }
.signal-bar span:nth-child(5) { height: 22px; }

/* Terminal Skill Card */
.terminal-card {
  border-color: rgba(34, 211, 238, 0.2);
}

.terminal-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
}

.terminal-top {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: -2rem -2rem 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dots .dot-red { background: #ef4444; }
.terminal-dots .dot-yellow { background: #eab308; }
.terminal-dots .dot-green { background: #22c55e; }

.terminal-top-title {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 1.5rem 0 0;
  color: var(--text-primary);
}

.terminal-body .line {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.terminal-body .prompt {
  color: var(--accent-cyan);
}

.terminal-body .cmd {
  color: var(--accent-teal);
}

.terminal-body .output {
  color: var(--text-muted);
}

.terminal-body .success {
  color: var(--accent-teal);
}

.terminal-body .highlight {
  color: var(--accent-violet);
  font-weight: 600;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-violet);
  margin-top: 0.4rem;
}

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--text-bright);
  animation: cursor-blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.08);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--text-bright);
  transform: translateX(4px);
}

.social-link svg,
.social-link i {
  width: 18px;
  height: 18px;
  color: var(--accent-violet);
}

/* Contact Form */
.contact-form-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: rgba(0, 0, 0, 0.4);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---------- Interactive Terminal Footer ---------- */
.terminal-footer {
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}

.terminal-window {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-color: rgba(34, 211, 238, 0.2);
}

.terminal-window:hover {
  transform: none;
}

.terminal-win-header {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.terminal-win-title {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-win-content {
  padding: 1.2rem 1.5rem;
  min-height: 130px;
  max-height: 260px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
}

.terminal-win-content p {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.terminal-input-line {
  display: flex;
  padding: 0 1.5rem 1.2rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.terminal-input-line .prompt {
  color: var(--accent-cyan);
  margin-right: 0.5rem;
  white-space: nowrap;
}

.terminal-input-line input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: inherit;
}

.terminal-input-line input:focus {
  outline: none;
}

/* ---------- Footer ---------- */
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.footer-bottom a {
  color: var(--accent-violet);
}

.footer-bottom a:hover {
  color: var(--accent-cyan);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.9s var(--ease-out-expo);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Projects Page Specific ---------- */
.page-hero {
  padding-top: 8rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
}

/* Filter Buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-bright);
  border-color: rgba(99, 102, 241, 0.25);
}

.filter-btn.active {
  background: var(--accent-indigo);
  color: white;
  border-color: var(--accent-indigo);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* Projects Grid (full page) */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card .card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Project card animation for filtering */
.project-card.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
}

.project-card.show {
  opacity: 1;
  transform: scale(1);
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}

/* ---------- Utility Classes ---------- */
.text-cyan { color: var(--accent-cyan); }
.text-violet { color: var(--accent-violet); }
.text-teal { color: var(--accent-teal); }
.text-solar { color: var(--accent-solar); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-indigo);
  border-radius: 3px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(6, 8, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .menu-toggle {
    display: flex;
  }

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

  .hero-actions .btn {
    width: fit-content;
  }

  .interests-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .scroll-indicator {
    display: none;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .terminal-top {
    margin: -1.5rem -1.5rem 0;
  }
}

@media (max-width: 480px) {
  .interests-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .section-spacing {
    padding: 4rem 0;
  }
}

/* ============================================
   Index (HTML) — layout & utilities
   Alinea el markup con glass / bento / terminal
   ============================================ */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent-indigo);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: left var(--transition-fast);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.bg-dark {
  background-color: var(--bg-void);
}

.text-light {
  color: var(--text-primary);
}

.text-emerald {
  color: var(--accent-teal);
}

.text-gray {
  color: var(--text-muted);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.nav-content {
  position: relative;
}

.glass-nav {
  background: rgba(6, 8, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.orb-1 {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 68%);
  top: -12%;
  right: -8%;
  animation: orb-float 22s ease-in-out infinite alternate;
}

.orb-2 {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
  bottom: 15%;
  left: -6%;
  animation: orb-float 28s ease-in-out infinite alternate-reverse;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-16px, 20px) scale(1.08); }
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}

.terminal-badge .prompt {
  color: var(--accent-teal);
  opacity: 0.95;
}

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

.glass-btn {
  background: rgba(99, 102, 241, 0.06) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(12px);
}

.glass-btn:hover {
  border-color: var(--glass-hover-border) !important;
  background: rgba(99, 102, 241, 0.12) !important;
}

.line-decorator {
  height: 2px;
  width: min(200px, 40%);
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  border-radius: var(--radius-full);
  opacity: 0.85;
}

/* Bento proyectos */
.bento-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, auto));
    align-items: stretch;
  }

  .bento-item.card-large {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .bento-item:not(.card-large) {
    grid-column: 2;
  }
}

.bento-item.glass-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bento-item .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.bento-item .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.bento-item .card-header .icon-accent {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
}

.bento-item .card-header .icon-accent svg {
  width: 22px;
  height: 22px;
}

.bento-item .links {
  display: flex;
  gap: 0.65rem;
}

.bento-item .links a {
  color: var(--text-muted);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.bento-item .links a:hover {
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.bento-item .links svg {
  width: 20px;
  height: 20px;
}

.bento-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.bento-item p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.tech-stack li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--accent-violet);
}

.terminal-stack li {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.18);
  color: var(--accent-cyan);
}

.outline-terminal {
  border-color: rgba(34, 211, 238, 0.25) !important;
}

.outline-terminal:hover {
  border-color: rgba(34, 211, 238, 0.45) !important;
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.06);
}

/* Skills — categorías */
.skill-category {
  height: 100%;
}

.skill-category .category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.skill-category .category-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.skill-category .category-header svg {
  width: 22px;
  height: 22px;
}

.skill-category:not(.terminal-card) .skill-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.skill-category:not(.terminal-card) .skill-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

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

.skill-category.terminal-card .terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--glass-border);
  margin: 0;
}

.skill-category.terminal-card .dots {
  display: flex;
  gap: 6px;
}

.skill-category.terminal-card .red-dot,
.skill-category.terminal-card .yellow-dot,
.skill-category.terminal-card .green-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.skill-category.terminal-card .red-dot { background: #ef4444; }
.skill-category.terminal-card .yellow-dot { background: #eab308; }
.skill-category.terminal-card .green-dot { background: #22c55e; }

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

.skill-category.terminal-card .terminal-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.skill-category.terminal-card .sysadmin-output {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0.35rem 0 0.75rem;
}

.skill-category.terminal-card .terminal-skill-list {
  margin: 0.5rem 0 0;
  padding: 0;
}

.skill-category.terminal-card .terminal-skill-list li {
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.skill-category.terminal-card .highlight-sysadmin {
  color: var(--accent-violet);
  font-weight: 500;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(129, 140, 248, 0.5);
  margin-top: 0.5rem !important;
}

.cursor-blink {
  animation: cursor-blink 1s step-end infinite;
}

/* Contacto & about */
.contact-container {
  display: grid;
  gap: 1.75rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.about-flex {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .about-flex {
    flex-direction: row;
    align-items: flex-start;
  }
}

.gif-container {
  flex-shrink: 0;
}

.gif-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.08));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gif-text {
  opacity: 0.9;
}

.about-text h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.contact-form-container {
  padding: 1.75rem;
}

.contact-form-container h3 {
  font-size: 1.2rem;
  margin-bottom: 1.35rem;
}

.contact-form .btn .icon-small {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  padding-bottom: 1rem;
}

/* Terminal footer — contenido scrollable */
#terminal-content {
  padding: 1.1rem 1.35rem;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.55;
}

#terminal-content p {
  margin-bottom: 0.45rem;
}

.terminal-window .terminal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.terminal-window .terminal-header .dots {
  position: absolute;
  left: 1rem;
  display: flex;
  gap: 6px;
}

.terminal-window .red-dot,
.terminal-window .yellow-dot,
.terminal-window .green-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-window .red-dot { background: #ef4444; }
.terminal-window .yellow-dot { background: #eab308; }
.terminal-window .green-dot { background: #22c55e; }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .glow-orb,
  .orb-1,
  .orb-2,
  .text-gradient {
    animation: none !important;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* ==========================================================================
   ELEVATION PACK - 120% Upgrade Styles (Starfield, Interactive Apps & 3D)
   ========================================================================== */

/* Starfield canvas overlay */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* behind nav but above background void */
  pointer-events: none;
  opacity: 0.85;
}

/* 3D Bento Card Tilting Effect & Modern Overlays */
.bento-item {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bento-item:hover {
  transform: translateY(-6px) rotateX(1.5deg) rotateY(1.5deg) !important;
  box-shadow: 0 15px 45px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

/* KPI Widget for Room Reservation Card */
.kpi-widget {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 0.75rem;
  background: rgba(6, 8, 15, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.kpi-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kpi-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Mini To-Do Card UI Styles */
.mini-todo-container {
  margin: 1.25rem 0;
  padding: 0.9rem;
  background: rgba(6, 8, 15, 0.55);
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 212, 191, 0.12);
}

.todo-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.todo-input-row input {
  flex: 1;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.todo-input-row input:focus {
  border-color: var(--accent-teal);
}

.todo-btn {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.todo-btn:hover {
  background: var(--accent-teal);
  color: var(--bg-void);
  transform: scale(1.05);
}

.todo-btn svg {
  width: 16px;
  height: 16px;
}

.mini-todo-list {
  max-height: 110px;
  overflow-y: auto;
  padding-right: 0.2rem;
  list-style: none;
}

.mini-todo-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.35rem;
  background: rgba(15, 20, 40, 0.3);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent-teal);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mini-todo-list li:hover {
  background: rgba(15, 20, 40, 0.6);
  color: var(--text-bright);
}

.mini-todo-list li.completed {
  border-left-color: var(--text-muted);
  opacity: 0.55;
  text-decoration: line-through;
}

.mini-todo-list li span {
  flex-grow: 1;
  padding-right: 0.5rem;
}

.delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
  padding: 0.15rem;
}

.delete-btn:hover {
  color: #ef4444;
}

.delete-btn svg {
  width: 14px;
  height: 14px;
}

/* Mini Chat Bot Widget UI Styles */
.mini-bot-container {
  margin: 1.25rem 0;
  padding: 0.9rem;
  background: rgba(6, 8, 15, 0.55);
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 211, 238, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mini-bot-messages {
  height: 95px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.bot-msg {
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  max-width: 90%;
  line-height: 1.4;
}

.bot-msg.system {
  color: var(--text-muted);
  font-style: italic;
  padding: 0;
}

.bot-msg.incoming {
  align-self: flex-start;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
}

.bot-msg.outgoing {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-bright);
}

.typing-indicator {
  animation: cursor-blink 1s infinite alternate;
}

.mini-bot-quick-replies {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.reply-pill {
  background: rgba(34, 211, 238, 0.05);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reply-pill:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.mini-bot-input-row {
  display: flex;
  gap: 0.4rem;
}

.mini-bot-input-row input {
  flex: 1;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.mini-bot-input-row input:focus {
  border-color: var(--accent-cyan);
}

.mini-bot-input-row button {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mini-bot-input-row button:hover {
  background: var(--accent-cyan);
  color: var(--bg-void);
}

.mini-bot-input-row button svg {
  width: 12px;
  height: 12px;
}

/* GitHub Stats Widget UI Styles */
.github-stats-widget {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(6, 8, 15, 0.55);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.12);
  padding: 0.9rem;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.4rem;
}

.stats-row:last-child {
  border-bottom: none;
}

.stat-name {
  color: var(--text-secondary);
}

.stat-value {
  font-weight: 600;
}

.stats-footer {
  margin-top: 0.35rem;
}

.stats-footer .btn {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* Improved Conic Avatar Ring Alignment */
.avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--accent-indigo), var(--accent-cyan), var(--accent-teal), var(--accent-indigo));
  animation: orbit-ring 12s linear infinite;
  position: relative;
  flex-shrink: 0;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-space);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-indigo), var(--accent-cyan), var(--accent-teal), var(--accent-indigo));
  filter: blur(12px);
  opacity: 0.45;
  z-index: -1;
  animation: orbit-ring 12s linear infinite;
}
@keyframes orbit-ring {
  100% { filter: hue-rotate(360deg); }
}

/* Retro-terminal visual layouts for terminal commands */
.neofetch-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  background: rgba(6, 8, 15, 0.3);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin: 0.5rem 0;
}

.neofetch-logo {
  line-height: 1.1;
  white-space: pre;
}

.neofetch-stats {
  line-height: 1.45;
  white-space: pre-wrap;
}

.skills-retro, .projects-retro {
  background: rgba(6, 8, 15, 0.3);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin: 0.5rem 0;
  line-height: 1.6;
}

.skills-retro span {
  font-weight: bold;
}

.projects-retro a:hover {
  text-decoration: underline !important;
}

.terminal-input-line input:disabled {
  background: transparent;
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Custom scrollbars for widgets */
.mini-todo-list::-webkit-scrollbar,
.mini-bot-messages::-webkit-scrollbar,
#terminal-content::-webkit-scrollbar {
  width: 4px;
}

.mini-todo-list::-webkit-scrollbar-track,
.mini-bot-messages::-webkit-scrollbar-track,
#terminal-content::-webkit-scrollbar-track {
  background: transparent;
}

.mini-todo-list::-webkit-scrollbar-thumb,
.mini-bot-messages::-webkit-scrollbar-thumb,
#terminal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.mini-todo-list::-webkit-scrollbar-thumb:hover,
.mini-bot-messages::-webkit-scrollbar-thumb:hover,
#terminal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   EXPANSION PACK - Additional Projects, neon badges and Dynamic Filters
   ========================================================================== */

.more-projects {
  position: relative;
  z-index: 2;
}

.more-projects .filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.more-projects .filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.more-projects .filter-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-bright);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.more-projects .filter-btn.active {
  background: var(--accent-indigo);
  color: white;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.45);
}

/* Badges Cyberpunk */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-enterprise {
  background: rgba(129, 140, 248, 0.1);
  color: var(--accent-violet);
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.15);
}

/* Filtering Transitions for projects */
.projects-grid .project-card {
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.projects-grid .project-card.hide {
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  pointer-events: none;
  display: none !important;
}

.projects-grid .project-card.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  display: block !important;
}

.projects-grid .project-card:hover {
  transform: translateY(-6px) rotateX(1.5deg) rotateY(1.5deg) !important;
  box-shadow: 0 15px 45px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

/* ==========================================
   8. ADVANCED ANIMATIONS & CYBERPUNK UI
   ========================================== */

/* --- Scroll Reveal Animations --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-up.active, .reveal-scale.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Glitch Text Effect --- */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.glitch-text::before {
  color: var(--accent-cyan);
  z-index: -1;
  animation: glitch-anim-1 3s infinite linear alternate-reverse;
}
.glitch-text::after {
  color: var(--accent-indigo);
  z-index: -2;
  animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
  10% { clip-path: inset(50% 0 30% 0); transform: translate(2px, -1px); }
  20% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, 2px); }
  30% { clip-path: inset(10% 0 60% 0); transform: translate(2px, 1px); }
  40%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}
@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
  10% { clip-path: inset(30% 0 20% 0); transform: translate(-2px, 1px); }
  20% { clip-path: inset(70% 0 10% 0); transform: translate(1px, -2px); }
  30% { clip-path: inset(40% 0 50% 0); transform: translate(-1px, -1px); }
  40%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

/* --- Glow Hover Cards (Mouse Tracking) --- */
.glow-card {
  position: relative;
}
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
    rgba(99, 102, 241, 0.15),
    transparent 40%
  );
  z-index: 1;
}
.glow-card:hover::after {
  opacity: 1;
}

/* --- Typewriter Effect --- */
.typewriter {
  border-right: 2px solid var(--accent-cyan);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: typewriter-blink 0.8s step-end infinite;
}
@keyframes typewriter-blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--accent-cyan); }
}

/* --- Cyber Toasts (Notifications) --- */
.cyber-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
  pointer-events: none;
}
.cyber-toast {
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--accent-cyan);
  border-top: 1px solid rgba(34, 211, 238, 0.2);
  border-right: 1px solid rgba(34, 211, 238, 0.2);
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--text-bright);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(34, 211, 238, 0.1);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  pointer-events: auto;
}
.cyber-toast.show {
  transform: translateX(0);
  opacity: 1;
}
.cyber-toast .toast-title {
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- HUD Decorations --- */
.hud-element {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
}
.hud-top-left { top: 2rem; left: 2rem; }
.hud-top-right { top: 2rem; right: 2rem; text-align: right; }
.hud-bottom-left { bottom: 2rem; left: 2rem; }
.hud-bottom-right { bottom: 2rem; right: 2rem; text-align: right; }

.hud-line {
  width: 50px;
  height: 1px;
  background: var(--accent-cyan);
  margin-top: 5px;
  opacity: 0.5;
}
.hud-top-right .hud-line, .hud-bottom-right .hud-line {
  margin-left: auto;
}

/* ==========================================
   9. GLOBAL MODAL & A11Y
   ========================================== */

/* --- A11y & Theme Toggle Buttons --- */
.a11y-toggle, .theme-toggle {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-bright);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}
.a11y-toggle:hover, .theme-toggle:hover {
  border-color: var(--accent-indigo);
  background: var(--glass-glow);
}
.a11y-toggle i, .theme-toggle i { width: 20px; height: 20px; }

@media (min-width: 768px) {
  .a11y-toggle { margin-right: 0; }
  .theme-toggle { margin-right: 0; }
}

/* --- Global Project Modal --- */
.project-modal {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  width: 90%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  overflow: visible;
  outline: none;
}
.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
}
.project-modal[open]::backdrop {
  animation: fadeInBackdrop 0.3s ease forwards;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-inner {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 0 1px var(--glass-border);
  opacity: 0;
  transform: scale(0.95) translateY(20px);
}
.project-modal[open] .modal-inner {
  animation: modalEnter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.close-modal:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-bright);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.modal-header h3 {
  font-size: 1.5rem;
  margin: 0;
}
.modal-body {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.modal-tags {
  margin-bottom: 2rem;
}
.modal-tags .tech-tags {
  margin: 0;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-highlights {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-highlights li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}
.modal-highlights li svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

/* ==========================================
   10. PRINT STYLES & ACCELERATION
   ========================================== */

/* ==========================================
    11. NEW SECTIONS (Currently, Timeline, Certs, Blog, About Links)
    ========================================== */

/* --- Currently Section --- */
.currently-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .currently-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.currently-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.currently-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
}
.currently-icon svg {
  width: 24px;
  height: 24px;
}
.currently-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.currently-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.8rem;
}
.currently-card p:last-child {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Timeline Section --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo), transparent);
}
@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-block {
  position: relative;
  padding-left: 48px;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .timeline-block {
    padding-left: 0;
    width: 50%;
    margin-left: 0;
    padding-right: 2.5rem;
  }
  .timeline-block:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 2.5rem;
  }
}
.timeline-marker {
  position: absolute;
  left: 8px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-void);
  box-shadow: 0 0 0 2px var(--accent-cyan), 0 0 15px rgba(34, 211, 238, 0.3);
  z-index: 2;
}
.timeline-marker.current {
  background: var(--accent-teal);
  box-shadow: 0 0 0 2px var(--accent-teal), 0 0 20px rgba(45, 212, 191, 0.4);
  animation: marker-pulse 2s ease-in-out infinite;
}
.timeline-marker.edu {
  background: var(--accent-indigo);
  box-shadow: 0 0 0 2px var(--accent-indigo), 0 0 15px rgba(99, 102, 241, 0.3);
}
@keyframes marker-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
@media (min-width: 768px) {
  .timeline-marker {
    left: auto;
    right: -9px;
  }
  .timeline-block:nth-child(even) .timeline-marker {
    left: -9px;
    right: auto;
  }
}
.timeline-content {
  padding: 1.25rem;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}
.timeline-content h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* --- Certifications Section --- */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cert-card {
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.cert-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
}
.cert-badge svg {
  width: 22px;
  height: 22px;
}
.cert-card h3 {
  font-size: 0.95rem;
  margin: 0;
}
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.cert-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* --- Blog / Writing Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.blog-card {
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.blog-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(34, 211, 238, 0.1);
}
.blog-icon svg {
  width: 24px;
  height: 24px;
}
.blog-card h3 {
  font-size: 1.1rem;
  margin: 0;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- About Social Links --- */
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.about-links .btn {
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}
.about-links .btn svg {
  width: 16px;
  height: 16px;
}

/* GPU Acceleration for smooth animations */
.reveal-up, .reveal-scale, .glass-card, .project-card, .modal-inner {
  will-change: transform, opacity;
}

/* Print Styles for CV rendering */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  #starfield-canvas,
  .hud-container,
  .theme-toggle,
  .a11y-toggle,
  .menu-toggle,
  .primary-nav,
  .cyber-toast-container,
  .bot-widget,
  .terminal-widget {
    display: none !important;
  }
  .glass-card, .project-card, .ecosystem-grid, .modal-inner {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: transparent !important;
    page-break-inside: avoid;
  }
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
  .tech-tags li {
    border: 1px solid #666 !important;
    color: #333 !important;
    background: transparent !important;
  }
}

/* ==========================================
   11. GOD TIER FEATURES
   ========================================== */

/* --- Custom Cursor (dot + ring) --- */
.cursor-dot, .cursor-ring {
  display: none;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: #ffffff;
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 2px solid var(--accent-cyan);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.2);
}
body.light-theme .cursor-dot {
  background: #1a1a2e;
}
body.light-theme .cursor-ring {
  border-color: var(--accent-solar);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}
body:not(.cursor-disabled) a,
body:not(.cursor-disabled) button,
body:not(.cursor-disabled) .interactive-card,
body:not(.cursor-disabled) .glass-card,
body:not(.cursor-disabled) .project-card,
body:not(.cursor-disabled) .hover-magnetic {
  cursor: none;
}
body:not(.cursor-disabled) .cursor-dot,
body:not(.cursor-disabled) .cursor-ring {
  display: block;
}
.cursor-dot.hovering {
  width: 6px; height: 6px;
  background: transparent;
}
.cursor-ring.hovering {
  width: 44px; height: 44px;
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent-violet);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}
@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* --- Preloader --- */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: #06080f;
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  color: #33ff33; font-family: var(--font-mono); font-size: 0.9rem;
  transition: opacity 0.5s ease;
}
.preloader.fade-out { opacity: 0; pointer-events: none; }
.terminal-loader { width: 90%; max-width: 600px; }
.prompt { color: #22d3ee; }
.typing { border-right: 2px solid #33ff33; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }
.loader-logs { margin-top: 1rem; color: #a1a1aa; display: flex; flex-direction: column; gap: 0.5rem;}

/* --- GitHub Grid --- */
.github-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gh-repo-card {
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.gh-repo-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0; }
.gh-repo-card h3 a { color: var(--text-bright); text-decoration: none; }
.gh-repo-card p { font-size: 0.9rem; color: var(--text-secondary); flex-grow: 1; margin: 0; }
.gh-stats { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); align-items: center; }
.gh-stats i { width: 14px; height: 14px; }

/* --- Nav Toggles Container --- */
.nav-toggles { display: flex; gap: 0.5rem; align-items: center; }
.lang-toggle, .sound-toggle {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-bright);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}
.lang-toggle:hover, .sound-toggle:hover {
  border-color: var(--accent-indigo);
  background: var(--glass-glow);
}
.lang-toggle { width: 36px; height: 36px; padding: 0; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; }
.sound-toggle i { width: 20px; height: 20px; }
