/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.6) 0%, rgba(46, 204, 113, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 80%;
    margin: 0 auto;
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-in-out 0.3s;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.cta-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cta-button-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Carousel Navigation - Hidden */
.carousel-nav {
    display: none !important;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.carousel-dot.active {
    background: #ffcc00;
    border-color: #ffcc00;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-arrow.prev {
    left: 2rem;
}

.carousel-arrow.next {
    right: 2rem;
}

/* Auto-play indicator */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 3;
    transition: width 0.1s linear;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-carousel {
        min-height: 60vh;
    }
    
    .hero-carousel-container {
        height: 60vh;
    }
    
    .hero-content {
        padding: 1rem;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        margin: 0 1rem;
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .cta-button,
    .cta-button-secondary {
        width: 100%;
        max-width: 200px;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .carousel-arrow.prev {
        left: 1rem;
    }
    
    .carousel-arrow.next {
        right: 1rem;
    }
    
    .carousel-nav {
        bottom: 1rem;
    }
    
    .carousel-dot {
        width: 16px;
        height: 16px;
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        min-height: 50vh;
    }
    
    .hero-carousel-container {
        height: 50vh;
    }
    
    .hero-content {
        padding: 0.75rem;
        margin: 0 0.5rem;
        background: rgba(0, 0, 0, 0.1);
        max-width: 95%;
    }
    
    .hero-content h1 {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }
    
    .hero-content p {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
    
    .cta-button,
    .cta-button-secondary {
        max-width: 180px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-arrow.prev {
        left: 0.5rem;
    }
    
    .carousel-arrow.next {
        right: 0.5rem;
    }
    
    .carousel-dot {
        width: 18px;
        height: 18px;
        margin: 0 10px;
    }
}

/* Loading state */
.hero-carousel.loading .hero-slide {
    opacity: 0;
}

.hero-carousel.loading .carousel-nav,
.hero-carousel.loading .carousel-arrow {
    display: none;
}

/* Fade in animation when carousel loads */
.hero-carousel {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
