/**
 * Hero Slideshow Styles
 *
 * Styling for the front page hero slideshow with transitions,
 * navigation controls, and responsive design.
 */

/* Slideshow Container */
.hero-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 600px;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary, #5e2ca5);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(94, 44, 165, 0.8) 0%,
        rgba(169, 94, 236, 0.7) 100%
    );
    z-index: 1;
    backdrop-filter: blur(1px);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Controls */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: inherit;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    font-weight: 100;
}

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

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

.slideshow-nav.prev {
    left: 2rem;
}

.slideshow-nav.next {
    right: 2rem;
}

.slideshow-nav span {
    line-height: 0;
}

/* Slide Dots Navigation */
.slideshow-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slideshow-dot.active {
    background-color: #ffffff;
    transform: scale(1.3);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .slideshow-container {
        height: 500px;
    }

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

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

    .slideshow-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .slideshow-nav.prev {
        left: 1.5rem;
    }

    .slideshow-nav.next {
        right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 450px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .slideshow-nav {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    .slideshow-nav.prev {
        left: 1rem;
    }

    .slideshow-nav.next {
        right: 1rem;
    }

    .slideshow-dots {
        bottom: 1.5rem;
    }

    .slideshow-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 400px;
    }

    .hero-content {
        padding: 1rem;
    }

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

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

    .hero-cta {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }

    .slideshow-nav {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .slideshow-nav.prev {
        left: 0.5rem;
    }

    .slideshow-nav.next {
        right: 0.5rem;
    }

    .slideshow-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .slideshow-nav,
    .slideshow-dot,
    .hero-cta {
        transition: none;
        animation: none;
    }

    .hero-title,
    .hero-subtitle,
    .hero-cta {
        animation: fadeIn 0.3s ease-out;
    }
}

/* Focus styles for accessibility */
.slideshow-nav:focus,
.slideshow-dot:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.hero-cta:focus {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}
