/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--dark);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-slide::before {
    display: none;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: var(--spacing-xl);
}

.carousel-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.8s ease-out;
    color: #ffffff;
}

.carousel-content p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s ease-out 0.2s both;
    color: #ffffff;
}

.carousel-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.4s both;
}

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

/* Carousel Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: none;
    color: var(--white);
    font-size: var(--text-3xl);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-dot.active {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.3);
}

.carousel-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

/* Responsive Carousel */
@media (max-width: 968px) {
    .hero-carousel {
        height: 550px;
    }
}

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

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: var(--text-xl);
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .carousel-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 450px;
    }

    .carousel-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: var(--text-lg);
    }
}
