* {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  margin: 0;
  color: white;
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Tamaño de la scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Fondo de la scrollbar */
::-webkit-scrollbar-track {
  background: #111111;
  border-radius: 10px;
}

/* Parte que se desplaza */
::-webkit-scrollbar-thumb {
  background: #454545;
  border-radius: 10px;
  border: 2px solid #111111;
  box-shadow: 0 0 8px #a855f7;
}

/* Al pasar el ratón */
::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7;
}

body {
  background-color: #111111;
  scrollbar-width: 0px;
  width: 98%;
}

.container {
  width: 100%;
  height: 100%;
  margin: 1%;
}

header {
  top: 1%;
  flex-grow: 1;
  justify-items: center;
  left: 1%;
  right: 1%;
}

.header {
  top: 1%;
  left: 1%;
  right: 1%;
  display: flex;
  height: 1%;
  width: 98%;
  justify-content: center;
  z-index: 10;
}

.menu {
  height: 100%;
  flex-grow: 1;
  text-align: center;
}

.content {
  margin-top: 5%;
  height: 65vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.text {
  height: 40px;
}

.project {
  align-items: center;
}

#project {
  white-space: pre-line;
  font-size: 75px;
  font-weight: bold;
  text-align: center;
}

.social {
  position: fixed;
  left: 1%;
  bottom: 1%;
  z-index: 5;
}

.social a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  font-size: 50px;
}

.label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}

.label code {
  font-size: 11px;
  color: var(--cyan);
}

/* ---------- 3. Borde con brillo ---------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 50%;
  grid-template-columns: repeat(10, 2fr);
  gap: 1%;
  bottom: 1%;
  height: 25%;
  width: 75%;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  align-items: center;
}

.h2 {
  height: 100%;
}

.glow-card {
  flex-grow: 1;
  --x: -500px;
  --y: -500px;

  position: relative;
  padding: 18px;
  border-radius: 16px;

  /* Fondo gris oscuro */
  background: #181818;

  /* Borde base */
  border: 1px solid #2c2c2c;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;

  /* El brillo sigue al ratón */
  background: radial-gradient(
    260px circle at var(--x) var(--y),
    #a855f7 0%,
    transparent 60%
  );

  /* Solo se muestra el brillo en el borde */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: radial-gradient(
    320px circle at var(--x) var(--y),
    rgba(168, 85, 247, 0.12),
    transparent 60%
  );

  pointer-events: none;
}
/* ---------- 2. Spotlight ---------- */
.spotlight {
  border: #111111;
  position: relative;
  width: 50vw;
  height: 35vh;
  --x: 35%;
  --y: 45%;

  display: grid;
  align-content: end;

  background:
    radial-gradient(
      circle 180px at var(--x) var(--y),
      rgba(34, 211, 238, .22),
      transparent 70%
    ),
    rgba(18, 18, 27, .7);
}

.spotlight .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 24px 24px;
  /* La máscara solo deja ver la cuadrícula alrededor del cursor */
  -webkit-mask-image: radial-gradient(circle 140px at var(--x) var(--y), #000, transparent);
  mask-image: radial-gradient(circle 140px at var(--x) var(--y), #000, transparent);
  pointer-events: none;
}

.spotlight h2 {
  position: relative;
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.spotlight p {
  position: relative;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.reveal {
  --x: -1000px;
  --y: -1000px;
  --radius: 100px;

  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  -webkit-mask-image: radial-gradient(
    circle var(--radius) at var(--x) var(--y),
    black 0%,
    black 70%,
    transparent 100%
  );

  mask-image: radial-gradient(
    circle var(--radius) at var(--x) var(--y),
    black 0%,
    black 70%,
    transparent 100%
  );
}

.random-item {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: bold;
  z-index: 2;
}

.panel-container {
  margin: 0 auto;
  z-index: 0;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 75%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 16px;
  background: #111;
  margin-bottom: 1.25%;
}

.panel-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.bot-container {
  margin: 0 auto;
  z-index: 0;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 75%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 16px;
  background: #111;
  margin-bottom: 1.25%;
}

.bot-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
