/* ==========================================================================
   RAFIK FAKRI — PORTFOLIO STYLESHEET
   Arabic & French Language Educator | Interpreter
   Vanilla CSS with Theme Variables & Fully Responsive Layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & CUSTOM PROPERTIES (THEME TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.25);
  --shadow-blue: 0 8px 30px rgba(37, 99, 235, 0.25);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Layout Containers */
  --container-max: 1240px;
  --header-height: 80px;
}

/* DARK THEME (DEFAULT) */
[data-theme="dark"],
:root {
  --bg-primary: #050d1a;
  --bg-secondary: #0a1628;
  --bg-tertiary: #0f1f38;
  --card-bg: rgba(10, 22, 40, 0.75);
  --card-bg-solid: #0b1830;
  --card-bg-hover: rgba(15, 31, 56, 0.9);
  --header-bg: rgba(5, 13, 26, 0.88);

  --text-primary: #f0f6ff;
  --text-secondary: #8fadc8;
  --text-muted: #5a7a99;

  --accent-gold: #3b82f6;
  --accent-gold-light: #60a5fa;
  --accent-gold-dark: #1d4ed8;
  --accent-gold-glow: rgba(59, 130, 246, 0.22);

  --border-subtle: rgba(59, 130, 246, 0.12);
  --border-hover: rgba(59, 130, 246, 0.45);
  --border-gold: rgba(59, 130, 246, 0.4);

  --input-bg: rgba(8, 16, 32, 0.85);
  --badge-bg: rgba(59, 130, 246, 0.12);
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg-primary: #f0f6ff;
  --bg-secondary: #e1edff;
  --bg-tertiary: #ccdeff;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-bg-solid: #ffffff;
  --card-bg-hover: #ffffff;
  --header-bg: rgba(240, 246, 255, 0.92);

  --text-primary: #0c1a2e;
  --text-secondary: #334d6e;
  --text-muted: #5a7a99;

  --accent-gold: #1d4ed8;
  --accent-gold-light: #2563eb;
  --accent-gold-dark: #1e3a8a;
  --accent-gold-glow: rgba(29, 78, 216, 0.18);

  --border-subtle: rgba(29, 78, 216, 0.1);
  --border-hover: rgba(29, 78, 216, 0.4);
  --border-gold: rgba(29, 78, 216, 0.35);

  --input-bg: rgba(255, 255, 255, 0.98);
  --badge-bg: rgba(29, 78, 216, 0.1);

  --shadow-sm: 0 2px 8px rgba(29, 78, 216, 0.06);
  --shadow-md: 0 8px 24px rgba(29, 78, 216, 0.1);
  --shadow-lg: 0 16px 40px rgba(29, 78, 216, 0.12);
  --shadow-blue: 0 8px 30px rgba(29, 78, 216, 0.18);
}

/* Universal Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Selection */
::selection {
  background: var(--accent-gold);
  color: #0b0d12;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 104px;
  padding-bottom: 104px;
}

.section-padding-sm {
  padding-top: 56px;
  padding-bottom: 56px;
}

.text-center {
  text-align: center;
}

/* Section Header Component */
.section-header {
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.title-accent-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  position: relative;
}

.accent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

/* --------------------------------------------------------------------------
   2. BUTTONS & UI CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: #0d0f14;
  box-shadow: 0 4px 18px var(--accent-gold-glow);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f0cf8f, var(--accent-gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(197, 160, 89, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
  background: var(--card-bg-hover);
}

.btn-block {
  width: 100%;
}

/* Highlight Text */
.highlight-gold {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Arabic Glyphs */
.arabic-glyph {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.05));
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--accent-gold-glow);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand-logo:hover .logo-mark {
  transform: scale(1.05);
  border-color: var(--accent-gold);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}

/* Desktop Nav Menu */
.desktop-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-gold);
  background: var(--badge-bg);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: rotate(15deg);
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: block;
}

[data-theme="light"] .moon-icon {
  display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  visibility: hidden;
  z-index: 1100;
  transition: visibility var(--transition-normal);
}

.mobile-nav-drawer.open {
  visibility: visible;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav-drawer.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.mobile-close-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: block;
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-gold);
  background: var(--badge-bg);
}

.mobile-nav-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-contact-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mobile-email-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  padding-top: 60px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.glow-top {
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: var(--accent-gold);
}

.glow-bottom {
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: #2563eb;
  opacity: 0.08;
}

.arabic-watermark {
  position: absolute;
  right: 4%;
  top: 45%;
  transform: translateY(-50%);
  font-family: var(--font-arabic);
  font-size: clamp(240px, 35vw, 480px);
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.03;
  line-height: 1;
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--badge-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

.badge-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-tag svg {
  color: var(--accent-gold);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Documented Key Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-subtle);
}

/* Hero Emblem Showcase */
.hero-visual {
  display: flex;
  justify-content: center;
}

.emblem-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(25, 32, 46, 0.65), rgba(14, 18, 26, 0.8));
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 35px var(--accent-gold-glow);
  position: relative;
}

[data-theme="light"] .emblem-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 241, 233, 0.9));
}

.emblem-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.emblem-frame {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.emblem-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring-track {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 1.5;
}

.ring-pulse {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2;
  stroke-dasharray: 200 400;
  animation: rotate-ring 14s linear infinite;
  transform-origin: center;
}

.ring-inner {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0.6;
}

@keyframes rotate-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.emblem-photo-container {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.3) 0%, rgba(197, 160, 89, 0.05) 70%);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 25px var(--accent-gold-glow);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-hero-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform var(--transition-normal);
}

.emblem-card:hover .emblem-hero-img {
  transform: scale(1.05);
}

.emblem-photo-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-arabic);
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 3;
}

.emblem-details {
  margin-bottom: 24px;
}

.emblem-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.emblem-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Micro badges floating */
.emblem-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.micro-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.micro-badge:hover {
  transform: translateX(4px);
  border-color: var(--accent-gold);
}

.badge-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.badge-texts {
  display: flex;
  flex-direction: column;
}

.b-main {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.b-sub {
  font-size: 0.72rem;
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   5. CAREER OBJECTIVE SECTION
   -------------------------------------------------------------------------- */
.objective-section {
  position: relative;
  z-index: 2;
}

.objective-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: linear-gradient(135deg, var(--card-bg), rgba(28, 35, 48, 0.4));
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md), 0 0 25px var(--accent-gold-glow);
}

[data-theme="light"] .objective-card {
  background: linear-gradient(135deg, #ffffff, #f7f4ec);
}

.objective-icon-wrapper {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.objective-content {
  flex: 1;
}

.objective-quote {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-style: italic;
}

.objective-author {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.author-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 56px;
}

.portrait-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.portrait-image-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background: var(--bg-secondary);
}

.portrait-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform var(--transition-slow);
}

.portrait-card:hover .portrait-real-img {
  transform: scale(1.03);
}

.portrait-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 12, 16, 0.85) 100%);
  pointer-events: none;
}

[data-theme="light"] .portrait-overlay-gradient {
  background: linear-gradient(180deg, transparent 50%, rgba(20, 24, 33, 0.8) 100%);
}

.portrait-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(14, 18, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

[data-theme="light"] .portrait-floating-badge {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.p-dhad-badge {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.p-badge-info {
  display: flex;
  flex-direction: column;
}

.p-badge-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

[data-theme="dark"] .p-badge-title {
  color: #ffffff;
}

.p-badge-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.portrait-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.p-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.p-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.p-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* About Text */
.about-headline {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.about-paragraph {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-paragraph strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Trusted Environments Tag List */
.trusted-environments-box {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 28px;
  margin-bottom: 24px;
}

.env-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.env-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.environments-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.org-tag {
  display: inline-block;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.org-tag:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Global Online Reach */
.online-reach-box {
  background: linear-gradient(135deg, var(--badge-bg), transparent);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
}

.reach-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.reach-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. PROFESSIONAL PHILOSOPHY & COMPETENCIES
   -------------------------------------------------------------------------- */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.competency-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.competency-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-gold-glow);
}

.competency-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--border-subtle);
  font-family: var(--font-sans);
}

.competency-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.competency-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.competency-subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.competency-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.philosophy-summary-banner {
  background: var(--card-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.banner-badge {
  background: var(--accent-gold);
  color: #0b0d12;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.banner-text {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. CORE EXPERTISE & SKILLS
   -------------------------------------------------------------------------- */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skills-categories-grid .skill-category-card:nth-child(4),
.skills-categories-grid .skill-category-card:nth-child(5) {
  grid-column: span 1;
}

.skill-category-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cat-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-arabic-icon {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.cat-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.cat-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.skills-pill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.skills-pill-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.skills-pill-list li:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.skill-check {
  color: var(--accent-gold);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   9. SELECTED PROFESSIONAL WORK
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg), 0 0 25px var(--accent-gold-glow);
}

.work-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.work-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--badge-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  color: var(--accent-gold);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.work-index {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border-subtle);
}

.work-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.work-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.work-highlights {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.hl-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.locations-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loc-tag {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.work-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-focus-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: var(--badge-bg);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   10. PROFESSIONAL EXPERIENCE (VERTICAL TIMELINE)
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold), var(--border-subtle) 90%, transparent);
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 50px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 24px;
  left: 17px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-gold-glow);
  z-index: 2;
}

.marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-gold-glow);
  transform: translateX(4px);
}

.t-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.t-period {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
}

.t-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--badge-bg);
  color: var(--accent-gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.t-role {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.t-org {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.t-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.t-locations,
.t-orgs-highlight {
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.t-loc-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-loc,
.pill-org {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.t-achievements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.t-achievements li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ach-bullet {
  color: var(--accent-gold);
  font-size: 0.75rem;
  margin-top: 4px;
}

.t-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.t-skill-pill {
  background: var(--badge-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   11. EDUCATION SECTION
   -------------------------------------------------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.education-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.education-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.edu-year-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: var(--badge-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  width: fit-content;
}

.edu-degree {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.edu-institution {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.edu-recognition,
.edu-specialization {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 16px;
  color: var(--accent-gold);
}

.spec-label {
  color: var(--text-muted);
}

.spec-val {
  color: var(--text-primary);
}

.edu-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   12. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg), 0 0 25px var(--accent-gold-glow);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-number {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-arabic-glyph {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.service-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.service-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.service-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.service-points li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-gold);
  font-size: 1.2rem;
  line-height: 1;
}

.service-card-bottom {
  margin-top: auto;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 12px;
  color: var(--accent-gold-light);
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.contact-info-panel,
.contact-form-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.panel-title,
.form-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.panel-desc,
.form-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.4));
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-body {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.detail-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-value:hover {
  color: var(--accent-gold);
}

/* Social Media Channels */
.social-channels-box {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.social-box-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Form Styles */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.required {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Form Status Message */
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0;
  transition: background-color var(--transition-normal);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-identity {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-mark {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.footer-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-copyright {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   15. ANIMATIONS & SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

.delay-3 {
  transition-delay: 0.32s;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (<= 1024px) */
@media screen and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-badge,
  .hero-tags,
  .hero-cta-group,
  .hero-stats {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
  }

  .hero-visual {
    order: -1;
  }

  .emblem-card {
    max-width: 380px;
  }

  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Tablets (<= 860px) */
@media screen and (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .work-grid,
  .services-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .skills-categories-grid {
    grid-template-columns: 1fr;
  }

  .objective-card {
    flex-direction: column;
    padding: 32px 28px;
    gap: 20px;
  }

  .objective-icon-wrapper {
    width: 48px;
    height: 48px;
  }

  .philosophy-summary-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* Mobile Phones (<= 640px) */
@media screen and (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-padding {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-padding-sm {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .stat-divider {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .emblem-card {
    padding: 28px 20px;
  }

  .emblem-frame {
    width: 150px;
    height: 150px;
  }

  .arabic-dhad-glow {
    font-size: 4.2rem;
  }

  .competencies-grid {
    grid-template-columns: 1fr;
  }

  .portrait-artwork {
    height: 300px;
  }

  .portrait-badges-row {
    grid-template-columns: 1fr;
  }

  .timeline-spine {
    left: 16px;
  }

  .timeline-marker {
    left: 5px;
    width: 22px;
    height: 22px;
  }

  .timeline-item {
    padding-left: 48px;
  }

  .timeline-card {
    padding: 24px 20px;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 28px 20px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

/* Spinner Icon */
.spin-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   ENDORSEMENTS / RECOMMENDATION LETTERS SECTION
   ========================================================================== */

.endorsements-section {
  background: var(--bg-secondary);
}

.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

/* --- Card --- */
.endorsement-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.endorsement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}

/* --- Image Wrap --- */
.endorsement-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8e6df;
}

.endorsement-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--transition-slow);
  filter: grayscale(10%);
}

.endorsement-card:hover .endorsement-img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* --- Hover Overlay --- */
.endorsement-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.62);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.endorsement-card:hover .endorsement-overlay {
  opacity: 1;
}

.view-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0c10;
}

.view-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Meta --- */
.endorsement-meta {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.endorsement-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.endorsement-role {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1.4;
}

.endorsement-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lightboxFadeIn 0.28s ease;
}

.lightbox-overlay.is-open {
  display: flex;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-inner {
  position: relative;
  max-width: 780px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: lightboxSlideUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lightboxSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

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

.lightbox-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.18);
}

.lightbox-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10000;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(197, 160, 89, 0.25);
  transform: rotate(90deg);
}

/* --- Responsive endorsements --- */
@media (max-width: 1024px) {
  .endorsements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .endorsements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .endorsement-img-wrap {
    aspect-ratio: 3 / 4;
  }
}