/* ─── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  /* Paleta Rich Black & Green - Sofisticada Técnica */
  --primary: #00DF81;      /* Caribbean Green - principal */
  --primary-dark: #03624C; /* Bangladesh Green - oscuro */
  --primary-light: #2CC295; /* Mountain Meadow - claro */
  
  /* Colores de Estado - Paleta Verde */
  --success: #00DF81;      /* Caribbean Green - éxito */
  --warning: #AACC4C;      /* Pistachio - alertas */
  --danger: #17876D;       /* Frog - amenazas */
  --info: #2FA98C;         /* Mint - información */
  
  /* Fondos - Rich Black y Dark Green */
  --bg-primary: #032221;   /* Dark Green - base */
  --bg-secondary: #06302B; /* Pine - secundario */
  --bg-tertiary: #0B453A;  /* Basil - terciario */
  
  /* Texto - Anti-Flash White y Stone */
  --text-primary: #F1F7F6; /* Anti-Flash White - principal */
  --text-secondary: #707D7D; /* Stone - secundario */
  --text-muted: #095544;   /* Forest - muted */
  
  /* Bordes y acentos - Paleta completa */
  --border: #095544;       /* Forest - bordes */
  --border-light: #17876D; /* Frog - bordes claros */
  --accent: #00DF81;       /* Caribbean Green - acentos */
  
  /* Variables específicas - Tema verde */
  --card-bg: rgba(6, 48, 43, 0.8);
  --terminal-bg: #032221;
  --terminal-text: #00DF81;
  --accent-glow: rgba(0, 223, 129, 0.3);
  
  /* Aliases para compatibilidad */
  --secondary: var(--primary-dark);
  --surface: var(--card-bg);
  --surface-soft: var(--bg-tertiary);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --bg: var(--bg-primary);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-display: swap;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  text-align: justify;
}

/* Justificar todo el texto */
p, .about-description, .project__body, .cert-card__body, .course-card__description, 
.exp-summary, .contact p, .footer p, .about-intro p, .highlight-item p {
  text-align: justify !important;
}

/* Excepciones que no deben estar justificados */
h1, h2, h3, h4, h5, h6, .hero__title, .about-title, .project__title, 
.cert-card__name, .course-card__title, .nav-link, .button, .eyebrow,
.hero-subtitle, .meta span, .tag, .exp-tag, .skill-tag, .cert-tab__dot,
.lang-btn, .brand, .cta-button {
  text-align: left !important;
}

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

/* ─── Loading Screen ──────────────────────────────────────────────────────── */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  font-family: 'Fira Code', monospace;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.2em;
}

.loading-char {
  animation: flicker 0.1s infinite alternate;
}

.loading-char:nth-child(odd) {
  animation-delay: 0.1s;
}

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

/* ─── Matrix Background ───────────────────────────────────────────────────── */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
  filter: contrast(1.5) brightness(1.2);
}

/* ─── Terminal ────────────────────────────────────────────────────────────── */
.terminal, .hero-terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

.hero-terminal-main {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 255, 65, 0.2);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.terminal-header {
  background: var(--bg-tertiary);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

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

.btn.close { background: var(--danger); }
.btn.minimize { background: var(--warning); }
.btn.maximize { background: var(--success); }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.terminal-line {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.prompt {
  color: var(--text-primary);
  margin-right: 0.5rem;
}

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

.output {
  color: var(--text-primary);
  opacity: 0.8;
}

.typing {
  position: relative;
}

.typing::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--text-primary);
}

/* ─── CLI Elements ─────────────────────────────────────────────────────────── */
.cli-section {
  margin-bottom: 2rem;
}

.cli-line {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.cli-output {
  margin-left: 1.5rem;
  padding: 1rem;
  background: rgba(0, 255, 65, 0.05);
  border-left: 2px solid var(--text-primary);
  border-radius: 4px;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--text-primary);
}

/* ─── File Items (ls -la style) ───────────────────────────────────────────── */
.file-item {
  display: grid;
  grid-template-columns: auto auto auto auto auto 1fr;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.file-item:hover {
  background: rgba(0, 255, 65, 0.1);
}

.permissions {
  color: #5af78e;
}

.owner {
  color: #8cc7ff;
}

.group {
  color: #ff79c6;
}

.size {
  color: #f1fa8c;
}

.date {
  color: #bd93f9;
}

.filename {
  color: var(--text-primary);
  font-weight: 500;
}

.file-details {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

/* ─── CLI Form Elements ─────────────────────────────────────────────────────── */
.cli-form {
  margin-top: 1.5rem;
}

.cli-input {
  margin-bottom: 1.5rem;
}

.cli-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.input-line {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.input-line .prompt {
  margin: 0;
  padding: 0.5rem;
  background: rgba(0, 255, 65, 0.1);
  color: var(--text-primary);
}

.input-line input,
.input-line textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  padding: 0.5rem;
  outline: none;
}

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

.cli-submit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cli-submit:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.cli-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.cli-status.success {
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}

.cli-status.error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid #ff3b30;
  color: #ff3b30;
}

/* ─── Hero Terminal Profile ───────────────────────────────────────────────────── */
.hero-terminal-profile {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 255, 65, 0.2);
  height: 100%;
  min-height: 500px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.hero-terminal-profile .terminal-header {
  background: var(--bg-tertiary);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-terminal-profile .terminal-title {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.hero-terminal-profile .terminal-body {
  padding: 1rem;
  height: calc(100% - 40px);
  overflow-y: auto;
}

.hero-terminal-profile .terminal-line {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
}

.hero-terminal-profile .terminal-output {
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border-left: 2px solid var(--text-primary);
}

.profile-line {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}

.profile-line:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.service-status {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.service-status:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.cert-item {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.hero-terminal-profile .file-item {
  display: grid;
  grid-template-columns: auto auto auto auto auto 1fr;
  gap: 0.3rem;
  font-size: 0.7rem;
  margin-bottom: 0.3rem;
  padding: 0.3rem;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.hero-terminal-profile .file-item:hover {
  background: rgba(0, 255, 65, 0.1);
}

.hero-terminal-profile .permissions {
  color: #5af78e;
}

.hero-terminal-profile .owner {
  color: #8cc7ff;
}

.hero-terminal-profile .group {
  color: #ff79c6;
}

.hero-terminal-profile .size {
  color: #f1fa8c;
}

.hero-terminal-profile .date {
  color: #bd93f9;
}

.hero-terminal-profile .filename {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── Hero Visual Layout ─────────────────────────────────────────────────────── */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 980px) {
  .hero-visual {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-terminal {
    max-width: 100%;
  }
}

/* ─── Terminal Animations ───────────────────────────────────────────────────── */
.typing-delay {
  animation: typingDelay 2s infinite;
}

@keyframes typingDelay {
  0%, 70% { opacity: 0; }
  80%, 100% { opacity: 1; }
}

.status-item {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* ─── Terminal Actions ───────────────────────────────────────────────────── */
.terminal-actions {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.terminal-output .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.terminal-output .hero__meta span {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-output h1 {
  margin: 1rem 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--text-primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.terminal-output p {
  margin: 1rem 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── Glitch Effects ─────────────────────────────────────────────────────── */
.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%;
}

.glitch-text::before {
  animation: glitch-1 0.5s infinite;
  color: var(--error);
  z-index: -1;
}

.glitch-text::after {
  animation: glitch-2 0.5s infinite;
  color: var(--warning);
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); }
  25% { clip-path: inset(20% 0 30% 0); }
  50% { clip-path: inset(50% 0 20% 0); }
  75% { clip-path: inset(10% 0 60% 0); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(0 0 0 0); }
  25% { clip-path: inset(60% 0 10% 0); }
  50% { clip-path: inset(30% 0 40% 0); }
  75% { clip-path: inset(80% 0 5% 0); }
}

/* ─── Hero Subtitle ───────────────────────────────────────────────────────── */
.hero-subtitle {
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  margin-bottom: 1.5rem !important;
  margin-top: 0.5rem !important;
  color: var(--text-secondary) !important;
  opacity: 0.9 !important;
  line-height: 1.4 !important;
  max-width: 600px !important;
  display: block !important;
}

.typing-text {
  border-right: 2px solid var(--text-primary);
  animation: typing 3s steps(40) infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  0%, 50% { border-color: #00DF81; }
  51%, 100% { border-color: transparent; }
}

.cursor {
  animation: blink 1s infinite;
}

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

/* ─── Brand Styling ───────────────────────────────────────────────────────── */
.brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ─── CLI Navigation ───────────────────────────────────────────────────────── */
.cli-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cli-nav-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.cli-nav-items a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cli-nav-items a:hover {
  color: var(--text-primary);
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--text-primary);
}

.cli-nav-items a.active {
  color: var(--text-primary);
  background: rgba(0, 255, 65, 0.2);
  border-color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(0, 255, 65, 0.02) 0%, transparent 12%), radial-gradient(circle at 30% 20%, rgba(0, 255, 65, 0.08), transparent 15%), radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.06), transparent 18%);
  pointer-events: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 8, 18, 0.93);
  border-bottom: 1px solid rgba(0, 255, 65, 0.08);
  padding: 1rem 0;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  height: 54px;
  padding: 0 1rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  padding: 0.2rem 0;
}

.brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.18s;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

.brand:hover {
  color: rgba(255,255,255,0.9);
}

.nav {
  display: flex;
  gap: 0;
  flex: 1;
  justify-content: center;
  align-items: center;
  overflow-x: visible;
  overflow-y: visible;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.nav a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 223, 129, 0.3);
}

.nav a.active {
  color: var(--primary);
  background: rgba(0, 255, 65, 0.08);
}

.nav a.ghost {
  background: transparent;
  border: none;
  position: relative;
  padding: 0.3rem 0.6rem;
  margin: 0 0.2rem;
}

.nav a.ghost::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  opacity: 0;
}

.nav a.ghost:hover::before {
  width: 100%;
  opacity: 1;
}

.nav a.ghost:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav a.ghost.active {
  color: var(--primary);
}

.nav a.ghost.active::before {
  width: 0;
}

.nav a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}

.nav a.active {
  color: var(--primary);
  background: rgba(0, 255, 65, 0.08);
}

.nav a.active::before {
  width: 0;
}

.hero {
  padding: 5rem 0 2rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.hero__text {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
}

.hero__meta span {
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c8eaff;
  font-size: 0.9rem;
}

.hero p {
  color: #c4d8ff;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 223, 129, 0.3);
}

.button:active {
  transform: translateY(-1px) scale(0.98);
  transition: transform 0.1s ease;
}

.button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.button--primary {
  background: 
    linear-gradient(135deg, rgba(0, 223, 129, 0.9), rgba(0, 255, 65, 0.8)),
    radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1), transparent 40%);
  color: #081218;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 223, 129, 0.3);
  font-size: 0.85rem;
}

.button--small svg {
  margin-right: 0.5rem;
}

/* ─── Terminal Buttons Enhancement ────────────────────────────────────────── */
.terminal-buttons .btn {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.terminal-buttons .btn:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.terminal-buttons .btn:active {
  transform: scale(0.95);
}

.terminal-buttons .btn.close:hover {
  box-shadow: 0 0 15px var(--danger);
}

.terminal-buttons .btn.minimize:hover {
  box-shadow: 0 0 15px var(--warning);
}

.terminal-buttons .btn.maximize:hover {
  box-shadow: 0 0 15px var(--success);
}

.hero__image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.14), transparent 40%), rgba(7, 14, 35, 0.75);
  padding: 1.3rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.hero__image-container {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.hero__image img {
  border-radius: 22px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.tech-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(0, 255, 65, 0.4);
  border: 3px solid rgba(0, 255, 65, 0.8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0, 255, 65, 0.4), 0 0 0 1px rgba(0, 255, 65, 0.2) inset, 0 0 20px rgba(0, 255, 65, 0.3);
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s ease;
  cursor: help;
}

.tech-icon:hover {
  transform: scale(1.1);
  background: rgba(0, 255, 65, 0.6);
  border-color: rgba(0, 255, 65, 1);
  box-shadow: 0 8px 32px rgba(0, 255, 65, 0.6), 0 0 0 2px rgba(0, 255, 65, 0.4) inset, 0 0 30px rgba(0, 255, 65, 0.5);
}

.tech-icon svg {
  width: 24px;
  height: 24px;
}

.tech-icon--python {
  top: 15%;
  right: 15%;
  animation-delay: 0s;
}

.tech-icon--fortinet {
  top: 25%;
  left: 10%;
  animation-delay: 1.5s;
}

.tech-icon--cisco {
  bottom: 25%;
  right: 10%;
  animation-delay: 3s;
}

.tech-icon--nmap {
  bottom: 15%;
  left: 15%;
  animation-delay: 4.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  50% {
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

.hero__image-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

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

.section {
  background: var(--bg-primary);
  padding: 4rem 0;
  position: relative;
  transition: background 0.8s ease;
}

/* ─── 3D Modules Between Sections ───────────────────────────────────────────── */
.section-divider-3d {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  transform-style: preserve-3d;
  animation: rotate3d 8s linear infinite;
  z-index: 10;
}

.module-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--info));
  border: 2px solid rgba(0, 223, 129, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 223, 129, 0.3);
}

.module-3d.front {
  transform: translateZ(20px);
}

.module-3d.back {
  transform: rotateY(180deg) translateZ(20px);
}

.module-3d.right {
  transform: rotateY(90deg) translateZ(100px);
  width: 40px;
  height: 40px;
}

.module-3d.left {
  transform: rotateY(-90deg) translateZ(100px);
  width: 40px;
  height: 40px;
}

.module-3d.top {
  transform: rotateX(90deg) translateZ(20px);
  width: 200px;
  height: 40px;
}

.module-3d.bottom {
  transform: rotateX(-90deg) translateZ(20px);
  width: 200px;
  height: 40px;
}

@keyframes rotate3d {
  0% {
    transform: translateX(-50%) rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: translateX(-50%) rotateX(360deg) rotateY(360deg);
  }
}

/* ─── Module 3D Hover Effects ─────────────────────────────────────────────── */
.section-divider-3d:hover {
  animation-play-state: paused;
  transform: translateX(-50%) rotateX(-20deg) rotateY(45deg);
  transition: transform 0.3s ease;
}

.section-divider-3d:hover .module-3d {
  box-shadow: 0 8px 30px rgba(0, 223, 129, 0.5);
}

.section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(3, 34, 33, 0.1) 50%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 1;
}


/* ─── Scroll-in animation ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.section--dark {
  background: var(--bg-primary);
  padding: 4rem 0;
  position: relative;
  transition: background 0.8s ease;
}

.section-separated {
  padding: 6rem 0 !important;
  margin-top: 3rem !important;
  border-bottom: 5px solid rgba(0, 223, 129, 0.8) !important;
  box-shadow: 0 4px 20px rgba(0, 223, 129, 0.4) !important;
}

.section--dark::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(3, 34, 33, 0.1) 50%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 1;
}


.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.8vw, 3rem);
  letter-spacing: -0.03em;
}

.section p {
  max-width: 760px;
  color: #b8cff7;
}

.cards,
.projects {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card,
.project {
  background: rgba(7, 15, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow: hidden;
  max-width: 400px;
}

.card::before,
.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 223, 129, 0.95), rgba(47, 194, 149, 0.95));
}

.card:nth-child(1)::before { background: linear-gradient(90deg, var(--success), var(--primary)); }
.card:nth-child(2)::before { background: linear-gradient(90deg, var(--primary), var(--info)); }
.card:nth-child(3)::before { background: linear-gradient(90deg, var(--info), var(--warning)); }

.card h3,
.project h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h2 {
  margin-bottom: 1rem;
}

.contact-header p {
  color: #b8cff7;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

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

.contact-info-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--primary);
}

.contact-info-item p {
  margin: 0;
  color: #c4d8ff;
}

.contact-info-item a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact__form {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #d6e3ff;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f8ff;
  border: 2px solid rgba(255, 255, 255, 0.08);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 255, 65, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
}

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

.contact__form .button,
.contact-form .button {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
}

.status-message {
  color: #8af3a3;
  font-size: 0.95rem;
  min-height: 1.4rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.status-message.error {
  color: var(--danger);
  background: rgba(23, 135, 109, 0.1);
  border: 1px solid rgba(23, 135, 109, 0.2);
}

.status-message.success {
  color: var(--success);
  background: rgba(0, 223, 129, 0.1);
  border: 1px solid rgba(0, 223, 129, 0.2);
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
/* ─── Footer Contact Strip ─────────────────────────────────────────────────── */
.footer__contact-strip {
  border-top: 1px solid rgba(0,223,129,0.15);
  border-bottom: 1px solid rgba(0,223,129,0.08);
  padding: 1rem 0;
  background: rgba(0,223,129,0.03);
}

.footer__contact-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  white-space: nowrap;
}

.footer__contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__contact-link:hover {
  color: var(--primary);
}

.footer { padding: 1.2rem 0; background: #020d0c; border-top: none; position: relative; }



.footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,223,129,0.3), transparent);
}

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

.footer__brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

.footer__socials {
  display: flex;
  gap: 0.5rem;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.15s;
}

.footer__social:hover {
  color: var(--primary);
  border-color: rgba(0,255,65,0.3);
  background: rgba(0,255,65,0.06);
  transform: translateY(-2px);
}

.footer__social svg { width: 13px; height: 13px; }

.footer__right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  margin: 0;
  white-space: nowrap;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

.footer__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
  box-shadow: 0 0 5px var(--primary);
  animation: blink 2s ease-in-out infinite;
}

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

@media (max-width: 600px) {
  .footer__bar {
    justify-content: center;
    text-align: center;
  }
  .footer__right {
    justify-content: center;
  }
}

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

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

@media (max-width: 720px) {
  .nav {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0.25rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 0.78rem; padding: 0.3rem 0.45rem; }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .tech-icon {
    width: 44px;
    height: 44px;
  }

  .tech-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* ─── Certifications grid ─────────────────────────────────────────────────── */
.certifications-section--dark {
  background: linear-gradient(135deg, 
    var(--bg-primary) 0%, 
    var(--bg-secondary) 30%, 
    var(--bg-tertiary) 70%, 
    var(--bg-secondary) 100%
  );
  position: relative;
  color: var(--text);
  padding: 4rem 0;
  overflow: hidden;
}

.certifications-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 223, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(47, 194, 149, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(23, 135, 109, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.certifications {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.certification {
  background: rgba(7, 15, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid rgba(0, 255, 65, 0.45);
  border-radius: 14px;
  padding: 1.25rem 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s;
}

.certification:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
}

.cert-category {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 255, 65, 0.8);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.1rem;
}

.certification h3 {
  color: rgba(255,255,255,0.92);
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.cert-meta {
  color: rgba(255,255,255,0.38);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
}

.cert-desc {
  color: rgba(255,255,255,0.58);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0.2rem 0 0;
  flex: 1;
}

.cert-links {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cert-link {
  color: rgba(0, 255, 65, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s;
}

.cert-link:hover { color: var(--primary); }

/* Category color overrides */
.certification[data-category="networks"] {
  border-top-color: rgba(93, 224, 183, 0.5);
}
.certification[data-category="networks"] .cert-category { color: #5de0b7; }
.certification[data-category="networks"] .cert-link { color: rgba(93,224,183,0.7); }
.certification[data-category="networks"] .cert-link:hover { color: #5de0b7; }

.certification[data-category="cybersecurity"] {
  border-top-color: rgba(130, 170, 255, 0.5);
}
.certification[data-category="cybersecurity"] .cert-category { color: #82aaff; }
.certification[data-category="cybersecurity"] .cert-link { color: rgba(130,170,255,0.7); }
.certification[data-category="cybersecurity"] .cert-link:hover { color: #82aaff; }

.certification[data-category="office"] {
  border-top-color: rgba(255, 209, 102, 0.5);
}
.certification[data-category="office"] .cert-category { color: #ffd166; }
.certification[data-category="office"] .cert-link { color: rgba(255,209,102,0.7); }
.certification[data-category="office"] .cert-link:hover { color: #ffd166; }

@media (max-width: 900px) {
  .certifications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .certifications { grid-template-columns: 1fr; }
}



.education-timeline {
  position: relative;
  padding-left: 2.4rem;
  margin-top: 2rem;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(0, 255, 65, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.12);
}

.education-item {
  position: relative;
  background: rgba(10, 16, 22, 0.88);
  padding: 1.8rem 1.8rem 1.8rem 2.6rem;
  margin-bottom: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.education-item:nth-child(1) {
  animation-delay: 0.08s;
}

.education-item:nth-child(2) {
  animation-delay: 0.18s;
}

.education-item:nth-child(3) {
  animation-delay: 0.28s;
}

.education-item::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 1.7rem;
  width: 1.1rem;
  height: 1.1rem;
  background: rgba(0, 255, 65, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.35);
}

.education-item:hover {
  transform: translateY(-4px);
}

.education-item h3 {
  color: #f5f9ff;
  margin-bottom: 0.45rem;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
}

.education-meta {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.education-item p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
  font-size: 1rem;
}

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

/* ─── Experience Simple Design ─────────────────────────────────────────── */
.experience-simple {
  max-width: 800px;
  margin: 0 auto;
}

.exp-card {
  background: linear-gradient(135deg, rgba(5, 12, 32, 0.8), rgba(10, 25, 47, 0.6));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.exp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 65, 0.25);
}

.exp-header {
  margin-bottom: 1.5rem;
}

.exp-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem 0;
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.exp-company {
  color: var(--secondary);
  font-weight: 500;
  font-size: 1rem;
}

.exp-period {
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.6);
}

.exp-badge {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0,255,65,0.15);
  border: 1px solid rgba(0,255,65,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

.exp-summary {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.exp-tag {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,255,65,0.06);
  border: 1px solid rgba(0,255,65,0.15);
  color: rgba(0,255,65,0.85);
}

.exp-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.exp-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.exp-bullet {
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--primary);
  opacity: 0.8;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

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

/* Responsive */
@media (max-width: 768px) {
  .exp-card {
    padding: 1.5rem;
  }
  
  .exp-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ─── Language Orbs - Design Sorprendente ────────────────────────────────────────── */
.languages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
  position: relative;
}


.language-orb {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.orb-svg {
  width: 240px;
  height: 240px;
  filter: drop-shadow(0 0 30px rgba(0, 223, 129, 0.3));
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.language-orb:hover .orb-svg {
  transform: scale(1.05) rotate(5deg);
  filter: drop-shadow(0 0 50px rgba(0, 223, 129, 0.5));
}

.orb-bg {
  transition: stroke 0.6s ease;
}

.orb-progress {
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
  animation: orbPulse 3s ease-in-out infinite;
}

.orb-percentage {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(0, 223, 129, 0.8);
  transition: all 0.6s ease;
}

.orb-label {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.6s ease;
}

.orb-level {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.6s ease;
}

.orb-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 223, 129, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.language-orb:hover .orb-glow {
  opacity: 1;
  animation: orbGlowPulse 2s ease-in-out infinite;
}

/* Animaciones Sorprendentes */
@keyframes orbPulse {
  0%, 100% {
    stroke-width: 8;
    opacity: 1;
  }
  50% {
    stroke-width: 10;
    opacity: 0.8;
  }
}

@keyframes orbGlowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Efectos de hover avanzados */
.language-orb:hover .orb-percentage {
  font-size: 32px;
  text-shadow: 0 0 30px rgba(0, 223, 129, 1);
}

.language-orb:hover .orb-label {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.language-orb:hover .orb-level {
  color: #00ffff;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .languages-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0;
  }
  
  .orb-svg {
    width: 200px;
    height: 200px;
  }
  
  .orb-percentage {
    font-size: 24px;
  }
  
  .language-orb {
    min-height: 220px;
  }
}


/* nav active — see header block */

/* ─── Lang switcher ────────────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  flex-shrink: 0;
  padding: 0.15rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.lang-btn:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
}

.lang-btn.active {
  color: var(--primary);
  background: rgba(0,255,65,0.1);
}

.lang-btn + .lang-btn {
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* ─── Button outline variant ───────────────────────────────────────────────── */
.button--outline {
  background: transparent;
  border: 1.5px solid rgba(0, 255, 65, 0.45);
  color: var(--primary);
  min-width: 160px;
}
.button--outline:hover {
  background: rgba(0, 255, 65, 0.08);
  border-color: var(--primary);
}

/* ─── Button secondary ─────────────────────────────────────────────────────── */
.button--secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}
.button--secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ─── Card icon ────────────────────────────────────────────────────────────── */
.card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ─── Projects with image ──────────────────────────────────────────────────── */
.project {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: rgba(7, 15, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.project__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
}

.project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project:hover .project__image img {
  transform: scale(1.04);
}

.project__body {
  padding: 1.2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.project--lab {
  background: rgba(7, 15, 40, 0.96);
  justify-content: flex-start;
}
.project--lab .project__body {
  padding: 1.2rem 1.5rem 1.5rem;
}

.project:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}

/* Project tags */
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 223, 129, 0.15);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 223, 129, 0.2);
  letter-spacing: 0.05em;
}

/* Project links */
.project__links {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  gap: 1rem;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.project__link:hover {
  color: var(--primary);
}

/* ─── Certifications footer ────────────────────────────────────────────────── */
.certs-footer {
  margin-top: 2.5rem;
  text-align: center;
}

.certs-footer .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid rgba(0, 255, 65, 0.3);
  border-radius: 12px;
  background: rgba(0, 255, 65, 0.1);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.certs-footer .button:hover {
  background: rgba(0, 255, 65, 0.2);
  border-color: rgba(0, 255, 65, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2);
}

/* ─── Experience Cards Enhancement ───────────────────────────────────────── */
.exp-card__header {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exp-card__header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 223, 129, 0.1), transparent);
  transition: left 0.5s ease;
}

.exp-card__header:hover::before {
  left: 100%;
}

.exp-card__header:hover {
  background: rgba(0, 223, 129, 0.05);
  transform: translateX(4px);
}

.exp-card__header:active {
  transform: translateX(2px);
}

/* ─── Certification Tabs Enhancement ───────────────────────────────────────── */
.cert-tab {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-tab::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 223, 129, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.cert-tab:hover::before {
  width: 100%;
  height: 100%;
}

.cert-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 223, 129, 0.2);
}

.cert-tab.active {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 223, 129, 0.3);
}

.cert-tab:active {
  transform: scale(0.98);
}

/* ─── Language Switcher Enhancement ─────────────────────────────────────────── */
.lang-btn {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(0, 223, 129, 0.1);
  border: 1px solid rgba(0, 223, 129, 0.2);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0.2rem;
}

.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 223, 129, 0.2), transparent);
  transition: left 0.6s ease;
  border-radius: 6px;
}

.lang-btn:hover::before {
  left: 100%;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 223, 129, 0.2);
  border-color: rgba(0, 223, 129, 0.4);
  background: rgba(0, 223, 129, 0.15);
}

.lang-btn.active {
  box-shadow: 0 2px 8px rgba(0, 223, 129, 0.25);
  background: rgba(0, 223, 129, 0.2);
  border-color: rgba(0, 223, 129, 0.5);
}

.lang-btn:active {
  transform: translateY(-1px) scale(0.98);
}

@keyframes success-pulse {
  0% { background: rgba(0, 255, 65, 0.3); }
  50% { background: rgba(0, 255, 65, 0.5); }
  100% { background: rgba(0, 255, 65, 0.3); }
}

@keyframes checkmark-appear {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ─── CTA Button Enhancement ───────────────────────────────────────────────── */
.cta-button {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 223, 129, 0.3);
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

/* ─── Social links in contact ──────────────────────────────────────────────── */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.social-link {
  color: var(--secondary);
  font-weight: 600;
  transition: color 0.2s;
}
.social-link:hover {
  color: var(--primary);
}

/* ─── Footer links ─────────────────────────────────────────────────────────── */
/* footer links merged into footer__nav */

/* ─── Performance optimizations ────────────────────────────────────────────── */

/* CSS containment for better performance */
.hero,
.section,
.footer {
  contain: layout style paint;
}

/* GPU acceleration for animated elements */
.hero__image-overlay,
.tech-icon,
.hero__image-glow,
.reveal {
  will-change: transform, opacity;
}

/* Optimize images */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Enhanced accessibility ───────────────────────────────────────────────── */

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: var(--bg);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Enhanced responsiveness ──────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .container {
    width: min(960px, calc(100% - 2rem));
  }
}

@media (max-width: 768px) {
  .hero__content {
    text-align: center;
    gap: 2rem;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .hero__meta {
    justify-content: center;
  }
  
  .cards,
  .projects {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 1rem);
  }
  
  .hero {
    padding: 3rem 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  
  .hero__meta span {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .card,
  .project {
    padding: 1.5rem;
  }
  
  .tech-icon {
    width: 36px;
    height: 36px;
  }
  
  .tech-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ─── Enhanced animations ──────────────────────────────────────────────────── */

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Enhanced hover effects */
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}

.project:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
}

/* ─── Color scheme improvements ──────────────────────────────────────────────── */

/* ─── Print styles ─────────────────────────────────────────────────────────── */
@media print {
  .header,
  .hero__image-overlay,
  .tech-icon,
  .hero__image-glow,
  .footer,
  .contact__form {
    display: none;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  .hero {
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card,
  .project {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}

/* ─── Enhanced loading states ───────────────────────────────────────────────── */

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ─── Enhanced form validation ─────────────────────────────────────────────── */

.form-group input:invalid,
.form-group textarea:invalid {
  border-color: rgba(255, 107, 107, 0.5);
}

.form-group input:valid,
.form-group textarea:valid {
  border-color: rgba(138, 243, 163, 0.3);
}

/* ─── Enhanced button styles ────────────────────────────────────────────────── */

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

.button--primary:active {
  box-shadow: 0 10px 25px rgba(0, 255, 65, 0.3);
}

.button--outline:active {
  background: rgba(0, 255, 65, 0.15);
}

/* ─── Enhanced card animations ───────────────────────────────────────────────── */

.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Enhanced certification cards ─────────────────────────────────────────── */

.cert-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ─── Enhanced experience cards ─────────────────────────────────────────────── */

.exp-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card__header:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Enhanced language progress bars ─────────────────────────────────────────── */

.language__progress {
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.language:hover .language__progress {
  filter: brightness(1.2);
}

/* ─── Enhanced social links ───────────────────────────────────────────────────── */

.social-link:hover {
  transform: translateX(4px);
}

.footer__social:hover {
  transform: translateY(-4px) scale(1.1);
}

/* ─── Enhanced navigation ───────────────────────────────────────────────────── */

.nav a {
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Enhanced hero section ─────────────────────────────────────────────────── */

.hero__image-container {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__image-container:hover {
  transform: scale(1.02);
}

.hero__image img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__image-container:hover .hero__image img {
  transform: scale(1.05);
}

/* ─── Enhanced contact form ─────────────────────────────────────────────────── */

.contact__form {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 65, 0.2);
}



/* ─── Enhanced scroll animations ─────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  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; }


/* ─── Hero frame ─────────────────────────────────────────────────────────── */
.hero__image-container {
  position: relative;
}

.hero__image-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 34px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0,255,65,0.6), rgba(0,212,255,0.4), rgba(127,119,221,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* ─── Lab project placeholder visual ─────────────────────────────────────── */
.project__image--lab {
  height: 180px;
  background: rgba(5, 12, 32, 0.9);
  border-radius: 28px 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,255,65,0.1);
  overflow: hidden;
  position: relative;
}

.project__image--lab::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0,255,65,0.04) 28px, rgba(0,255,65,0.04) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(0,255,65,0.04) 28px, rgba(0,255,65,0.04) 29px);
}

.project__lab-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid rgba(0,255,65,0.25);
  background: rgba(0,255,65,0.06);
  position: relative;
  z-index: 1;
}

.project__lab-visual span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(0,255,65,0.7);
}

/* ─── Toast notification ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 320px;
  backdrop-filter: blur(12px);
}

.toast.toast--success {
  background: rgba(0, 40, 20, 0.95);
  border: 1px solid rgba(0,255,65,0.3);
  color: #8af3a3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.toast--error {
  background: rgba(40, 5, 5, 0.95);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* ─── Certification tabs ───────────────────────────────────────────────────── */
.cert-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 2rem;
  flex-wrap: wrap;
}

.cert-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  border: 1px solid rgba(0, 223, 129, 0.2);
  background: 
    linear-gradient(135deg, rgba(0, 223, 129, 0.04), rgba(0, 223, 129, 0.02));
  color: rgba(255,255,255,0.75);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.cert-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 223, 129, 0.08), transparent);
  transition: left 0.6s ease;
}

.cert-tab:hover::before {
  left: 100%;
}

.cert-tab:hover {
  border-color: rgba(0, 223, 129, 0.5);
  color: rgba(255,255,255,0.95);
  background: 
    linear-gradient(135deg, rgba(0, 223, 129, 0.08), rgba(0, 223, 129, 0.04));
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 6px 20px rgba(0, 223, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cert-tab.active {
  background: 
    linear-gradient(135deg, rgba(0, 223, 129, 0.15), rgba(0, 223, 129, 0.08));
  border-color: rgba(0, 223, 129, 0.6);
  color: #00DF81;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 8px 25px rgba(0, 223, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.cert-tab.active::before {
  left: 100%;
}

.cert-tab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cert-tab__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 223, 129, 0.08);
  border: 1px solid rgba(0, 223, 129, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  color: var(--primary);
  transition: all 0.3s ease;
  margin-left: 0.1rem;
}

.cert-tab:hover .cert-tab__count {
  background: rgba(0, 223, 129, 0.12);
  border-color: rgba(0, 223, 129, 0.3);
}

.cert-tab.active .cert-tab__count {
  background: rgba(0, 223, 129, 0.15);
  border-color: rgba(0, 223, 129, 0.4);
}

/* ─── Training Courses Section ───────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.course-card {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid rgba(0, 223, 129, 0.2);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--info));
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 223, 129, 0.4);
  box-shadow: 0 12px 30px rgba(0, 223, 129, 0.15);
}

.course-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.course-card__school {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.course-card__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 223, 129, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 223, 129, 0.2);
}

.course-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.course-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 223, 129, 0.15);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 223, 129, 0.2);
}

.course-card__description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.course-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.course-card__school {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.course-card__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 223, 129, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.course-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.course-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-tag {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 223, 129, 0.15);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 223, 129, 0.2);
}

.course-card__description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .course-card {
    padding: 1.5rem;
  }
}

/* ─── Certification cards ──────────────────────────────────────────────────── */
.certifications {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cert-card {
  position: relative;
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  border-top: 2px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.cert-card[data-category="cybersecurity"] {
  background: 
    linear-gradient(135deg, rgba(130, 170, 255, 0.08), rgba(130, 170, 255, 0.04)),
    radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1), transparent 40%);
  border: 1px solid rgba(130, 170, 255, 0.2);
  border-top: 3px solid #82aaff;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.cert-card[data-category="cybersecurity"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(130, 170, 255, 0.1), transparent);
  transition: left 1.2s ease;
  pointer-events: none;
}

.cert-card[data-category="cybersecurity"]:hover::before {
  left: 100%;
}

.cert-card[data-category="networks"] {
  background: rgba(93, 224, 183, 0.05);
  border: 1px solid rgba(93, 224, 183, 0.12);
  border-top: 2px solid #5de0b7;
}

.cert-card[data-category="office"] {
  background: rgba(255, 209, 102, 0.05);
  border: 1px solid rgba(255, 209, 102, 0.12);
  border-top: 2px solid #ffd166;
}

.cert-card__stripe { display: none; }
.cert-card::after  { display: none; }

.cert-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.cert-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.cert-card__issuer {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cert-card[data-category="cybersecurity"] .cert-card__issuer { 
  color: rgba(130,170,255,0.8); 
  text-shadow: 0 0 8px rgba(130,170,255,0.3);
}
.cert-card[data-category="networks"]      .cert-card__issuer { color: rgba(93,224,183,0.6); }
.cert-card[data-category="office"]        .cert-card__issuer { color: rgba(255,209,102,0.6); }

.cert-card__year {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.22);
}

.cert-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.35;
}

.cert-card__desc {
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.cert-card__link {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: block;
  transition: opacity 0.18s;
  opacity: 0.5;
}

.cert-card[data-category="cybersecurity"] .cert-card__link { color: #82aaff; }
.cert-card[data-category="networks"]      .cert-card__link { color: #5de0b7; }
.cert-card[data-category="office"]        .cert-card__link { color: #ffd166; }

.cert-card:hover .cert-card__link { opacity: 1; }

@media (max-width: 900px) {
  .certifications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .certifications { grid-template-columns: 1fr; }
  .cert-tabs { gap: 0.4rem; }
  .cert-tab { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
}

/* ─── About Section New Design ───────────────────────────────────────────────── */
.about-section {
  background: var(--bg-primary);
  padding: 6rem 0;
  position: relative;
  transition: background 0.8s ease;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(3, 34, 33, 0.1) 50%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}

/* ─── Profile Image Column ───────────────────────────────────────────────── */
.about-profile {
  position: relative;
}

.profile-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  box-shadow: 
    0 0 0 3px rgba(0, 223, 129, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.4);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.6s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: perspective(1000px) rotateY(5deg) scale(1.02);
  box-shadow: 
    0 0 0 3px rgba(0, 223, 129, 0.5),
    0 25px 50px rgba(0, 0, 0, 0.5);
}

.profile-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: contrast(1.05) brightness(1) saturate(1.1);
  mix-blend-mode: normal;
  transition: filter 0.3s ease;
}

.profile-image:hover img {
  filter: contrast(1.1) brightness(1.05) saturate(1.2);
}

.profile-image {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.profile-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.profile-image::after {
  content: '● ● ●';
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 4px;
  z-index: 11;
}

.profile-overlay {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid rgba(0, 223, 129, 0.4);
  border-radius: 12px;
  pointer-events: none;
}

.profile-overlay::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(0, 223, 129, 0.6);
  border-radius: 14px;
  pointer-events: none;
}

.profile-overlay::after {
  content: '✓ ACCESO CONCEDIDO';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: #00DF81;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(0, 223, 129, 0.6);
}

.profile-image {
  position: relative;
}

.profile-image::before {
  content: '🛡️';
  position: absolute;
  top: -35px;
  right: -10px;
  font-size: 20px;
  opacity: 0.7;
  z-index: 10;
  filter: drop-shadow(0 0 5px rgba(0, 223, 129, 0.5));
}

/* ─── Content Column ─────────────────────────────────────────────────── */
.about-content {
  color: var(--text-primary);
}

.about-header {
  margin-bottom: 2rem;
}

.about-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.about-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: 
    0 0 20px rgba(0, 223, 129, 0.3),
    0 0 40px rgba(0, 223, 129, 0.2);
  animation: richBlackGlow 3s ease-in-out infinite alternate;
}

.about-title::before {
  content: 'Who Am I';
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--danger) 0%, #17876D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: richBlackGlitch 4s infinite;
  z-index: -1;
}

@keyframes richBlackGlow {
  0% {
    text-shadow: 
      0 0 20px rgba(0, 223, 129, 0.3),
      0 0 40px rgba(0, 223, 129, 0.2);
    filter: brightness(1);
  }
  50% {
    text-shadow: 
      0 0 30px rgba(44, 194, 149, 0.4),
      0 0 50px rgba(44, 194, 149, 0.3);
    filter: brightness(1.1);
  }
  100% {
    text-shadow: 
      0 0 25px rgba(0, 223, 129, 0.5),
      0 0 45px rgba(0, 223, 129, 0.3);
    filter: brightness(1.05);
  }
}

@keyframes richBlackGlitch {
  0%, 100% {
    transform: translate(0);
    opacity: 0;
  }
  20% {
    transform: translate(-2px, 2px);
    opacity: 0.1;
  }
  40% {
    transform: translate(-2px, -2px);
    opacity: 0.2;
  }
  60% {
    transform: translate(2px, 2px);
    opacity: 0.1;
  }
  80% {
    transform: translate(2px, -2px);
    opacity: 0.05;
  }
}

.about-description {
  margin-bottom: 3rem;
}

.about-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.about-description p:last-child {
  margin-bottom: 0;
}

/* ─── Professional Highlights ───────────────────────────────────────────────── */
.highlights-section {
  margin-bottom: 3rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 223, 129, 0.02);
  border: 1px solid rgba(0, 223, 129, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.highlight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 223, 129, 0.2);
}

.highlight-item:hover::before {
  opacity: 1;
}

.highlight-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 223, 129, 0.1);
  border: 2px solid rgba(0, 223, 129, 0.2);
  border-radius: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.highlight-item:hover .highlight-icon {
  background: rgba(0, 223, 129, 0.2);
  border-color: var(--primary);
  transform: scale(1.05);
}

.highlight-content {
  flex: 1;
}

.highlight-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.highlight-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ─── Network Status Panel ───────────────────────────────────────────────── */
.network-status {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.network-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.status-title {
  font-size: 0.875rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.status-indicator.online {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-indicator.online::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid #10b981;
  animation: pulse 2s ease-in-out infinite;
}

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

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

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: #1f2937;
  border-radius: 6px;
  border: 1px solid #374151;
}

.status-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
}

.status-value {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.status-value.active {
  color: #10b981;
}

.status-value.low {
  color: #f59e0b;
}

.status-value:not(.active):not(.low) {
  color: #6366f1;
}

/* ─── CTA Button ─────────────────────────────────────────────────────── */
.about-cta {
  margin-top: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 223, 129, 0.15), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: rgba(0, 223, 129, 0.1);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px rgba(0, 223, 129, 0.3),
    inset 0 0 20px rgba(0, 223, 129, 0.05);
  color: var(--text-primary);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

.cta-button svg {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.cta-button span {
  position: relative;
  z-index: 1;
}

.cta-button:hover svg {
  transform: translateY(2px);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateY(2px);
}

/* ─── Responsive Design ───────────────────────────────────────────────── */
@media (max-width: 968px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .about-profile {
    order: 2;
  }
  
  .about-content {
    order: 1;
  }
  
  .about-title {
    font-size: 2.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .about-section {
    padding: 4rem 0;
  }
  
  .about-container {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .about-title {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .skill-box {
    padding: 0.75rem;
  }
  
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ─── Stats Grid ─────────────────────────────────────────────────────────── */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
  border-color: var(--primary);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Skills Section ─────────────────────────────────────────────────────── */
.skills-section {
  margin: 4rem 0;
  position: relative;
  transition: all 0.8s ease;
}

.skills-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(3, 34, 33, 0.1) 50%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.section-subtitle {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateX(5px);
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
}

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

.skill-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.skill-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.skill-level {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 1rem 0;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 1s ease;
  width: 0;
}

.skill-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 1rem 0 0 0;
}

/* ─── Timeline Section ─────────────────────────────────────────────────────── */
.timeline-section {
  margin: 4rem 0;
  position: relative;
  transition: all 0.8s ease;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(3, 34, 33, 0.1) 50%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.timeline-line {
  width: 2px;
  height: 100%;
  background: var(--border);
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-content {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(0, 255, 65, 0.1);
}

.timeline-date {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ─── Tools Section ───────────────────────────────────────────────────────── */
.tools-section {
  margin: 4rem 0;
  position: relative;
  transition: all 0.8s ease;
}

.tools-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(3, 34, 33, 0.1) 50%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.tool-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.2);
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.tool-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
}

.tool-item:hover span {
  color: var(--text-primary);
}

/* ─── Responsive Design for About Section ────────────────────────────────── */
@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .skills-grid {
    gap: 1.5rem;
  }
  
  .timeline-item {
    gap: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .section-subtitle {
    font-size: 1.5rem;
  }
}
/* ─── Hamburger Menu ─────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

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

/* ─── Mobile Nav Overlay ─────────────────────────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 34, 33, 0.97);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 2rem;
}

.mobile-nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  transition: color 0.2s, background 0.2s;
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--primary);
  background: rgba(0, 223, 129, 0.08);
  border-color: rgba(0, 223, 129, 0.2);
  outline: none;
}

.mobile-nav-lang {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}

/* ─── Project lab banner (no-image fallback) ─────────────────────────────────── */
.project__image--lab {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 223, 129, 0.04);
  border-bottom: 1px solid var(--border);
  min-height: 200px;
}

.project__lab-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.project__lab-banner svg {
  width: 80px;
  height: 80px;
}

/* ─── prefers-reduced-motion: disable heavy animations ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .matrix-bg { display: none !important; }
  .loading-char { animation: none !important; opacity: 1 !important; }
  .reveal { transition: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Show hamburger on small screens ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header .nav,
  .header .lang-switcher { display: none; }
  body.menu-open { overflow: hidden; }
}

/* ─── Skills Section ─────────────────────────────────────────────────────────── */
.skills-section { padding: 4rem 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-group {
  background: rgba(0, 223, 129, 0.03);
  border: 1px solid rgba(0, 223, 129, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  transition: border-color 0.25s, background 0.25s;
}

.skill-group:hover {
  border-color: rgba(0, 223, 129, 0.25);
  background: rgba(0, 223, 129, 0.06);
}

.skill-group__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 223, 129, 0.15);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-pill {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s, opacity 0.15s;
  cursor: default;
}

.skill-pill:hover { transform: translateY(-1px); opacity: 0.85; }

.skill-pill--net {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.2);
  color: #22D3EE;
}

.skill-pill--cyber {
  background: rgba(0, 223, 129, 0.08);
  border-color: rgba(0, 223, 129, 0.2);
  color: #00DF81;
}

.skill-pill--sys {
  background: rgba(170, 204, 76, 0.08);
  border-color: rgba(170, 204, 76, 0.2);
  color: #AACC4C;
}
