/* Hero animation (from Brijmohan) */
/* ===== PREMIUM RED & WHITE IT ANIMATION ===== */

.it-hero-bg {
  isolation: isolate;
}

.it-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 75% 45%,
      rgba(239, 30, 48, .13),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 15% 80%,
      rgba(255, 50, 65, .09),
      transparent 32%
    );
  animation: energy-pulse 5s ease-in-out infinite alternate;
}



/* Floating tech cards */
.tech-float {
  --mx: 0px;
  --my: 0px;

  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(215, 20, 28, .4);
  border-radius: 18px;
  color: #d71930;
  background: rgba(255, 255, 255, .88);
  box-shadow:
    0 0 12px rgba(230, 20, 45, .12),
    0 12px 35px rgba(180, 15, 35, .12),
    inset 0 0 16px rgba(230, 20, 45, .06);
  backdrop-filter: blur(12px);
  font: 800 20px system-ui, sans-serif;
  animation: tech-hover 4s ease-in-out infinite;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: box-shadow .3s ease;
}

.tech-float::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(225, 25, 45, .18);
  border-radius: 22px;
  animation: tech-ring 3s ease-out infinite;
}

.tech-float:hover {
  box-shadow:
    0 0 25px rgba(230, 20, 45, .35),
    0 0 60px rgba(230, 20, 45, .15);
}

.tech-code  { top: 17%; left: 9%; }
.tech-ai    { top: 13%; right: 14%; animation-delay: -1s; }
.tech-cloud { top: 53%; left: 7%; animation-delay: -2s; }
.tech-shield{ top: 57%; right: 9%; animation-delay: -1.5s; }
.tech-nodes { top: 34%; right: 27%; animation-delay: -2.5s; }

/* Diagonal laser beams */
.it-laser {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  left: -40%;
  width: 180%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 30, 50, .1) 20%,
    #ff243d 48%,
    rgba(255, 110, 120, .8) 50%,
    rgba(255, 30, 50, .1) 65%,
    transparent
  );
  box-shadow: 0 0 12px rgba(235, 20, 45, .45);
  animation: laser-sweep 6s linear infinite;
}

.it-laser-one {
  top: 28%;
  transform: rotate(-12deg);
}

.it-laser-two {
  top: 70%;
  animation-delay: -3s;
  transform: rotate(9deg);
}

/* Animated orbit rings */
.it-energy-orbit {
  position: absolute;
  z-index: 1;
  width: min(45vw, 500px);
  aspect-ratio: 1;
  top: 45%;
  left: 70%;
  border: 1px solid rgba(225, 25, 45, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(65deg);
  box-shadow:
    0 0 25px rgba(225, 25, 45, .08),
    inset 0 0 25px rgba(225, 25, 45, .06);
  animation: orbit-spin 14s linear infinite;
  pointer-events: none;
}

.it-energy-orbit::before,
.it-energy-orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(225, 25, 45, .2);
  border-radius: 50%;
}

.it-energy-orbit::after {
  inset: 25%;
  border-color: rgba(225, 25, 45, .32);
}

@keyframes tech-hover {
  0%, 100% {
    margin-top: 0;
  }
  50% {
    margin-top: -19px;
  }
}

@keyframes tech-ring {
  0% {
    transform: scale(.92);
    opacity: .7;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes laser-sweep {
  0% {
    left: -100%;
    opacity: 0;
  }
  15% { opacity: .9; }
  75% { opacity: .7; }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes orbit-spin {
  to {
    transform: translate(-50%, -50%)
      rotateX(65deg) rotateZ(360deg);
  }
}

@keyframes energy-pulse {
  from { opacity: .45; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .tech-float {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 15px;
  }

  .tech-code { left: 3%; }
  .tech-ai { right: 4%; }
  .tech-cloud { left: 3%; }
  .tech-shield { right: 3%; }
  .tech-nodes { right: 18%; }

  .it-energy-orbit {
    width: 85vw;
    left: 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-float,
  .tech-float::before,
  .it-laser,
  .it-energy-orbit,
  .it-hero-bg::after {
    animation: none !important;
  }
}

/* Wiring into the Deific hero */
#it-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.it-hero-bg > .hero-content {
  position: relative;
  z-index: 4;
}
.it-hero-bg > .tech-float,
.it-hero-bg > .it-laser,
.it-hero-bg > .it-energy-orbit { user-select: none; }
/* Icons are decorative: keep them in the page gutters so they never sit on the text or the card */
@media (max-width: 1359px) {
  .it-hero-bg > .tech-float:not(.tech-nodes) { display: none; }
}
@media (max-width: 1023px) {
  .it-hero-bg > .tech-float { display: none; }
}
@media (min-width: 1360px) {
  .it-hero-bg > .tech-float { width: 54px; height: 54px; border-radius: 16px; }
  .it-hero-bg > .tech-code   { left: 2.2%;  top: 22%; }
  .it-hero-bg > .tech-cloud  { left: 2.6%;  top: 60%; }
  .it-hero-bg > .tech-ai     { right: 2.4%; top: 18%; }
  .it-hero-bg > .tech-shield { right: 2.2%; top: 62%; }
}
.it-hero-bg > .tech-nodes { top: auto; bottom: 9%; left: 47%; right: auto; width: 46px; height: 46px; }
