/* Modern Carousel Styles for 2025 */
:root {
  --carousel-transition: 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  --neon-blue: rgba(0, 162, 255, 0.8);
  --neon-pink: rgba(255, 0, 153, 0.8);
  --neon-purple: rgba(162, 0, 255, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Modern Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

/* Modern Carousel */
.modern-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1500px;
}

.carousel-track {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--carousel-transition);
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  overflow: hidden;
  transition: opacity var(--carousel-transition), transform var(--carousel-transition);
  transform: scale(0.85) translateZ(-100px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1) translateZ(0);
  z-index: 10;
}

.carousel-slide.prev {
  opacity: 0.4;
  transform: scale(0.9) translateX(-30%) rotateY(10deg) translateZ(-100px);
  z-index: 5;
}

.carousel-slide.next {
  opacity: 0.4;
  transform: scale(0.9) translateX(30%) rotateY(-10deg) translateZ(-100px);
  z-index: 5;
}

/* Slide Background */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.5s ease;
  filter: brightness(0.7);
}

.carousel-slide.active .slide-bg img {
  transform: scale(1);
}

/* Slide Overlay */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
}

/* Slide Content */
.slide-content {
  position: relative;
  z-index: 3;
  width: 80%;
  max-width: 1200px;
  padding: 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 1s ease 0.2s, opacity 1s ease 0.2s;
}

.carousel-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(0,0,0,0.5);
  background: linear-gradient(90deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.slide-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  border-radius: 2px;
}

.slide-description {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.4;
  font-weight: 300;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
}

.slide-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.slide-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.slide-cta:hover::before {
  opacity: 1;
}

.slide-cta i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.slide-cta:hover i {
  transform: translateX(5px);
}

/* Floating Elements */
.floating-element {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
}

.carousel-slide.active .floating-element {
  opacity: 1;
}

.floating-element.top-left {
  top: 15%;
  left: 10%;
  transform: translate(-50px, -50px) rotate(-10deg);
}

.carousel-slide.active .floating-element.top-left {
  transform: translate(0, 0) rotate(-10deg);
}

.floating-element.bottom-right {
  bottom: 15%;
  right: 10%;
  transform: translate(50px, 50px) rotate(10deg);
}

.carousel-slide.active .floating-element.bottom-right {
  transform: translate(0, 0) rotate(10deg);
}

/* Navigation Controls */
.carousel-nav {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  gap: 20px;
}

.carousel-dots {
  display: flex;
  gap: 12px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.carousel-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.carousel-dot.active::after {
  transform: scale(1);
}

.carousel-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 1.2rem;
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* Progress Bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  z-index: 20;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  transition: width 0.1s linear;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .slide-title {
    font-size: 2.5rem;
  }
  
  .slide-description {
    font-size: 1.2rem;
  }
  
  .floating-element {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    min-height: 500px;
  }
  
  .slide-content {
    width: 90%;
    padding: 1.5rem;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .floating-element {
    max-width: 80px;
  }
  
  .carousel-slide.prev,
  .carousel-slide.next {
    opacity: 0;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .slide-title {
    font-size: 1.8rem;
  }
  
  .floating-element {
    display: none;
  }
}

/* Animation Keyframes */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(0, 162, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 162, 255, 0.8); }
  100% { box-shadow: 0 0 5px rgba(0, 162, 255, 0.5); }
}
