/* Hero Carousel Full Size Styles */
.hero-section .carousel {
    width: 100%;
    height: 100%;
}

.hero-section .carousel-inner {
    width: 100%;
    height: 100%;
}

.hero-section .carousel-item {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Large, Visible Navigation Arrows */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 1);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.hero-section .carousel-control-prev {
    left: 20px;
}

.hero-section .carousel-control-next {
    right: 20px;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100% 100%;
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

/* Ensure full width carousel */
.hero-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.hero-section .carousel .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Animation Keyframes */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) translateY(100%);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(-10%);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9) translateY(5%);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Special zoom animation for background images */
@keyframes zoomInBackground {
    from {
        background-size: 150% 150%;
        opacity: 0;
    }
    to {
        background-size: cover;
        opacity: 1;
    }
}

/* Background-specific animations that don't use transform */
@keyframes backgroundSlideLeft {
    from {
        background-position: 100% center;
        opacity: 0;
    }
    to {
        background-position: center center;
        opacity: 1;
    }
}

@keyframes backgroundSlideRight {
    from {
        background-position: -100% center;
        opacity: 0;
    }
    to {
        background-position: center center;
        opacity: 1;
    }
}

@keyframes backgroundSlideTop {
    from {
        background-position: center 100%;
        opacity: 0;
    }
    to {
        background-position: center center;
        opacity: 1;
    }
}

@keyframes backgroundSlideBottom {
    from {
        background-position: center -100%;
        opacity: 0;
    }
    to {
        background-position: center center;
        opacity: 1;
    }
}

@keyframes backgroundZoom {
    from {
        background-size: 150% 150%;
        opacity: 0;
    }
    to {
        background-size: cover;
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes slideInDiagonal {
    from {
        transform: translate(-100%, -100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

@keyframes flipIn {
    from {
        transform: perspective(1000px) rotateY(-90deg);
        opacity: 0;
    }
    to {
        transform: perspective(1000px) rotateY(0deg);
        opacity: 1;
    }
}

/* Animation Classes for Carousel Content and Background Images */
.hero-section .carousel-item .container,
.hero-section .carousel-item .hero-content {
    animation-fill-mode: both;
}

/* Ensure animations work smoothly */
.hero-section .carousel-item {
    will-change: transform, opacity, background-size, background-position;
    position: relative;
    overflow: hidden;
}

/* Ensure hero buttons are clickable */
.hero-section .btn-hero,
.hero-section .btn,
.hero-section a.btn,
.hero-section .hero-banner-link,
.hero-section a[href] {
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.hero-section .hero-content,
.hero-section .container {
    position: relative !important;
    z-index: 10 !important;
}

.hero-section .hero-content *,
.hero-section .container * {
    pointer-events: auto !important;
}

/* Ensure buttons are above everything */
.hero-section .carousel-item .btn-hero,
.hero-section .carousel-item .btn,
.hero-section .carousel-item a.btn {
    z-index: 10000 !important;
    position: relative !important;
}

/* Ensure buttons work inside carousel items */
.hero-section .carousel-item {
    position: relative;
}

.hero-section .carousel-item .btn-hero,
.hero-section .carousel-item .btn,
.hero-section .carousel-item a.btn,
.hero-section .carousel-item .hero-banner-link {
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Animate the carousel item itself (background image) - use background-position for smoother effects */
.hero-section .carousel-item.animate-slide-left {
    animation: backgroundSlideLeft 0.8s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-slide-right {
    animation: backgroundSlideRight 0.8s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-slide-top {
    animation: backgroundSlideTop 0.8s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-slide-bottom {
    animation: backgroundSlideBottom 0.8s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-bounce {
    animation: bounceIn 1s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-zoom {
    animation: backgroundZoom 0.8s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-fade {
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-rotate {
    animation: rotateIn 0.8s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-diagonal {
    animation: slideInDiagonal 0.8s ease-out 0.2s both;
}

.hero-section .carousel-item.animate-flip {
    animation: flipIn 0.8s ease-out 0.2s both;
}

/* Animate content inside carousel items */
.hero-section .carousel-item .container.animate-slide-left,
.hero-section .carousel-item .hero-content.animate-slide-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.hero-section .carousel-item .container.animate-slide-right,
.hero-section .carousel-item .hero-content.animate-slide-right {
    animation: slideInFromRight 0.8s ease-out;
}

.hero-section .carousel-item .container.animate-slide-top,
.hero-section .carousel-item .hero-content.animate-slide-top {
    animation: slideInFromTop 0.8s ease-out;
}

.hero-section .carousel-item .container.animate-slide-bottom,
.hero-section .carousel-item .hero-content.animate-slide-bottom {
    animation: slideInFromBottom 0.8s ease-out;
}

.hero-section .carousel-item .container.animate-bounce,
.hero-section .carousel-item .hero-content.animate-bounce {
    animation: bounceIn 1s ease-out;
}

.hero-section .carousel-item .container.animate-zoom,
.hero-section .carousel-item .hero-content.animate-zoom {
    animation: zoomIn 0.8s ease-out;
}

.hero-section .carousel-item .container.animate-fade,
.hero-section .carousel-item .hero-content.animate-fade {
    animation: fadeIn 1s ease-out;
}

.hero-section .carousel-item .container.animate-rotate,
.hero-section .carousel-item .hero-content.animate-rotate {
    animation: rotateIn 0.8s ease-out;
}

.hero-section .carousel-item .container.animate-diagonal,
.hero-section .carousel-item .hero-content.animate-diagonal {
    animation: slideInDiagonal 0.8s ease-out;
}

.hero-section .carousel-item .container.animate-flip,
.hero-section .carousel-item .hero-content.animate-flip {
    animation: flipIn 0.8s ease-out;
}

