/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slide-content.glass {
  background: radial-gradient(
      120% 120% at 50% 0%,
      rgba(0, 240, 255, 0.12),
      rgba(255, 255, 255, 0.06)
    );
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(0, 240, 255, 0.05);
}

.step-card {
  background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(255,255,255,0.08));
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 40px;
  max-width: 720px;
  margin: 40px auto;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.step-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(255,0,240,0.05), rgba(255,255,255,0.08));
}

.step-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(0,255,100,0.05), rgba(255,255,255,0.08));
}

/* Active card fade-in on scroll */
.step-card.active {
  opacity: 1;
  transform: translateY(0);
}


/* CTA Button */
.cta {
  padding: 14px 34px;
  border-radius: 999px;
  background: #00f0ff;
  color: black;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* Canvas fix */
#hero-canvas {
  display: block;
}

/* ===============================
   AUTOMATION STORY SECTION
================================ */

.automation-stack {
  position: relative;
  background: black;
}

.automation-intro {
  text-align: center;
  padding: 120px 20px 60px;
}

.automation-intro h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.automation-intro p {
  max-width: 640px;
  margin: 16px auto;
  color: #9ca3af;
}

#automation-progress {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #00f0ff;
}

/* Slides */

/* Base state */
.automation-slide .slide-content {
  opacity: 1;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

/* Active slide */
.automation-slide.active .slide-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.automation-slide {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.automation-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Content */

.slide-content {
  font-weight: 400;
  color: #e5faff;
  max-width: 760px;
  text-align: center;
  padding: 72px 72px 80px;
  position: relative;
}


/* Icon */

.icon {
  font-size: 48px;
  margin-bottom: 24px;
}

/* Text */

.lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.description {
  color: #94a3b8;
  margin-bottom: 24px;
}

ul {
  text-align: left;
  margin: 0 auto 32px;
  max-width: 420px;
}

/* CTA */

.cta {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  background: #00f0ff;
  color: black;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* Card title */
.automation-slide h3 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Lead text */
.automation-slide .lead {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #e5faff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Description */
.automation-slide .description {
  font-size: 1.1rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 32px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #020617;
  transition: background 0.8s ease;
}

/* ===============================
   HOW WE WORK SECTION
================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.process-card {
  padding: 48px 36px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0, 240, 255, 0.12);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 240, 255, 0.25);
}

.process-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.process-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* ===============================
   INDUSTRIES SECTION
================================ */

.industries-section {
  padding: 140px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
  color: #9ca3af;
  font-size: 1.05rem;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.industry-card {
  padding: 40px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.industry-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #e5faff;
}

.industry-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* Highlight card (insurance / core ops emphasis) */
.industry-card.highlight {
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.12);
}

/* Hover micro-interaction */
@media (hover: hover) {
  .industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.15);
  }
}

/* Glassmorphism + card base */
.workflow-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 32px 24px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

/* Hover effect */
.workflow-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,240,255,0.15);
}

/* Icon + Lottie container */
.workflow-card .icon,
.lottie-container {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Lottie container */
.lottie-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

/* Step titles and text */
.step-title {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #00f0ff;
}

.step-text {
  font-size: 1.1rem;
  color: #e5e7eb;
  line-height: 1.6;
}

/* Fade-in animation on scroll */
.fade-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Background gradient shift (optional subtle effect) */
#how-it-works {
  background: linear-gradient(120deg, #0a0a0a, #111122);
  transition: background 1s ease;
}

@media (hover: hover) {
  .workflow-card:hover {
    transform: translateY(-6px) scale(1.01);
  }
}

/* Service Cards – base (hidden) */
.service-card {
  opacity: 1;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 2;
}

/* Service card visual upgrade */
.service-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.04)
  );
  box-shadow:
    0 20px 40px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Hover polish */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow:
      0 30px 60px rgba(0,0,0,0.6),
      0 0 30px rgba(0,240,255,0.12);
  }
}

/* When visible */
.service-card.active {
  opacity: 1;
  transform: translateY(0);
}

/* Service card typography */
.service-card h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #e5faff;
}

.service-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.service-meta {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

/* Services section background upgrade */
.services-stack {
  background: radial-gradient(
    1200px 600px at 50% -200px,
    rgba(0, 240, 255, 0.08),
    transparent 60%
  );
}

/* HOW IT WORKS */

.workflow-card {
  padding: 40px 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #00f0ff;
}

.step-text {
  font-size: 1.05rem;
  color: #e5e7eb;
  line-height: 1.6;
}

/* Fade-in */
.fade-card {
  opacity: 0;
  transform: translateY(40px);
}

.fade-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.automation-stack::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(0,240,255,0.08), transparent 60%),
    radial-gradient(600px 300px at 80% 30%, rgba(56,189,248,0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-40px);
  }
}

.why-choose {
  position: relative;
  padding: 120px 24px;
  background-image: url("assets/images/why-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  isolation: isolate;
}

.why-choose::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.85),
      rgba(2, 6, 23, 0.95)
    );
  z-index: -1;
}

.why-choose::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 300px at 20% 20%,
      rgba(0, 240, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      500px 300px at 80% 60%,
      rgba(56, 189, 248, 0.06),
      transparent 60%
    );
  pointer-events: none;
  z-index: -1;
}

.why-choose h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: #e5faff;
  margin-bottom: 16px;
}

.why-choose .section-intro {
  max-width: 680px;
  margin: 0 auto 64px;
  color: #9ca3af;
  font-size: 1.1rem;
  line-height: 1.7;
}

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 240, 255, 0.03);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.65),
    inset 0 0 40px rgba(0, 240, 255, 0.06);
}

.why-card svg {
  color: #38bdf8;
  margin-bottom: 16px;
}
