/* ============================================
   GLOBAL STYLESHEET
   Prof. Hassabelrasul Yousuf Al-Tom Shahab Al-Din
   Palette: Deep Navy · White · Gold
   Font: Amiri (display) + Cairo (body)
   ============================================ */

:root {
  --navy:        #0D1F3C;
  --navy-mid:    #162B52;
  --navy-light:  #1E3A6E;
  --gold:        #C5A25C;
  --gold-light:  #DFC28A;
  --gold-dark:   #9E7D3A;
  --white:       #FFFFFF;
  --off-white:   #F5F3EE;
  --cream:       #EDE8DD;
  --text-dark:   #1A1A2E;
  --text-mid:    #3D3D5C;
  --text-light:  #7A7A9A;
  --border:      rgba(197,162,92,0.25);

  --font-display: 'Amiri', serif;
  --font-body:    'Cairo', sans-serif;

  --shadow-sm: 0 2px 12px rgba(13,31,60,0.08);
  --shadow-md: 0 8px 32px rgba(13,31,60,0.14);
  --shadow-lg: 0 20px 60px rgba(13,31,60,0.20);

  --radius: 8px;
  --transition: 0.3s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  direction: rtl;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--gold-dark);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.topbar .divider { color: var(--gold); opacity: 0.5; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,31,60,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold-dark);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.nav-logo { line-height: 1.2; }
.logo-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.logo-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-links li { position: relative; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(197,162,92,0.1);
}
.nav-links .nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: 4px;
  font-weight: 700;
  padding: 8px 16px;
}
.nav-links .nav-cta:hover { background: var(--gold-light); }

/* Dropdown */
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.dropdown li a {
  padding: 10px 16px;
  font-size: 0.8rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dropdown li:last-child a { border-bottom: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0a1628 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(197,162,92,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(197,162,92,0.04) 0%, transparent 40%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(197,162,92,0.015) 60px,
      rgba(197,162,92,0.015) 61px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-right: auto;
  padding-right: 5%;
  animation: fadeSlideUp 0.9s ease forwards;
}

.hero-badge {
  display: inline-block;
  background: rgba(197,162,92,0.15);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.25;
  margin-bottom: 20px;
}
.title-prefix {
  display: block;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 6px;
}
.title-name {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 700;
}
.title-surname {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold-light);
  font-weight: 400;
}

.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  font-style: italic;
  font-family: var(--font-display);
  border-right: 3px solid var(--gold);
  padding-right: 16px;
}

.hero-affiliation {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.affil-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Portrait */
.hero-portrait {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.8;
}
.portrait-frame {
  width: 260px;
  height: 320px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  text-align: center;
}
.portrait-placeholder svg { width: 100px; }
.portrait-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(197,162,92,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(197,162,92,0.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197,162,92,0.45);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.btn-outline:hover {
  background: rgba(197,162,92,0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}
.btn-ghost:hover {
  color: white;
  border-color: rgba(255,255,255,0.5);
}

/* ============================================
   INTRO STRIP
   ============================================ */
.intro-strip {
  background: var(--gold);
  padding: 28px 24px;
}
.strip-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.strip-inner p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.9;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SECTION HEADING
   ============================================ */
.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--gold));
  max-width: 200px;
}
.section-line:last-child {
  background: linear-gradient(to right, transparent, var(--gold));
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
  padding: 80px 24px;
  background: var(--off-white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition);
}
.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.stat-card[data-delay="100"] { transition-delay: 0.1s; }
.stat-card[data-delay="200"] { transition-delay: 0.2s; }
.stat-card[data-delay="300"] { transition-delay: 0.3s; }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon { font-size: 2rem; margin-bottom: 12px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ============================================
   QUICK LINKS GRID
   ============================================ */
.quick-section {
  padding: 80px 24px;
  background: var(--white);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.quick-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow var(--transition),
    border-color var(--transition);
}
.quick-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.quick-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.quick-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.quick-card:hover::before { height: 100%; }
.qcard-icon { font-size: 2rem; margin-bottom: 16px; }
.quick-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.quick-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}
.qcard-arrow {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform var(--transition);
}
.quick-card:hover .qcard-arrow { transform: translateX(-6px); }

/* ============================================
   EXPERTISE TAGS
   ============================================ */
.expertise-section {
  padding: 60px 24px 80px;
  background: var(--navy);
}
.expertise-section .section-heading h2 { color: var(--white); }
.expertise-section .section-line {
  background: linear-gradient(to left, transparent, rgba(197,162,92,0.5));
}
.expertise-section .section-line:last-child {
  background: linear-gradient(to right, transparent, rgba(197,162,92,0.5));
}
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.tag {
  display: inline-block;
  background: rgba(197,162,92,0.1);
  border: 1px solid rgba(197,162,92,0.35);
  color: var(--gold-light);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease, background var(--transition);
  cursor: default;
}
.tag.visible { opacity: 1; transform: scale(1); }
.tag:hover { background: rgba(197,162,92,0.2); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 24px;
  background: var(--off-white);
  text-align: center;
}
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.cta-section p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 36px;
}
.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}
.cta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--navy);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.cta-item:hover { box-shadow: var(--shadow-sm); border-color: var(--gold); }
.cta-icon { font-size: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  border-top: 2px solid var(--gold-dark);
  padding: 48px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  text-align: center;
  margin-bottom: 32px;
}
.footer-logo span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.footer-logo p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 32px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SHARED PAGE STYLES (used by sub-pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.page-hero-label {
  display: inline-block;
  background: rgba(197,162,92,0.15);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.page-content {
  padding: 60px 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.content-card:hover { box-shadow: var(--shadow-md); }

.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-card h2 .card-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.content-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream);
}
.content-list li:last-child { border-bottom: none; padding-bottom: 0; }
.content-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.5rem;
  margin-top: 7px;
  flex-shrink: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.info-item label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-item span {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-portrait { display: none; }
  .hero-content { max-width: 100%; padding-right: 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--navy-mid);
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.9rem; padding: 10px 14px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    margin-top: 4px;
  }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 20px; min-height: auto; }
  .title-name { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline, .btn-ghost { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 6px 14px; }
}
