/* style.css */

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #111827;
    color: white;
    overflow-x: hidden;
}

/* --- إعدادات الصورة الدائرية --- */
/* هذا الكلاس يضمن أن الحاوية دائرية تماماً.
   يجب أن تكون القيم w و h متساوية لتعطي دائرة مثالية 
*/
.profile-circle-container {
    border-radius: 50%;
    overflow: hidden;
    border-width: 4px;
    border-color: rgba(99, 102, 241, 0.3);
    aspect-ratio: 1 / 1;
}

.border-blue-500\/30 {
    border-color: rgba(59, 130, 246, 0.3);
}
.profile-circle-container img {
    /* هذه الإضافة لتقليل تشبع الألوان */
    filter: saturate(65%) grayscale(10%); /* تقليل التشبع إلى 30% وإضافة 10% تدرج رمادي */
    transition: filter 0.5s ease-in-out; /* إضافة انتقال سلس عند التحويم */
}

/* يمكنك إضافة تأثير عند التحويم إذا أردت أن تعود الألوان الأصلية */
.profile-circle-container img:hover {
    filter: saturate(100%) grayscale(0%); /* استعادة الألوان الأصلية عند التحويم */
}

/* --- تنسيقات الـ Nav --- */
.nav-link {
    color: white !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: #a5b4fc !important;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes pulseBackdrop {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

.animate-fade { animation: fadeIn 0.8s ease-out; }
.animate-slide { animation: slideUp 0.8s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.8s ease-out forwards; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-pulse-backdrop { animation: pulseBackdrop 3s infinite alternate; }

/* --- Components --- */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-5px); }

.btn-gradient {
    background: linear-gradient(to right, #6366f1, #ec4899);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid #6366f1;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: #6366f1;
    color: white;
    transform: scale(1.05);
}

.project-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.project-link:hover { color: #a5b4fc !important; }

/* --- Utility Classes (محاكاة Tailwind) --- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.fixed { position: fixed; }
.relative { position: relative; }
.top-0 { top: 0; }
.w-full { width: 100%; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-4 { padding-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-4 { margin-left: 1rem; }
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-800 { background-color: rgba(31, 41, 55, 0.5); }
.bg-gray-700 { background-color: #374151; }
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-400 { color: #818cf8; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-pink-300 { color: #f9a8d4; }
.text-pink-400 { color: #f472b6; }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: #c084fc; }
.border-indigo-500 { border-color: rgba(99, 102, 241, 0.2); }
.border-emerald-500 { border-color: rgba(16, 185, 129, 0.3); }
.border-blue-500 { border-color: rgba(59, 130, 246, 0.2); }
.border-amber-500 { border-color: rgba(245, 158, 11, 0.2); }
.border-pink-500 { border-color: rgba(236, 72, 153, 0.2); }
.border-purple-500 { border-color: rgba(168, 85, 247, 0.2); }
.bg-indigo-500 { background-color: rgba(99, 102, 241, 0.1); }
.bg-emerald-500 { background-color: rgba(16, 185, 129, 0.1); }
.bg-blue-500 { background-color: rgba(59, 130, 246, 0.1); }
.bg-amber-500 { background-color: rgba(245, 158, 11, 0.1); }
.bg-pink-500 { background-color: rgba(236, 72, 153, 0.1); }
.bg-purple-500 { background-color: rgba(168, 85, 247, 0.1); }
.bg-gradient { background: linear-gradient(to right, #6366f1, #ec4899); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.backdrop-blur { backdrop-filter: blur(12px); }
.transition-all { transition: all 0.3s ease; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-indigo-400:hover { color: #818cf8; }
.hover\:text-indigo-300:hover { color: #a5b4fc; }
.hover\:text-emerald-300:hover { color: #6ee7b7; }
.hover\:text-blue-300:hover { color: #93c5fd; }
.hover\:text-amber-300:hover { color: #fcd34d; }
.hover\:text-pink-300:hover { color: #f9a8d4; }
.hover\:text-purple-300:hover { color: #d8b4fe; }
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.grayscale { filter: grayscale(100%); }
.hover\:grayscale-0:hover { filter: grayscale(0%); }
.duration-300 { transition-duration: 300ms; }
.overflow-hidden { overflow: hidden; }
.-inset-4 { inset: -1rem; }
.absolute { position: absolute; }
.inset-\[-15px\] { inset: -15px; }
.opacity-60 { opacity: 0.6; }
.blur-3xl { filter: blur(64px); }
.inline-flex { display: inline-flex; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
/* أحجام الصور */
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }
.object-cover { object-fit: cover; }
.flex-wrap { flex-wrap: wrap; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.min-h-screen { min-height: 100vh; }
.leading-relaxed { line-height: 1.625; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.2); }
.flex-col { flex-direction: column; }
.shrink-0 { flex-shrink: 0; }
.max-w-3xl { max-width: 48rem; margin: 0 auto; }
.max-w-4xl { max-width: 56rem; margin: 0 auto; }

/* Responsive Media Queries */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    /* تكبير الصورة في الشاشات المتوسطة */
    .md\:w-80 { width: 20rem; } 
    .md\:h-80 { height: 20rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:text-left { text-align: left; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:items-center { align-items: center; }
    .md\:mt-0 { margin-top: 0; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
}