/* HERO SLIDER STYLES */
#hero-slider {
    position: relative;
    width: 100%;
    /* Height logic: Reduced to 60vh/550px to show content below */
    height: 60vh;
    max-height: 550px;
    min-height: 400px;
    overflow: hidden;
    background: #0f172a;
    /* Fallback */
    color: white;
}

/* Slides Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
    /* Updated for alignment flexibility */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Default to left alignment for Desktop */
    z-index: 1;
}

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

/* Background Media (Video/Image) */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Overlay for Readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient Logic: Darker Left (Text) -> Transparent Right (Art) */
    background: linear-gradient(to right,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(15, 23, 42, 0.7) 40%,
            rgba(15, 23, 42, 0.1) 80%,
            rgba(15, 23, 42, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Content Positioning - LEFT ALIGNED DESKTOP */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    /* Explicit Left Align */
    align-items: flex-start;
    max-width: 50%;
    /* Only use left half */
    margin-left: 5%;
    /* Spacing */
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography Overrides (MINIMALIST) */
.hero-title {
    font-size: 2.75rem;
    /* Reduced from 3.5rem */
    font-weight: 700;
    /* Slightly lighter */
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: none;
    /* REMOVED 3D EFFECT */
}

.highlight-text {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    /* Reduced for minimalism */
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 100%;
    /* Reset max-width restriction since container handles it */
    margin-left: 0;
    /* Reset margin */
    margin-right: 0;
    font-weight: 400;
}

/* Features List (Slide 1 - Minimalist) */
.hero-features {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    /* Left align */
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    /* Reduced Size */
    color: #e2e8f0;
    background: transparent;
    /* Removed bg for minimalism */
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Thinner, cleaner border */
    backdrop-filter: blur(2px);
}

.hero-features i {
    color: #60A5FA;
}

/* Button (Slide 2) */
.btn-gamified {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-gamified:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

.btn-gamified i {
    font-size: 1.2rem;
}

/* Navigation Arrows */
.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    /* Smooth fade */
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Hidden by default */
    visibility: hidden;
}

/* Show arrows ONLY on hover */
#hero-slider:hover .slider-nav button {
    opacity: 1;
    visibility: visible;
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 80px;
    /* Moved UP to clear search bar */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 10px;
    /* Smaller dots */
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Helper Classes for Responsive Visibility */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* Responsive Logic (Mobile Art Direction) */
/* Responsive Logic (Mobile Art Direction) */
@media (max-width: 768px) {
    #hero-slider {
        /* Strategy: Shorter aspect ratio to allow peeking of content below */
        height: auto;
        min-height: auto;
        max-height: none;
        aspect-ratio: 1/1;
        /* Was 4/5 (Tall). Now Square. */
    }

    .slide {
        /* CENTER content on mobile for better balance */
        justify-content: center;
        align-items: center;
        /* Changed from flex-end to center */
        height: 100%;
    }

    .slide-bg {
        object-fit: cover;
    }

    .slide-overlay {
        /* PROMO: Darker overlay for better text contrast on busy images */
        background: linear-gradient(to top,
                rgba(15, 23, 42, 0.95) 0%,
                rgba(15, 23, 42, 0.7) 60%,
                rgba(15, 23, 42, 0.4) 100%);
    }

    .hero-content {
        max-width: 100%;
        margin-left: 0;
        /* Reduced bottom padding slightly to match new height */
        padding: 0 20px 60px 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
        height: 100%;
        margin-top: 0;
    }

    .hero-title {
        font-size: 1.75rem;
        /* Slight reduction for "minimalism" */
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        /* Slight reduction */
        margin-bottom: 1.5rem;
    }

    .hero-features {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0;
    }

    .hero-features li {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Hide arrows on mobile */
    .slider-nav button {
        display: none;
    }

    /* Dots adjusted for new height */
    .slider-dots {
        bottom: 95px;
        /* ✅ MOVED UP further to fully clear Search Bar */
    }
}