/* ============================================
   HERO SLIDER - SUPER PERFORMANCE OPTIMIZED
   ============================================ */

/* Container */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide.active .slide-content {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Background with GPU acceleration */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slide-background picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-slide.active .slide-background img {
    transform: scale(1);
}

/* Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

/* Content */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 2rem clamp(1rem, 5vw, 4rem);
}

.content-wrapper {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    padding-left:40px;
}

.hero-slide.active .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.slide-title {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.slide-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #f0f0f0;
    margin: 0 0 2rem;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.slide-cta {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: #ff8c42;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
    text-transform: capitalize;
}

.slide-cta:hover {
    background: #ff7526;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6);
}

.slide-cta:active {
    transform: translateY(0);
}

/* Navigation Arrows - COMPLETELY REDESIGNED */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    outline: none;
    padding: 0;
}

.slider-nav-prev {
    left: 2rem;
}

.slider-nav-next {
    right: 2rem;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-nav:active {
    transform: translateY(-50%) scale(1.05);
}

.slider-nav svg {
    width: 30px;
    height: 30px;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Pagination Dots */
.slider-pagination {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: #ff8c42;
    border-color: rgba(255, 255, 255, 0.5);
    width: 32px;
    border-radius: 6px;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - MOBILE HEIGHT FIXED */
@media (max-width: 1024px) {
    .slider-nav {
        width: 55px;
        height: 55px;
        min-width: 55px;
        min-height: 55px;
    }
    
    .slider-nav-prev {
        left: 0.2rem;
    }
    
    .slider-nav-next {
        right: 0.2rem;
    }
}

@media (max-width: 768px) {
    /* Fix mobile height */
    .hero-slider {
        height: 70vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    .slide-content {
        padding: 1.5rem 1rem;
        align-items: center;
        padding-bottom: 4rem;
    }
    
    .content-wrapper {
        max-width: 100%;
        padding-left: 39px;
        padding-right: 30px;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        background: rgba(255, 255, 255, 0.3);
    }