/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease;
}

.hero-slide.active .hero-image {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
}

.slide-content .container {
    max-width: 1200px;
    text-align: right;
    margin-right: 50px;
}

.slide-tag {
    display: inline-block;
    background: var(--accent-amber);
    color: var(--gray-900);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideInRight 0.8s ease 0.4s both;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: slideInRight 0.8s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-amber);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    animation: slideInRight 0.8s ease 0.2s both;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-description {
    font-size: 1.1rem;
    color: var(--gray-200);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.8s ease 0.3s both;
    margin-left: auto;
}

.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-purple);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideInRight 0.8s ease 0.5s both;
    box-shadow: 0 4px 15px rgba(107, 33, 168, 0.4);
    border: 2px solid transparent;
}

.slide-button:hover {
    background: transparent;
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 33, 168, 0.6);
}

.slide-button:active {
    transform: translateY(0);
}

/* ===== CAROUSEL CONTROLS ===== */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gray-800);
    pointer-events: all;
    box-shadow: var(--shadow-md);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(1);
}

/* ===== CAROUSEL INDICATORS ===== */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.indicator.active,
.indicator:hover {
    background: white;
    opacity: 1;
    transform: scale(1.2);
}

/* ===== AUTOPLAY CONTROLS ===== */
.carousel-autoplay {
    position: absolute;
    bottom: 40px;
    right: 30px;
    z-index: 3;
}

.autoplay-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gray-800);
    box-shadow: var(--shadow-sm);
}

.autoplay-toggle:hover {
    background: white;
    transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-content .container {
        margin-right: 30px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-subtitle {
        font-size: 1.3rem;
    }
    
    .slide-description {
        font-size: 1rem;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content .container {
        margin-right: 20px;
        text-align: center;
    }
    
    .slide-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
        margin-left: 0;
    }
    
    .slide-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 30px;
    }
    
    .carousel-autoplay {
        bottom: 30px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-content .container {
        margin-right: 15px;
        margin-left: 15px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .slide-tag {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .carousel-prev,
    .carousel-next {
        display: none;
    }
}

/* Loading state */
.hero-section.loading .hero-image {
    filter: blur(10px);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-image {
        transition: none;
    }
    
    .slide-button,
    .slide-title,
    .slide-subtitle,
    .slide-description,
    .slide-tag {
        animation: none;
    }
    
    .carousel-prev:hover,
    .carousel-next:hover,
    .slide-button:hover {
        transform: none;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .slide-overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.8) 50%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }
    
    .slide-title,
    .slide-subtitle,
    .slide-description {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }
}