/*--------------------------------------------------------------
  Modern Hero Section - Redesigned 2025
----------------------------------------------------------------*/

/* Modern Hero Section */
.cs_hero_modern {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.cs_hero_slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.cs_hero_slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.cs_hero_slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cs_hero_slide[data-bg] {
  background-image: var(--bg-image);
}

.cs_hero_slide.active {
  opacity: 1;
  visibility: visible;
}

.cs_hero_slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  transform: scale(1.1);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cs_hero_slide.active::before {
  transform: scale(1);
}

.cs_hero_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(1, 19, 60, 0.95) 0%, rgba(29, 111, 131, 0.85) 100%);
  z-index: 1;
}

.cs_hero_content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.cs_hero_wrapper {
  max-width: 800px;
  width: 100%;
}

/* Hero Badge */
.cs_hero_badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.cs_hero_slide.active .cs_hero_badge {
  opacity: 1;
}

/* Hero Title */
.cs_hero_title {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  color: #fff;
}

.cs_hero_title_line {
  display: block;
  overflow: hidden;
}

.cs_hero_title_line {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.cs_hero_slide.active .cs_hero_title_line:nth-child(1) {
  animation-delay: 0.3s;
  opacity: 1;
}

.cs_hero_slide.active .cs_hero_title_line:nth-child(2) {
  animation-delay: 0.4s;
  opacity: 1;
}

.cs_hero_title_highlight {
  display: inline-block;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.cs_hero_slide.active .cs_hero_title_highlight {
  animation-delay: 0.5s;
  opacity: 1;
}

/* Hero Description */
.cs_hero_description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.cs_hero_slide.active .cs_hero_description {
  animation-delay: 0.6s;
  opacity: 1;
}

/* Features Grid */
.cs_hero_features_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.cs_feature_item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.cs_hero_slide.active .cs_feature_item:nth-child(1) { animation-delay: 0.6s; opacity: 1; }
.cs_hero_slide.active .cs_feature_item:nth-child(2) { animation-delay: 0.7s; opacity: 1; }
.cs_hero_slide.active .cs_feature_item:nth-child(3) { animation-delay: 0.8s; opacity: 1; }
.cs_hero_slide.active .cs_feature_item:nth-child(4) { animation-delay: 0.9s; opacity: 1; }

.cs_feature_item i {
  color: #00ff88;
  font-size: 16px;
}

/* Service Cards */
.cs_hero_services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.cs_service_card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.cs_hero_slide.active .cs_service_card:nth-child(1) { animation-delay: 0.6s; opacity: 1; }
.cs_hero_slide.active .cs_service_card:nth-child(2) { animation-delay: 0.7s; opacity: 1; }
.cs_hero_slide.active .cs_service_card:nth-child(3) { animation-delay: 0.8s; opacity: 1; }
.cs_hero_slide.active .cs_service_card:nth-child(4) { animation-delay: 0.9s; opacity: 1; }

.cs_service_card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
}

.cs_service_card i {
  font-size: 24px;
  color: #00ff88;
  margin-bottom: 10px;
  display: block;
}

.cs_service_card span {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* Hero Actions */
.cs_hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.cs_btn_modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.cs_hero_slide.active .cs_btn_modern:nth-child(1) { animation-delay: 0.8s; opacity: 1; }
.cs_hero_slide.active .cs_btn_modern:nth-child(2) { animation-delay: 0.9s; opacity: 1; }

.cs_btn_primary {
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  color: #01133c;
  border: none;
}

.cs_btn_primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
  color: #01133c;
}

.cs_btn_secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.cs_btn_secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cs_btn_glass {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.cs_btn_glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Hero Stats */
.cs_hero_stats {
  display: flex;
  gap: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.cs_hero_slide.active .cs_hero_stats {
  animation-delay: 1s;
  opacity: 1;
}

.cs_stat_item {
  text-align: center;
}

.cs_stat_number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #00ff88;
  margin-bottom: 5px;
}

.cs_stat_label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Promo Box */
.cs_hero_promo {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.cs_hero_slide.active .cs_hero_promo {
  animation-delay: 1s;
  opacity: 1;
}

.cs_promo_icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff88;
}

.cs_promo_text {
  display: flex;
  flex-direction: column;
}

.cs_promo_label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cs_promo_value {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Navigation */
.cs_hero_nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 3;
  pointer-events: none;
}

.cs_hero_nav button {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.cs_hero_nav_prev {
  left: 30px;
}

.cs_hero_nav_next {
  right: 30px;
}

.cs_hero_nav button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Indicators */
.cs_hero_indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.cs_indicator {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cs_indicator.active {
  background: rgba(255, 255, 255, 0.5);
}

.cs_indicator.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00ff88;
  animation: slideProgress 5s linear;
}

/* Progress Bar */
.cs_hero_progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 3;
}

.cs_progress_bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
  width: 0;
  transition: width 5s linear;
}

.cs_hero_slide.active ~ .cs_hero_progress .cs_progress_bar {
  width: 100%;
}

/* Scroll Indicator */
.cs_hero_scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cs_scroll_line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.cs_scroll_line::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00ff88;
  animation: scrollLine 2s infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .cs_hero_modern {
    height: 100vh;
    min-height: 500px;
  }
  
  .cs_hero_content {
    padding: 60px 20px;
  }
  
  .cs_hero_badge {
    font-size: 11px;
    padding: 6px 16px;
    margin-bottom: 20px;
  }
  
  .cs_hero_title {
    font-size: clamp(28px, 10vw, 48px);
    margin-bottom: 20px;
  }
  
  .cs_hero_description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
  .cs_hero_features_grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .cs_feature_item {
    font-size: 12px;
  }
  
  .cs_hero_services {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .cs_service_card {
    padding: 15px;
  }
  
  .cs_service_card i {
    font-size: 20px;
  }
  
  .cs_service_card span {
    font-size: 11px;
  }
  
  .cs_hero_actions {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  
  .cs_btn_modern {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
  }
  
  .cs_hero_stats {
    gap: 30px;
    justify-content: center;
  }
  
  .cs_stat_number {
    font-size: 24px;
  }
  
  .cs_stat_label {
    font-size: 11px;
  }
  
  .cs_hero_promo {
    width: 100%;
    justify-content: center;
  }
  
  .cs_hero_nav button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .cs_hero_nav_prev {
    left: 15px;
  }
  
  .cs_hero_nav_next {
    right: 15px;
  }
  
  .cs_hero_indicators {
    bottom: 20px;
  }
  
  .cs_indicator {
    width: 30px;
    height: 3px;
  }
  
  .cs_hero_scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .cs_hero_title {
    font-size: 32px;
  }
  
  .cs_hero_features_grid {
    grid-template-columns: 1fr;
  }
  
  .cs_hero_stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .cs_stat_item {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 80px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideProgress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes scrollLine {
  from {
    top: -100%;
  }
  to {
    top: 100%;
  }
}

/* Smooth transitions for slide changes */
.cs_hero_slide {
  will-change: opacity, visibility;
}

.cs_hero_slide * {
  will-change: transform, opacity;
}