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

body {
  background-color: #1c1c1c;
  color: #00ff00;
  font-family: "IBM Plex Mono", monospace;
  padding: 20px;
  font-size: 16px;
  /* Efecto de CRT */
  position: relative;
  text-shadow: 0px 0px 2px #00ff00;
  animation: crt-glow 0.1s infinite;
}

a {
  color: #00ff00;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 20px;
}

ul {
  list-style-type: none;
}

ul li {
  margin-bottom: 10px;
}

/* Sección de navegación */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.htitle {
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 15px;
}
.nav-item {
  font-size: 16px;
  cursor: pointer;
}
/* Secciones */

section {
  margin-bottom: 20px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.skill-box,
.achievements,
.education {
  border: 1px solid #00ff00;
  padding: 15px;
  border-radius: 5px;
}
.achievements{
  margin-bottom: 10px;
}
.soft-skills ul {
  display: flex;
  gap: 10px;
}

.soft-skills ul li {
  border: 1px solid #00ff00;
  padding: 5px 10px;
  border-radius: 3px;

}

@media (max-width: 768px) {
  .soft-skills ul {
    flex-direction: column;
    gap: 5px;
  }
}

/* Botón de descarga de CV */

.CVbutton {
  background-color: #00ff00;
  color: #1c1c1c;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.CVbutton:hover {
  background-color: #00cc00;
}

/* Footer */

footer {
  text-align: center;
}
.social-icons {
  list-style: none;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icons img {
  width: 50px;
  height: 50px;
  filter: contrast(0%);
}

.social-icons img:hover {
  filter: invert(52%) sepia(49%) saturate(4814%) hue-rotate(89deg) brightness(108%) contrast(110%);
}

/* Cursor intermitente */

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

.blink {
  display: inline-block;
  width: 10px;
  background-color: #00ff00;
  animation: blink 1s step-start infinite;
}

/* Efecto de vibración ligera */

@keyframes crt-glow {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(0.2px, 0.2px); /* Vibración más sutil */
  }
}

body {
  animation: crt-glow 0.08s infinite;
}

/* Efecto de grano */

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://www.transparenttextures.com/patterns/noisy-net.png");
  opacity: 0.03;
  z-index: 2;
  pointer-events: none;
}
