/* ========================================
   EXTRAORDINARY HERO CAROUSEL STYLES
   ======================================== */

/* Carousel Container */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Carousel Slides */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

/* Slide Image with Parallax Effect */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gradient Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 90, 160, 0.85) 0%,
        rgba(52, 152, 219, 0.7) 50%,
        rgba(243, 156, 18, 0.6) 100%
    );
    z-index: 1;
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 8%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Slide Badge */
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

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

.slide-badge i {
    color: #f39c12;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 8px rgba(243, 156, 18, 0.6));
}

/* Slide Title */
.slide-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.title-line {
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.carousel-slide.active .title-line {
    opacity: 1;
    transform: translateX(0);
}

.title-main {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

.carousel-slide.active .title-main {
    opacity: 1;
    transform: translateX(0);
}

/* Slide Description */
.slide-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s;
}

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

/* Slide Features */
.slide-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active .feature-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
}

.carousel-slide.active .feature-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.3s;
}

.carousel-slide.active .feature-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.5s;
}

.feature-item i {
    color: #f39c12;
    font-size: 1.3rem;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Slide Actions */
.slide-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.carousel-slide.active .btn-hero-primary {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.7s;
}

.carousel-slide.active .btn-hero-secondary {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.9s;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.4);
    border: 2px solid transparent;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

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

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(243, 156, 18, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Navigation Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 3%;
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.carousel-btn:hover::before {
    width: 100%;
    height: 100%;
}

.carousel-btn i {
    position: relative;
    z-index: 1;
}

.carousel-btn:hover {
    border-color: #f39c12;
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.5);
    transform: scale(1.1);
}

.carousel-play-pause {
    position: relative;
    width: 55px;
    height: 55px;
    margin-left: 1rem;
}

/* Progress Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    margin-bottom: 10px;
}

.indicator {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scaleY(1.3);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 10px;
    transition: width 0.3s ease;
}

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

.indicator.active .indicator-progress {
    animation: progressBar 5s linear;
}

@keyframes progressBar {
    from { width: 0; }
    to { width: 100%; }
}

/* Slide Counter */
.carousel-counter {
    position: absolute;
    top: 65%;
    left: 3%;
    transform: translateY(calc(-50% + 100px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    z-index: 10;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
}

.current-slide {
    color: #f39c12;
    font-size: 1.8rem;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.total-slides {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Decorative Elements */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.15), transparent);
    animation: float 20s ease-in-out infinite;
}

.decoration-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.decoration-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
}

.decoration-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, transparent, rgba(44, 90, 160, 0.3));
    clip-path: polygon(0 50%, 100% 30%, 100% 100%, 0 100%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .title-main {
        font-size: 3.5rem;
    }
    
    .slide-content {
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    .slide-content {
        padding: 0 5%;
        align-items: center;
        text-align: center;
    }
    
    .title-line {
        font-size: 1.2rem;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .slide-features {
        justify-content: center;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .slide-actions {
        justify-content: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .carousel-controls {
        padding: 0 5%;
    }
    
    /* Move indicators higher to make room */
    .carousel-indicators {
        bottom: 12%;
        gap: 10px;
    }
    
    .indicator {
        width: 40px;
    }
    
    /* Keep counter below prev button on mobile */
    .carousel-counter {
        top: 55%;
        left: 5%;
        transform: translateY(calc(-50% + 80px));
        font-size: 1rem;
        padding: 15px 12px;
        gap: 3px;
    }
    
    .current-slide {
        font-size: 1.4rem;
    }
    
    .separator {
        font-size: 0.9rem;
    }
    
    .total-slides {
        font-size: 1rem;
    }
    
    /* Hide play/pause button on mobile */
    .carousel-play-pause {
        display: none;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2rem;
    }
    
    .slide-badge {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
    
    .slide-features {
        flex-direction: column;
        align-items: center;
    }
    
    .slide-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}
