/* Hero Slider Styles */

/* 1. Main Container: Handles positioning and max-width (making it smaller than page) */
.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 1140px; /* Increased width to 1140px */
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Reduced gap */
}

/* 2. Hero Card: The visual frame with border and background */
.hero-card {
  width: 100%;
  position: relative;
  /* Visual Styles - Enhanced with subtle animation */
  background: radial-gradient(circle at top left, rgba(67, 232, 255, 0.18), transparent 60%), 
              radial-gradient(circle at center right, rgba(109, 77, 255, 0.5), transparent 55%), 
              linear-gradient(145deg, rgba(6, 0, 44, 0.95), rgba(13, 0, 68, 0.96));
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite; /* Subtle background movement */
  
  /* Stronger Border as requested */
  border-radius: 32px;
  border: 3px solid rgba(120, 123, 255, 1); /* Thicker and solid opacity for clarity */
  box-shadow: 0 0 0 1px rgba(120, 123, 255, 0.5), /* Double border effect */
              0 22px 50px rgba(0, 0, 0, 0.7);
  
  padding: 24px 32px 20px; /* Further reduced padding */
  overflow: hidden;
  min-height: 380px; /* Reduced min-height from 420px */
  
  /* Grid Layout for Slides */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

/* 3. Slides Wrapper */
.hero-slides {
  grid-area: 1 / 1 / 2 / 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  height: 100%;
}

.hero-slide {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  
  /* Internal Content Layout */
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 880px) {
  .hero-card {
    padding: 30px 20px;
    height: auto;
    min-height: auto;
  }

  .hero-slide {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
    gap: 2rem;
  }
  
  .hero-right {
    justify-content: center;
  }
  
  .hero-robot {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 1.8rem;
    white-space: nowrap;
  }
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* --- Animation Types --- */
.hero-slider-fade .hero-slide {
  transition: opacity 0.8s ease-in-out, transform 0.8s ease;
}

.hero-slider-zoom .hero-slide {
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-slider-zoom .hero-slide.active {
  transform: scale(1);
}

/* Smoother Slide Animation */
.hero-slider-slide .hero-slide {
  transform: translateX(60px); /* Slightly increased distance */
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider-slide .hero-slide.active {
  transform: translateX(0);
  opacity: 1;
}

/* Staggered Content Animations for Professional Feel */
.hero-slide .hero-title,
.hero-slide .hero-pill,
.hero-slide .sub,
.hero-slide .hero-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy exit/enter */
}

.hero-slide .hero-robot {
  opacity: 0;
  transform: scale(0.9) translateX(20px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Delays when Active */
.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.hero-slide.active .hero-pill {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.hero-slide.active .sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hero-slide.active .hero-robot {
  opacity: 1;
  transform: scale(1) translateX(0);
  transition-delay: 0.2s;
}

/* Content Helpers */
.hero-left, .hero-right {
  position: relative;
  z-index: 2;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-robot {
  max-width: 100%;
  height: auto;
  max-height: 340px; /* Reduced max-height for robot to fit smaller container */
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

/* Keyframes for background animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 4. Indicators - Outside the Card */
.slider-indicators {
  /* No absolute positioning needed anymore */
  display: flex;
  gap: 16px;
  z-index: 10;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(148, 163, 253, 0.3);
  border: 1px solid rgba(148, 163, 253, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

.slider-indicator.active {
  background: #43e8ff;
  box-shadow: 0 0 12px #43e8ff;
  transform: scale(1.3);
  border-color: #43e8ff;
}

/* Decor positioning relative to slide */
.hero-slide .hero-decor {
  position: absolute;
  opacity: 0.9;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6));
  z-index: 1;
}
