/* =========================
   Hero Slider Base
========================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background-color: var(--color-white);
}

/* Each slide */
.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Background image */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Dark overlay for readability */
.hero-slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.2)); */
    z-index: 0.5;
}

.hero-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
}

/* =========================
   Hero Text Content
========================= */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: #fff;
    background-color: #00000080;
    border-radius: 8px;
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease forwards;
}

.hero-content p {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #eee;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    animation: slideInRight 1.2s ease forwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeIn 2s ease;
}

.hero-buttons a {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.hero-buttons .btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================
   Slider Controls
========================= */
.hero-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-controls span {
    cursor: pointer;
    font-size: 2rem;
    color: var(--color-black);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 50%;
    transition: 0.3s;
}

.hero-controls span:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-dots span {
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.hero-dots span.active {
    background: var(--color-primary);
}

/* =========================
   Animations
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
    .hero-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .hero-slide {
        position: relative !important;
        flex: 0 0 100%;
        opacity: 1 !important;
        scroll-snap-align: center;
        transition: none;
    }

    .hero-controls {
        display: none;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.hero-slider,
.features-section {
    margin: 0 0 10px 0;
}
