/* =====================================================
   MODERN CAROUSEL STYLES - FINNEXIA
   ===================================================== */

/* Variables CSS */
:root {
  --primary-color: #113375;
  --secondary-color: #f87902;
  --accent-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #2c3e50;
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-gradient: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --border-radius: 12px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Modern Carousel Container */
.modern-carousel {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  margin-top: -55px;
  z-index: 1;
}

.modern-carousel .carousel-inner {
  height: 100%;
}

.modern-carousel .carousel-item {
  height: 100%;
  position: relative;
}

/* Slide Backgrounds */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--transition-smooth);
  transform: scale(1.05);
}

.slide-bg-1 {
  background-image: url('../img/images/slider1.jpg');
}

.slide-bg-2 {
  background-image: url('../img/images/slider2.jpg');
}

.slide-bg-3 {
  background-image: url('../img/images/slider3.jpg');
}

.carousel-item.active .slide-background {
  transform: scale(1);
}

/* Modern Overlay */
.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-gradient);
  z-index: 1;
}

/* Animated Shapes */
.animated-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 15%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  bottom: 30%;
  left: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 25%;
  animation-delay: 4s;
}

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

/* Carousel Content */
.carousel-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 3;
}

.content-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.slide-number {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  line-height: 0.8;
  font-family: 'Poppins', sans-serif;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.content-main {
  max-width: 600px;
}

.subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
}

.subtitle::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background: var(--text-light);
}

.main-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.highlight-text {
  color: var(--secondary-color);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.422), 2px 2px 4px rgb(32 18 3);
  font-weight: 800;
  position: relative;
}

.description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Modern Buttons */
.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  min-width: 180px;
  justify-content: center;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  color: var(--text-light);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  border-color: var(--text-light);
  transform: translateY(-3px);
  text-decoration: none;
}

.icon-arrow::after {
  content: '→';
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.btn-modern:hover .icon-arrow::after {
  transform: translateX(5px);
}

/* Modern Indicators */
.modern-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 5;
}

.indicator {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  outline: none;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.indicator.active {
  background: rgba(255, 255, 255, 0.6);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.indicator.active .progress-bar {
  left: 0;
}

@keyframes progressFill {
  0% {
    left: -100%;
  }
  100% {
    left: 0;
  }
}

/* Modern Controls */
.modern-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.modern-control:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: 40px;
}

.carousel-control-next {
  right: 40px;
}

.control-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}

.prev-icon::before {
  content: '←';
  font-size: 1.5rem;
  color: white;
}

.next-icon::before {
  content: '→';
  font-size: 1.5rem;
  color: white;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
  color: var(--text-light);
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

.scroll-indicator span {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-title {
    font-size: 2.1rem;
  }
  
  .content-wrapper {
    gap: 40px;
  }
  
  .slide-number {
    font-size: 4rem;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  .slide-number {
    font-size: 3rem;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
  
  .main-title {
    font-size: 1.9rem;
  }
  
  .modern-control {
    display: none;
  }
}

@media (max-width: 768px) {
  .modern-carousel {
    height: 100vh;
    min-height: 600px;
  }
  
  .main-title {
    font-size: 1.7rem;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .btn-modern {
    min-width: 220px;
    padding: 14px 28px;
    font-size: 0.95rem;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .subtitle::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .modern-carousel {
    margin-top: 0;
  }
  
  .main-title {
    font-size: 1.5rem;
  }
  
  .slide-number {
    font-size: 2.5rem;
  }
  
  .modern-indicators {
    bottom: 20px;
  }
  
  .indicator {
    width: 40px;
  }
}
