/* ==========================================
   HERO SECTION - css/hero.css
   ========================================== */

.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--text-dark);
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 600px;
}

.hero-slide {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(
        to left,
        rgba(52, 73, 152, 0.95) 0%,
        rgba(38, 53, 112, 0.85) 50%,
        rgba(52, 73, 152, 0.7) 100%
    );
}

/* ===== Hero Content ===== */
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    max-width: 650px;
    margin-right: 0;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 35px;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== Hero Buttons ===== */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ===== Slider Controls ===== */
.hero-controls {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.hero-control {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-control:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ===== Slider Indicators ===== */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    width: 32px;
    border-radius: 6px;
    background-color: var(--white);
}

/* ===== Hero Stats ===== */
.hero-stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px 0;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-number::after {
    content: '+';
    margin-right: 2px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-slider {
        height: 550px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }

    .hero-content {
        padding-top: 80px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-control {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .hero-controls {
        padding: 0 15px;
    }

    .hero-indicators {
        bottom: 20px;
    }

    .hero-stats {
        padding: 30px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 450px;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}
