/* =========================================================
   ICS Website - home.css
   Homepage specific CSS only
   Requires main.css first
   ========================================================= */

/* Home Hero */
.hero-wrap {
  position: relative;
  min-height: 650px;
  padding: 22px 0 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 42%, rgba(84, 176, 255, 0.22), transparent 24%),
    radial-gradient(circle at 8% 15%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #08278f 0%, #214cff 44%, #06145f 100%);
  background-size: 400% 400%;
  animation: icsGradientMove 14s ease infinite;
}

.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.8px);
  background-size: 72px 72px, 112px 112px;
  background-position: 0 0, 36px 42px;
  opacity: 0.36;
  animation: icsNodesDrift 22s linear infinite;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 505px;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.hero .container {
  position: relative;
  z-index: 4;
}

.hero-copy {
  max-width: 760px;
  padding-top: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 34px rgba(0, 15, 80, 0.12);
  animation: icsFadeUp 0.9s ease 0.06s both;
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  animation: icsFadeUp 0.9s ease both;
}

.hero-copy h1 .accent {
  display: block;
  color: #b9d3ff;
}

.hero-copy p {
  width: 650px;
  max-width: 100%;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  animation: icsFadeUp 0.9s ease 0.16s both;
}

.cta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  animation: icsFadeUp 0.9s ease 0.28s both;
}

.hero-copy .btn.primary,
.hero-copy .btn.secondary {
  background: #ffffff;
  color: #163ee8;
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 34px rgba(6, 19, 80, 0.18);
}

.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(116, 213, 255, 0.24), transparent 68%);
  transform: translate(-50%, -50%);
  left: 72%;
  top: 38%;
  filter: blur(3px);
  z-index: 1;
}

/* AI Ecosystem Orbit */
.ai-orbit,
.ai-node {
  display: none !important;
}

.ai-ecosystem {
  position: absolute;
  right: 4.6%;
  top: 50px;
  width: 560px;
  height: 560px;
  transform: scale(0.8);
  z-index: 2;
  pointer-events: none;
}

.ai-rings,
.ai-rings::before,
.ai-rings::after {
  position: absolute;
  content: "";
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.ai-rings {
  animation: icsOrbitSpin 26s linear infinite;
}

.ai-rings::before {
  inset: 70px;
  border-color: rgba(120, 210, 255, 0.24);
  animation: icsOrbitSpinReverse 34s linear infinite;
}

.ai-rings::after {
  inset: 135px;
  border-color: rgba(255, 255, 255, 0.17);
  animation: icsOrbitSpin 42s linear infinite;
}

.ai-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: 126px;
  height: 126px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow:
    0 0 28px rgba(90, 206, 255, 0.72),
    0 0 76px rgba(33, 76, 255, 0.78),
    inset 0 0 34px rgba(255, 255, 255, 0.14);
  animation: icsPulseGlow 2.8s ease-in-out infinite;
}

.ai-center::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  animation: icsSlowRotate 18s linear infinite reverse;
}

.ai-center span {
  color: #153ce8;
  font-size: 44px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.ai-card {
  position: absolute;
  width: 118px;
  min-height: 104px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  padding: 14px 10px;
  color: #153ce8;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 48px rgba(0, 15, 80, 0.26);
  animation: none !important;
}

.ai-card i {
  font-size: 28px;
}

.ai-card span {
  color: #07142f;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.ai-card-1 { left: 50%; top: 0; transform: translateX(-50%) !important; }
.ai-card-2 { top: calc(50% - 100px - 48px); left: calc(50% + 173px); }
.ai-card-3 { top: calc(50% + 94px - 48px); left: calc(50% + 163px); }
.ai-card-4 { top: calc(50% + 172px); left: calc(50% - 55px); }
.ai-card-5 { top: calc(50% + 94px - 48px); left: calc(50% - 163px - 122px); }
.ai-card-6 { top: calc(50% - 100px - 48px); left: calc(50% - 173px - 122px); }

.connect-line {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  width: 190px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(91, 213, 255, 0.4), transparent);
  background-size: 220% 100%;
  opacity: 0.78;
  animation: icsLineFlow 3s linear infinite;
}

.connect-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
  animation: icsLinePulse 2.4s ease-in-out infinite;
}

.line-1 { width: 172px; transform: rotate(-90deg); }
.line-2 { width: 200px; transform: rotate(-30deg); }
.line-3 { width: 188px; transform: rotate(30deg); }
.line-4 { width: 172px; transform: rotate(90deg); }
.line-5 { width: 188px; transform: rotate(150deg); }
.line-6 { width: 200px; transform: rotate(210deg); }

.orbit-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 0 34px rgba(71, 203, 255, 0.8);
  transform-origin: 0 0;
  z-index: 2;
}

.orbit-dot.dot-1 { animation: icsDotOrbitOuter 14s linear infinite; }
.orbit-dot.dot-2 { animation: icsDotOrbitMiddle 18s linear infinite reverse; }
.orbit-dot.dot-3 { animation: icsDotOrbitInner 12s linear infinite; }

/* Technology Capabilities */
.tech-strip {
  padding: 34px 0 14px;
}

.tech-strip-primary {
  position: relative;
  z-index: 3;
  margin-top: -58px;
  padding: 0 0 20px;
}

.tech-box {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 38, 95, 0.06);
}

.tech-strip-primary .tech-box {
  grid-template-columns: 310px 1fr;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
}

.tech-box strong {
  color: #4d5b84;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.08;
}

.tech-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.tech-box.upgraded .tech-logos {
  grid-template-columns: repeat(6, 1fr);
}

.tech-logos span {
  min-height: 46px;
  border-radius: 14px;
  background: #f5f7ff;
  border: 1px solid #e6ebfa;
  display: grid;
  place-items: center;
  color: #25345b;
  font-size: 13px;
  font-weight: 900;
}

.tech-box.upgraded .tech-logos span {
  min-height: 106px;
  gap: 8px;
  padding: 18px 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.22;
}

.tech-box.upgraded .tech-logos i {
  color: var(--primary);
  font-size: 34px;
  margin-bottom: 8px;
}

/* Homepage Sections */
.feature-grid,
.cards,
.story-grid,
.why-cards {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
  padding-top: 16px;
}

.cards,
.story-grid,
.why-cards {
  grid-template-columns: repeat(3, 1fr);
}

.feature,
.story,
.why-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature:hover {
  transform: translateY(-6px);
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.feature p,
.story p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

#services {
  background: linear-gradient(180deg, rgba(238, 243, 255, 0.66), rgba(255, 255, 255, 0));
}

/* Workforce / Dark CTA Section */
.why {
  padding: 46px 0;
  margin-top: 6px;
  background: #0b101b;
  color: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 2fr;
  gap: 26px;
  align-items: center;
}

.why-copy small {
  display: block;
  margin-bottom: 10px;
  color: #bac5ff;
  font-size: 17px;
  font-weight: 700;
}

.why-copy h2 {
  margin: 0 0 28px;
  font-size: 26px;
  line-height: 0.98;
  font-weight: 900;
}

.why-card {
  min-height: 178px;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(117, 144, 255, 0.14);
  background: #0b111c;
}

.why-card:hover,
.story:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(15, 38, 95, 0.12);
}

.why-card p {
  color: #b6c1cf;
  font-size: 12px;
}

/* Careers Preview */
.story {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.story-media {
  height: 174px;
  overflow: hidden;
}

.story-media img {
  width: 100%;
}

.story-body {
  position: relative;
  margin-top: -60px;
  padding: 18px 20px 20px;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2c47e8;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

/* Bottom CTA / Form */
.client-title {
  display: inline-block;
  position: relative;
  margin: 0 0 20px;
  color: var(--text);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.bottom-cta {
  position: relative;
  margin-top: 24px;
  padding: 38px 40px 0;
  border: 1px solid #dfe7f7;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, rgba(223, 234, 255, 0.72) 0%, rgba(236, 243, 255, 0.86) 100%);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

.quote {
  padding: 34px 0 42px 48px;
}

.quote p {
  max-width: 670px;
  margin: 0 0 26px;
  color: #1f2a49;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
}

.quote small {
  display: block;
  margin-top: 4px;
  color: #4f5875;
  font-size: 14px;
  font-weight: 700;
}

.form-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #dfe7f7;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: translateY(28px);
}




/* Home Keyframes */
@keyframes icsGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes icsSlowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes icsOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes icsOrbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes icsDotOrbitOuter {
  from { transform: rotate(0deg) translateX(280px) translate(-50%, -50%); }
  to { transform: rotate(360deg) translateX(280px) translate(-50%, -50%); }
}

@keyframes icsDotOrbitMiddle {
  from { transform: rotate(0deg) translateX(210px) translate(-50%, -50%); }
  to { transform: rotate(360deg) translateX(210px) translate(-50%, -50%); }
}

@keyframes icsDotOrbitInner {
  from { transform: rotate(0deg) translateX(145px) translate(-50%, -50%); }
  to { transform: rotate(360deg) translateX(145px) translate(-50%, -50%); }
}

@keyframes icsPulseGlow {
  0%, 100% {
    box-shadow:
      0 0 28px rgba(90, 206, 255, 0.72),
      0 0 76px rgba(33, 76, 255, 0.78),
      inset 0 0 34px rgba(255, 255, 255, 0.14);
  }
  50% {
    box-shadow:
      0 0 42px rgba(90, 206, 255, 0.95),
      0 0 110px rgba(33, 76, 255, 0.95),
      inset 0 0 46px rgba(255, 255, 255, 0.22);
  }
}

@keyframes icsLinePulse {
  0%, 100% { opacity: 0.45; transform: translateY(-50%) scale(0.8); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.25); }
}

@keyframes icsLineFlow {
  from { background-position: 0% 0; }
  to { background-position: 220% 0; }
}

/* Home Responsive */
@media (max-width: 1180px) {
  .ai-ecosystem {
    right: -80px;
    opacity: 0.55;
  }

  .hero-copy {
    max-width: 660px;
  }

  .tech-strip-primary .tech-box {
    grid-template-columns: 1fr;
  }

  .tech-box.upgraded .tech-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .ai-ecosystem {
    display: none;
  }

  .hero-wrap {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero-copy h1,
  .client-title {
    font-size: 42px;
  }

  .feature-grid,
  .cards,
  .why-cards,
  .story-grid,
  .bottom-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .quote {
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .tech-strip-primary {
    margin-top: 0;
    padding-top: 22px;
  }

  .tech-box {
    grid-template-columns: 1fr;
  }

  .tech-box.upgraded .tech-logos,
  .tech-logos {
    grid-template-columns: 1fr;
  }

  .tech-box.upgraded .tech-logos span {
    min-height: 92px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
