/* ==========================================================================
   MARWAN AHMED - SENIOR SOFTWARE ENGINEER
   Refined Minimalist Portfolio Design System & Motion Language
   Aesthetics: Clean, Minimal, Modern, Fluid, Alive, Confident & Technical
   Strict Color Hierarchy: Purple Primary (#5d3ec0) | Subtle Accent Green (#94e066)
   Neutral Foundation (85-90%): Obsidian Dark (#09090c), Off-White (#f2f2f5)
   Typography: Local Thmanyah Sans (ثمانية) & Plus Jakarta Sans
   ========================================================================== */

/* --------------------------------------------------------------------------
   Local Thmanyah Arabic Font Faces
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../Fonts/thmanyahsans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../Fonts/thmanyahsans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../Fonts/thmanyahsans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../Fonts/thmanyahsans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thmanyah Sans';
  src: url('../Fonts/thmanyahsans-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* English / Monospace Fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Design Tokens & Unified Motion Language
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --brand-purple: #5d3ec0;
  --brand-purple-hover: #6e4de0;
  --brand-purple-dark: #4b2ea6;
  --brand-purple-subtle: rgba(93, 62, 192, 0.08);
  --brand-purple-border: rgba(93, 62, 192, 0.24);

  /* Secondary Accent (Strictly for status dot & small highlights) */
  --accent-green: #94e066;
  --accent-green-subtle: rgba(148, 224, 102, 0.12);

  /* Neutral Dark Palette (85-90%) */
  --bg-app: #09090c;
  --bg-surface: #0f0f14;
  --bg-card: #121217;
  --bg-card-hover: #171722;
  --bg-subtle: rgba(255, 255, 255, 0.03);

  /* Text Hierarchy */
  --text-primary: #f2f2f5;
  --text-secondary: #8f8f9d;
  --text-muted: #646472;

  /* Crisp 1px Neutral Borders */
  --border-neutral: rgba(255, 255, 255, 0.06);
  --border-neutral-hover: rgba(255, 255, 255, 0.13);

  /* Typography Families */
  --font-arabic: 'Thmanyah Sans', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-english: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius System */
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-tag: 6px;
  --radius-pill: 9999px;

  /* Multiples-of-8 Spacing System */
  --space-section: 110px;
  --space-card: 26px;
  --container-width: 1080px;

  /* Unified Motion Language */
  --ease-motion: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-fast);
  --transition-normal: 0.26s var(--ease-motion);
  --transition-smooth: 0.45s var(--ease-motion);
}

/* --------------------------------------------------------------------------
   Light Mode Design Tokens & Dynamic Overrides (الوضع الفاتح الراقي)
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  /* Brand Colors - High contrast and refined vibrancy */
  --brand-purple: #5d3ec0;
  --brand-purple-hover: #4e32a8;
  --brand-purple-dark: #3f2690;
  --brand-purple-subtle: rgba(93, 62, 192, 0.08);
  --brand-purple-border: rgba(93, 62, 192, 0.2);

  /* Secondary Accent */
  --accent-green: #1a9e46;
  --accent-green-subtle: rgba(26, 158, 70, 0.12);

  /* Clean Light Surface Palette */
  --bg-app: #f7f8fc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f3fa;
  --bg-subtle: rgba(0, 0, 0, 0.03);

  /* High Legibility Text Hierarchy */
  --text-primary: #11121a;
  --text-secondary: #565867;
  --text-muted: #838596;

  /* Subtle Crisp 1px Neutral Borders */
  --border-neutral: rgba(0, 0, 0, 0.08);
  --border-neutral-hover: rgba(0, 0, 0, 0.16);
}

/* Light Theme Component Overrides */
[data-theme="light"] body {
  background-color: var(--bg-app);
  color: var(--text-primary);
}

/* Dual Brand Logo Theme Switching */
.brand-logo-img.logo-theme-light {
  display: none;
}

.brand-logo-img.logo-theme-dark {
  display: block;
}

[data-theme="light"] .brand-logo-img.logo-theme-dark {
  display: none !important;
}

[data-theme="light"] .brand-logo-img.logo-theme-light {
  display: block !important;
}

[data-theme="light"] .nav-pill {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .nav-pill.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .btn-theme-toggle,
[data-theme="light"] .btn-lang-toggle,
[data-theme="light"] .btn-mobile-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.09);
}

[data-theme="light"] .btn-theme-toggle:hover,
[data-theme="light"] .btn-lang-toggle:hover,
[data-theme="light"] .btn-mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .hero-glow-ambient {
  background: radial-gradient(ellipse at center, rgba(93, 62, 192, 0.09) 0%, rgba(93, 62, 192, 0.02) 55%, transparent 75%);
  opacity: 0.65;
}

[data-theme="light"] .hero-status {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--text-secondary);
}

[data-theme="light"] .hero-status:hover {
  background: #ffffff;
  border-color: rgba(93, 62, 192, 0.35);
  box-shadow: 0 8px 24px rgba(93, 62, 192, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
  color: var(--text-primary);
}

[data-theme="light"] .status-indicator-wrap::after {
  border-color: var(--accent-green);
}

[data-theme="light"] .hero-status-icon {
  color: var(--accent-green);
  filter: drop-shadow(0 0 4px rgba(26, 158, 70, 0.4));
}

[data-theme="light"] .hero-status:hover .hero-status-icon {
  filter: drop-shadow(0 0 10px rgba(26, 158, 70, 0.85));
}

/* Light Theme: Secondary Button & Tech Tools */
[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f4f5fa;
  border-color: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .tech-item-subtle {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .tech-item-subtle:hover {
  background: #f7f8fc;
  border-color: var(--brand-purple-border);
  color: var(--brand-purple);
  box-shadow: 0 6px 16px rgba(93, 62, 192, 0.08);
}

/* Light Theme: Service Cards Hover Fix */
[data-theme="light"] .service-clean-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .service-clean-card:hover {
  background: #ffffff !important;
  border-color: rgba(93, 62, 192, 0.35);
  box-shadow: 0 14px 34px rgba(93, 62, 192, 0.1), 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .service-clean-card:hover .service-card-title {
  color: var(--brand-purple);
}

[data-theme="light"] .service-icon-minimal {
  background: #f7f8fc;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .service-clean-card:hover .service-icon-minimal {
  background: rgba(93, 62, 192, 0.08);
  border-color: var(--brand-purple-border);
  color: var(--brand-purple);
}

[data-theme="light"] .service-tag-item {
  background: #f4f5fa;
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

/* Light Theme: Project Cards Hover Fix */
[data-theme="light"] .project-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .project-card:hover {
  background: #ffffff !important;
  border-color: rgba(93, 62, 192, 0.35);
  box-shadow: 0 16px 36px rgba(93, 62, 192, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-card:hover .project-title {
  color: var(--brand-purple) !important;
}

[data-theme="light"] .project-cat-badge {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .project-tag-pill {
  background: #f4f5fa;
  border-color: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

/* Light Theme: About & Contact Elements */
[data-theme="light"] .about-point-tag {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about-point-tag:hover {
  background: #f7f8fc;
  border-color: var(--brand-purple-border);
}

[data-theme="light"] .contact-item-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .contact-item-box:hover {
  border-color: rgba(93, 62, 192, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-icon-box {
  background: #f7f8fc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-copy {
  background: #f4f5fa;
  border-color: rgba(0, 0, 0, 0.08);
  width: 70px;
}

[data-theme="light"] .btn-copy:hover {
  background: #ffffff;
  border-color: rgba(93, 62, 192, 0.3);
}

[data-theme="light"] .contact-form-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .form-field {
  background: #f7f8fc;
  border-color: rgba(0, 0, 0, 0.09);
  color: #11121a;
}

[data-theme="light"] .form-field:focus {
  background: #ffffff;
}

[data-theme="light"] .footer-social-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-social-btn:hover {
  background: #f7f8fc;
  border-color: var(--brand-purple-border);
  color: var(--brand-purple);
}

[data-theme="light"] .mobile-menu-drawer {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 0 32px rgba(93, 62, 192, 0.08);
}

[data-theme="light"] .mobile-nav-item:hover,
[data-theme="light"] .mobile-nav-item.active {
  background: #f1f3fa;
  color: var(--brand-purple);
}

[data-theme="light"] .fab-cv-btn {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 0 18px rgba(93, 62, 192, 0.14);
}

[data-theme="light"] .modal-overlay {
  background: rgba(15, 16, 25, 0.65);
}

[data-theme="light"] .modal-dialog {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .toast-box {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f0f1f6;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cfd2de;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
  font-family: var(--font-arabic);
  font-feature-settings:
    "ccmp" 1,
    "rlig" 1,
    "liga" 1,
    "calt" 1,
    "swsh" 1,
    "ss01" 1;
  -webkit-font-feature-settings:
    "ccmp" 1,
    "rlig" 1,
    "liga" 1,
    "calt" 1,
    "swsh" 1,
    "ss01" 1;
  font-variant-ligatures: common-ligatures contextual;
}

/* Thmanyah Sans Extended Kashida & Curved Swash Ligatures */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .hero-headline,
[dir="rtl"] .section-title,
[dir="rtl"] .cta-banner-title,
[dir="rtl"] .project-title,
[dir="rtl"] .service-card-title,
[dir="rtl"] .kashida-extended,
.thmanyah-extended {
  font-feature-settings:
    "ccmp" 1,
    "rlig" 1,
    "liga" 1,
    "calt" 1,
    "swsh" 1,
    "ss01" 1 !important;
  -webkit-font-feature-settings:
    "ccmp" 1,
    "rlig" 1,
    "liga" 1,
    "calt" 1,
    "swsh" 1,
    "ss01" 1 !important;
  font-variant-ligatures: common-ligatures contextual !important;
}

[dir="ltr"] body {
  font-family: var(--font-english);
}

::selection {
  background: var(--brand-purple);
  color: #ffffff;
}

/* Minimal Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
  background: #202029;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-purple);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Typography Utility */
.highlight-purple {
  color: var(--brand-purple) !important;
}

.highlight-green {
  color: var(--accent-green) !important;
}

.code-font {
  font-family: var(--font-mono);
}

/* RTL Arrow Inversion */
[dir="ltr"] .rtl-flip {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Unified Motion: Silky Cascading Reveal System
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Cascading Children Stagger within Sections */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger, 0) * 100ms);
  will-change: opacity, transform;
}

.reveal-group.active .reveal-item,
.reveal.active .reveal-item,
.reveal.active,
section.active .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Navigation Bar (Minimal Floating Glass Pill)
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.52rem 1.25rem;
  background: rgba(15, 15, 22, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: padding 0.3s var(--ease-motion),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.3s ease;
}

.nav-pill.scrolled {
  padding: 0.4rem 1.15rem;
  /* Compact on scroll */
  background: rgba(12, 12, 18, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Brand Wordmark Logo */
.brand-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.88;
}

.brand-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Navigation Links with animated indicator */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding-block: 0.25rem;
}

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

.nav-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Theme Toggle Button (Light / Dark) */
.btn-theme-toggle {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-neutral);
  color: var(--text-secondary);
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-neutral-hover);
  background: var(--bg-subtle);
  transform: rotate(18deg) scale(1.04);
}

.btn-theme-toggle:active {
  transform: scale(0.92);
}

.theme-icon-sun {
  display: none;
  color: var(--brand-purple);
  transition: color var(--transition-fast);
}

.btn-theme-toggle:hover .theme-icon-sun {
  color: var(--brand-purple-hover);
}

.theme-icon-moon {
  display: inline-block;
  color: #a78bfa;
}

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

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

/* Language Toggle - Harmonious Curvature */
.btn-lang-toggle {
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-neutral);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-lang-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-neutral-hover);
  background: rgba(255, 255, 255, 0.08);
}

.btn-lang-toggle:active {
  transform: scale(0.96);
}

/* CTA Button - Harmonious Curvature with Nav Container */
.btn-pill-primary {
  padding: 0.46rem 1.2rem;
  border-radius: 9px;
  background: var(--brand-purple);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(93, 62, 192, 0.22);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-pill-primary:hover {
  background: var(--brand-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(93, 62, 192, 0.35);
}

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

/* --------------------------------------------------------------------------
   Mobile Menu Toggle Button (Minimal Animated 3-Bar Icon)
   -------------------------------------------------------------------------- */
.btn-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-neutral);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0 7px;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

[dir="ltr"] .btn-mobile-toggle {
  align-items: flex-start;
}

.btn-mobile-toggle:hover {
  border-color: var(--border-neutral-hover);
  background: rgba(255, 255, 255, 0.08);
}

.btn-mobile-toggle:active {
  transform: scale(0.94);
}

.btn-mobile-toggle .bar {
  display: block;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.28s var(--ease-motion), opacity 0.2s ease, width 0.28s var(--ease-motion);
}

.btn-mobile-toggle .bar-1 {
  width: 12px;
}

.btn-mobile-toggle .bar-2 {
  width: 18px;
}

.btn-mobile-toggle .bar-3 {
  width: 15px;
}

/* Active Morphed 'X' State */
.btn-mobile-toggle.active {
  border-color: var(--brand-purple);
  background: var(--brand-purple-subtle);
  align-items: center;
  padding: 0;
}

.btn-mobile-toggle.active .bar-1 {
  width: 16px;
  transform: translateY(6px) rotate(45deg);
}

.btn-mobile-toggle.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.btn-mobile-toggle.active .bar-3 {
  width: 16px;
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile Menu Drawer (Dropdown Glass Card)
   -------------------------------------------------------------------------- */
.mobile-menu-drawer {
  pointer-events: auto;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0.75rem;
  right: 0.75rem;
  max-width: 440px;
  margin-inline: auto;
  background: rgba(14, 14, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 32px rgba(93, 62, 192, 0.16);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.97);
  transition: opacity 0.28s var(--ease-motion), transform 0.28s var(--ease-motion), visibility 0.28s;
  z-index: 1002;
  box-sizing: border-box;
}

.mobile-menu-drawer.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  background: transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #ffffff;
  background: var(--bg-card-hover);
}

.mobile-nav-item.active {
  color: var(--brand-purple-hover);
  font-weight: 600;
}

.mobile-nav-item i {
  font-size: 0.75rem;
  opacity: 0.6;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-nav-item:hover i {
  opacity: 1;
  transform: translateX(-3px);
}

[dir="ltr"] .mobile-nav-item:hover i {
  transform: translateX(3px);
}

.mobile-menu-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-neutral);
}

.mobile-menu-cta {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
}

/* Light Mode Overrides for Mobile Menu Drawer */
[data-theme="light"] .mobile-menu-drawer {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 0 24px rgba(93, 62, 192, 0.08);
}

[data-theme="light"] .mobile-nav-item {
  color: #565867;
}

[data-theme="light"] .mobile-nav-item:hover {
  color: #11121a;
  background: #f1f3fa;
}

[data-theme="light"] .mobile-nav-item.active {
  color: var(--brand-purple);
  background: rgba(93, 62, 192, 0.08);
}

[data-theme="light"] .mobile-menu-footer {
  border-color: rgba(0, 0, 0, 0.08);
}

/* Backdrop Overlay */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Floating Action Button for CV / Resume (زر السيرة العائم الأنيق)
   -------------------------------------------------------------------------- */
@keyframes fabFloatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.fab-cv-btn {
  position: fixed;
  bottom: 2rem;
  inset-inline-start: 2rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: rgba(18, 18, 25, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  animation: fabFloatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  transition: all 0.25s var(--ease-motion);
}

.fab-cv-btn i {
  color: var(--accent-green);
  font-size: 0.95rem;
}

.fab-cv-btn:hover {
  background: rgba(25, 25, 35, 0.98);
  border-color: rgba(93, 62, 192, 0.5);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 24px rgba(93, 62, 192, 0.25);
}

.fab-cv-btn:active {
  transform: translateY(0) scale(0.97);
}

/* --------------------------------------------------------------------------
   Hero Section (Atmospheric Depth, Sequential Entrance, Fluid Whitespace)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Clean, subtle & non-distracting technical grid pattern */
.hero-pattern-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 36%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 36%, #000 20%, transparent 75%);
  opacity: 0.85;
}

[data-theme="light"] .hero-pattern-bg {
  background-image: 
    linear-gradient(to right, rgba(93, 62, 192, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(93, 62, 192, 0.045) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 36%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 36%, #000 20%, transparent 75%);
  opacity: 0.75;
}

/* Subtle atmospheric radial glow behind headline */
.hero-glow-ambient {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 92vw);
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(93, 62, 192, 0.12) 0%, rgba(93, 62, 192, 0.02) 55%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Sequential Stagger Animation on Page Load */
.hero-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.65s var(--ease-motion) forwards;
  will-change: opacity, transform;
}

.hero-seq-1 {
  animation-delay: 0ms;
}

.hero-seq-2 {
  animation-delay: 90ms;
}

.hero-seq-3 {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 0.65s var(--ease-motion) 180ms forwards;
}

.hero-seq-4 {
  animation-delay: 270ms;
}

.hero-seq-5 {
  animation-delay: 360ms;
}

.hero-seq-6 {
  animation-delay: 450ms;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

/* Status Indicator (Interactive Glass Pill Sticker) */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 1.05rem;
  background: rgba(18, 18, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.hero-status:hover {
  color: var(--text-primary);
  border-color: rgba(93, 62, 192, 0.4);
  background: rgba(22, 22, 34, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(93, 62, 192, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-status:active {
  transform: translateY(0) scale(0.98);
}

/* Animated Radar Pulse Container for Status Arrow */
.status-indicator-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.status-indicator-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-green);
  animation: statusRadar 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes statusRadar {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
  }
  65% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Mouse pointer arrow icon in brand accent green with breathing pulse motion */
.hero-status-icon {
  font-size: 0.8rem;
  color: var(--accent-green);
  filter: drop-shadow(0 0 6px rgba(148, 224, 102, 0.65));
  animation: arrowPulseMotion 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  display: inline-block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

@keyframes arrowPulseMotion {
  0%, 100% {
    transform: scale(0.92);
    filter: drop-shadow(0 0 3px rgba(148, 224, 102, 0.45));
  }
  50% {
    transform: scale(1.16) translate(-1px, -1px);
    filter: drop-shadow(0 0 10px rgba(148, 224, 102, 0.95)) drop-shadow(0 0 16px rgba(148, 224, 102, 0.45));
  }
}

.hero-status:hover .hero-status-icon {
  transform: scale(1.24) translate(-2px, -2px);
  filter: drop-shadow(0 0 12px rgba(148, 224, 102, 1));
}

[dir="ltr"] .hero-status:hover .hero-status-icon {
  transform: scale(1.24) translate(2px, -2px);
}

/* Dominant Headline */
.hero-headline {
  font-size: clamp(2.35rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Short Supporting Paragraph */
.hero-subtext {
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 2.25rem;
}

/* Hero Action Buttons */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4.5rem;
}

.btn-primary {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-btn);
  background: var(--brand-purple);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(93, 62, 192, 0.2);
  transition: background 0.2s ease,
    transform 0.2s var(--ease-motion),
    box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary i {
  font-size: 0.82rem;
  transition: transform 0.24s var(--ease-motion);
  will-change: transform;
}

[dir="rtl"] .btn-primary:hover i {
  transform: translateX(-4px);
}

[dir="ltr"] .btn-primary:hover i {
  transform: translateX(4px);
}

.btn-primary:hover {
  background: var(--brand-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(93, 62, 192, 0.32);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(93, 62, 192, 0.15);
}

.btn-secondary {
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--ease-motion);
  cursor: pointer;
}

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

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

/* --------------------------------------------------------------------------
   Subtle Monochrome Tech Stack Marquee (Smooth Continuous Motion)
   -------------------------------------------------------------------------- */
.tech-marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  overflow: hidden;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-neutral);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.tech-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  animation: techMarqueeScrollRTL 30s linear infinite;
  will-change: transform;
}

[dir="ltr"] .tech-marquee-track {
  animation: techMarqueeScrollLTR 30s linear infinite;
}

.tech-marquee-wrapper:hover .tech-marquee-track {
  animation-play-state: paused;
}

@keyframes techMarqueeScrollRTL {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(50%);
  }
}

@keyframes techMarqueeScrollLTR {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tech-item-subtle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: default;
}

.tech-item-subtle:hover {
  color: var(--text-primary);
  border-color: var(--brand-purple-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(93, 62, 192, 0.18);
}

.tech-item-subtle i,
.tech-item-subtle svg {
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.tech-item-subtle:hover i,
.tech-item-subtle:hover svg {
  color: var(--brand-purple);
}

/* --------------------------------------------------------------------------
   Section Structure & Rhythm
   -------------------------------------------------------------------------- */
.section-wrapper {
  padding-block: var(--space-section);
  position: relative;
}

.section-wrapper-alt {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-neutral);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 3.25rem;
}

.section-pretitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.45rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.section-caption {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Services Section (2x2 Grid with Cascading Stagger & Hover)
   -------------------------------------------------------------------------- */
.services-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.services-grid-2x2 .service-clean-card:nth-child(1) {
  --stagger: 0;
}

.services-grid-2x2 .service-clean-card:nth-child(2) {
  --stagger: 1;
}

.services-grid-2x2 .service-clean-card:nth-child(3) {
  --stagger: 2;
}

.services-grid-2x2 .service-clean-card:nth-child(4) {
  --stagger: 3;
}

.service-clean-card {
  padding: var(--space-card);
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.28s var(--ease-motion),
    background 0.28s var(--ease-motion),
    transform 0.28s var(--ease-motion),
    box-shadow 0.28s var(--ease-motion);
}

.service-clean-card:hover {
  border-color: rgba(93, 62, 192, 0.28);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.service-icon-minimal {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-motion);
}

.service-clean-card:hover .service-icon-minimal {
  color: var(--brand-purple);
  border-color: var(--brand-purple-border);
}

[dir="rtl"] .service-clean-card:hover .service-icon-minimal {
  transform: translateY(-2px) translateX(-2px);
}

[dir="ltr"] .service-clean-card:hover .service-icon-minimal {
  transform: translateY(-2px) translateX(2px);
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.service-tags-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.service-tag-item {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-tag);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Project CTA Callout (Card Background in Primary Brand Purple Color!)
   -------------------------------------------------------------------------- */
.cta-banner-wrapper {
  margin-top: 5.5rem;
  /* Clearance for 3D cutout portrait top breakout */
  margin-bottom: 3.5rem;
  position: relative;
}

.cta-banner-card {
  background: linear-gradient(135deg, #5d3ec0 0%, #4a2da5 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 3rem 4rem 0 4rem;
  /* Zero bottom padding so the portrait sits completely flush on the bottom edge */
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: end;
  /* Ground all items directly to the bottom border */
  gap: 2.5rem;
  position: relative;
  overflow: visible;
  min-height: 290px;
  box-shadow: 0 20px 48px rgba(93, 62, 192, 0.32), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease-motion), box-shadow 0.35s ease;
}

.cta-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 58px rgba(93, 62, 192, 0.42), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cta-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 600px;
  padding-bottom: 3.25rem;
  /* Balanced bottom breathing room for text & button */
  position: relative;
  z-index: 2;
}

.cta-banner-title {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.cta-banner-desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.cta-banner-action-wrap {
  margin-top: 0.5rem;
}

/* High-contrast crisp white button on purple background */
.cta-btn-white {
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-btn);
  background: #ffffff !important;
  color: var(--brand-purple) !important;
  font-size: 0.96rem;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s var(--ease-motion), box-shadow 0.2s ease;
  cursor: pointer;
}

.cta-btn-white:hover {
  background: #f7f7fd !important;
  color: #43249c !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.cta-btn-white:active {
  transform: translateY(0) scale(0.98);
}

/* 3D Cutout Portrait Breakout Container - Completely Flush to Container Bottom */
.cta-banner-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  line-height: 0;
  height: auto;
  min-height: 0;
}

.cta-cutout-img {
  display: block;
  position: relative;
  height: 395px;
  max-height: 410px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  margin-top: -70px;
  margin-bottom: 0;
  /* Exactly 0px gap with container bottom */
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.42));
  pointer-events: none;
  z-index: 3;
  transition: transform 0.4s var(--ease-motion);
}

.cta-banner-card:hover .cta-cutout-img {
  transform: translateY(-4px) scale(1.02);
}

/* CTA Banner Entrance managed seamlessly via unified .reveal-group and .reveal-item */

/* --------------------------------------------------------------------------
   Minimal Statistics (Smooth Count-Up & Cascading Items)
   -------------------------------------------------------------------------- */
.stats-clean-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 2.75rem;
  border-top: 1px solid var(--border-neutral);
  border-bottom: 1px solid var(--border-neutral);
  margin-block: 3.5rem;
  text-align: center;
}

.stats-clean-row .stat-unit:nth-child(1) {
  --stagger: 0;
}

.stats-clean-row .stat-unit:nth-child(2) {
  --stagger: 1;
}

.stats-clean-row .stat-unit:nth-child(3) {
  --stagger: 2;
}

.stats-clean-row .stat-unit:nth-child(4) {
  --stagger: 3;
}

.stat-unit {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-unit-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.stat-unit-number .plus {
  color: var(--brand-purple);
  font-size: 1.6rem;
  margin-inline-start: 2px;
}

.stat-unit-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   About Me (Asymmetric Split Layout & Depth Interaction)
   -------------------------------------------------------------------------- */
.about-clean-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.75rem;
  align-items: center;
}

/* About section entrance managed via unified .reveal-group and cascading .reveal-item */

.about-img-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-neutral);
  background: var(--bg-card);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s var(--ease-motion), box-shadow 0.4s var(--ease-motion);
}

.about-img-frame:hover {
  border-color: rgba(93, 62, 192, 0.3);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

.about-portrait-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s var(--ease-motion), filter 0.5s ease;
}

.about-img-frame:hover .about-portrait-img {
  transform: scale(1.025);
  filter: brightness(1.03);
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.about-paragraph {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
}

.about-points-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.about-point-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-tag);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.about-point-tag:hover {
  border-color: var(--border-neutral-hover);
  transform: translateY(-1px);
}

.about-point-tag i {
  color: var(--brand-purple);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Projects Showcase: EXACTLY 3 Projects in ONE Clean Desktop Row
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 projects in 1 row! */
  gap: 1.5rem;
}

.projects-grid .project-card:nth-child(1) {
  --stagger: 0;
}

.projects-grid .project-card:nth-child(2) {
  --stagger: 1;
}

.projects-grid .project-card:nth-child(3) {
  --stagger: 2;
}

/* Project Card & Hover Micro-Interactions */
.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease-motion),
    transform 0.4s var(--ease-motion),
    box-shadow 0.4s var(--ease-motion);
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(93, 62, 192, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 24px rgba(93, 62, 192, 0.1);
}

.project-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-motion), filter 0.5s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.025) translateY(-2px);
  filter: brightness(1.04);
}

.project-cat-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(14, 14, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-tag);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
}

[dir="rtl"] .project-cat-badge {
  left: auto;
  right: 0.75rem;
}

.project-content {
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #ffffff;
}

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

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.project-tag-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-tag);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  color: var(--text-muted);
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-neutral);
  padding: 0.85rem 1.4rem;
}

.btn-project-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.btn-project-link:hover {
  color: var(--brand-purple-hover);
}

.btn-project-link i {
  transition: transform 0.3s var(--ease-motion);
}

[dir="rtl"] .project-card:hover .btn-project-link i {
  transform: translateX(-4px);
}

[dir="ltr"] .project-card:hover .btn-project-link i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Contact Section (Minimal, Non-Distracting & Smooth)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-col .contact-item-box:nth-child(1) {
  --stagger: 0;
}

.contact-info-col .contact-item-box:nth-child(2) {
  --stagger: 1;
}

.contact-info-col .contact-item-box:nth-child(3) {
  --stagger: 2;
}

.contact-item-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-card);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.contact-item-box:hover {
  border-color: var(--border-neutral-hover);
  transform: translateY(-1px);
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  font-size: 1.1rem;
}

.contact-data {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.contact-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  direction: inherit;
}

.btn-copy {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-tag);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  color: var(--text-primary);
  border-color: var(--border-neutral-hover);
}

.btn-copy:active {
  transform: scale(0.95);
}

/* Minimal Form */
.contact-form-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-card);
  padding: 2.25rem;
}

.form-field {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(93, 62, 192, 0.15);
}

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

.btn-form-submit {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-btn);
  background: var(--brand-purple);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(93, 62, 192, 0.2);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-form-submit:hover {
  background: var(--brand-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(93, 62, 192, 0.32);
}

.btn-form-submit:active {
  transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Minimal Footer
   -------------------------------------------------------------------------- */
.footer-minimal {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border-neutral);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-neutral-hover);
  transform: translateY(-2px);
}

.footer-social-btn:active {
  transform: scale(0.95);
}

/* --------------------------------------------------------------------------
   Modals & Toast
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  padding: 1.25rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-neutral-hover);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 700px;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-neutral);
}

.modal-title {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.toast-box {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--bg-surface);
  border: 1px solid var(--brand-purple);
  border-radius: var(--radius-btn);
  padding: 0.65rem 1.35rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.toast-box.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations & Mobile Motion Discipline
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --space-section: 75px;
    --space-card: 20px;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .services-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cta-banner-card {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.75rem 2.5rem 1.75rem;
    margin-top: 3.5rem;
    gap: 1.5rem;
  }

  .cta-banner-text {
    align-items: center;
    text-align: center;
  }

  .cta-banner-visual {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    margin-top: -95px;
    margin-bottom: 0.5rem;
  }

  .cta-cutout-img {
    display: block;
    position: relative;
    bottom: auto;
    left: auto !important;
    right: auto !important;
    height: 220px;
    max-height: 240px;
    width: auto;
    margin-top: 0;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  }

  .stats-clean-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .about-clean-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-img-frame {
    max-width: 320px;
    margin-inline: auto;
  }

  .about-points-row {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 650px) {
  :root {
    --space-section: 60px;
    --space-card: 18px;
  }

  .container {
    padding-inline: 1rem;
    max-width: 100%;
  }

  /* Compact Floating Pill Navbar - Never Cuts Off */
  .navbar-wrapper {
    top: 0.65rem;
    padding-inline: 0.75rem;
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .nav-pill {
    width: 100%;
    max-width: 480px;
    padding: 0.4rem 0.85rem;
    gap: 0.5rem;
    justify-content: space-between;
    border-radius: 12px;
  }

  .nav-pill.scrolled {
    padding: 0.35rem 0.75rem;
  }

  .brand-logo-img {
    height: 20px;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .btn-theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .btn-lang-toggle {
    padding: 0.3rem 0.55rem;
    font-size: 0.74rem;
    border-radius: 8px;
  }

  /* Hide "ابدأ مشروعك" on mobile header navbar (kept in mobile dropdown menu) */
  .nav-pill .btn-pill-primary {
    display: none !important;
  }

  .btn-mobile-toggle {
    display: flex;
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 6.25rem;
    padding-bottom: 3.5rem;
  }

  .hero-glow-ambient {
    width: 280px;
    height: 220px;
    filter: blur(50px);
  }

  .hero-status {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
    gap: 0.5rem;
  }

  .hero-status-icon {
    font-size: 0.68rem;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.28;
    letter-spacing: normal;
    margin-bottom: 1.15rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtext {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.85rem;
    padding-inline: 0.25rem;
    max-width: 100%;
  }

  .hero-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2.75rem;
  }

  .hero-actions-row .btn-primary,
  .hero-actions-row .btn-secondary {
    width: 100%;
    max-width: 290px;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.92rem;
  }

  /* Smooth Tech Marquee on Mobile */
  .tech-marquee-wrapper {
    max-width: 100%;
    padding-top: 1.25rem;
  }

  .tech-marquee-track {
    gap: 1.25rem;
    animation-duration: 22s;
  }

  .tech-item-subtle {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    gap: 0.4rem;
  }

  /* Section Headings */
  .section-head {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-caption {
    font-size: 0.88rem;
  }

  /* Services Clean Cards */
  .services-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-clean-card {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .service-card-title {
    font-size: 1.05rem;
  }

  .service-card-desc {
    font-size: 0.86rem;
  }

  /* CTA Banner Card on Small Mobile */
  .cta-banner-wrapper {
    margin-top: 5rem;
    margin-bottom: 2.75rem;
  }

  .cta-banner-card {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.25rem 2.25rem 1.25rem;
    gap: 1.25rem;
    overflow: visible !important;
    border-radius: 18px;
  }

  .cta-banner-visual {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    margin-top: -95px;
    margin-bottom: 0.5rem;
  }

  .cta-cutout-img {
    position: relative;
    bottom: auto;
    height: 210px;
    max-height: 230px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  }

  .cta-banner-text {
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }

  .cta-banner-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .cta-banner-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .cta-btn-white {
    width: auto;
    min-width: 200px;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.92rem;
  }

  /* Clean 2x2 Stats on Mobile */
  .stats-clean-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.75rem;
    padding-block: 1.5rem;
    margin-block: 2rem;
  }

  .stat-unit-number {
    font-size: 1.75rem;
  }

  .stat-unit-number .plus {
    font-size: 1.25rem;
  }

  .stat-unit-label {
    font-size: 0.76rem;
  }

  /* About Section */
  .about-clean-grid {
    gap: 1.75rem;
  }

  .about-img-frame {
    max-width: 260px;
  }

  .about-paragraph {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .about-point-tag {
    font-size: 0.76rem;
    padding: 0.35rem 0.7rem;
  }

  /* Projects Showcase */
  .project-thumb {
    height: 180px;
  }

  .project-content {
    padding: 1.15rem 1.15rem;
  }

  .project-card-footer {
    padding: 0.75rem 1.15rem;
  }

  /* Contact Section */
  .contact-grid {
    gap: 1.5rem;
  }

  .contact-info-col {
    gap: 0.75rem;
  }

  .contact-item-box {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .contact-icon-box {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .contact-val {
    font-size: 0.86rem;
  }

  .btn-copy {
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
  }

  .contact-form-box {
    padding: 1.35rem 1rem;
    gap: 0.85rem;
  }

  .form-field {
    padding: 0.75rem 0.95rem;
    font-size: 0.88rem;
  }

  /* Footer */
  .footer-row {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  /* Floating CV Action Button - Icon Only on Mobile */
  .fab-cv-btn {
    bottom: 1.25rem;
    inset-inline-start: 1.25rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 16px rgba(93, 62, 192, 0.3);
  }

  .fab-cv-btn span {
    display: none !important;
  }

  .fab-cv-btn i {
    font-size: 1.15rem;
    margin: 0;
  }

  /* Modals */
  .modal-overlay {
    padding: 0.65rem;
  }

  .modal-dialog {
    max-height: 90vh;
    border-radius: 12px;
  }

  .modal-header {
    padding: 1rem 1.15rem;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  .modal-body {
    padding: 1.15rem 1rem;
    gap: 1rem;
  }

  /* Reduced Motion Transform Distance */
  .reveal,
  .reveal-item {
    transform: translateY(14px);
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .hero-headline {
    font-size: 1.65rem;
  }

  .nav-pill {
    padding: 0.35rem 0.6rem;
  }

  .brand-logo-img {
    height: 18px;
  }

  .stats-clean-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: Respect Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-item,
  .hero-enter,
  .hero-seq-3,
  .fab-cv-btn {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}