/* ============================================
   HERO CAROUSEL SECTION - FULLY RESPONSIVE
   ============================================ */

/* Hero Block */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background: var(--color-black);
}

.hero__container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.hero__slides {
    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-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.hero__slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Image */
.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__slide--active .hero__image {
    animation: heroZoomIn 8s ease-out forwards;
}

@keyframes heroZoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Enhanced Overlay for Better Text Visibility */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.75) 100%);
}

/* Content */
.hero__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero__content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    color: var(--text-primary);
}

/* Tag with High Contrast */
.hero__tag {
    display: inline-block;
    background: var(--color-cyan);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 15px rgba(7, 158, 229, 0.5);
}

.hero__slide--active .hero__tag {
    animation: heroSlideUp 0.8s ease-out 0.2s forwards;
}

/* Title with Enhanced Visibility */
.hero__title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8);
}

.hero__title-accent {
    color: var(--color-yellow);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8);
}

.hero__slide--active .hero__title {
    animation: heroSlideUp 0.8s ease-out 0.4s forwards;
}

/* Description with Better Contrast */
.hero__description {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.9);
    font-weight: 400;
}

.hero__slide--active .hero__description {
    animation: heroSlideUp 0.8s ease-out 0.6s forwards;
}

@keyframes heroSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Buttons */
.hero__buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.hero__slide--active .hero__buttons {
    animation: heroSlideUp 0.8s ease-out 0.8s forwards;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__btn--primary {
    background: var(--color-cyan);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(7, 158, 229, 0.5);
    border: 2px solid var(--color-cyan);
}

.hero__btn--primary:hover {
    background: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 158, 229, 0.6);
}

.hero__btn--secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero__btn--secondary:hover {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 212, 3, 0.5);
}

/* Enhanced Controls */
.hero__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    background: rgba(7, 158, 229, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-cyan);
    color: var(--color-white);
    font-size: 26px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero__control:hover {
    background: var(--color-cyan);
    border-color: var(--color-white);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(7, 158, 229, 0.6);
}

.hero__control--prev {
    left: 30px;
}

.hero__control--next {
    right: 30px;
}

/* Enhanced Indicators */
.hero__indicators {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.hero__indicator {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-yellow);
    transition: width var(--transition-fast);
}

.hero__indicator--active {
    background: var(--color-white);
}

.hero__indicator--active::before {
    animation: heroIndicatorProgress 5s linear forwards;
}

@keyframes heroIndicatorProgress {
    to { width: 100%; }
}

.hero__indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scaleY(1.3);
}

/* ===== RESPONSIVE STYLES ===== */

/* Large Tablets and Small Desktops */
@media screen and (max-width: 1200px) {
    .hero__title {
        font-size: 56px;
    }
    
    .hero__description {
        font-size: 19px;
        max-width: 650px;
    }
    
    .hero__content-wrapper {
        padding: 0 35px;
    }
}

/* Tablets */
@media screen and (max-width: 1024px) {
    .hero {
        max-height: 800px;
    }
    
    .hero__title {
        font-size: 48px;
        margin-bottom: 20px;
    }
    
    .hero__description {
        font-size: 18px;
        max-width: 600px;
        margin-bottom: 35px;
    }
    
    .hero__btn {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .hero__control {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .hero__control--prev {
        left: 20px;
    }
    
    .hero__control--next {
        right: 20px;
    }
    
    .hero__tag {
        font-size: 13px;
        padding: 9px 20px;
        margin-bottom: 20px;
    }
}

/* Small Tablets and Large Phones */
@media screen and (max-width: 768px) {
    .hero {
        height: 85vh;
        min-height: 550px;
        max-height: 700px;
    }
    
    .hero__content-wrapper {
        padding: 0 25px;
    }
    
    .hero__title {
        font-size: 38px;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    
    .hero__description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .hero__buttons {
        gap: 15px;
    }
    
    .hero__btn {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .hero__control {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .hero__control--prev {
        left: 15px;
    }
    
    .hero__control--next {
        right: 15px;
    }
    
    .hero__indicators {
        bottom: 30px;
        gap: 12px;
    }
    
    .hero__indicator {
        width: 45px;
        height: 5px;
    }
    
    .hero__tag {
        font-size: 12px;
        padding: 8px 18px;
        margin-bottom: 18px;
    }
    
    .hero__overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.78) 100%);
    }
}

/* Mobile Devices */
@media screen and (max-width: 480px) {
    .hero {
        height: 80vh;
        min-height: 500px;
        max-height: 650px;
    }
    
    .hero__content-wrapper {
        padding: 0 20px;
    }
    
    .hero__title {
        font-size: 32px;
        line-height: 1.25;
        margin-bottom: 15px;
    }
    
    .hero__description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .hero__tag {
        font-size: 11px;
        padding: 7px 16px;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero__btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .hero__control {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
    
    .hero__control--prev {
        left: 10px;
    }
    
    .hero__control--next {
        right: 10px;
    }
    
    .hero__indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .hero__indicator {
        width: 35px;
        height: 4px;
    }
    
    .hero__overlay {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.70) 50%, rgba(0, 0, 0, 0.85) 100%);
    }
    
    /* Disable zoom animation on mobile for performance */
    .hero__slide--active .hero__image {
        animation: none;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 375px) {
    .hero {
        min-height: 480px;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .hero__description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero__btn {
        padding: 13px 20px;
        font-size: 13px;
    }
    
    .hero__control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hero__indicator {
        width: 30px;
    }
}

/* Landscape Mode for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: auto;
    }
    
    .hero__content-wrapper {
        padding: 20px 30px;
    }
    
    .hero__title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .hero__description {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .hero__tag {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 10px;
    }
    
    .hero__buttons {
        gap: 10px;
    }
    
    .hero__btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .hero__control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hero__indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .hero__indicator {
        width: 35px;
        height: 4px;
    }
}

/* High Resolution Displays */
@media screen and (min-width: 1920px) {
    .hero {
        max-height: 1080px;
    }
    
    .hero__title {
        font-size: 72px;
    }
    
    .hero__description {
        font-size: 22px;
        max-width: 800px;
    }
    
    .hero__btn {
        padding: 20px 45px;
        font-size: 18px;
    }
    
    .hero__control {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hero__control:hover {
        transform: translateY(-50%);
    }
    
    .hero__btn:hover {
        transform: none;
    }
    
    .hero__indicator:hover {
        transform: none;
    }
}
