.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 100px 0;
    overflow: hidden;
    margin-bottom: 1px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
    font-family: var(--body-font-family);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.hero-title {
    font-family: var(--heading-font-family);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    min-height: 4.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    min-height: 3rem;
}

.hero-buttons {
    margin-bottom: 2rem; /* إضافة مسافة أسفل الأزرار */
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

.hero-buttons .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
}

.hero-buttons .btn-light:hover {
    background: #fff;
    transform: translateY(-3px);
}

.hero-buttons .btn-outline-light:hover {
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 992px) {
    .hero-image img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        max-width: 250px;
    }
}

.stats-cards {
    margin-top: -80px; /* تعديل المسافة العلوية للإحصائيات */
    position: relative;
    z-index: 2;
    padding: 0 15px; /* إضافة مسافة جانبية */
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.floating-shapes div {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: -75px;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 50px;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-3 {
    width: 70px;
    height: 70px;
    top: 50%;
    right: 5%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
        min-height: 3.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        min-height: 2.5rem;
    }

    .hero-content {
        min-height: 350px;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .stats-cards {
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px 0;
        min-height: 500px;
    }

    .hero-title {
        min-height: 3.5rem;
    }

    .hero-description {
        min-height: 2.5rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}
