/* Enhanced Hero Carousel Slider Styles */

.hero-carousel-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-carousel-container .carousel-inner {
    position: relative;
}

.hero-carousel-container .carousel-item {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-carousel-container .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced slide animations */
.carousel-item.active {
    animation: slideInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

/* Custom Carousel Indicators */
.hero-carousel-container .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 15;
    justify-content: center;
    gap: 8px;
}

.hero-carousel-container .carousel-indicators [data-bs-target] {
    width: 80px;
    height: 4px;
    margin: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5));
    border: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-carousel-container .carousel-indicators [data-bs-target]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hero-carousel-container .carousel-indicators [data-bs-target]:hover::before {
    left: 100%;
}

.hero-carousel-container .carousel-indicators [data-bs-target]:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
    transform: scaleY(1.5) scaleX(1.1);
}

.hero-carousel-container .carousel-indicators [data-bs-target].active {
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleY(1.8) scaleX(1.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hero-carousel-container .carousel-indicators .indicator-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-carousel-container .carousel-indicators [data-bs-target]:hover .indicator-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Enhanced Carousel Controls */
.hero-carousel-container .carousel-control-prev,
.hero-carousel-container .carousel-control-next {
    width: 70px;
    height: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    opacity: 0.8;
    z-index: 10;
}

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

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

.hero-carousel-container .carousel-control-prev:hover,
.hero-carousel-container .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-carousel-container .carousel-control-prev:active,
.hero-carousel-container .carousel-control-next:active {
    transform: translateY(-50%) scale(1.05);
}

.hero-carousel-container .carousel-control-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.hero-carousel-container .carousel-control-prev:hover .carousel-control-icon,
.hero-carousel-container .carousel-control-next:hover .carousel-control-icon {
    font-size: 22px;
}

/* Progress Bar - REMOVED */

/* Enhanced Controls Panel */
.carousel-controls-panel {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 15;
    transition: all 0.3s ease;
}

.carousel-controls-panel:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.02);
}

.carousel-control-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-control-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

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

.carousel-control-button:hover {
    color: #667eea;
    transform: scale(1.15);
}

.carousel-counter {
    color: white;
    font-size: 15px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-carousel-container .carousel-control-prev {
        left: 25px;
    }
    
    .hero-carousel-container .carousel-control-next {
        right: 25px;
    }
}

@media (max-width: 768px) {
    .hero-carousel-container .carousel-control-prev,
    .hero-carousel-container .carousel-control-next {
        width: 55px;
        height: 55px;
    }
    
    .hero-carousel-container .carousel-control-prev {
        left: 20px;
    }
    
    .hero-carousel-container .carousel-control-next {
        right: 20px;
    }
    
    .carousel-controls-panel {
        top: 20px;
        right: 20px;
        padding: 8px 16px;
        gap: 15px;
    }
    
    .carousel-control-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .carousel-counter {
        font-size: 14px;
        min-width: 50px;
    }
    
    .hero-carousel-container .carousel-indicators {
        bottom: 20px;
    }
    
    .hero-carousel-container .carousel-indicators [data-bs-target] {
        width: 60px;
        height: 3px;
    }
    
    .hero-carousel-container .carousel-indicators .indicator-label {
        display: none;
    }
}

@media (max-width: 576px) {
    .carousel-controls-panel {
        position: fixed;
        bottom: 80px;
        right: 20px;
        top: auto;
        padding: 6px 12px;
    }
    
    .hero-carousel-container .carousel-control-prev,
    .hero-carousel-container .carousel-control-next {
        width: 45px;
        height: 45px;
        opacity: 0.6;
    }
    
    .hero-carousel-container .carousel-control-prev:hover,
    .hero-carousel-container .carousel-control-next:hover {
        opacity: 0.9;
        transform: translateY(-50%) scale(1.05);
    }
    
    .hero-carousel-container .carousel-control-icon {
        font-size: 16px;
    }
}

/* Animation for slide transitions */
@keyframes slideInScale {
    from {
        opacity: 0.9;
        transform: scale(1.01);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pause state styles - progress bar removed */

/* Hero section specific adjustments for carousel */
.carousel-item .hero-section-enhanced {
    min-height: 650px;
}

@media (max-width: 992px) {
    .carousel-item .hero-section-enhanced {
        min-height: 550px;
    }
}

@media (max-width: 768px) {
    .carousel-item .hero-section-enhanced {
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .carousel-item .hero-section-enhanced {
        min-height: 450px;
    }
}

/* Enhanced content animations for carousel */
.carousel-item .hero-title,
.carousel-item .hero-subtitle,
.carousel-item .hero-description,
.carousel-item .hero-buttons {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active .hero-title {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.carousel-item.active .hero-subtitle {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.carousel-item.active .hero-description {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.carousel-item.active .hero-buttons {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.hero-carousel-loading {
    min-height: 650px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel-container .carousel-item,
    .carousel-progress-bar,
    .carousel-control-button,
    .hero-title, .hero-subtitle, .hero-description, .hero-buttons {
        animation: none !important;
        transition: none !important;
    }
    
    .carousel-item.active .hero-title,
    .carousel-item.active .hero-subtitle,
    .carousel-item.active .hero-description,
    .carousel-item.active .hero-buttons {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.hero-carousel-container .carousel-control-prev:focus,
.hero-carousel-container .carousel-control-next:focus,
.carousel-control-button:focus,
.hero-carousel-container .carousel-indicators [data-bs-target]:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-carousel-container .carousel-indicators,
    .hero-carousel-container .carousel-control-prev,
    .hero-carousel-container .carousel-control-next,
    .carousel-controls-panel {
        display: none !important;
    }
    
    .carousel-item:not(.active) {
        display: none !important;
    }
}