/* تحسينات قسم Hero في الصفحة الرئيسية
   إضافة تأثيرات متقدمة وتحسينات بصرية للقسم الرئيسي
*/

/* قسم الهيرو المحسن */
.hero-section-premium {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 50px 0 0 0; /* زيادة كبيرة للتباعد في الأعلى لضمان عدم التداخل مع الهيدر */
    background: linear-gradient(135deg, #081f43 0%, #0a3a78 100%);
    margin-top: 15px; /* زيادة الهامش العلوي للمزيد من الفصل بين الهيدر والمحتوى */
}

/* خلفية الهيرو المتحركة */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* نمط الخلفية */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-pattern.png');
    background-size: cover;
    opacity: 0.07;
    z-index: 1;
}

/* حاوية المحتوى */
.hero-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0; /* تقليل التباعد الداخلي لأننا أضفنا تباعد في الأعلى للقسم كله */
    margin-top: 15px; /* إضافة هامش علوي للمحتوى أيضًا */
}

/* تنسيق المحتوى */
.hero-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* نص الهيرو */
.hero-text {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-title span {
    color: #4db0ff;
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(77, 176, 255, 0.3);
    z-index: -1;
}

.hero-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.7s;
}

/* أزرار الهيرو */
.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInRight 1s ease forwards;
    animation-delay: 0.9s;
}

.hero-btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background-color: #4db0ff;
    color: #fff;
    box-shadow: 0 10px 25px rgba(77, 176, 255, 0.4);
}

.hero-btn-primary:hover {
    background-color: #fff;
    color: #0a3a78;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-5px);
}

.hero-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(5px);
}

/* صورة الهيرو */
.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: translateY(-10px);
}

/* التأثيرات المتحركة */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.4;
    animation: float 15s infinite linear;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(77, 176, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(77, 176, 255, 0.2);
}

.floating-icon i {
    font-size: 20px;
}

.floating-icon.icon-1 {
    top: 15%;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 25%;
    right: 15%;
    animation-duration: 20s;
    animation-delay: 2s;
    background: rgba(255, 255, 255, 0.1);
}

.floating-icon.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-duration: 22s;
    animation-delay: 5s;
    background: rgba(255, 77, 77, 0.1);
}

.floating-icon.icon-4 {
    bottom: 30%;
    right: 20%;
    animation-duration: 18s;
    animation-delay: 7s;
    background: rgba(255, 193, 7, 0.1);
}

.floating-icon.icon-5 {
    top: 40%;
    left: 30%;
    animation-duration: 24s;
    animation-delay: 3s;
    background: rgba(40, 167, 69, 0.1);
}

/* الشريط المتحرك لإحصائيات الشركة */
.hero-stats {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-stats-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-stat-item {
    text-align: center;
    padding: 0 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    gap: 8px;
}

.hero-stat-number i {
    color: #4db0ff;
    font-size: 22px;
}

.hero-stat-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* الأشكال المتحركة */
.hero-shape {
    position: absolute;
    z-index: 1;
}

.hero-shape-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #4db0ff, #0a3a78);
    border-radius: 20px;
    transform: rotate(45deg) scale(0.8);
    opacity: 0.1;
    animation: rotate 30s infinite linear;
}

.hero-shape-2 {
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    border: 5px solid rgba(77, 176, 255, 0.2);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 5s infinite ease-in-out;
}

.hero-shape-3 {
    top: 40%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.3;
    animation: moveUpDown 8s infinite ease-in-out;
}

/* التأثيرات الحركية */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(0, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg) scale(0.8);
    }
    to {
        transform: rotate(360deg) scale(0.8);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes moveUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(30px);
    }
}

/* تحسينات التوافق مع الأجهزة المختلفة */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-stats-container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero-content-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        margin: 0 auto;
        order: 1;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-shape-1 {
        top: 5%;
        left: 5%;
        width: 80px;
        height: 80px;
    }
    
    .hero-shape-2 {
        bottom: 15%;
        right: 5%;
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .hero-section-premium {
        min-height: auto;
        padding: 100px 0 0;
    }
    
    .hero-content-container {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        position: relative;
        margin-top: 60px;
        transform: none;
        animation: fadeInUp 0.8s ease forwards;
    }
    
    .hero-stats-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-stat-item {
        flex-basis: 40%;
        margin-bottom: 15px;
    }
    
    .hero-stat-number {
        font-size: 24px;
    }
    
    .hero-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-content-container {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stat-item {
        flex-basis: 100%;
    }
    
    .floating-icon {
        display: none;
    }
}

/* تم دمج التنسيقات للشاشات الصغيرة في الأقسام العلوية */
.hero-section-premium {
        min-height: auto;
    }
    
    .hero-stats-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-stat-item {
        width: 45%;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}
