/* ===== Reset + Base ===== */
body, html {
  margin: 0;
  padding: 0;
  background: #000000;
  font-family: 'Fira Code', monospace;
  color: #E0E0E0;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  margin: 0.5em 0;
  color: #6eff14;
  
}

@font-face {
  font-family: 'Hack Nerd Font Mono';
  src: url('/fonts/HackNFM-Bold.woff2') format('woff2'),
      url('/fonts/HackNFM-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hack Nerd Font Mono';
  src: url('/fonts/HackNFM-Regular.woff2') format('woff2'),
      url('/fonts/HackNFM-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



@font-face {
  font-family: 'Future Earth';
  src: url('/fonts/FutureEarth.woff2') format('woff2'),
      url('/fonts/FutureEarth.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neuropol X';
  src: url('/fonts/NeuropolX-Regular.woff2') format('woff2'),
      url('/fonts/NeuropolX-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Blade Runner Movie Font';
  src: url('/fonts/BladeRunnerMovieFont.woff2') format('woff2'),
      url('/fonts/BladeRunnerMovieFont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

h2 {
  color: #6eff14;
  text-shadow: 0 0 300px #173b00, 0 0 10px #246101;
  font-family: 'Hard Race','racing_done_proregular', 'Fira Code', monospace;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.12em;
}

p {
  line-height: 1.6;
  color:rgba(255, 255, 255, 0.946);
  font-size: 1.1em;
  margin: 0.5em 0;
}

a {
  color: #00FF9C;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

a:hover {
  color: #39FF14;
  text-decoration: underline;
}

/* ===== Terminal Header ===== */
.terminal {
  text-align: center;
  padding: 5em 2em;
  position: relative;
  z-index: 2;
}

.terminal_arriba {
display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5em 2em;
  min-height: 80vh;
  z-index: 1;
  position: relative;
}

@font-face {
  font-family: 'Bring Race';
  src: url('/fonts/BringRace.woff2') format('woff2'),
      url('/fonts/BringRace.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hard Race';
  src: url('/fonts/HardRace.woff2') format('woff2'),
      url('/fonts/HardRace.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'racing_done_proregular';
  src: url('/fonts/racingdonepro-regular-webfont.woff2') format('woff2'),
       url('/fonts/racingdonepro-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

.glitch {
  color: #39FF14;
  font-size: 3em;
  font-family: 'Hard Race' ,'Paladins', 'Fira Code', monospace;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.10em;
}

@font-face {
  font-family: 'Airstrike';
  src: url('/fonts/Airstrike.woff2') format('woff2'),
      url('/fonts/Airstrike.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paladins';
  src: url('/fonts/Paladins.woff2') format('woff2'),
      url('/fonts/Paladins.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.glitch-pages {
  color: #39FF14;
  font-size: 3em;
  font-family: 'Paladins';
  letter-spacing: 0.10em;
}


@keyframes glitch-lines {
  0%, 100% { transform: none; opacity: 1; }
  20% { transform: translateX(0.5px); opacity: 0.98; }
  40% { transform: translateX(-0.5px); opacity: 0.9; }
  60% { transform: scaleX(1.01); }
  80% { transform: skewX(0.5deg); }
}


/* ===== Particle Background ===== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* ===== Sections and Cards ===== */
section {
  padding: 1em 2em;
  max-width: 900px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* Estilo base */
section.walkthrough {
  padding: 0.5em 2em;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  background: transparent;
  color: #d3fcd5;
  text-align: left;
  font-family: 'Fira Code', monospace;
  line-height: 2;
  z-index: 2;
}

/* Modular cards dentro del walkthrough */
section.walkthrough .card {
  background: rgba(0, 0, 0, 0.555); /* Más opacidad para contraste */
  backdrop-filter: blur(7px) saturate(160%);
  -webkit-backdrop-filter: blur(7px) saturate(160%);
  border: 2.5px solid rgb(0, 253, 21);
  padding: 1.5em;
  margin-top: 2.5em;
  border-radius: 8px;
  box-shadow:
    0 0 9px rgba(60, 255, 0, 0.658),
    inset 0 0 8px rgba(114, 255, 26, 0.943); /* 🔥 Profundidad sutil */
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}


section.walkthrough .card:hover {
  transform: scale(1);
}

/* Encabezados */
section.walkthrough h2 {
  color: #6eff14;
  font-size: 1.4em;
  font-family: 'Hard Race', 'racing_done_proregular', 'Fira Code';
  letter-spacing: 0.12em;
  margin-bottom: 1em;
}

section.walkthrough h3 {
  color: #31ff1a;
  font-family: 'Hard Race', 'racing_done_proregular', 'Fira Code';
  margin-bottom: 0.8em;
  letter-spacing: 0.12em;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  section.walkthrough {
    padding: 1em;
    max-width: 100%;
    text-align: left;
    gap: 0.8em; /* Aumenta el espacio entre elementos */
  }

  section.walkthrough .card {
    padding: 1em;
    margin-top: 1.5em; /* Reduce el margen superior */
    border-width: 2px; /* Ajusta el grosor del borde */
    box-shadow: 
      0 0 5px rgba(60, 255, 0, 0.5),
      inset 0 0 5px rgba(114, 255, 26, 0.7); /* Ajusta la profundidad */
  }

  section.walkthrough h2 {
    font-size: 1em; /* Reduce el tamaño del texto */
    margin-bottom: 0.8em; /* Ajusta el margen inferior */
  }

  section.walkthrough h3 {
    font-size: 1.2em; /* Reduce el tamaño del subtítulo */
    margin-bottom: 0.6em; /* Ajusta el margen inferior */
  }
}



.card {
  background: rgba(0, 0, 0, 0.651); /* Más opacidad para contraste */
  backdrop-filter: blur(7px) saturate(150%); /* Efecto cristal */
  -webkit-backdrop-filter: blur(7px) saturate(150%); /* Compatibilidad con Safari */
  border: 3px solid rgb(0, 253, 21);
  padding: 1.5em;
  margin-top: 2.5em;
  border-radius: 8px;
  box-shadow:
    0 0 7px rgba(60, 255, 0, 0.699),
    inset 0 0 7px rgba(91, 255, 26, 0.623); /* 🔥 Profundidad sutil */
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}


/* Headings inside card */
.card h3 {
  color: #31ff1a;
  font-size: 1.3em;
  margin-bottom: 0.9em;
}


/* Links */
.card a {
  color: #00ff9c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card a:hover {
  color: #0affc2;
  text-shadow: 0 0 5px rgba(0, 255, 156, 0.3);
}

.card p {
  color: #d3fcd5;
  font-size: 1.1em;
  margin: 0.5em 0;
  line-height: 1.8;
  text-shadow: 0 0 5px rgba(211, 252, 213, 0.2);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.card p:hover {
  color: #aef5b8;
  text-shadow: 0 0 10px rgba(211, 252, 213, 0.4);
}




@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.selection .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75em 2.5em;
  margin: 1.2em auto 0;
  font-size: 1em;
  color: #39FF14;
  background-color: #000;
  border: 2px solid #39FF14;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow:
    0 0 8px rgba(57, 255, 20, 0.5),
    inset 0 0 6px rgba(57, 255, 20, 0.2);
}

/* === Hover === */
.selection .btn:hover {
  background-color: #39FF14;
  color: #000;
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(55, 255, 20, 0.4),
    inset 0 0 10px rgba(57, 255, 20, 0.3);
}

/* === Active === */
.selection .btn:active {
  transform: scale(0.95);
  box-shadow:
    0 0 10px rgba(57, 255, 20, 0.6),
    inset 0 0 6px rgba(57, 255, 20, 0.4);
}

/* === Focus === */
.selection .btn:focus-visible {
  outline: none;
  animation: armedPulse 1.5s infinite ease-in-out;
}

@keyframes armedPulse {
  0% {
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.3), inset 0 0 8px rgba(57, 255, 20, 0.2);
  }
  100% {
    box-shadow: 0 0 24px rgba(57, 255, 20, 0.6), inset 0 0 16px rgba(57, 255, 20, 0.4);
  }
}




.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  margin: 2em 0;
}

.nav-buttons .btn {
  background: transparent;
  border: 2px solid #39FF14;
  color: #39FF14;
  padding: 0.6em 1.2em;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.2em;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.3), inset 0 0 6px rgba(57, 255, 20, 0.2);
}

.nav-buttons .btn:hover {
  background: #39FF14;
  color: #0d0d0d;
  transform: scale(1);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5), inset 0 0 8px rgba(57, 255, 20, 0.3);
}

.nav-buttons .btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4), inset 0 0 6px rgba(57, 255, 20, 0.2);
}

.nav-buttons .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.6), inset 0 0 10px rgba(57, 255, 20, 0.4);
}

/* ===== Typewriter & Cursor ===== */
#terminal-text {
  color: #39FF14;
  font-size: 1.3em;
}

.cursor {
  display: inline-block;
  color: #39FF14;
  font-weight: bold;
  font-size: 1.2em;
  animation: blink 0.8s infinite;
}

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

/* ===== Decorative Dot on H2 ===== */
h3::before {
  content: "● ";
  color: #39FF14;
  animation: blinkDot 1s infinite;
}

.indicate::before {
  content: "● ";
  color: #39FF14;
  animation: blinkDot 1s infinite;
}



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




/* ===== Layout Helpers ===== */
.typewriter-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-top: 2em;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: transparent;
  border: 2px solid #39FF14;
  color: #39FF14;
  padding: 0.5em 1em;
  font-size: 1em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.icon-btn i {
  font-size: 1.2em;
}

.icon-btn:hover {
  background-color: #39FF14;
  color: #0D0D0D;
}

.social-sidebar {
  position: fixed;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  z-index: 10;
}

.social-sidebar a {
  color: #39FF14;
  font-size: 2em;
  transition: color 0.3s;
}

.social-sidebar a:hover {
  color: #37ff00;
  cursor: pointer;
  transform: scale(1.1);
  transition: transform 0.2s;
}

.social-sidebar svg {
  width: 32px;
  height: 32px;
  stroke: #25f101;
  transition: stroke 0.3s;
}

.social-sidebar svg:hover {
  stroke: #44ff00;
  cursor: pointer;
  transform: scale(1.1);
  transition: transform 0.2s;

}

/* ===== CODE BLOCKS (OPTIMIZADO) ===== */
pre code {
  display: block;
  background-color: #000 !important;
  color: #39FF14;
  padding: 1.2em;
  margin: 1.5em 0;
  border-radius: 10px;
  font-size: 1em;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  border: 2px solid #39FF14;
  box-shadow: 
    0 0 12px rgba(57, 255, 20, 0.3),
    inset 0 0 8px rgba(57, 255, 20, 0.2);
  text-shadow: 
    0 0 6px rgba(57, 255, 20, 0.4),
    0 0 10px rgba(57, 255, 20, 0.2);
  transition: 
    background-color 0.3s ease, 
    color 0.3s ease, 
    transform 0.3s ease, 
    box-shadow 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

pre code:hover {
  background-color: #66FF00 !important;
  color: #000 !important;
  box-shadow: 
    0 0 20px rgba(57, 255, 20, 0.5),
    inset 0 0 12px rgba(57, 255, 20, 0.3);
  border: 2px solid #00FF00;
  text-shadow: 
    0 0 10px rgba(57, 255, 20, 0.5),
    0 0 15px rgba(57, 255, 20, 0.3);
}




/* Inline <code> style — clean hacker highlight */
code {
  color: #89ff14;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95em;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transition: color 0.2s ease-in-out;
}

code:hover {
  color: rgb(98, 255, 0);
  text-shadow: 0 0 4px rgba(102, 255, 20, 0.6);
}




.nuclear-quote {
  font-family: 'Fira Code', monospace;
  font-size: 1.2em;
  color: #ff4d4d;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-align: center;
  margin-top: -0.5em;
  margin-bottom: 2em;
  animation: pulseGlow 3s infinite alternate ease-in-out, fadeInSlow 2s ease forwards;
  text-shadow: 0 0 4px rgba(249, 2, 2, 0.5),
               0 0 10px rgba(255, 20, 20, 0.3),
               0 0 30px rgba(68, 5, 5, 0.2);
}



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

.fade-sidebar {
  opacity: 0;
  animation: sidebarFade 1s ease-in-out forwards;
  animation-delay: 0.1s;
}

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

.site-footer {
  background: #000000;
  color: #39FF14;
  text-align: center;
  padding: 2em 0;
  font-size: 0.9em;
  border-top: 1px solid rgba(57, 255, 20, 0.2);
  box-shadow: 0 -5px 15px rgba(0, 255, 153, 0.1);
  margin-top: 3em;
  z-index: 5;
}

.site-footer a {
  color: #00FF9C;
  text-decoration: none;
  margin: 0 0.3em;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #39FF14;
}

.glitch, .nuclear-quote, .cursor {
  will-change: opacity, transform;
}


/* === Base Responsive Tweaks === */
body, html {
  font-size: 16px;
}

@media (max-width: 768px) {
  .terminal_arriba {
    padding: 3em 1em;
  }

  .glitch {
    font-size: 1.8em;
  }

  .typewriter-wrapper h3 {
    font-size: 1em;
  }

  .nav-buttons {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8em;
  }

  .nav-buttons .btn {
    width: 90%;
    text-align: center;
    font-size: 1em;
    padding: 0.8em 1em;
  }

  /* === Social Sidebar (Fijo abajo y centrado) === */
.social-sidebar {
  position: fixed; /* Fija la posición para que siempre esté visible en pantalla */
  bottom: 1.5em; /* Distancia desde la parte inferior de la ventana */
  left: 50%; /* Posiciona horizontalmente en el centro */
  transform: translateX(-50%); /* Ajuste fino: lo centra completamente restando la mitad de su ancho */
  flex-direction: row;
  display: flex; /* Flexbox para alinear los íconos horizontalmente */
  align-items: end; /* Centra los íconos verticalmente */
  justify-content: center;
  gap: 1.3em; /* Espacio entre íconos */
  z-index: auto;
}

/* === Enlaces del sidebar === */
.social-sidebar a {
  display: flex; /* Asegura que íconos dentro se centren */
  align-items: end; /* Centrado vertical */
  justify-content: flex-end; /* Centrado horizontal */
  color: #39FF14; /* Color verde neón para íconos FontAwesome */
  text-decoration: none; /* Sin subrayado */
  transition: transform 0.2s ease, color 0.2s ease; /* Suaviza transformaciones y cambios de color */
}

/* === Íconos FontAwesome === */
.social-sidebar i {
  font-size: 1em; /* Tamaño adecuado para íconos */
  color: #39FF14; /* Color neón */
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  margin: 0 0.5em; /* Espacio entre íconos */
  padding: 0.5em; /* Espacio interno para clics más cómodos */
  border-radius: 50%; /* Bordes redondeados */
  background: rgba(57, 255, 20, 0.1); /* Fondo suave para resaltar íconos */
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); /* Sombra suave */
}

/* === SVG específico para el logo de Hack The Box === */
.social-sidebar svg {
  width: 36px; /* Anchura SVG */
  height: 36px; /* Altura SVG */
  stroke: #39FF14; /* Color del trazo */
  transition: transform 0.2s ease, stroke 0.2s ease; /* Transiciones suaves en hover */
  margin: 0 0.5em; /* Espacio entre íconos */
  padding: 0.5em; /* Espacio interno para clics más cómodos */
  border-radius: 50%; /* Bordes redondeados */
  background: rgba(57, 255, 20, 0.1); /* Fondo suave para resaltar íconos */
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); /* Sombra suave */
  transition: box-shadow 0.2s ease; /* Suaviza la sombra */

}

/* === Hover sobre íconos SVG === */
.social-sidebar a:hover svg {
  stroke: #00FF9C; /* Cambia color al pasar el mouse */
  transform: scale(1.15); /* Agranda ligeramente */
}

/* === Hover sobre íconos FontAwesome === */
.social-sidebar a:hover i {
  color: #00FF9C; /* Cambia color al pasar el mouse */
  transform: scale(1.15); /* Agranda ligeramente */
}}
