/* أنماط عامة */
body {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.gradient-mesh {
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(251, 146, 60, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 58, 95, 0.03) 0%, transparent 70%);
}

.molecular-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e3a5f' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Ccircle cx='50' cy='50' r='1.5'/%3E%3Cpath d='M30 30L10 10M30 30L50 50' stroke='%231e3a5f' stroke-opacity='0.02' stroke-width='0.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* كروت تفاعلية */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(30, 58, 95, 0.15);
}

/* كروت الأعمدة */
.pillar-card {
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

/* روابط التنقل */
.nav-link {
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #fb923c);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* الرسوم المتحركة */
.mitochondria-icon {
    animation: pulse-subtle 4s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.6s ease forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيقات إضافية */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* تحسينات للجوّال */
@media (max-width: 768px) {
    .pillar-card {
        padding: 1.5rem;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
}

/* تحسينات للأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 1024px) {
    .pillar-card {
        padding: 1.75rem;
    }
}

/* تحسينات إضافية للتصفح */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* تحسينات للوصول */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* تحسينات للأشكال */
input, button, textarea {
    font-family: 'Inter', sans-serif;
}

/* تحسينات للطباعة */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}