/* ========================================
   Hero Section & Slider Styles
   ======================================== */

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    position: relative;
    z-index: 1;
}
/*
body[data-lang="ar"] .hero-container {
    flex-direction: row-reverse;
}*/

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-color);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--text-light);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
/*
body[data-lang="ar"] .hero-buttons {
    flex-direction: row-reverse;
}*/

/* ----------------------------------------
   Hero Slider
   ---------------------------------------- */
.hero-slider {
    flex: 1;
    position: relative;
    max-width: 600px;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
    will-change: opacity;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
    position: relative;
}

.slider-item:not(.active) {
    position: absolute;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

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

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 30px;
    border-radius: 5px;
    background-color: white;
}

/* ----------------------------------------
   Stats Section
   ---------------------------------------- */
.stats-section {
    padding: 60px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.1' d='M10 30h80M15 30l5-10h15l5-8h20l5 8h15l5 10M20 30a5 5 0 1 1 0-0.1M80 30a5 5 0 1 1 0-0.1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 120px;
    z-index: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: white;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ----------------------------------------
   Responsive Hero
   ---------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-slider {
        max-width: 100%;
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }
    
    .slider-container,
    .slider-item {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
}
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-slider {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
        position: relative;
        overflow: hidden;
    }
    
    .slider-container {
        height: 300px !important;
        min-height: 300px !important;
        position: relative;
    }
    
    .slider-item {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
