/* ============================================================
   ملف التنسيقات الرئيسي (CSS) - موقع الزبير إبراهيم
   النمط: تأثير الزجاج (Glassmorphism) | الألوان: أزرق تقني وكحلي
   ============================================================ */

/* ── 1. استيراد الخطوط ── */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rakkas&display=swap');

@font-face { font-family: 'Casa'; src: url('../fonts/Casa.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Casa'; src: url('../fonts/CasaB.ttf') format('truetype'); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: 'Casa'; src: url('../fonts/CasaI.ttf') format('truetype'); font-weight: normal; font-style: italic; font-display: swap; }

/* ── 2. المتغيرات والألوان ── */
:root {
  --bg-main: #0B1121;
  --bg-glass: rgba(30, 41, 59, 0.4);
  --bg-nav: rgba(11, 17, 33, 0.95);
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-glass: rgba(59, 130, 246, 0.15);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-primary: rgba(59, 130, 246, 0.3);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --primary-glow: rgba(59, 130, 246, 0.25);
  --shadow-hover: 0 16px 40px 0 rgba(59, 130, 246, 0.18);
}

[data-theme="light"] {
  --bg-main: #F0F4F8;
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-nav: rgba(255, 255, 255, 0.95);
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glass: rgba(37, 99, 235, 0.1);
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-glass: rgba(255, 255, 255, 1);
  --border-primary: rgba(37, 99, 235, 0.3);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --primary-glow: rgba(37, 99, 235, 0.15);
  --shadow-hover: 0 16px 40px 0 rgba(37, 99, 235, 0.14);
}

/* ── 3. الإعدادات الأساسية ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100vw; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  font-family: 'Casa', system-ui, -apple-system, sans-serif !important;
  font-size: 1.15rem; 
  background-color: var(--bg-main); color: var(--text-main);
  line-height: 1.7; direction: rtl; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
  background-image: radial-gradient(circle at 15% 50%, var(--primary-glass), transparent 25%), radial-gradient(circle at 85% 30%, var(--primary-glass), transparent 25%);
  word-wrap: break-word;
}

a, .btn, .logo, .nav-links a { text-decoration: none !important; color: inherit; outline: none; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ── 4. شريط التنقل (Navbar) ── */
nav { position: fixed; top: 0; left: 0; right: 0; background: var(--bg-nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-glass); height: 80px; display: flex; align-items: center; z-index: 1000; transition: background-color 0.4s ease; }
nav .container { display: flex; justify-content: space-between; align-items: center; flex-direction: row-reverse; }
.logo { font-family: 'Caveat', cursive !important; font-size: 2.8rem; font-weight: 700; color: var(--primary) !important; direction: ltr; }
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-links a { font-weight: bold; font-size: 1.1rem; color: var(--text-muted) !important; transition: all 0.3s ease; padding: 8px 18px; border-radius: 25px; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main) !important; background-color: var(--primary-glass); }
.nav-controls { display: flex; align-items: center; gap: 1rem; flex-direction: row-reverse; }
.theme-toggle { background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-glass); color: var(--text-main); width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all 0.3s ease; box-shadow: var(--shadow-glass); }
.theme-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: rotate(30deg); }
.hamburger { display: none; background: none; border: none; color: var(--text-main); font-size: 1.8rem; cursor: pointer; }

/* ── 5. الواجهة الرئيسية (Hero) والأزرار ── */
#hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 60px; }
.hero-wrapper { display: flex; align-items: center; justify-content: center; gap: 3rem; width: 100%; }
.hero-text { flex: 1; max-width: 650px; }
.hero-text h1 { font-family: 'Rakkas', serif !important; font-weight: 400; line-height: 1.2; color: var(--text-main); font-size: clamp(3rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
.page-hero h1 { font-family: 'Casa', system-ui, sans-serif !important; font-weight: bold !important; line-height: 1.3; font-size: clamp(2.5rem, 5vw, 4rem); color: var(--primary); margin-bottom: 1rem; }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }
.page-hero { padding-top: 140px; padding-bottom: 40px; text-align: center; }
.page-hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn { padding: 12px 30px; border-radius: 50px; font-size: 1.1rem; font-weight: bold; display: inline-flex; align-items: center; gap: 10px; border: none !important; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 10px 20px var(--primary-glass); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 15px 25px var(--primary-glass); }
.btn-outline { background: var(--bg-glass); color: var(--text-main) !important; border: 1px solid var(--border-glass) !important; box-shadow: var(--shadow-glass); }
.btn-outline:hover { border-color: var(--primary) !important; color: var(--primary) !important; transform: translateY(-3px); }
.hero-image { display: flex; justify-content: center; min-height: 350px; }
.hero-image img { width: 350px !important; height: 350px !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; border-radius: 50% !important; border: 4px solid var(--border-glass); box-shadow: var(--shadow-glass), 0 0 40px var(--primary-glass); transition: all 0.4s ease; }
.hero-image img:hover { transform: scale(1.02); border-color: var(--primary); }
.scarcity-text { color: var(--primary) !important; font-weight: bold; margin-bottom: 2rem !important; }

/* ── 6. الشبكات الزجاجية للخدمات والخطوات (Grid Cards) ── */
section { padding: 4rem 0; position: relative; }
section:not(:last-of-type)::after { content: ''; position: absolute; bottom: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-primary), transparent); opacity: 0.6; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; color: var(--text-main); margin-bottom: 0.5rem; font-weight: bold; }
.section-title p { font-size: 1.1rem; color: var(--text-muted); }
.category-title { font-size: 1.5rem; color: var(--text-main); margin-top: 3rem; margin-bottom: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--primary-glass); display: inline-block; font-weight: bold; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; }
.step-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: 24px; padding: 2.5rem 2rem; text-align: center; position: relative; box-shadow: var(--shadow-glass); transition: all 0.3s ease; }
.step-card:hover { transform: translateY(-6px); border-color: var(--border-primary); box-shadow: var(--shadow-hover); }
.step-number { width: 50px; height: 50px; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--primary-hover)); box-shadow: 0 6px 20px var(--primary-glow); }
.step-card h3 { color: var(--text-main); margin-top: 1rem; margin-bottom: 0.5rem; font-size: 1.3rem;}
.step-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 0; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; align-items: stretch; }
.service-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: 28px; padding: 2.5rem 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-glass); transition: all 0.3s ease; height: 100%; position: relative; }
.service-card:hover { transform: translateY(-8px); border-color: var(--border-primary); }
.service-icon { width: 70px; height: 70px; background: var(--primary-glass); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; flex-shrink: 0; border: 1px solid var(--border-primary); transition: all 0.3s ease; }
.service-card:hover .service-icon { background: var(--primary); color: #fff; transform: scale(1.08); }
.service-content { display: flex; flex-direction: column; flex-grow: 1; }
.service-content h3 { font-size: 1.3rem; color: var(--text-main); margin-bottom: 0.8rem; font-weight: bold; }
.service-content p { font-size: 1rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 10px; }
.why-me { display: block; margin-top: auto; padding-top: 1rem; opacity: 0.9; color: var(--primary); border-top: 1px solid var(--border-primary); font-size: 0.95rem; font-weight: bold; }

/* ── 7. بطاقات الدفع والشروط ── */
.payments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.payment-card { background: var(--bg-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border-glass); border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; box-shadow: var(--shadow-glass); transition: all 0.3s ease; }
.payment-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.pay-logo-wrapper { height: 60px; width: 100%; display: flex; justify-content: center; align-items: center; }
.pay-logo { max-height: 100%; max-width: 100%; object-fit: contain; }
.payment-card span { font-weight: bold; font-size: 1.1rem; color: var(--text-main); text-align: center; }
.cash-icon { font-size: 3rem; color: #10B981; }

.commitments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.commitment-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: 24px; padding: 2.5rem; box-shadow: var(--shadow-glass); transition: all 0.3s ease; }
.commitment-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.commitment-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 1rem; }
.commitment-header i { font-size: 1.8rem; color: var(--primary); }
.commitment-header h3 { font-size: 1.4rem; color: var(--text-main); font-weight: bold; }
.commitment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.commitment-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; color: var(--text-muted); line-height: 1.6; }
.commitment-list li i { color: var(--primary); margin-top: 6px; font-size: 0.9rem; }

/* ── 8. نموذج التواصل ── */
.contact-box { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-glass); border-radius: 32px; padding: 4rem 2rem; text-align: center; box-shadow: var(--shadow-glass); max-width: 900px; margin: 0 auto; }
.contact-form { max-width: 600px; margin: 0 auto 2rem auto; display: flex; flex-direction: column; gap: 1rem; text-align: right; }
.form-group { display: flex; gap: 1rem; }
.contact-form label { font-size: 0.95rem; color: var(--text-muted); font-weight: bold; width: 100%; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; background: var(--bg-main); border: 1px solid var(--border-glass); padding: 12px 20px; border-radius: 12px; color: var(--text-main); font-family: inherit; font-size: 1rem; transition: all 0.3s ease; margin-top: 5px; appearance: auto; }
.contact-form select option { background: var(--bg-main); color: var(--text-main); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glass); }
.form-submit { width: 100%; justify-content: center; border-radius: 50px !important; padding: 15px; font-size: 1.15rem; margin-top: 10px; letter-spacing: 0.5px; }

.divider { display: flex; align-items: center; text-align: center; color: var(--text-muted); margin: 2rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-glass); }
.divider span { padding: 0 10px; font-size: 0.95rem; }

.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.contact-item { background: var(--bg-main); border: 1px solid var(--border-glass) !important; padding: 1rem 2rem; border-radius: 50px; font-weight: bold; font-size: 1.1rem; color: var(--text-main) !important; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; }
.contact-item:hover { background: var(--primary); color: #fff !important; border-color: var(--primary) !important; transform: translateY(-3px); }
.contact-links div.contact-item { padding: 0.4rem 1rem; font-size: 0.9rem; width: fit-content; height: fit-content; align-self: center; opacity: 0.85; }

/* ── 9. صفحة من أنا (About Page) ── */
.about-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: 28px; padding: 3rem; box-shadow: var(--shadow-glass); margin-bottom: 2rem; }
.about-card-wrapper { display: flex; align-items: center; gap: 3rem; }
.about-text-content { flex: 1; }
.about-image-content { flex-shrink: 0; display: flex; justify-content: center; }
.about-profile-img { width: 280px !important; height: 280px !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; border-radius: 50% !important; border: 4px solid var(--border-glass); box-shadow: var(--shadow-glass), 0 0 30px var(--primary-glass); }
.personal-voice { font-size: 1.2rem; color: var(--text-main); font-style: italic; margin: 1.5rem 0; line-height: 1.8; border-right: 4px solid var(--primary); padding-right: 15px; background: var(--primary-glass); padding: 15px 20px 15px 15px; border-radius: 12px; }
.page-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 3rem; }
.page-nav a { background: var(--bg-glass); border: 1px solid var(--border-glass) !important; padding: 8px 20px; border-radius: 50px; font-size: 0.95rem; font-weight: bold; color: var(--text-main) !important; transition: all 0.3s ease; }
.page-nav a:hover { background: var(--primary); color: #fff !important; border-color: var(--primary) !important; transform: translateY(-2px); }

/* صندوق بحث التخرج */
.research-highlight { background: linear-gradient(135deg, var(--bg-glass) 0%, var(--primary-glass) 100%); backdrop-filter: blur(20px); border: 1px solid var(--border-primary); border-right: 4px solid var(--primary); border-radius: 24px; padding: 3rem 4rem 3rem 2.5rem; margin-bottom: 4rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.research-highlight::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: var(--primary); filter: blur(100px); opacity: 0.2; z-index: 0; }
.research-highlight > * { position: relative; z-index: 1; }
.research-highlight i.fa-quote-right { position: absolute; top: 20px; right: 20px; font-size: 6rem; color: var(--primary); opacity: 0.1; transform: rotate(10deg); }
.research-highlight h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 15px; font-weight: bold; }
.research-highlight p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.research-highlight ul { color: var(--text-muted); padding-right: 30px; line-height: 1.8; font-size: 1.05rem; margin-top: 15px; }
.research-highlight ul li { margin-bottom: 10px; position: relative; }
.research-highlight ul li::marker { color: var(--primary); font-weight: bold; }
.research-conclusion { margin-top: 25px; padding-top: 20px; border-top: 1px dashed var(--border-primary); font-weight: bold; color: var(--primary); font-size: 1.1rem; }

.subsection-title { font-size: 1.8rem; color: var(--text-main); margin-bottom: 2rem; text-align: center; font-weight: bold; }

/* ── 10. التايم لاين المضيء التفاعلي (Modern Timeline) بدقة RTL ── */
.resume-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.resume-header { display: flex; align-items: center; gap: 15px; margin-bottom: 2.5rem; color: var(--primary); }
.resume-header h3 { font-size: 1.6rem; color: var(--text-main); font-weight: bold; }
.resume-header i { font-size: 2.2rem; filter: drop-shadow(0 4px 6px var(--primary-glow)); }

/* حاوية التايم لاين: الخط العمودي يقع على اليمين */
.modern-timeline {
  border-right: 3px solid var(--border-primary);
  padding-right: 24px;
  margin-right: 12px;
}
.modern-timeline__item {
  position: relative;
  margin-bottom: 2.5rem;
}
/* النقطة المضيئة: يتم حساب موقعها بدقة فوق الخط العمودي */
.modern-timeline__node {
  position: absolute;
  top: 32px;
  right: -33.5px; /* (24px padding) + (1.5px نصف الخط) + (8px نصف النقطة) = 33.5px */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  z-index: 2;
  transition: all 0.3s ease;
}
/* بطاقة التايم لاين الزجاجية */
.modern-timeline__content {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}
/* تأثير التمرير (Hover) */
.modern-timeline__item:hover .modern-timeline__node {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary);
  transform: scale(1.3);
}
.modern-timeline__item:hover .modern-timeline__content {
  transform: translateX(-6px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glass);
}
/* نصوص التايم لاين */
.modern-timeline__meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.modern-timeline__date { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: bold; color: var(--primary); background: var(--primary-glass); padding: 4px 14px; border-radius: 50px; border: 1px solid var(--border-primary); }
.modern-timeline__title { font-size: 1.25rem; color: var(--text-main); margin-bottom: 8px; font-weight: bold; line-height: 1.4; }
.modern-timeline__subtitle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--text-muted); margin-bottom: 15px; font-weight: bold; }
.modern-timeline__subtitle i { color: var(--primary); }
.modern-timeline__desc { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.timeline-note { display: inline-block; font-size: 0.85rem; color: var(--primary); background: var(--primary-glass); padding: 6px 12px; border-radius: 8px; margin-top: 15px; border: 1px dashed var(--border-primary); }

/* ── 11. كروت الشهادات واللغات والمهارات ── */
.awards-container { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.award-card { background: var(--bg-glass); border: 1px solid var(--border-glass); padding: 14px 18px; border-radius: 16px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-glass); transition: all 0.3s ease; backdrop-filter: blur(10px); }
.award-card:hover { transform: translateX(-5px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.award-icon { background: var(--primary-glass); color: var(--primary); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; border: 1px solid var(--border-primary); }
.award-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }
.award-text strong { color: var(--text-main); display: block; font-size: 1.05rem; margin-bottom: 2px; }

.lang-container { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.lang-tag { background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-main); padding: 8px 18px; border-radius: 50px; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-glass); }
.lang-tag strong { color: var(--primary); }

.competency-tags { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.comp-tag { background: var(--bg-main); border: 1px solid var(--border-glass); color: var(--text-muted); padding: 10px 14px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; transition: all 0.3s ease; display: block; }
.comp-tag:hover { border-color: var(--primary); color: var(--text-main); transform: translateX(-5px); }
.hidden-tag { display: none; }
.competency-tags.expanded .hidden-tag { display: block; animation: fadeIn 0.4s ease; }
.expand-tags-btn { background: transparent; border: none; color: var(--primary); font-family: inherit; font-size: 0.95rem; font-weight: bold; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 5px 10px; border-radius: 8px; transition: all 0.3s ease; }
.expand-tags-btn:hover { background: var(--primary-glass); }
.expand-tags-btn.active i { transform: rotate(180deg); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.about-cta { text-align: center; padding: 4rem 2rem; background: var(--bg-glass); border-radius: 32px; border: 1px solid var(--border-glass); margin: 2rem auto; max-width: 800px; }

/* ── 12. الشارات النفسية (UX Psychology Badges) ── */
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.authority-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-glass); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-weight: bold; font-size: 0.95rem; margin-bottom: 1.5rem; border: 1px solid var(--border-primary); }
.availability-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); padding: 6px 16px; border-radius: 50px; font-weight: bold; font-size: 0.95rem; margin-bottom: 1.5rem; }
.pulse-dot { display: block; width: 10px; height: 10px; background: #10B981; border-radius: 50%; animation: pulse-green 2s infinite; }
.service-badge { position: absolute; top: -14px; right: 24px; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; box-shadow: 0 4px 12px var(--primary-glow); z-index: 2; }
.scroll-top-btn { position: fixed; bottom: 30px; left: 30px; width: 45px; height: 45px; border-radius: 50%; background: var(--bg-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-glass); color: var(--primary); font-size: 1.2rem; cursor: pointer; display: none; z-index: 999; transition: all 0.3s ease; box-shadow: var(--shadow-glass); }
.scroll-top-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 25px var(--primary-glow); }

/* ── 13. الفوتر وعداد الزيارات (GoatCounter) ── */
.glass-counter-wrapper { display: flex; justify-content: center; margin-bottom: 1.5rem; opacity: 0.85; }
.glass-counter { display: inline-flex; align-items: center; background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-glass); padding: 6px 16px; border-radius: 50px; box-shadow: var(--shadow-glass); transition: all 0.4s ease; }
.glass-counter:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 5px 20px var(--primary-glass); opacity: 1; }
.counter-data { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.counter-label, .counter-number { font-size: 0.9rem; font-weight: bold; }
.counter-label { color: var(--text-muted); }
.counter-number { color: var(--text-main); font-family: system-ui, -apple-system, sans-serif; letter-spacing: 0.5px; direction: ltr; }
.footer-divider { display: block; width: 60px; height: 2px; background: var(--primary); margin: 0 auto 1.5rem auto; border-radius: 2px; opacity: 0.5; }
footer { text-align: center; padding: 2rem 0; color: var(--text-muted); position: relative; }
.copyright-text { font-size: 0.93rem; margin: 0; }

/* ── 14. الحركات (Animations) والتجاوب (Responsive) ── */
.reveal { transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.reveal.hidden { opacity: 0; transform: translateY(30px); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
  .hero-wrapper { flex-direction: column-reverse; text-align: center; }
  .btn-group { justify-content: center; }
  .hero-image img { width: 300px !important; height: 300px !important; }
}

@media (max-width: 768px) {
  body { background-attachment: scroll; background-image: radial-gradient(circle at 50% 20%, var(--primary-glass), transparent 40%); }
  .hamburger { display: block; }
  .nav-links { position: fixed; top: 80px; left: 0; right: 0; background: var(--bg-nav); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-glass); flex-direction: column; padding: 2rem; gap: 1.5rem; align-items: stretch; clip-path: circle(0% at top right); transition: clip-path 0.4s ease-in-out; }
  .nav-links.active { clip-path: circle(150% at top right); }
  .nav-links a { font-size: 1.2rem; display: block; text-align: center; }
  
  .form-group { flex-direction: column; }
  .contact-item { width: 100%; justify-content: center; }
  .commitments-grid { grid-template-columns: 1fr; }
  .about-card { padding: 1.5rem; }
  .about-card-wrapper { flex-direction: column-reverse; text-align: center; gap: 2rem;}
  .personal-voice { text-align: right; font-size: 1.1rem; }
  .about-profile-img { width: 220px !important; height: 220px !important; margin: 0 auto; }
  .research-highlight { padding: 2rem 1.5rem 2rem 1.5rem; margin: 2rem 0; }
  .resume-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 11px 22px; font-size: 1.05rem; }
  .section-title h2 { font-size: 1.8rem; }
  .contact-box { padding: 2rem 1rem; }
}

/* ── 15. فلاتر الخدمات، الأسعار، والأسئلة الشائعة (التحديث الجديد) ── */

/* فلاتر الخدمات */
.services-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 3rem; }
.filter-btn { background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-main); padding: 10px 24px; border-radius: 50px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 5px 15px var(--primary-glow); transform: translateY(-2px); }
.category-section { display: none; animation: fadeIn 0.5s ease; }
.category-section.active { display: block; }

/* جدول الأسعار */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.pricing-card { background: var(--bg-glass); backdrop-filter: blur(16px); border: 1px solid var(--border-glass); border-radius: 24px; padding: 2.5rem 2rem; box-shadow: var(--shadow-glass); transition: all 0.3s ease; text-align: center; position: relative; overflow: hidden; }
.pricing-card:hover { transform: translateY(-8px); border-color: var(--primary); }
.pricing-card h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 1rem; }
.pricing-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.pricing-list { text-align: right; list-style: none; margin-top: 1.5rem; border-top: 1px solid var(--border-glass); padding-top: 1.5rem; }
.pricing-list li { margin-bottom: 15px; color: var(--text-muted); font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--border-glass); padding-bottom: 8px;}
.pricing-list li span { font-weight: bold; color: var(--text-main); }

/* الأسئلة الشائعة FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; }
.faq-question { width: 100%; text-align: right; background: none; border: none; padding: 20px; font-size: 1.1rem; font-weight: bold; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-question i { color: var(--primary); transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.4s ease; color: var(--text-muted); line-height: 1.7; }
.faq-item.active .faq-answer { padding: 0 20px 20px 20px; max-height: 500px; }

/* شارة الذكاء الاصطناعي (Anthropic) */
.anthropic-badge { background: rgba(139, 92, 246, 0.1) !important; color: #8B5CF6 !important; border-color: rgba(139, 92, 246, 0.3) !important; box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1); }

/* =========================================
   تحديثات الكفاءات، الأسعار، وتقويم التاريخ
   ========================================= */

/* 1. إعادة تصميم الكفاءات الأساسية (عصري ومفتوح) */
.term-card {
    background: linear-gradient(145deg, var(--bg-glass), rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.term-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}
.term-header .term-icon {
    margin-bottom: 0;
    width: 60px; height: 60px;
}
.term-header h3 {
    margin-bottom: 0;
    font-size: 1.4rem;
}
.competency-tags {
    flex-direction: row !important;
    flex-wrap: wrap;
    margin-top: 0 !important;
}
.comp-tag {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 50px !important; /* شكل بيضاوي حديث */
    padding: 8px 18px !important;
    display: inline-flex !important;
    width: fit-content;
}

/* 2. تنسيق قسم السعر المدمج في بطاقة الخدمة */
.service-price {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-main);
}
.service-price span {
    color: var(--primary);
    font-size: 0.85rem;
    background: var(--primary-glass);
    padding: 4px 10px;
    border-radius: 8px;
}

/* 3. تنسيق تقويم موعد التسليم (Date Picker) ليتماشى مع الثيم */
[data-theme="dark"] input[type="date"],
[data-theme="dark"] select {
    color-scheme: dark; /* يجبر المتصفح على إظهار تقويم داكن */
}
[data-theme="light"] input[type="date"],
[data-theme="light"] select {
    color-scheme: light; /* يجبر المتصفح على إظهار تقويم فاتح */
}
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* =========================================
   تحديث المسافات والكفاءات + التقويم الزجاجي
   ========================================= */

/* إصلاح مسافات شبكة الخدمات والكفاءات */
.services-grid, .terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* تكبير العرض الأدنى لتنسيق أفضل */
    gap: 2.5rem; /* توحيد المسافات بين البطاقات */
    align-items: stretch;
}

/* تحسين شكل بطاقة الكفاءات الأساسية وتوسعة المسافات بداخلها */
.term-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.term-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* تنسيق وسوم الكفاءات (Tags) لتكون عصرية كـ Pills */
.competency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px !important;
    margin-top: auto;
}
.comp-tag {
    background: var(--primary-glass) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-main) !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================
   التصميم الزجاجي الهندسي الدقيق للتقويم
   ========================================= */

.flatpickr-calendar {
    background: var(--bg-nav) !important; /* لون زجاجي متناسق مع القائمة العلوية */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--shadow-glass), 0 15px 40px rgba(0,0,0,0.3) !important;
    border-radius: 24px !important;
    padding: 15px !important;
    font-family: inherit !important;
    width: 320px !important; /* عرض ثابت لتناسق الأيام */
    direction: rtl !important;
}

/* إخفاء سهم التقويم الصغير الخارج من المربع */
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { 
    display: none !important; 
}

/* تنسيق رأس التقويم (الشهر والسنة) */
.flatpickr-months .flatpickr-month {
    height: 45px !important;
    color: var(--text-main) !important;
    fill: var(--text-main) !important;
}
.flatpickr-current-month {
    font-size: 1.2rem !important;
    padding-top: 5px !important;
}
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
    top: 15px !important;
    padding: 5px !important;
}
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg {
    fill: var(--primary) !important;
    transition: all 0.3s ease;
}
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--text-main) !important;
}

/* تنسيق أيام الأسبوع */
span.flatpickr-weekday {
    font-weight: bold !important;
    color: var(--primary) !important;
    font-size: 0.95rem !important;
}

/* تنسيق شبكة الأيام الهندسية */
.flatpickr-innerContainer {
    margin-top: 10px !important;
    display: flex !important;
    justify-content: center !important;
}
.flatpickr-days {
    width: 100% !important;
}
.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    gap: 4px !important; /* مسافة متساوية بين الأيام */
}
.flatpickr-day {
    color: var(--text-main) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important; /* حواف ناعمة للأيام */
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

/* تأثير التمرير (Hover) لليوم */
.flatpickr-day:hover, .flatpickr-day.prevMonthDay:hover, .flatpickr-day.nextMonthDay:hover {
    background: var(--primary-glass) !important;
    border-color: var(--primary) !important;
    color: var(--text-main) !important;
    transform: translateY(-2px);
}

/* اليوم المحدد */
.flatpickr-day.selected {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
    transform: translateY(-2px);
}

/* اليوم الحالي (Today) */
.flatpickr-day.today {
    border-color: var(--primary) !important;
}

/* الأيام المعطلة (الماضية) */
.flatpickr-day.flatpickr-disabled {
    color: var(--text-muted) !important;
    opacity: 0.3 !important;
}
