/* تحسينات إضافية للقوالب الجديدة */

/* إصلاح تداخل المحتوى مع شريط القائمة */
.hero-gradient {
    padding-top: 100px !important; /* تقليل المسافة العلوية */
    min-height: calc(100vh - 80px) !important;
}

/* تحسين شريط القائمة العلوية */
.top-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    top: 4px !important; /* المحافظة على موضع الشريط تحت شريط التقدم */
}

/* تحسين روابط القائمة */
.nav-link {
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: rgba(45, 90, 135, 0.1);
    transform: translateY(-1px);
    color: var(--primary-color) !important;
}

/* تحسين الأزرار */
.btn-primary, .btn-accent {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn-primary:hover, .btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* تحسين النصوص */
.text-gradient-white {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* تحسين العناصر التفاعلية */
.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* تحسين التصميم للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-gradient {
        padding-top: 90px !important; /* تقليل المسافة للشاشات الصغيرة */
        text-align: center;
    }
    
    .top-nav {
        padding: 12px 16px !important;
        top: 4px !important; /* الحفاظ على الموضع */
    }
    
    .btn-primary, .btn-accent {
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }

    main {
        margin-top: 0 !important; /* إزالة الهامش الإضافي للشاشات الصغيرة */
    }
}

/* تحسين الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* تحسين العناصر التزيينية */
.hero-gradient .absolute {
    animation: float 6s ease-in-out infinite;
}

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

/* تحسين ألوان المتغيرات */
:root {
    --primary-color: #2D5A87;
    --secondary-color: #5C9BD5;
    --accent-color: #F4A261;
    --success-color: #2A9D8F;
    --background-color: #F8F9FA;
    --text-color: #2C3E50;
    --light-gray: #E9ECEF;
    --border-color: #DEE2E6;
}

/* تحسين الخطوط */
* {
    font-family: 'Cairo', 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
}

/* إصلاح مشكلة الارتفاع للأقسام */
section {
    position: relative;
    z-index: 1;
}

/* تحسين الانتقالات */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* تحسين إمكانية الوصول */
.btn-primary:focus,
.btn-accent:focus,
.nav-link:focus {
    outline: 3px solid rgba(45, 90, 135, 0.3);
    outline-offset: 2px;
}

/* تحسين الظلال */
.modern-card:hover,
.btn-primary:hover,
.btn-accent:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
