/* ═══════════════════════════════════════════════════════════════
   MODERN PORTFOLIO STYLESHEET
   Matching Aaron Reed / Mustafa Design Template
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --primary: #1D4ED8;
  --primary-hover: #1E40AF;
  --primary-light: #EFF6FF;
  --primary-border: #BFDBFE;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --dark-text: #0F172A;
  --muted-text: #64748B;
  --light-text: #94A3B8;
  
  --bg-page: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F1F5F9;
  
  --border-light: #E2E8F0;
  --border-hover: #CBD5E1;
  
  --footer-bg: #004AD7;
  --footer-dark: #0036A3;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 8px 24px rgba(29, 78, 216, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
}

/* RTL Typography & Direction overrides */
html[lang="ar"],
body[dir="rtl"] {
  font-family: var(--font-ar);
}

body[dir="rtl"] .experience-timeline {
  padding-left: 0;
  padding-right: 20px;
  border-left: none;
  border-right: 2px solid var(--border-light);
}

body[dir="rtl"] .exp-dot {
  left: auto;
  right: -27px;
}

body[dir="rtl"] .view-all-link i,
body[dir="rtl"] .project-link i,
body[dir="rtl"] .blog-read-link i {
  transform: rotate(180deg);
}

body[dir="rtl"] .process-arrow {
  transform: scaleX(-1);
}

body[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 20px;
}

body[dir="ltr"] .hero-arrow-icon {
  transform: rotate(180deg);
}

/* Modern Elegant Language Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--dark-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  outline: none;
  user-select: none;
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.lang-toggle-btn:hover {
  background: #F8FAFC;
  border-color: #3B82F6;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

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

.lang-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.lang-toggle-btn:hover .lang-icon-box {
  background: #DBEAFE;
  color: #1D4ED8;
  transform: rotate(20deg);
}

.lang-toggle-btn svg {
  display: block;
}

.lang-text {
  letter-spacing: 0.2px;
  line-height: 1;
  font-weight: 700;
}

.lang-badge-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: #F1F5F9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.lang-toggle-btn:hover .lang-badge-pill {
  background: #EFF6FF;
  color: #1D4ED8;
}

/* Mobile Nav Specific Button Layout */
.mobile-nav-lang-wrap {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.mobile-nav-lang-wrap .lang-toggle-btn {
  flex: 1;
  justify-content: center;
  height: 44px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--dark-text);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 32px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  position: relative;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 22px 0;
  }
}

/* Typography Helpers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--primary);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 2.5px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-text);
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header-flex .section-title {
  margin-bottom: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-all-link:hover {
  color: var(--primary-hover);
  transform: translateX(4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--dark-text);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

@media (max-width: 768px) {
  .header-container {
    height: 58px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
}

.brand:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.38);
}

.brand-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #103b9b 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -1px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-text);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-text);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--dark-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}

@media (max-width: 768px) {
  .mobile-nav {
    top: 58px;
  }
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-actions .lang-toggle-btn {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 20px 0 24px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 28px;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.hero-title-blue {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #1E293B;
  line-height: 1.4;
  text-transform: none;
  margin-bottom: 14px;
}

.hero-bio {
  font-size: 15px;
  color: var(--muted-text);
  line-height: 1.7;
  margin-bottom: 22px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.hero-btn-pill {
  border-radius: var(--radius-full) !important;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-pill.btn-secondary {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--dark-text);
}

.hero-btn-pill.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 400px;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

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

.stat-number-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.stat-number {
  font-size: 23px;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-text);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-tech-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  max-width: 650px;
  z-index: 1;
  pointer-events: none;
  animation: slowPulse 8s ease-in-out infinite alternate;
}

@keyframes slowPulse {
  0% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.02); opacity: 1; }
}

.hero-portrait-wrap {
  position: relative;
  z-index: 2;
  width: 380px;
  height: 460px;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border: 4px solid #FFFFFF;
  background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 992px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 16px;
  }
  .hero-visual {
    order: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: auto;
    width: 100%;
    margin: 0 auto 12px;
    padding: 0;
    position: relative;
  }
  .hero-portrait-wrap {
    width: 250px;
    height: 310px;
    margin: 0 auto;
    border-radius: 140px 140px 20px 20px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border: 3.5px solid #FFFFFF;
  }
  .hero-tech-bg {
    width: 100%;
    height: 100%;
    max-width: 320px;
  }
  .hero-content {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-badge {
    justify-content: center;
    font-size: 13.5px;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: 36px;
    margin-bottom: 10px;
  }
  .hero-subtitle {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .hero-bio {
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 20px;
  }
  .hero-cta-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 860px;
  gap: 36px;
  align-items: flex-start;
}

.about-story-text {
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 20px;
}

.about-story-box {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-story-p {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.65;
  margin: 0;
}

.about-story-p.lead {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--dark-text);
  line-height: 1.65;
}

.about-story-p strong {
  color: var(--primary);
  font-weight: 700;
}

.about-values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.about-value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FFFFFF;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
  .about-values-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.about-value-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-value-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 2px;
}

.about-value-desc {
  font-size: 12.5px;
  color: var(--muted-text);
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border-light);
}

.exp-item {
  position: relative;
}

.exp-dot {
  position: absolute;
  left: -27px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--primary);
}

.exp-year {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.exp-role {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-text);
}

.exp-company {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 4px;
}

.exp-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FILTERABLE PROJECTS GRID
   ═══════════════════════════════════════════════════════════════ */
.project-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.project-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-card-alt);
  overflow: hidden;
  padding: 8px;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.03);
}

.project-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 2px;
}

.project-category {
  font-size: 11.5px;
  color: var(--muted-text);
  margin-bottom: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.project-card:hover .project-link {
  gap: 10px;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES SECTION (Enhanced 8-Card Responsive Layout & CTA)
   ═══════════════════════════════════════════════════════════════ */
#services {
  background-color: #FFFFFF;
}

.services-header {
  margin-bottom: 18px;
}

.services-intro {
  max-width: 780px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-text);
  margin-top: 6px;
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.service-card {
  padding: 24px 20px 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.service-card:hover {
  border-color: #93C5FD;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.08);
}

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

.service-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.service-icon-wrap i,
.service-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.service-card:hover .service-icon-wrap {
  background-color: var(--primary);
  color: #FFFFFF;
  transform: scale(1.04);
}

.service-num-badge {
  font-size: 12px;
  font-weight: 800;
  color: #94A3B8;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.service-en-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.service-title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.service-card:hover .service-title {
  color: var(--primary);
}

.service-desc {
  font-size: 13.5px;
  color: var(--muted-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.service-sublist-wrap {
  width: 100%;
  margin: 0 0 16px 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.service-sublist-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.service-sublist-icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
  stroke-width: 2.2;
}

.service-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-sublist li {
  position: relative;
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
  padding-inline-start: 16px;
}

.service-sublist li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 2px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.service-card-btn i,
.service-card-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.service-card:hover .service-card-btn {
  color: var(--primary-hover);
}

body[dir="rtl"] .service-card:hover .service-card-btn i,
body[dir="rtl"] .service-card:hover .service-card-btn svg {
  transform: translateX(-4px);
}

body:not([dir="rtl"]) .service-card-btn i,
body:not([dir="rtl"]) .service-card-btn svg {
  transform: scaleX(-1);
}

body:not([dir="rtl"]) .service-card:hover .service-card-btn i,
body:not([dir="rtl"]) .service-card:hover .service-card-btn svg {
  transform: scaleX(-1) translateX(-4px);
}

/* Services Bottom CTA Banner */
.services-cta-banner {
  margin-top: 20px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.services-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

body:not([dir="rtl"]) .services-cta-banner::before {
  right: auto;
  left: 0;
}

.services-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.services-cta-badge i,
.services-cta-badge svg {
  width: 13px;
  height: 13px;
}

.services-cta-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.services-cta-desc {
  font-size: 13.5px;
  color: var(--muted-text);
  line-height: 1.55;
  margin: 0;
  max-width: 660px;
}

.services-cta-action {
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
    gap: 18px;
  }
  
  .services-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
    gap: 16px;
  }
  
  .services-cta-action {
    width: 100%;
  }
  
  .services-cta-action .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .services-header {
    margin-bottom: 18px;
  }
  
  .services-intro {
    font-size: 14px;
  }
  
  .service-card {
    padding: 16px 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TOOLS & TECHNOLOGIES SECTION (Hybrid System: Infinite Marquee + Compact Categories)
   ═══════════════════════════════════════════════════════════════ */
.tools-section {
  background-color: #FFFFFF;
}

.tools-header {
  margin-bottom: 16px;
}

.tools-header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.tools-header-top .section-title {
  margin-bottom: 0;
}

.marquee-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.marquee-control-btn:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: var(--primary);
}

.marquee-control-btn i,
.marquee-control-btn svg {
  width: 14px;
  height: 14px;
}

.tools-intro {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-text);
  margin-top: 6px;
  margin-bottom: 0;
}

/* ── 1. Infinite Logo Marquee Track ── */
.tools-marquee-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.tools-marquee-row {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 3px 0;
  user-select: none;
  outline: none;
}

.tools-marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  direction: ltr; /* Ensures standard coordinates across all browsers */
}

.tools-marquee-track-forward {
  animation: marqueeLeft 28s linear infinite;
  will-change: transform;
}

.tools-marquee-track-reverse {
  animation: marqueeRight 28s linear infinite;
  will-change: transform;
}

/* Pause triggers: hover, focus, button */
.tools-marquee-row:hover .tools-marquee-track,
.tools-marquee-row:focus-within .tools-marquee-track,
.tools-marquee-container.is-paused .tools-marquee-track {
  animation-play-state: paused !important;
}

@keyframes marqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.marquee-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.marquee-tool-pill:hover {
  border-color: #93C5FD;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
  transform: translateY(-2px);
}

.marquee-tool-logo {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee-tool-logo img {
  max-width: 22px;
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.marquee-tool-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark-text);
  white-space: nowrap;
}

/* ── 2. Static & Compact Categorized Tools Section ── */
.static-tools-section {
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
}

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

.static-tools-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.static-tools-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.static-tools-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--dark-text);
  margin: 0;
}

.toggle-all-tools-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.toggle-all-tools-btn:hover,
.toggle-all-tools-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}

.toggle-all-tools-btn i,
.toggle-all-tools-btn svg {
  width: 13px;
  height: 13px;
}

.static-tools-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.static-cat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.static-cat-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.static-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  padding-bottom: 4px;
  border-bottom: 1px solid #F1F5F9;
}

.static-cat-badge i,
.static-cat-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.static-cat-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--dark-text);
  margin: 0;
}

.static-cat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: all 0.18s ease;
  cursor: default;
  user-select: none;
}

.compact-tool-pill:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.compact-tool-logo {
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compact-tool-logo img {
  max-width: 15px;
  max-height: 15px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.compact-tool-name {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
  white-space: nowrap;
}

.compact-tool-pill:hover .compact-tool-name {
  color: var(--primary);
}

/* Hidden by default, toggled when "عرض كافة الأدوات" is active */
.compact-tool-pill.is-core-tool {
  display: none;
}

.static-tools-categories-grid.show-all .compact-tool-pill.is-core-tool {
  display: inline-flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Responsive Behavior for Hybrid Tools ── */
@media (max-width: 1100px) {
  .static-tools-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tools-marquee-container {
    mask-image: linear-gradient(to right, transparent, black 1.5%, black 98.5%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 1.5%, black 98.5%, transparent);
    gap: 8px;
  }
  .marquee-tool-pill {
    padding: 5px 12px;
    gap: 7px;
  }
  .marquee-tool-name {
    font-size: 12px;
  }
  .tools-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .static-tools-categories-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .marquee-tool-logo {
    width: 20px;
    height: 20px;
  }
  .marquee-tool-logo img {
    max-width: 18px;
    max-height: 18px;
  }
  .marquee-tool-name {
    font-size: 11.5px;
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .tools-marquee-track {
    animation: none !important;
  }
  .tools-marquee-container {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  .tools-marquee-row {
    overflow-x: auto;
    justify-content: center;
  }
  .tools-marquee-track {
    flex-wrap: wrap;
    justify-content: center;
  }
  .tools-marquee-row [aria-hidden="true"] {
    display: none !important;
  }
  .marquee-control-btn {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TRUSTED BY BRANDS / PARTNERS (Clean Static Single-Row Layout)
   ═══════════════════════════════════════════════════════════════ */
.brands-section {
  padding: 24px 0;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 50%, #2563EB 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.brands-header {
  margin-bottom: 16px;
}

.brands-header .section-tag {
  margin-bottom: 4px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.15);
  color: #BFDBFE;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brands-title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.3px;
}

/* Static Single-Row Container */
.brands-static-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.brand-static-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  height: 52px;
  min-width: 105px;
  flex: 1 1 auto;
  max-width: 135px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.brand-static-item:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.brand-static-logo {
  max-height: 34px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: all 0.2s ease;
}

.brand-static-item:hover .brand-static-logo {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 900px) {
  .brands-static-row {
    gap: 8px;
  }
  .brand-static-item {
    height: 46px;
    padding: 6px 10px;
    min-width: 85px;
    max-width: 115px;
  }
  .brand-static-logo {
    max-height: 28px;
  }
}

@media (max-width: 540px) {
  .brands-static-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .brand-static-item {
    min-width: unset;
    max-width: 100%;
    height: 44px;
    padding: 4px 6px;
  }
  .brand-static-logo {
    max-height: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CLIENT TESTIMONIALS
   ═══════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.testimonial-card {
  padding: 20px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.quote-mark {
  font-size: 32px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary);
  margin-bottom: 6px;
}

.testimonial-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.client-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark-text);
}

.client-role {
  font-size: 11.5px;
  color: var(--muted-text);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background-color: var(--border-light);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  width: 20px;
  background-color: var(--primary);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MY PROCESS / HOW I WORK
   ═══════════════════════════════════════════════════════════════ */
.process-header {
  margin-bottom: 24px;
}

.process-intro {
  font-size: 14.5px;
  color: var(--muted-text);
  line-height: 1.65;
  max-width: 720px;
  margin-top: -6px;
  margin-bottom: 0;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.process-step-header {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.process-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 17px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.process-icon-wrap i,
.process-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.process-step:hover .process-icon-wrap {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: scale(1.05);
}

.process-arrow {
  flex-grow: 1;
  height: 1px;
  border-top: 2px dashed var(--border-light);
  margin: 0 10px;
  position: relative;
}

.process-step:last-child .process-arrow {
  display: none;
}

.process-step-number {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 4px;
  display: inline-block;
}

.process-step-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.process-step-desc {
  font-size: 12.5px;
  color: var(--muted-text);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .process-arrow {
    display: none;
  }
}

@media (max-width: 580px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BLOG / ARTICLES SECTION
   ═══════════════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-card-alt);
  overflow: hidden;
}

.blog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumbnail img {
  transform: scale(1.04);
}

.blog-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted-text);
  margin-bottom: 6px;
}

.blog-category-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.4;
  margin-bottom: 6px;
}

.blog-excerpt {
  font-size: 12.5px;
  color: var(--muted-text);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   GET IN TOUCH & FAQ
   ═══════════════════════════════════════════════════════════════ */
.contact-section {
  position: relative;
  background: radial-gradient(circle at right center, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto 20px;
  gap: 24px;
  align-items: flex-start;
}

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--dark-text);
  text-decoration: none;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #22C55E;
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.contact-social-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-social-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted-text);
  letter-spacing: -0.2px;
}

.contact-social-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--dark-text);
}

.contact-social-btn svg {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.contact-social-btn:hover svg {
  transform: scale(1.1);
}

.contact-social-btn.linkedin {
  color: #0A66C2;
  background: #F0F7FF;
  border-color: #BFDBFE;
}

.contact-social-btn.linkedin:hover {
  background: #0A66C2;
  color: #FFFFFF;
  border-color: #0A66C2;
}

.contact-social-btn.facebook {
  color: #1877F2;
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.contact-social-btn.facebook:hover {
  background: #1877F2;
  color: #FFFFFF;
  border-color: #1877F2;
}

.contact-form-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--dark-text);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* FAQ Accordion Section (Matching Mockup Design) */
.faq-section {
  max-width: 820px;
  margin: 36px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}

.faq-header {
  margin-bottom: 24px;
}

.faq-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 8px;
}

.faq-main-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--dark-text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.faq-subtitle {
  font-size: 14.5px;
  color: var(--muted-text);
  line-height: 1.6;
  margin: 0;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
}

.faq-accordion-item {
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  transition: all 0.25s ease;
}

.faq-accordion-item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-align: start;
  font-family: inherit;
  color: var(--dark-text);
  transition: color 0.2s ease;
}

.faq-accordion-header:hover {
  color: var(--primary);
}

.faq-question-text {
  font-size: 15.5px;
  font-weight: 800;
  color: inherit;
  line-height: 1.45;
}

.faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.faq-icon-plus {
  display: block;
}

.faq-icon-minus {
  display: none;
}

.faq-accordion-item.active .faq-icon-plus {
  display: none;
}

.faq-accordion-item.active .faq-icon-minus {
  display: block;
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, padding 0.28s ease;
  padding: 0;
}

.faq-accordion-item.active .faq-accordion-body {
  max-height: 300px;
  opacity: 1;
  padding-top: 10px;
  padding-bottom: 4px;
}

.faq-answer-text {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .faq-main-title {
    font-size: 21px;
  }
  .faq-subtitle {
    font-size: 13.5px;
  }
  .faq-question-text {
    font-size: 14.5px;
  }
  .faq-answer-text {
    font-size: 13.5px;
    line-height: 1.6;
  }
  .faq-accordion-item {
    padding: 13px 0;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER (ROYAL BLUE BOLD)
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background-color: var(--footer-bg);
  color: #FFFFFF;
  padding: 28px 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1.3fr;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-brand .brand-logo-img {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.footer-brand .brand-monogram {
  background: #FFFFFF;
  color: var(--primary);
}

.footer-brand .brand-name {
  color: #FFFFFF;
}

.footer-brand .brand-subtitle {
  color: #BFDBFE;
}

.footer-tagline {
  font-size: 13px;
  color: #DBEAFE;
  margin: 10px 0 16px;
  max-width: 280px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

.social-btn:hover {
  background-color: #FFFFFF;
  color: var(--primary);
  transform: translateY(-2px);
}

.social-btn:hover svg {
  transform: scale(1.12);
}

.footer-column-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: #DBEAFE;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}

.subscribe-desc {
  font-size: 12.5px;
  color: #DBEAFE;
  margin-bottom: 10px;
}

.subscribe-form {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 3px 5px;
}

.subscribe-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--dark-text);
  outline: none;
}

.subscribe-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.subscribe-btn:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #BFDBFE;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom-links a {
  color: #BFDBFE;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP & MODALS
   ═══════════════════════════════════════════════════════════════ */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: waPulse 2.5s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  padding: 32px;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted-text);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE ENGINE & SECTION HARMONY
   ═══════════════════════════════════════════════════════════════ */

/* Global Smooth Flow & Zero Horizontal Scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 1. Mobile Container & Typography Scaling */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* 2. Top Header & Nav Actions on Mobile */
@media (max-width: 540px) {
  .header-container {
    height: 56px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-logo-img {
    width: 34px;
    height: 34px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn-primary {
    display: none; /* Seamlessly accessible inside the mobile drawer */
  }
  .nav-actions .lang-toggle-btn {
    display: none !important; /* Removed from header on mobile, kept exclusively in drawer */
  }
  .mobile-nav-lang-wrap .lang-toggle-btn .lang-text {
    display: inline !important;
  }
  .hamburger {
    width: 22px;
    height: 16px;
  }
}

/* 3. Mobile Navigation Drawer Robustness */
.mobile-nav {
  max-height: calc(100vh - 58px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .mobile-nav {
    padding: 16px;
    gap: 10px;
  }
  .mobile-nav .nav-link {
    padding: 8px 12px;
    font-size: 14.5px;
    border-radius: var(--radius-sm);
  }
  .mobile-nav-lang-wrap {
    padding-top: 12px;
    gap: 10px;
    border-top: 1px solid var(--border-light);
  }
}

/* 4. Hero Section Mobile Optimization (Portrait Photo First) */
@media (max-width: 540px) {
  .hero {
    padding: 16px 0 20px;
  }
  .hero-grid {
    gap: 12px;
  }
  .hero-visual {
    display: flex !important;
    order: 1;
    min-height: auto;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    padding: 0;
    overflow: visible;
    position: relative;
  }
  .hero-portrait-wrap {
    width: 195px;
    height: 245px;
    max-width: 75vw;
    border-radius: 110px 110px 18px 18px;
    border: 3px solid #FFFFFF;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }
  .hero-tech-bg {
    width: 100%;
    height: 100%;
    max-width: 250px;
  }
  .hero-content {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
  }
  .hero-badge {
    font-size: 12px;
    letter-spacing: 0.2px;
    margin-bottom: 8px;
    justify-content: center;
    text-align: center;
  }
  .hero-title {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 8px;
    text-align: center;
  }
  .hero-subtitle {
    font-size: 15.5px;
    line-height: 1.45;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 700;
  }
  .hero-bio {
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 18px;
    text-align: center;
    max-width: 100%;
  }
  .hero-cta-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-btn-pill {
    width: auto !important;
    justify-content: center;
    padding: 9px 16px !important;
    font-size: 12.5px !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap;
  }
}

/* 5. Mobile Native Swipeable Filters */
@media (max-width: 640px) {
  .project-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
  }
  .project-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* 6. Form Inputs Full-Width on Mobile (Resolves Input Squishing) */
@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contact-form-box {
    padding: 16px 14px;
  }
  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 12px;
    font-size: 16px !important; /* Prevents unwanted iOS auto-zoom */
  }
}

/* 7. Modal Dialogs on Mobile */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 12px;
  }
  .modal-box {
    padding: 18px 14px;
    max-height: 94vh;
    border-radius: 14px;
  }
  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
  }
  body[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 10px;
  }
}

/* 8. Floating WhatsApp Sizing & Safe Margin */
@media (max-width: 540px) {
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
  body[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 16px;
  }
}

/* 9. Footer Touch Targets & Spacing */
@media (max-width: 580px) {
  .footer {
    padding: 24px 0 16px;
  }
  .footer-grid {
    gap: 20px;
  }
  .footer-tagline {
    max-width: 100%;
  }
}
