/* Enhanced Hero Carousel Styles */

/* Carousel Slide Animations */
.hero-slide {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin: 0.5rem 0;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.4), transparent 70%),
                radial-gradient(circle at bottom left, rgba(40, 167, 69, 0.4), transparent 70%),
                radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 60%);
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}

.carousel-item.active .hero-slide::before {
    opacity: 1;
    transform: scale(1);
}

/* Carousel Controls Hover Effects */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

#heroCarousel .carousel-control-prev {
    transform: translateX(-10px);
}

#heroCarousel:hover .carousel-control-prev {
    transform: translateX(0);
}

#heroCarousel .carousel-control-next {
    transform: translateX(10px);
}

#heroCarousel:hover .carousel-control-next {
    transform: translateX(0);
}

.carousel-control-btn-container {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover .carousel-control-btn-container,
#heroCarousel .carousel-control-next:hover .carousel-control-btn-container {
    background-color: rgba(13, 110, 253, 0.7) !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

/* Carousel Indicators Animation */
#heroCarousel .carousel-indicators {
    margin-bottom: 2rem;
}

#heroCarousel .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    height: 5px;
    transition: all 0.5s ease;
}

#heroCarousel .carousel-indicators button:hover {
    opacity: 0.9 !important;
    width: 45px !important;
}

#heroCarousel .carousel-indicators .active {
    width: 50px !important;
    opacity: 1 !important;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

/* Content Animation Enhancements */
.animate__delay-0\.5s {
    animation-delay: 0.5s;
}

.animate__delay-0\.8s {
    animation-delay: 0.8s;
}

.animate__delay-1\.2s {
    animation-delay: 1.2s;
}

/* Enhanced Animation Classes */
.animate__fadeInDown {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-duration: 1.2s;
    animation-fill-mode: both;
}

/* Add a subtle bounce effect to buttons */
.carousel-item.active .btn {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Button Hover Effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Slide Transition Effects */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-item.active .hero-slide {
    animation: zoomIn 15s linear forwards;
}

.carousel-item.transitioning-in .hero-slide {
    animation: fadeScale 1.2s ease-out;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes fadeScale {
    0% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Enhanced Text Effects */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.text-gradient.bg-white {
    background-image: linear-gradient(135deg, #ffffff, #f0f0f0);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.text-gradient.bg-white::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { opacity: 0; transform: translateX(-100%) rotate(30deg); }
    20% { opacity: 0.3; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateX(100%) rotate(30deg); }
}

/* Carousel Content Animation Refinements */
.carousel-item .hero-slide h1,
.carousel-item .hero-slide p,
.carousel-item .hero-slide div {
    opacity: 0;
}

.carousel-item.active .hero-slide h1,
.carousel-item.active .hero-slide p,
.carousel-item.active .hero-slide div {
    opacity: 1;
}

/* Slide Background Enhancement */
.hero-slide {
    position: relative;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}