/* ---------- BASE ---------- */
@font-face {
  font-family: "Bauhaus93";
  src:
    url("BAUW93.TTF") format("ttf"),
    url("BAUHS93.TTF") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  overflow-x: hidden;
}

/* FORMS */

.form-container {
  background: #ffffff;
  padding: 30px;
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

label {
  font-size: 14px;
  color: #555;
}

input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  width: 100%;
  padding: 12px;
  background: #005bbb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

button:hover {
  background: #004999;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

textarea {
  resize: vertical;
}

/* ---------- SECTIONS ---------- */

.section {
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 8vh, 120px) 40px;
  scroll-snap-align: start;
  position: relative;
}
.dark {
  background: #0f172a;
  color: silver;
}

.light {
  background: #d7eafd;
  color: indigo;
}

.dark h3,
.dark h2 {
  color: deepskyblue;
}

.light h3,
.light h2 {
  color: darkslateblue;
}

.section-content {
  max-width: 1100px;
}

/* ---------- HERO ---------- */

.hero {
  height: 100vh;
  background: #020617;
  color: dodgerblue;
  overflow: hidden;
}

/* PARALLAX LAYERS */

.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.layer-rays {
  background-image: radial-gradient(
    circle at 20% 30%,
    rgba(59, 130, 246, 0.2),
    transparent 60%
  );
}

.layer-dots {
  background-image: radial-gradient(#ffffff11 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- NAVBAR ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
}

.logo a {
  text-decoration: none;
  color: white;
}

.logo-orbit-container {
  position: relative;
  width: 220px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  position: relative;
  z-index: 2;
  font-weight: 800;
  font-size: 1.5rem;
  color: #d5f6fe;
  font-family: Bauhaus93, sans-serif;
}

#logoOrbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  color: #1057ca;
}

.nav-links {
  transition: all 0.35s ease;
}

/* menú abierto */

.nav-links.active {
  transform: translateX(0);
}

/* highlight del scrollspy */

.nav-links a.active-link {
  color: #3b82f6;
  opacity: 1;

  position: relative;
}

.nav-links a.active-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #3b82f6;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* MOBILE */

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 82px;
    right: 0;
    min-width: 100svw;
    min-height: 100svh;
    background: #0f172a;
    padding: 2rem;
    flex-direction: column;
    transform: translateX(100%);
    transition: 0.3s;
    gap: 1.5rem;
    opacity: 0.9;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }
}

/* ---------- GRID ---------- */

.grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.card {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(30, 207, 233, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}
.card-header {
  border-bottom: 1px solid #f7f7f7;
  background: #203449;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  padding: 0.5rem 1rem;
}
.card-body {
  padding: 0 1rem;
  margin: 1rem 0;
}
.card:hover,
.light .card:hover {
  transform: translateY(-10px);
  border-color: #f7f7f7;
  background: rgba(59, 131, 246, 0.274);
  box-shadow: #5e6995 0px 3px 7px 1px;
}
.light .card {
  background: rgb(236, 244, 248);
}

/* ---------- CANVAS ---------- */

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* THREE JS */

#threeContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* CONTENT ABOVE */

.hero-content {
  position: relative;
  z-index: 5;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: auto;
  color: lightblue;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* SCROLL INDICATOR */

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: white;
  stroke-width: 2;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

#conects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.foto-perfil {
  max-width: 250px;
  max-height: 15svh;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.muted {
  color: slategray;
  font-size: small;
  font-style: italic;
}

.hidden {
  display: none;
}
