:root {
  --primary: #00f0ff;
  --secondary: #7b2dff;
  --dark: #050510;
  --darker: #020208;
  --gray-light: #e0e0e0;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #00a2ff #001133;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: white;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: rgba(0, 0, 20, 0.8);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(145deg, #00f2ff, #0084ff);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  box-shadow:
    0 0 5px #00f2ff,
    0 0 10px #0084ff,
    inset 0 0 5px rgba(0, 242, 255, 0.5);
  transition: all 0.3s ease;
  animation: neon-pulse 3s infinite alternate;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(145deg, #00ffff, #0066ff);
  box-shadow:
    0 0 10px #00ffff,
    0 0 15px #0066ff,
    inset 0 0 8px rgba(0, 255, 255, 0.7);
}

iframe, embed {
  max-width: 100%;
}

.title-font {
  font-family: 'Space Grotesk', sans-serif;
}

.gradient-text,
.gradient-text-animated {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-animated {
  animation: gradient-shift 4s ease infinite;
  background-size: 200% auto;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.glow-text {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.card-glass {
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: translateY(-5px);
}

/* Animaciones */
@keyframes neon-pulse {
  0%, 100% {
    box-shadow: 0 0 5px #00f2ff, 0 0 10px #0084ff;
  }
  50% {
    box-shadow: 0 0 10px #00f2ff, 0 0 20px #0084ff;
  }
}

@keyframes levitate {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(100px) scale(1.02);
  }
}

.floating {
  animation: levitate 4s ease-in-out infinite;
  transform-origin: center;
}

.floating-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-25px) translateX(-20px); }
  50% { transform: translateY(0) translateX(-10px); }
  75% { transform: translateY(-25px) translateX(20px); }
}

#laptop-image {
  width: 500px;
  height: auto;
}

/* Gradient animation */
@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Iconos neon */
[class*="neon-icon-"] {
  text-shadow: 0 0 5px, 0 0 10px, 0 0 20px;
  animation: neon-pulse-var 1.5s infinite alternate;
  z-index: 1;
}

.neon-icon-blue    { color: #00f0ff; --color: #00a2ff; }
.neon-icon-purple  { color: #b362ff; --color: #7b2dff; }
.neon-icon-cyan    { color: #00f7ff; --color: #00ccff; }
.neon-icon-pink    { color: #ff6ec7; --color: #ff2d9e; }
.neon-icon-green   { color: #00ffaa; --color: #00cc88; }
.neon-icon-orange  { color: #ffaa00; --color: #ff7700; }

@keyframes neon-pulse-var {
  from { text-shadow: 0 0 5px var(--color), 0 0 10px var(--color); }
  to   { text-shadow: 0 0 10px var(--color), 0 0 20px var(--color), 0 0 30px var(--color); }
}

/* Circuito */
.circuit-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.circuit-line {
  background: linear-gradient(to bottom,
    transparent,
    rgba(0, 240, 255, 0.3) 20%,
    rgba(0, 240, 255, 0.6) 50%,
    rgba(0, 240, 255, 0.3) 80%,
    transparent);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  animation: circuit-pulse 3s infinite;
}

.circuit-node {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.2);
  transition: all 0.3s ease;
}

.circuit-node:hover {
  border-color: rgba(0, 240, 255, 0.8);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.3);
}

.circuit-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: radial-gradient(circle at center, rgba(0, 240, 255, 0.8) 2px, transparent 3px);
  background-size: 20px 20px;
  animation: rotate-dots 20s linear infinite;
}

@keyframes circuit-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes rotate-dots {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    max-height: 100%;
    overflow-x: hidden;
  }

  #laptop-image {
    width: 250px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: auto;
  }

  .floating-animation, #laptop-image {
    max-width: 100%;
    overflow: hidden;
  }
  .circuit-node {
    width: 70px;
    height: 70px;
  }
  .circuit-line {
    display: none;
  }
  .circuit-pattern {
    left: 0;
    right: 0;
  }
}
