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

/* =========================
   BASE
========================= */
html, body {
  height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  background: #000;
  color: #d8ffd8;
}

/* =========================
   HEADER TERMINAL
========================= */
.terminal-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.6rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(0, 255, 128, 0.15);
  backdrop-filter: blur(2px);
  z-index: 10;
}

.terminal-title {
  opacity: 0.8;
}

.terminal-nav a {
  margin-left: 1.2rem;
  color: #9cffc9;
  text-decoration: none;
  position: relative;
}

.terminal-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.terminal-nav a:hover::after {
  opacity: 1;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("../img/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.1) saturate(0.85);
}

/* Oscurecimiento */
.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.75)
  );
  z-index: 1;
}

/* Scanlines CRT */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

/* Noise */
.noise {
  position: absolute;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.06;
  pointer-events: none;
  z-index: 3;
}

/* =========================
   CONTENIDO HERO
========================= */
.hero-content {
  position: absolute;
  bottom: 4rem;
  left: 4rem;
  max-width: 740px;
  z-index: 4;
}

.hero-content h1 {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #eaffea;
  text-shadow: 0 0 8px rgba(0, 255, 140, 0.15);
}

.subheadline {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
  letter-spacing: 0.03em;
  color: #b9e6c3;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 0.5rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(0, 255, 128, 0.1);
  z-index: 10;
}

.site-footer a {
  color: #8fdcb5;
  text-decoration: none;
  margin-right: 1rem;
  opacity: 0.8;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-right a {
  margin-right: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero-content {
    left: 2rem;
    right: 2rem;
    bottom: 3rem;
  }

  .terminal-header,
  .site-footer {
    font-size: 0.6rem;
  }
}

/* =========================
   PROJECTS HERO
========================= */

.projects-hero {
  background-image: url("../img/terminal.png");
}

.projects-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 4;
  text-align: center;
  padding: 2rem;
}

.projects-content h1 {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  opacity: 0.85;
}

/* =========================
   BUTTONS
========================= */

.projects-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 420px;
}

.btn {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(0, 255, 140, 0.35);
  color: #d8ffd8;
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.btn span {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-top: 0.4rem;
}

.btn:hover {
  background: rgba(0, 255, 140, 0.08);
  box-shadow: 0 0 12px rgba(0, 255, 140, 0.15);
  transform: translateY(-1px);
}

/* LAB VARIANT */

.btn-lab {
  border-style: dashed;
  color: #9cffc9;
}

.btn-lab:hover {
  background: rgba(0, 255, 140, 0.12);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
  .projects-content h1 {
    margin-bottom: 2rem;
  }
}


/* =========================
   WHAT I DO
========================= */

.whatido-hero {
  background-image: url("../img/terminal_lab.png"); /* puedes cambiarla luego */
}

.whatido-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 720px;
  padding: 4rem;
  z-index: 4;
}

.whatido-content h1 {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
  color: #eaffea;
}

.intro {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.whatido-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.whatido-list li {
  margin-bottom: 1.4rem;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #b9e6c3;
}

.whatido-list strong {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #d8ffd8;
}

.footer-note {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  opacity: 0.65;
  letter-spacing: 0.04em;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .whatido-content {
    padding: 2rem;
  }
}

/* =========================
   PROJECTS BUTTON (WHAT I DO)
========================= */

.btn-projects {
  margin-top: 2.5rem;
  max-width: 280px;
  text-align: left;
  border-color: rgba(0, 255, 140, 0.45);
}

.btn-projects:hover {
  background: rgba(0, 255, 140, 0.1);
}