@import url("https://api.fontshare.com/v2/css?f[]=clash-display@400,700,500,600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url("./reset.css");
@import url("./variables.css");
@import url("./themes.css");
@import url("./menu.css");
@import url("./particle.css");
@import url("./hero.css");
@import url("./alive-bg.css");
@import url("./module-2.css");
@import url("./module-3.css");
@import url("./module-4.css");
@import url("./module-5.css");
@import url("./module-6.css");
@import url("./module-7.css");
@import url("./module-8.css");
@import url("./contact.css");

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Clash Display', sans-serif;
  /* Forzar la barra de desplazamiento siempre visible */
  overflow-y: scroll;
  scrollbar-width: auto; /* Para Firefox */
}

/* Estilos para navegadores basados en Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

:root {
  --bg: oklch(12.9% 0.042 264.695);
}

html {
  scroll-behavior: smooth;
  /* Evitar cambios bruscos en el ancho del layout al cargar/ocultar scrollbar */
  scrollbar-gutter: stable;
}

p, span, a {
  font-family: var(--font-albert);
}
a {
  text-decoration: none;
  color: var(--text-primary);
}
.btn-primary {
  width: fit-content;
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 300px;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  will-change: background-position;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  position: relative;
  background-image: linear-gradient(to right, var(--accent-color) 50%, #000000 50%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  transition: background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background-position: 100% 0%;
}

.btn-primary:active {
  background-position: 100% 0%;
}


/* new logo */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.orb {
  background: radial-gradient(
    circle at center,
    #ff3300 0%,
    #ff8600 33%,
    #ff00f4 66%,
    #ffff99 100%
  );
  display: grid;
  grid-template-areas: "stack";
  inline-size: min(80vmin, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 52% 48% 48% 52% / 48% 52% 48% 52%;
  position: relative;
  animation: deform 15s ease-in-out infinite alternate;
  will-change: transform, border-radius;
  overflow: visible;
}

.orb::before {
  content: "";
  grid-area: stack;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: translateZ(0);
  background:
/* capa 1 */ conic-gradient(
      from calc(var(--angle) * 2) at 25% 70%,
      #ff3300,
      transparent 20% 80%,
      #ff3300
    ),
    /* capa 2 */
      conic-gradient(
        from calc(var(--angle) * 2) at 45% 75%,
        #ff8600,
        transparent 30% 60%,
        #ff8600
      ),
    /* capa 3 */
      conic-gradient(
        from calc(var(--angle) * -3) at 80% 20%,
        #ff00f4,
        transparent 40% 60%,
        #ff00f4
      ),
    /* capa 4 */
      conic-gradient(
        from calc(var(--angle) * 2) at 15% 5%,
        #ffff99,
        transparent 10% 90%,
        #ffff99
      ),
    /* capa 5 */
      conic-gradient(
        from calc(var(--angle) * 1) at 20% 80%,
        #ff3300,
        transparent 10% 90%,
        #ff3300
      ),
    /* capa 6 */
      conic-gradient(
        from calc(var(--angle) * -2) at 85% 10%,
        #ff8600,
        transparent 20% 80%,
        #ff8600
      );
  box-shadow: 0 0 10px 5px rgba(255, 51, 0, 0.4),
    0 0 15px 3px rgba(255, 134, 0, 0.3),
    0 0 12px 4px rgba(255, 0, 244, 0.2),
    0 0 15px 5px rgba(255, 255, 153, 0.15),
    inset 0 0 4px 15px rgba(255, 51, 0, 0.35),
    inset 0 0 5px 10px rgba(255, 0, 244, 0.3);
  filter: blur(5vmin) contrast(4.5) saturate(1.2) brightness(1.05);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: rotate 20s linear infinite;
  transform-origin: center center;
}

/* deshabilitamos el pseudo-elemento que cubría todo con el backdrop-filter */
.orb::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  /* Añadimos un efecto de resplandor difuso exterior */
  box-shadow: 0 0 60px 30px rgba(255, 51, 0, 0.2),
    0 0 100px 50px rgba(255, 134, 0, 0.15),
    0 0 150px 70px rgba(255, 0, 244, 0.1);
  filter: blur(10px) opacity(0.8);
  z-index: -1; /* Lo colocamos detrás de la esfera */
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

/* Añadimos animación para la deformación */
@keyframes deform {
  0%,
  100% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    transform: scale(1, 1);
  }
  20% {
    border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
    transform: scale(1.05, 0.95);
  }
  40% {
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    transform: scale(0.95, 1.05);
  }
  60% {
    border-radius: 52% 48% 58% 42% / 42% 58% 52% 48%;
    transform: scale(1.03, 0.97);
  }
  80% {
    border-radius: 48% 52% 43% 57% / 57% 43% 48% 52%;
    transform: scale(0.97, 1.03);
  }
}