/* ============================================================
   HERO — Full-Bleed Cinematic Background Slideshow
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #050a1a;
  padding: 0;
}

/* ---- Full-Bleed Background Slideshow ---- */
.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Ken Burns: alternate zoom direction per slide */
.hero-bg-slide:nth-child(even) {
  transform: scale(1.12) translateX(-2%);
}
.hero-bg-slide:nth-child(even).active {
  transform: scale(1) translateX(0);
}

/* ---- Gradient Overlay: blends text into imagery ---- */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* Left side: solid dark for text readability */
    linear-gradient(
      90deg,
      rgba(5, 10, 26, 0.95) 0%,
      rgba(5, 10, 26, 0.88) 25%,
      rgba(5, 10, 26, 0.6) 50%,
      rgba(5, 10, 26, 0.25) 70%,
      rgba(5, 10, 26, 0.08) 85%,
      transparent 100%
    ),
    /* Bottom fade for controls */
    linear-gradient(
      to top,
      rgba(5, 10, 26, 0.85) 0%,
      rgba(5, 10, 26, 0.4) 15%,
      transparent 35%
    ),
    /* Top subtle vignette */
    linear-gradient(
      to bottom,
      rgba(5, 10, 26, 0.5) 0%,
      transparent 20%
    );
  pointer-events: none;
}

/* Subtle noise texture for premium feel */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

/* Decorative Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 4;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 127, 255, 0.12);
  top: -100px;
  left: 5%;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 107, 0, 0.08);
  bottom: 10%;
  left: 25%;
}

/* ---- Content Wrapper ---- */
.hero .container {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 0 60px;
  width: 100%;
}

/* ---- Left: Text Column ---- */
.hero-text {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary-light);
  background: rgba(0, 127, 255, 0.12);
  border: 1px solid rgba(0, 127, 255, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* FIX 1: Reduced font size and widened max-width so "AIDC & IT" stays on one line */
.hero h1 {
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 800;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 20ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* FIX 1: white-space: nowrap keeps "AIDC & IT" glued on one line */
.hero h1 .text-highlight {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(var(--text-md), 2vw, var(--text-lg));
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.hero-ctas .btn-accent {
  background: transparent;
  color: #ff6b00;
  border: 2px solid #ff6b00;
  box-shadow: none;
}

.hero-ctas .btn-accent:hover {
  background: rgba(255, 107, 0, 0.12);
  color: #ff6b00;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
  transform: translateY(-2px);
}

.hero-ctas .btn-primary {
  background: #007fff;
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 127, 255, 0.3);
}

.hero-ctas .btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0, 127, 255, 0.4);
  transform: translateY(-2px);
}

/* ---- Bottom: Slide Controls ---- */
.hero-slide-controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Context Badges */
.hero-slide-context {
  position: relative;
  height: 32px;
}

.hero-context-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
  pointer-events: none;
}

.hero-context-badge.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Navigation Row */
.hero-nav-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.hero-carousel-nav {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 127, 255, 0.4);
}

/* Progress Bar */
.hero-carousel-progress {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hero-carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

/* Floating shapes (decorative) */
.hero-shape {
  position: absolute;
  border-radius: var(--radius-2xl);
  opacity: 0.06;
  pointer-events: none;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: 10%;
  right: -5%;
  transform: rotate(25deg);
  animation: float-slow 15s ease-in-out infinite;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  bottom: 15%;
  left: -3%;
  transform: rotate(-15deg);
  animation: float-slow 20s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) rotate(25deg);
  }
  50% {
    transform: translateY(-30px) rotate(30deg);
  }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-content-wrapper {
    padding: 100px 0 80px;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-gradient-overlay {
    background:
      /* Center fade for mobile text readability */
      radial-gradient(
        ellipse 120% 100% at 50% 40%,
        rgba(5, 10, 26, 0.85) 0%,
        rgba(5, 10, 26, 0.5) 60%,
        rgba(5, 10, 26, 0.25) 100%
      ),
      /* Bottom fade for controls */
      linear-gradient(
        to top,
        rgba(5, 10, 26, 0.9) 0%,
        rgba(5, 10, 26, 0.4) 20%,
        transparent 40%
      );
  }

  .hero-slide-controls {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    bottom: 30px;
  }

  .hero-nav-row {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(32px, 8vw, 44px);
  }

  .hero-slide-controls {
    bottom: 20px;
  }

  .hero-context-badge {
    font-size: 0.7rem;
    padding: 4px 14px;
  }
}

/* ============================================================
   PILLARS (What We Do)
   ============================================================ */

.pillar-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border-light);
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform var(--duration-slow) var(--ease-out);
}

.pillar-card:hover::after {
  transform: scaleX(1);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.pillar-card.accent::after {
  background: var(--gradient-accent);
}

.pillar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-2xl);
  background: rgba(0, 127, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  transition: var(--transition-base);
}

.pillar-card:hover .pillar-icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.pillar-card.accent .pillar-icon {
  background: rgba(255, 107, 0, 0.08);
  color: var(--color-accent);
}

.pillar-card.accent:hover .pillar-icon {
  background: var(--color-accent);
  color: white;
}

.pillar-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.pillar-card p {
  font-size: var(--text-sm);
  color: var(--color-text-label);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

/* ============================================================
   FEATURED PRODUCTS SCROLL
   ============================================================ */

.products-scroll-wrapper {
  overflow: hidden;
  position: relative;
}

.products-scroll-wrapper::before,
.products-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.products-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-page), transparent);
}

.products-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-page), transparent);
}

.products-scroll {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--space-4) var(--space-6);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar {
  display: none;
}

.products-scroll .card-product {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-item {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-radius: var(--radius-2xl);
  background: var(--gradient-card-dark);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

.stat-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-glow-blue);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  line-height: 1;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number.accent {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   INDUSTRY CARDS
   ============================================================ */

.industry-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  transition: var(--transition-base);
  cursor: pointer;
}

.industry-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--duration-slower) var(--ease-out);
}

.industry-card:hover .industry-card-bg {
  transform: scale(1.08);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.95) 0%, rgba(10, 15, 30, 0.6) 50%, rgba(10, 15, 30, 0.1) 100%);
}

.industry-card-content {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  width: 100%;
}

.industry-card h3 {
  font-size: var(--text-xl);
  color: white;
  margin-bottom: var(--space-2);
}

.industry-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-carousel {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-2);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 360px;
  max-width: 420px;
  flex-shrink: 0;
  scroll-snap-align: center;
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  font-size: var(--text-md);
  color: var(--color-text-body);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--space-6);
  position: relative;
  padding-top: var(--space-6);
}

.testimonial-quote::before {
  content: open-quote;
  position: absolute;
  top: -8px;
  left: 0;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary-light);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(0, 127, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-dark);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .testimonial-card {
    min-width: 300px;
  }
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 10% 50%, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 60% at 90% 50%, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: white;
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-banner p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 520px;
  margin-inline: auto;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ============================================================
   PARTNER LOGO STRIP (homepage variant)
   ============================================================ */

.partners-section .logo-strip-item {
  background: transparent;
  border-color: transparent;
}

.partners-section .logo-strip-item:hover {
  background: white;
  border-color: var(--color-border-light);
}