/* Hero Banner Component */
.hero-banner {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Background */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-slow) ease;
    z-index: 1;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 4rem;
    color: var(--text-light);
    z-index: 3;
}

.content-wrapper {
    max-width: 700px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Animation is applied only once when the page loads */
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Action Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-medium) ease;
    box-shadow: 0 4px 15px rgba(74, 134, 232, 0.35);
}

.btn-primary:hover {
    background-color: #3978e0;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(74, 134, 232, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--text-light);
    transition: all var(--transition-medium) ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    margin: 0 1rem;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.indicator.active {
    width: 30px;
    border-radius: 5px;
    background-color: var(--primary-color);
}

/* Demo Content */
.content-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --hero-height: var(--hero-height-mobile);
    }

    .hero-content {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        margin: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 0 1.5rem;
        text-align: center;
    }

    .content-wrapper {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 250px;
        margin: 2rem auto 0;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
