/* ─────────────────────────────────────────────
   Home Page Slider Section (Standalone)
   ───────────────────────────────────────────── */
.hero-slider-section {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 380px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background-color: var(--bg-secondary);
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    transform: scale(1.02);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

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

[data-theme="dark"] .hero-slide-bg {
    opacity: 0.8;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 15, 30, 0.8) 0%, rgba(10, 15, 30, 0.45) 50%, rgba(10, 15, 30, 0.1) 100%);
    z-index: 1;
}

[data-theme="dark"] .hero-slide-overlay {
    background: linear-gradient(90deg, rgba(5, 8, 16, 0.85) 0%, rgba(5, 8, 16, 0.5) 50%, rgba(5, 8, 16, 0.15) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    padding: 1rem;
    color: #ffffff;
    animation: slideTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide-content .hero-title {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-slide-content .hero-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Slide Nav Elements */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    width: 24px;
    border-radius: 10px;
    background: var(--accent);
}

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

/* Responsive Media Queries */
@media (min-width: 769px) {
    .hero-slider-container {
        height: 500px;
    }
    .hero-slide .hero-flex-container {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 3rem;
        height: 100%;
    }
}

/* Big Screen Premium Full-Size Slider */
@media (min-width: 1025px) {
    .hero-slider-section {
        padding: 2rem 0;
    }

    .hero-slider-container {
        height: 550px;
        max-width: 1280px;
        margin: 0 auto;
        border-radius: 24px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        background-color: var(--bg-secondary);
    }

    .hero-slide .hero-flex-container {
        display: flex;
        align-items: center;
        text-align: left;
        max-width: 1280px;
        width: 90%;
        margin: 0 auto;
        height: 100%;
    }

    .hero-slide-content {
        padding: 0 0 0 80px; /* Shift text to clear the left arrow navigation */
        max-width: 700px;
    }

    .hero-title {
        font-size: 3.8rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }

    .hero-desc {
        font-size: 1.25rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        max-width: 600px;
    }

    .hero-buttons .btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    /* Arrows positioning on big screen */
    .slider-arrow {
        width: 52px;
        height: 52px;
    }
    
    .prev-arrow {
        left: 40px;
    }
    
    .next-arrow {
        right: 40px;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: 400px;
    }
    .hero-slide .hero-flex-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .hero-slide-content {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        max-width: 100%;
        margin: 0;
        z-index: 3;
    }
    .slider-arrow {
        display: none !important;
    }
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    .hero-desc {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 350px;
    }
    .hero-title {
        font-size: 1.5rem !important;
    }
    .hero-desc {
        font-size: 0.85rem !important;
    }
}
