:root {
  color-scheme: light;
}

.grid-glow {
  background-image: radial-gradient(circle at 10% 20%, rgba(59, 63, 148, 0.18), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(225, 52, 47, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(11, 31, 58, 0.08) 0%, rgba(11, 31, 58, 0) 60%);
  animation: grid-shift 20s ease-in-out infinite alternate;
}

@keyframes grid-shift {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

.divider {
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

.reveal {
  opacity: 0;
}

.reveal.reveal-in {
  animation: reveal 0.9s ease forwards;
}

.noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  animation: noise-pulse 8s ease-in-out infinite;
}

@keyframes noise-pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.18;
  }
}

.orb {
  position: absolute;
  border-radius: 9999px;
  opacity: 0.55;
  filter: blur(2px);
  mix-blend-mode: multiply;
  animation: orb-float 10s ease-in-out infinite;
}

.orb-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(59, 63, 148, 0.4), transparent 65%);
  top: 8%;
  left: -6%;
  animation: orb-float-1 10s ease-in-out infinite;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 70% 30%, rgba(225, 52, 47, 0.35), transparent 65%);
  top: 18%;
  right: -8%;
  animation: orb-float-2 12s ease-in-out infinite;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 40% 40%, rgba(59, 63, 148, 0.25), transparent 65%);
  bottom: 12%;
  left: 20%;
  animation: orb-float-3 14s ease-in-out infinite;
}

.tech-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.tech-card::before {
  content: "";
  position: absolute;
  inset: -120% 60% auto -120%;
  height: 240%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.8) 45%, transparent 60%);
  transform: translateX(-40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59, 63, 148, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-card:hover::after {
  opacity: 1;
}

.tech-card:hover::before {
  opacity: 1;
  animation: tech-sheen 1.2s ease forwards;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -30px rgba(59, 63, 148, 0.45);
}

.tech-logo {
  animation: tech-float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(11, 31, 58, 0.12));
}

.tech-card:nth-child(2) .tech-logo {
  animation-delay: 0.4s;
}

.tech-card:nth-child(3) .tech-logo {
  animation-delay: 0.8s;
}

.tech-card:nth-child(4) .tech-logo {
  animation-delay: 1.2s;
}

@keyframes tech-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes tech-sheen {
  0% {
    transform: translateX(-40%);
  }
  100% {
    transform: translateX(140%);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -14px, 0);
  }
}

@keyframes orb-float-1 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(20px, -18px, 0) scale(1.05);
  }
  66% {
    transform: translate3d(-12px, 10px, 0) scale(0.95);
  }
}

@keyframes orb-float-2 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(-18px, 15px, 0) scale(0.95);
  }
  66% {
    transform: translate3d(15px, -20px, 0) scale(1.08);
  }
}

@keyframes orb-float-3 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(14px, 18px, 0) scale(1.06);
  }
  66% {
    transform: translate3d(-20px, -12px, 0) scale(0.94);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
