/* ============================================================
   Al-Ahd Premium Theme — Main Stylesheet
   Author: Al-Ahd Technology | v1.0.0
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Color palette */
  --alahd-bg:            #0a0a0f;
  --alahd-surface:       #12121a;
  --alahd-surface-2:     #1a1a28;
  --alahd-border:        rgba(255,255,255,.07);
  --alahd-text:          #e8e8f0;
  --alahd-text-muted:    rgba(232,232,240,.55);
  --alahd-accent:        #6c63ff;
  --alahd-accent-2:      #00d4ff;
  --alahd-accent-3:      #ff6584;
  --alahd-accent-4:      #43e97b;
  --alahd-gradient-1:    linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
  --alahd-gradient-2:    linear-gradient(135deg, #ff6584 0%, #6c63ff 100%);
  --alahd-gradient-3:    linear-gradient(135deg, #43e97b 0%, #00d4ff 100%);

  /* Glass */
  --alahd-glass-bg:      rgba(255,255,255,.04);
  --alahd-glass-border:  rgba(255,255,255,.08);
  --alahd-glass-blur:    blur(20px);

  /* Typography */
  --alahd-font-en:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --alahd-font-ar:       'Tajawal', 'Inter', sans-serif;
  --alahd-font:          var(--alahd-font-en);

  /* Spacing */
  --alahd-section-py:    120px;
  --alahd-container:     1240px;
  --alahd-radius:        16px;
  --alahd-radius-sm:     8px;
  --alahd-radius-lg:     24px;

  /* Shadows */
  --alahd-shadow:        0 8px 32px rgba(0,0,0,.4);
  --alahd-shadow-glow:   0 0 40px rgba(108,99,255,.25);

  /* Transition */
  --alahd-ease:          cubic-bezier(.25,.46,.45,.94);
  --alahd-ease-out:      cubic-bezier(0,.55,.45,1);
}

/* Light mode overrides */
html:not(.dark) body:not(.alahd-dark) {
  --alahd-bg:           #f5f5fa;
  --alahd-surface:      #ffffff;
  --alahd-surface-2:    #f0f0f8;
  --alahd-border:       rgba(0,0,0,.07);
  --alahd-text:         #1a1a2e;
  --alahd-text-muted:   rgba(26,26,46,.55);
  --alahd-glass-bg:     rgba(255,255,255,.7);
  --alahd-glass-border: rgba(0,0,0,.08);
  --alahd-shadow:       0 8px 32px rgba(0,0,0,.1);
}

/* RTL font */
.alahd-rtl,
html[dir="rtl"] {
  --alahd-font: var(--alahd-font-ar);
  direction: rtl;
}

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

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

body.alahd-site {
  font-family: var(--alahd-font);
  background: var(--alahd-bg);
  color: var(--alahd-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--alahd-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Navbar ───────────────────────────────────────── */
.alahd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background .3s var(--alahd-ease), box-shadow .3s var(--alahd-ease);
}

.alahd-header.scrolled {
  background: var(--alahd-glass-bg);
  backdrop-filter: var(--alahd-glass-blur);
  -webkit-backdrop-filter: var(--alahd-glass-blur);
  border-bottom: 1px solid var(--alahd-glass-border);
  box-shadow: var(--alahd-shadow);
}

.alahd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* ── Logo with real image ──────────────────────────────────── */
.alahd-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 52px;
}

.alahd-logo__image {
    height: 100%;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: transform 0.25s var(--alahd-ease);
}

.alahd-logo:hover .alahd-logo__image {
    transform: scale(1.04);
}

/* Optional: make it a bit smaller on mobile */
@media (max-width: 768px) {
    .alahd-logo__image {
        max-width: 180px;
    }
}
/* Nav links */
.alahd-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alahd-nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--alahd-text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  transition: color .25s var(--alahd-ease), background .25s var(--alahd-ease);
  white-space: nowrap;
}

.alahd-nav__link:hover,
.alahd-nav__link.active {
  color: var(--alahd-text);
  background: var(--alahd-glass-bg);
}

/* Controls */
.alahd-nav__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.alahd-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--alahd-text-muted);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  transition: color .25s, background .25s, transform .2s;
}

.alahd-btn-icon:hover { color: var(--alahd-text); background: var(--alahd-surface-2); transform: scale(1.08); }

/* Icon visibility per mode */
.alahd-dark .alahd-icon-sun { display: none; }
.alahd-dark .alahd-icon-moon { display: block; }
:not(.alahd-dark) .alahd-icon-sun { display: block; }
:not(.alahd-dark) .alahd-icon-moon { display: none; }

/* Hamburger */
.alahd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.alahd-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--alahd-text);
  border-radius: 2px;
  transition: transform .3s var(--alahd-ease), opacity .3s;
}

.alahd-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.alahd-hamburger.open span:nth-child(2) { opacity: 0; }
.alahd-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ───────────────────────────────────────────────── */
.alahd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .25s var(--alahd-ease), box-shadow .25s var(--alahd-ease), opacity .25s;
  cursor: pointer;
  white-space: nowrap;
}

.alahd-btn--primary {
  background: var(--alahd-gradient-1);
  color: #fff;
  box-shadow: 0 4px 24px rgba(108,99,255,.4);
}

.alahd-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,.55); }

.alahd-btn--outline {
  background: transparent;
  color: var(--alahd-text);
  border: 1px solid var(--alahd-border);
}

.alahd-btn--outline:hover {
  border-color: var(--alahd-accent);
  color: var(--alahd-accent);
  transform: translateY(-2px);
}

.alahd-btn--full { width: 100%; }

/* ── Section Shared ────────────────────────────────────────── */
.alahd-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.alahd-section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(108,99,255,.15);
  color: var(--alahd-accent);
  border: 1px solid rgba(108,99,255,.25);
  margin-bottom: 16px;
}

.alahd-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  background: var(--alahd-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.alahd-section-subtitle {
  font-size: 1.05rem;
  color: var(--alahd-text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.alahd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(108,99,255,.12);
  color: var(--alahd-accent);
  border: 1px solid rgba(108,99,255,.2);
  margin-bottom: 24px;
}

.alahd-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--alahd-accent);
  box-shadow: 0 0 8px var(--alahd-accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

/* ── Hero ──────────────────────────────────────────────────── */
.alahd-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.alahd-hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.alahd-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}

.alahd-orb--1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, #6c63ff 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: float-orb 12s ease-in-out infinite;
}

.alahd-orb--2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: float-orb 15s ease-in-out infinite reverse;
}

.alahd-orb--3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #ff6584 0%, transparent 70%);
  top: 40%; left: 50%;
  animation: float-orb 10s ease-in-out infinite 3s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(.95); }
}

.alahd-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.alahd-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.alahd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.alahd-hero__content { max-width: 580px; }

.alahd-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  color: var(--alahd-text);
}

.alahd-hero__subtitle {
  font-size: 1.1rem;
  color: var(--alahd-text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.alahd-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Hero visual — 3D floating device */
.alahd-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.alahd-device-frame {
  width: 320px;
  height: 420px;
  border-radius: 24px;
  border: 2px solid var(--alahd-glass-border);
  background: var(--alahd-glass-bg);
  backdrop-filter: var(--alahd-glass-blur);
  -webkit-backdrop-filter: var(--alahd-glass-blur);
  box-shadow: var(--alahd-shadow-glow), 0 40px 80px rgba(0,0,0,.5);
  overflow: hidden;
  animation: device-float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
}

@keyframes device-float {
  0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-6deg); }
  50% { transform: translateY(-18px) rotateX(6deg) rotateY(-4deg); }
}

.alahd-device-screen {
  padding: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alahd-code-block { width: 100%; display: flex; flex-direction: column; gap: 14px; }

.alahd-code-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--alahd-gradient-1);
  opacity: .7;
  animation: code-blink 2s ease-in-out infinite;
}

.alahd-code-line--1 { width: 80%; animation-delay: 0s; }
.alahd-code-line--2 { width: 60%; opacity: .5; animation-delay: .3s; background: var(--alahd-gradient-3); }
.alahd-code-line--3 { width: 90%; animation-delay: .6s; }
.alahd-code-line--4 { width: 40%; opacity: .4; animation-delay: .9s; background: var(--alahd-gradient-2); }
.alahd-code-line--5 { width: 70%; animation-delay: 1.2s; background: var(--alahd-gradient-3); }

@keyframes code-blink {
  0%, 100% { opacity: .7; }
  50% { opacity: .3; }
}

.alahd-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--alahd-glass-bg);
  backdrop-filter: var(--alahd-glass-blur);
  -webkit-backdrop-filter: var(--alahd-glass-blur);
  border: 1px solid var(--alahd-glass-border);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--alahd-shadow);
}

.alahd-floating-card--1 { top: 10%; left: -20%; animation: float-card 5s ease-in-out infinite; }
.alahd-floating-card--2 { bottom: 15%; right: -18%; animation: float-card 5s ease-in-out infinite 2.5s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

.alahd-floating-card__dot--green { background: var(--alahd-accent-4); box-shadow: 0 0 8px var(--alahd-accent-4); }

/* Scroll hint */
.alahd-hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.alahd-scroll-indicator {
  width: 24px; height: 40px;
  border: 2px solid var(--alahd-border);
  border-radius: 12px;
  position: relative;
}

.alahd-scroll-indicator::after {
  content: '';
  position: absolute;
  width: 4px; height: 8px;
  background: var(--alahd-accent);
  border-radius: 2px;
  top: 6px;
  left: 50%; transform: translateX(-50%);
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: .3; }
}

/* ── Stats ─────────────────────────────────────────────────── */
.alahd-stats {
  padding: 60px 0;
  position: relative;
}

.alahd-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,.06) 0%, rgba(0,212,255,.06) 100%);
  border-top: 1px solid var(--alahd-border);
  border-bottom: 1px solid var(--alahd-border);
}

.alahd-stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.alahd-stat-card { padding: 24px; }

.alahd-stat-card__number {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  background: var(--alahd-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.alahd-stat-card__label {
  font-size: .95rem;
  color: var(--alahd-text-muted);
  font-weight: 500;
}

/* ── Services ──────────────────────────────────────────────── */
.alahd-services {
  padding: var(--alahd-section-py) 0;
}

.alahd-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.alahd-service-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--alahd-radius-lg);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  backdrop-filter: var(--alahd-glass-blur);
  -webkit-backdrop-filter: var(--alahd-glass-blur);
  overflow: hidden;
  transition: transform .35s var(--alahd-ease), box-shadow .35s var(--alahd-ease);
}

.alahd-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 0 1px var(--service-color, var(--alahd-accent));
}

.alahd-service-card:hover .alahd-service-card__border {
  opacity: 1;
}

.alahd-service-card__border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--service-color, var(--alahd-accent)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--alahd-ease);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.alahd-service-card__icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
  color: var(--service-color, var(--alahd-accent));
  transition: transform .35s var(--alahd-ease);
}

.alahd-service-card:hover .alahd-service-card__icon {
  transform: scale(1.15) rotate(8deg);
}

.alahd-service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--alahd-text);
}

.alahd-service-card__desc {
  font-size: .9rem;
  color: var(--alahd-text-muted);
  line-height: 1.7;
}

/* Top-left glow corner */
.alahd-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 80px;
  border-radius: 0 0 80px 0;
  background: var(--service-color, var(--alahd-accent));
  opacity: .08;
  transition: opacity .35s;
}

.alahd-service-card:hover::before { opacity: .18; }

/* ── About ─────────────────────────────────────────────────── */
.alahd-about {
  padding: var(--alahd-section-py) 0;
  position: relative;
}

.alahd-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.alahd-about__img-wrap { position: relative; }

.alahd-about__img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--alahd-radius-lg);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.alahd-about__hex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 40px;
  width: 100%;
}

.alahd-hex {
  aspect-ratio: 1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: var(--alahd-gradient-1);
  opacity: .4;
  animation: hex-pulse 3s ease-in-out infinite;
}

@keyframes hex-pulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.06); }
}

.alahd-about__badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--alahd-gradient-1);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--alahd-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--alahd-shadow-glow);
  animation: device-float 6s ease-in-out infinite 2s;
}

.alahd-about__badge-float span { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.alahd-about__badge-float small { font-size: .72rem; opacity: .8; margin-top: 2px; }

.alahd-about__content > p {
  color: var(--alahd-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.alahd-blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--alahd-accent);
  background: rgba(108,99,255,.06);
  border-radius: 0 var(--alahd-radius-sm) var(--alahd-radius-sm) 0;
}

.alahd-rtl .alahd-blockquote {
  border-left: none;
  border-right: 3px solid var(--alahd-accent);
  border-radius: var(--alahd-radius-sm) 0 0 var(--alahd-radius-sm);
}

.alahd-blockquote__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--alahd-accent);
  margin-bottom: 8px;
}

.alahd-blockquote p {
  font-style: italic;
  color: var(--alahd-text);
  font-size: 1.0rem;
}

.alahd-about__pillars { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }

.alahd-pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.alahd-pillar__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--alahd-radius-sm);
  background: var(--alahd-gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: #fff;
  margin-top: 2px;
}

.alahd-pillar strong { display: block; font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.alahd-pillar p { font-size: .875rem; color: var(--alahd-text-muted); margin: 0; }

/* ── Projects ──────────────────────────────────────────────── */
.alahd-projects {
  padding: var(--alahd-section-py) 0;
  background: linear-gradient(135deg, rgba(108,99,255,.03) 0%, rgba(0,212,255,.03) 100%);
  border-top: 1px solid var(--alahd-border);
  border-bottom: 1px solid var(--alahd-border);
}

.alahd-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.alahd-project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--alahd-radius-lg);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  overflow: hidden;
  transition: transform .35s var(--alahd-ease), box-shadow .35s var(--alahd-ease);
}

.alahd-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px var(--project-color, var(--alahd-accent));
}

.alahd-project-card__header {
  padding: 32px 32px 0;
  position: relative;
}

.alahd-project-card__cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--project-color, var(--alahd-accent));
  padding: 4px 12px;
  background: color-mix(in srgb, var(--project-color, var(--alahd-accent)) 15%, transparent);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--project-color, var(--alahd-accent)) 30%, transparent);
}

.alahd-project-card__glow {
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--project-color, var(--alahd-accent)) 0%, transparent 70%);
  opacity: .08;
  pointer-events: none;
}

.alahd-project-card:hover .alahd-project-card__glow { opacity: .18; }

.alahd-project-card__body {
  padding: 20px 32px;
  flex: 1;
}

.alahd-project-card__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--alahd-text);
}

.alahd-project-card__body p {
  font-size: .875rem;
  color: var(--alahd-text-muted);
  line-height: 1.7;
}

.alahd-project-card__footer {
  padding: 16px 32px 24px;
}

.alahd-tech-stack { display: flex; flex-wrap: wrap; gap: 6px; }

.alahd-tech-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-border);
  color: var(--alahd-text-muted);
}

/* ── Contact ───────────────────────────────────────────────── */
.alahd-contact { padding: var(--alahd-section-py) 0; }

.alahd-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.alahd-contact__info .alahd-section-title { text-align: left; }
.alahd-contact__info .alahd-section-subtitle { text-align: left; margin: 0 0 40px; }

.alahd-contact__details { display: flex; flex-direction: column; gap: 24px; }

.alahd-contact__detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.alahd-contact__detail-icon {
  width: 44px; height: 44px;
  border-radius: var(--alahd-radius-sm);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.alahd-contact__detail-item strong { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 2px; }
.alahd-contact__detail-item span,
.alahd-contact__detail-item a {
  font-size: .9rem;
  color: var(--alahd-text-muted);
  transition: color .2s;
}
.alahd-contact__detail-item a:hover { color: var(--alahd-accent); }

/* Form */
.alahd-form {
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  border-radius: var(--alahd-radius-lg);
  padding: 40px;
  backdrop-filter: var(--alahd-glass-blur);
  -webkit-backdrop-filter: var(--alahd-glass-blur);
}

.alahd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.alahd-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.alahd-form__group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--alahd-text);
  letter-spacing: .02em;
}

.alahd-form__group input,
.alahd-form__group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--alahd-radius-sm);
  background: var(--alahd-surface-2);
  border: 1px solid var(--alahd-border);
  color: var(--alahd-text);
  font-size: .9rem;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  resize: none;
}

.alahd-form__group input:focus,
.alahd-form__group textarea:focus {
  border-color: var(--alahd-accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

.alahd-form__group input::placeholder,
.alahd-form__group textarea::placeholder { color: var(--alahd-text-muted); }

/* Form status */
.alahd-form__status {
  padding: 12px 16px;
  border-radius: var(--alahd-radius-sm);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}

.alahd-form__status.success { background: rgba(67,233,123,.12); border: 1px solid rgba(67,233,123,.3); color: #43e97b; display: block; }
.alahd-form__status.error   { background: rgba(255,101,132,.12); border: 1px solid rgba(255,101,132,.3); color: #ff6584; display: block; }

/* Submit btn loader */
.alahd-btn__loader {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.alahd-btn.loading .alahd-btn__text { display: none; }
.alahd-btn.loading .alahd-btn__loader { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ────────────────────────────────────────────────── */
.alahd-footer {
  position: relative;
  background: var(--alahd-surface);
  border-top: 1px solid var(--alahd-border);
  padding: 80px 0 0;
  overflow: hidden;
}

.alahd-footer__glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(108,99,255,.15) 0%, transparent 70%);
  pointer-events: none;
}

.alahd-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.alahd-footer__brand p {
  font-size: .875rem;
  color: var(--alahd-text-muted);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}

.alahd-footer__links h4,
.alahd-footer__services h4,
.alahd-footer__contact h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--alahd-text);
  margin-bottom: 16px;
}

.alahd-footer__links ul li,
.alahd-footer__services ul li,
.alahd-footer__contact ul li { margin-bottom: 10px; }

.alahd-footer__links a,
.alahd-footer__services a,
.alahd-footer__contact a,
.alahd-footer__contact span {
  font-size: .875rem;
  color: var(--alahd-text-muted);
  transition: color .2s;
}

.alahd-footer__links a:hover,
.alahd-footer__services a:hover,
.alahd-footer__contact a:hover { color: var(--alahd-accent); }

.alahd-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.alahd-social-link {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--alahd-text-muted);
  transition: color .2s, background .2s, transform .2s;
}

.alahd-social-link:hover { color: #fff; background: var(--alahd-accent); transform: translateY(-2px); }

.alahd-footer__bottom {
  border-top: 1px solid var(--alahd-border);
  padding: 20px 24px;
  text-align: center;
}

.alahd-footer__bottom p {
  font-size: .8rem;
  color: var(--alahd-text-muted);
}

/* ── AOS (Animate on Scroll) — embedded minimal ─────────────── */
[data-aos] {
  opacity: 0;
  transition: opacity .7s var(--alahd-ease), transform .7s var(--alahd-ease);
}

[data-aos="fade-up"]   { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="fade-right"]{ transform: translateX(-40px); }
[data-aos="zoom-in"]   { transform: scale(.92); }

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* Disable if no animations */
body:not(.alahd-animations) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── Mobile Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .alahd-services__grid,
  .alahd-projects__grid { grid-template-columns: repeat(2, 1fr); }
  .alahd-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .alahd-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --alahd-section-py: 72px; }

  .alahd-nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--alahd-surface);
    border-bottom: 1px solid var(--alahd-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .35s var(--alahd-ease);
    z-index: 999;
  }

  .alahd-nav__links.open { transform: translateY(0); }

  .alahd-nav__link { width: 100%; padding: 12px 16px; border-radius: var(--alahd-radius-sm); }

  .alahd-hamburger { display: flex; }

  .alahd-hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .alahd-hero__visual { display: none; }
  .alahd-hero__cta { justify-content: center; }

  .alahd-about__inner { grid-template-columns: 1fr; gap: 48px; }
  .alahd-about__visual { display: none; }

  .alahd-services__grid,
  .alahd-projects__grid,
  .alahd-products__grid { grid-template-columns: 1fr; }

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

  .alahd-contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .alahd-form__row { grid-template-columns: 1fr; }

  .alahd-footer__inner { grid-template-columns: 1fr; }

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

  .alahd-contact__info .alahd-section-title,
  .alahd-contact__info .alahd-section-subtitle { text-align: center; }
}

@media (max-width: 480px) {
  .alahd-stats__grid { grid-template-columns: 1fr 1fr; }
  .alahd-form { padding: 24px; }
}

/* ── Products Section ──────────────────────────────────────── */
.alahd-products {
  padding: var(--alahd-section-py) 0;
}

.alahd-products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.alahd-product-card {
  border-radius: var(--alahd-radius-lg);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  backdrop-filter: var(--alahd-glass-blur);
  -webkit-backdrop-filter: var(--alahd-glass-blur);
  overflow: hidden;
  transition: transform .35s var(--alahd-ease), box-shadow .35s var(--alahd-ease);
  cursor: default;
}

.alahd-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0,0,0,.3), 0 0 0 1px var(--product-color, #6c63ff);
}

.alahd-product-card__header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.alahd-product-card__glow {
  position: absolute;
  top: 0; right: 0;
  width: 110px; height: 110px;
  background: radial-gradient(circle, var(--product-color, #6c63ff), transparent 70%);
  opacity: .1;
  pointer-events: none;
}

.alahd-rtl .alahd-product-card__glow { right: auto; left: 0; }

.alahd-product-card__icon-wrap {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--product-color, #6c63ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--product-color, #6c63ff) 25%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.alahd-product-card__text { flex: 1; }

.alahd-product-card__text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--alahd-text);
  margin-bottom: 6px;
}

.alahd-product-card__text p {
  font-size: .83rem;
  color: var(--alahd-text-muted);
  line-height: 1.7;
}

.alahd-product-card__features {
  padding: 0 24px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alahd-product-tag {
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-color, #6c63ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--product-color, #6c63ff) 28%, transparent);
  color: var(--product-color, #6c63ff);
}

/* Our Services sub-section */
.alahd-our-services {
  margin-top: 72px;
  padding: 64px 0;
  background: linear-gradient(135deg, rgba(108,99,255,.04), rgba(0,212,255,.04));
  border-top: 1px solid var(--alahd-border);
  border-bottom: 1px solid var(--alahd-border);
}

.alahd-our-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.alahd-our-service-item {
  padding: 20px 16px;
  border-radius: var(--alahd-radius);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  text-align: center;
  transition: transform .25s var(--alahd-ease), box-shadow .25s var(--alahd-ease);
  cursor: default;
}

.alahd-our-service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(108,99,255,.15);
}

.alahd-our-service-item__icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.alahd-our-service-item__label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--alahd-text);
}

/* ── RTL Adjustments ───────────────────────────────────────── */
.alahd-rtl .alahd-hero__inner,
.alahd-rtl .alahd-about__inner,
.alahd-rtl .alahd-contact__inner {
  direction: rtl;
}

.alahd-rtl .alahd-nav__links { direction: rtl; }

.alahd-rtl .alahd-floating-card--1 { left: auto; right: -20%; }
.alahd-rtl .alahd-floating-card--2 { right: auto; left: -18%; }

.alahd-rtl .alahd-about__badge-float {
  right: auto;
  left: -20px;
}

/* ============================================================
   Al-Ahd Premium Theme — v1.1 additions
   Always-visible navbar, dropdowns, page headers,
   breadcrumbs, detail pages, highlights, CTA band.
   ============================================================ */

/* ── Always-visible sticky header ──────────────────────────── */
.alahd-header {
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html:not(.dark) body:not(.alahd-dark) .alahd-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.alahd-header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

html:not(.dark) body:not(.alahd-dark) .alahd-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
}

/* Push main content below the fixed header */
body.alahd-site .alahd-main {
  padding-top: 0;
}
body.alahd-site:not(.alahd-route-home) .alahd-main {
  padding-top: 72px;
}

/* ── Nav dropdowns ─────────────────────────────────────────── */
.alahd-nav__item--has-dropdown {
  position: relative;
}

.alahd-nav__link--has-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.alahd-nav__arrow {
  font-size: 0.7em;
  transition: transform 0.25s var(--alahd-ease);
}

.alahd-nav__item--has-dropdown:hover .alahd-nav__arrow,
.alahd-nav__item--has-dropdown.is-open .alahd-nav__arrow {
  transform: rotate(180deg);
}

.alahd-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 280px;
  background: var(--alahd-surface);
  border: 1px solid var(--alahd-border);
  border-radius: var(--alahd-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--alahd-ease), transform 0.22s var(--alahd-ease), visibility 0.22s;
  z-index: 1100;
}

.alahd-dropdown--wide {
  min-width: 340px;
  max-height: 70vh;
  overflow-y: auto;
}

html:not(.dark) body:not(.alahd-dark) .alahd-dropdown {
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.alahd-nav__item--has-dropdown:hover .alahd-dropdown,
.alahd-nav__item--has-dropdown:focus-within .alahd-dropdown,
.alahd-nav__item--has-dropdown.is-open .alahd-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.alahd-dropdown::before {
  content: "";
  position: absolute;
  inset: -10px 0 100% 0;
  pointer-events: auto;
}

.alahd-dropdown__head {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: var(--alahd-radius-sm);
  background: var(--alahd-glass-bg);
  margin-bottom: 4px;
}
.alahd-dropdown__head strong {
  font-size: 0.92rem;
  color: var(--alahd-text);
  font-weight: 700;
}
.alahd-dropdown__head span {
  font-size: 0.78rem;
  color: var(--alahd-text-muted);
  margin-top: 2px;
}
.alahd-dropdown__head:hover {
  background: var(--alahd-surface-2);
}

.alahd-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--alahd-radius-sm);
  color: var(--alahd-text);
  transition: background 0.2s var(--alahd-ease), transform 0.2s var(--alahd-ease);
}

.alahd-dropdown__item:hover {
  background: var(--alahd-glass-bg);
  transform: translateX(2px);
}
.alahd-rtl .alahd-dropdown__item:hover {
  transform: translateX(-2px);
}

.alahd-dropdown__item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--svc-color, #6c63ff) 18%, transparent);
  color: var(--svc-color, #6c63ff);
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--svc-color, #6c63ff) 30%, transparent);
}

.alahd-dropdown__item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.alahd-dropdown__item-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--alahd-text);
}

/* RTL flip for dropdown anchor */
.alahd-rtl .alahd-dropdown {
  left: 50%;
  transform: translate(-50%, 6px);
}

/* ── Page Header (every non-home route) ────────────────────── */
.alahd-pageheader {
  position: relative;
  padding: 96px 0 56px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.alahd-pageheader__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.alahd-pageheader__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 14px 0 12px;
  background: var(--alahd-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.alahd-pageheader__subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--alahd-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Breadcrumbs ───────────────────────────────────────────── */
.alahd-breadcrumbs {
  margin-top: 22px;
}
.alahd-breadcrumbs ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--alahd-text-muted);
}
.alahd-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.alahd-breadcrumbs li + li::before {
  content: "›";
  margin: 0 4px;
  color: var(--alahd-text-muted);
}
.alahd-rtl .alahd-breadcrumbs li + li::before {
  content: "‹";
}
.alahd-breadcrumbs a {
  color: var(--alahd-text-muted);
  transition: color 0.2s;
}
.alahd-breadcrumbs a:hover {
  color: var(--alahd-accent);
}
.alahd-breadcrumbs [aria-current="page"] {
  color: var(--alahd-text);
  font-weight: 600;
}

/* ── Highlights row (home) ─────────────────────────────────── */
.alahd-highlights {
  padding: 80px 0 40px;
}
.alahd-highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.alahd-highlight-card {
  --service-color: var(--alahd-accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px;
  border-radius: var(--alahd-radius);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  color: var(--alahd-text);
  transition: transform 0.3s var(--alahd-ease), border-color 0.3s, box-shadow 0.3s;
}
.alahd-highlight-card:hover {
  transform: translateY(-6px);
  border-color: var(--service-color);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--service-color) 22%, transparent);
}
.alahd-highlight-card__icon {
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--service-color) 18%, transparent);
  color: var(--service-color);
}
.alahd-highlight-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 4px 0 0;
}
.alahd-highlight-card__desc {
  color: var(--alahd-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex-grow: 1;
}
.alahd-highlight-card__cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--service-color);
}

/* ── Section foot (CTA buttons under sections) ─────────────── */
.alahd-section-foot {
  text-align: center;
  margin-top: 48px;
}

/* ── About summary (home) ──────────────────────────────────── */
.alahd-about-summary {
  padding: 80px 0;
}
.alahd-about-summary__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.alahd-about-summary__visual {
  border-radius: var(--alahd-radius-lg);
  background: var(--alahd-surface);
  border: 1px solid var(--alahd-border);
  padding: 40px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alahd-about-summary__content h2 {
  margin: 12px 0 18px;
}
.alahd-about-summary__content p {
  color: var(--alahd-text-muted);
  margin-bottom: 24px;
  font-size: 1.02rem;
}

/* ── CTA band ──────────────────────────────────────────────── */
.alahd-cta-band {
  padding: 80px 0;
}
.alahd-cta-band__inner {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(0, 212, 255, 0.12));
  border: 1px solid rgba(108, 99, 255, 0.28);
  border-radius: var(--alahd-radius-lg);
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.alahd-cta-band__inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--alahd-gradient-1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.alahd-cta-band__inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  background: var(--alahd-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.alahd-cta-band__inner p {
  color: var(--alahd-text-muted);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1rem;
}

/* ── Service / Product detail pages ────────────────────────── */
.alahd-detail {
  padding: 64px 0 96px;
}
.alahd-detail__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.alahd-detail__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: color-mix(in srgb, var(--service-color, #6c63ff) 18%, transparent);
  color: var(--service-color, #6c63ff);
  border: 1px solid color-mix(in srgb, var(--service-color, #6c63ff) 30%, transparent);
  margin-bottom: 24px;
}
.alahd-detail__lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--alahd-text);
  margin-bottom: 32px;
}
.alahd-detail__h {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 20px 0 16px;
  color: var(--alahd-text);
}
.alahd-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.alahd-detail__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--alahd-radius-sm);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  font-size: 0.9rem;
  color: var(--alahd-text);
}
.alahd-detail__list li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--alahd-gradient-1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.alahd-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.alahd-detail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.alahd-detail__side {
  position: sticky;
  top: 96px;
  background: var(--alahd-surface);
  border: 1px solid var(--alahd-border);
  border-radius: var(--alahd-radius-lg);
  padding: 28px;
}
.alahd-detail__side h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--alahd-text);
}
.alahd-detail__related {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.alahd-detail__related a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--alahd-radius-sm);
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  color: var(--alahd-text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.alahd-detail__related a:hover {
  transform: translateX(4px);
  border-color: var(--svc-color, var(--alahd-accent));
  background: var(--alahd-surface-2);
}
.alahd-rtl .alahd-detail__related a:hover {
  transform: translateX(-4px);
}
.alahd-detail__related-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--svc-color, #6c63ff) 18%, transparent);
  color: var(--svc-color, #6c63ff);
  font-size: 1rem;
}
.alahd-detail__related a strong {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Hover behavior for service / product cards (override JS tilt) */
.alahd-service-card,
.alahd-product-card {
  display: flex;
  flex-direction: column;
}
.alahd-service-card__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--service-color, var(--alahd-accent));
}

/* ── Mobile menu (improved drawer) ─────────────────────────── */
@media (max-width: 1024px) {
  .alahd-hamburger {
    display: flex;
  }

  .alahd-nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 24px 80px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--alahd-surface);
    border-top: 1px solid var(--alahd-border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 1050;
  }

  .alahd-nav__links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .alahd-nav__link {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--alahd-radius-sm);
    font-size: 0.95rem;
    background: var(--alahd-glass-bg);
    border: 1px solid var(--alahd-glass-border);
  }

  .alahd-nav__item--has-dropdown {
    display: flex;
    flex-direction: column;
  }

  .alahd-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 14px;
    min-width: 0;
    max-height: none;
    display: none;
  }
  .alahd-rtl .alahd-dropdown {
    padding: 4px 14px 4px 0;
  }

  .alahd-nav__item--has-dropdown.is-open .alahd-dropdown {
    display: flex;
  }

  .alahd-dropdown__head {
    display: none;
  }

  .alahd-dropdown__item {
    background: var(--alahd-glass-bg);
    border: 1px solid var(--alahd-glass-border);
    margin-top: 4px;
  }
}

/* ── Responsive grids ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .alahd-highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .alahd-detail__grid { grid-template-columns: 1fr; }
  .alahd-detail__side { position: static; }
  .alahd-about-summary__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .alahd-pageheader { padding: 72px 0 40px; }
  .alahd-detail__list { grid-template-columns: 1fr; }
  .alahd-services__grid,
  .alahd-products__grid,
  .alahd-projects__grid { grid-template-columns: 1fr !important; }
  .alahd-our-services__grid { grid-template-columns: repeat(2, 1fr); }
  .alahd-stats__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .alahd-cta-band__inner { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .alahd-highlights__grid { grid-template-columns: 1fr; }
  .alahd-our-services__grid { grid-template-columns: 1fr; }
  .alahd-stats__grid { grid-template-columns: 1fr !important; }
  .alahd-nav { gap: 8px; }
  .alahd-logo__sub { display: none; }
}

/* ── RTL: form align + slight tweaks ───────────────────────── */
.alahd-rtl .alahd-form input,
.alahd-rtl .alahd-form textarea {
  text-align: right;
}
.alahd-rtl .alahd-form input[type="email"] {
  text-align: left;
  direction: ltr;
}

.alahd-rtl .alahd-detail__cta { justify-content: flex-end; }
.alahd-rtl .alahd-section-foot { text-align: center; }

/* Disable expensive tilt on detail page sticky sidebar */
.alahd-detail .alahd-service-card,
.alahd-detail .alahd-product-card { transform: none !important; }

/* Make sure light-mode text stays readable on the floating header */
html:not(.dark) body:not(.alahd-dark) .alahd-nav__link {
  color: rgba(26, 26, 46, 0.7);
}
html:not(.dark) body:not(.alahd-dark) .alahd-nav__link:hover,
html:not(.dark) body:not(.alahd-dark) .alahd-nav__link.active {
  color: #1a1a2e;
  background: rgba(108, 99, 255, 0.1);
}

/* Ensure logo gradient stays visible in light mode */
html:not(.dark) body:not(.alahd-dark) .alahd-logo__primary {
  background: var(--alahd-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Disable the custom JS cursor on touch devices (already handled in JS) */
@media (pointer: coarse) {
  .alahd-cursor-dot,
  .alahd-cursor-ring { display: none !important; }
}

/* Hide the lang/theme icons fallback if both classes show simultaneously */
.alahd-lang-toggle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: auto;
  min-width: 38px;
  padding: 0 12px;
}

/* CTA full button styling with loader compatibility */
.alahd-btn__loader { display: none; }
.alahd-btn.loading .alahd-btn__loader {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  animation: alahd-spin 0.8s linear infinite;
}
.alahd-btn.loading .alahd-btn__text { opacity: 0.65; }
@keyframes alahd-spin { to { transform: rotate(360deg); } }


/* ============================================================
   Al-Ahd Premium Theme — v1.2 fixes
   - Navbar position (account for WP admin bar)
   - Redesigned footer
   - Smooth page transitions
   ============================================================ */

/* ── Navbar: stay flush to the top, even with WP admin bar ── */
html { margin-top: 0 !important; }                /* override WP admin bar shim */
* html body { margin-top: 0 !important; }

.alahd-header { top: 0 !important; }

body.admin-bar .alahd-header { top: 32px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar .alahd-header { top: 46px !important; }
}

/* Mobile drawer should sit just under the header at all times */
@media (max-width: 1024px) {
  .alahd-nav__links { top: 72px; }
  body.admin-bar .alahd-nav__links { top: 104px; }
}
@media (max-width: 782px) {
  body.admin-bar .alahd-nav__links { top: 118px; }
}

/* Lock body when mobile drawer is open */
body.alahd-menu-open { overflow: hidden; }

/* ── Page enter animation (fade + tiny lift) ───────────────── */
@keyframes alahd-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.alahd-main {
  animation: alahd-page-in 0.45s var(--alahd-ease) both;
}
@media (prefers-reduced-motion: reduce) {
  .alahd-main { animation: none; }
}

/* ============================================================
   Redesigned footer
   ============================================================ */
.alahd-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 80px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(108, 99, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 212, 255, 0.12), transparent 55%),
    var(--alahd-surface);
  border-top: 1px solid var(--alahd-border);
  color: var(--alahd-text);
}

html:not(.dark) body:not(.alahd-dark) .alahd-footer {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(108, 99, 255, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 212, 255, 0.08), transparent 55%),
    var(--alahd-surface-2);
}

.alahd-footer__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.4; pointer-events: none; }

.alahd-footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding: 80px 24px 48px;
}

.alahd-footer__brand .alahd-logo { margin-bottom: 16px; }
.alahd-footer__tagline {
  color: var(--alahd-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 24px;
}

/* Newsletter inline form */
.alahd-footer__newsletter {
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  border-radius: var(--alahd-radius);
  padding: 20px;
  margin-bottom: 24px;
  max-width: 360px;
}
.alahd-footer__newsletter strong {
  display: block;
  font-size: 0.95rem;
  color: var(--alahd-text);
  margin-bottom: 4px;
}
.alahd-footer__newsletter span {
  display: block;
  font-size: 0.82rem;
  color: var(--alahd-text-muted);
  margin-bottom: 14px;
}
.alahd-footer__newsletter-form {
  display: flex;
  gap: 8px;
}
.alahd-footer__newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--alahd-bg);
  border: 1px solid var(--alahd-border);
  color: var(--alahd-text);
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.alahd-footer__newsletter-form input::placeholder {
  color: var(--alahd-text-muted);
}
.alahd-footer__newsletter-form input:focus {
  outline: none;
  border-color: var(--alahd-accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.18);
}
.alahd-footer__newsletter-form button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--alahd-gradient-1);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}
.alahd-footer__newsletter-form button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 22px rgba(108, 99, 255, 0.55);
}

/* Socials */
.alahd-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.alahd-footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--alahd-glass-bg);
  border: 1px solid var(--alahd-glass-border);
  color: var(--alahd-text-muted);
  transition: transform 0.25s var(--alahd-ease),
              background 0.25s var(--alahd-ease),
              color 0.25s var(--alahd-ease),
              border-color 0.25s var(--alahd-ease),
              box-shadow 0.25s var(--alahd-ease);
}
.alahd-footer__socials a:hover {
  transform: translateY(-3px);
  background: var(--alahd-gradient-1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(108, 99, 255, 0.45);
}

/* Footer columns */
.alahd-footer__col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alahd-text);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
.alahd-footer__col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--alahd-gradient-1);
}
.alahd-rtl .alahd-footer__col h4::after { left: auto; right: 0; }

.alahd-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.alahd-footer__col a {
  font-size: 0.9rem;
  color: var(--alahd-text-muted);
  transition: color 0.2s, padding-left 0.2s, padding-right 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.alahd-footer__col a:hover {
  color: var(--alahd-accent);
  padding-left: 6px;
}
.alahd-rtl .alahd-footer__col a:hover {
  padding-left: 0;
  padding-right: 6px;
}
.alahd-footer__col a::before {
  content: "›";
  color: var(--alahd-accent);
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}
.alahd-rtl .alahd-footer__col a::before {
  content: "‹";
  transform: translateX(4px);
}
.alahd-footer__col a:hover::before {
  opacity: 1;
  transform: none;
}

/* Contact rows */
.alahd-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--alahd-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.alahd-footer__contact li a {
  padding: 0;
  color: var(--alahd-text-muted);
}
.alahd-footer__contact li a::before { content: none; }
.alahd-footer__contact li a:hover { padding: 0; color: var(--alahd-accent); }
.alahd-footer__contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 99, 255, 0.14);
  flex-shrink: 0;
  font-size: 0.85rem;
}
.alahd-footer__cta {
  margin-top: 18px;
  padding: 12px 22px;
  font-size: 0.85rem;
}

/* Bottom bar */
.alahd-footer__bottom {
  border-top: 1px solid var(--alahd-border);
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--alahd-text-muted);
}
.alahd-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.alahd-footer__bottom strong { color: var(--alahd-text); font-weight: 700; }
.alahd-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.alahd-footer__legal a {
  color: var(--alahd-text-muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.alahd-footer__legal a:hover { color: var(--alahd-accent); }

/* Footer responsiveness */
@media (max-width: 1024px) {
  .alahd-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 64px 24px 36px;
  }
  .alahd-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .alahd-footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .alahd-footer__bottom-inner { justify-content: center; text-align: center; }
}

/* RTL footer adjustments */
.alahd-rtl .alahd-footer__newsletter-form input { text-align: right; direction: ltr; }
.alahd-rtl .alahd-footer__contact li { direction: rtl; }
/* ============================================================
   FINAL PROJECT CARDS FIX - STRONG
   ============================================================ */

.alahd-product-projects h3 {
    margin-bottom: 35px !important;
    font-size: 1.5rem !important;
}

.alahd-projects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 25px !important;
}

.alahd-project-card {
    background: var(--alahd-glass-bg) !important;
    border: 1px solid var(--alahd-glass-border) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    height: 100% !important;
    transition: all 0.4s ease !important;
}

.alahd-project-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45) !important;
}

.alahd-project-card__image {
    height: 185px !important;
    overflow: hidden !important;
}

.alahd-project-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.alahd-project-card:hover .alahd-project-card__image img {
    transform: scale(1.07) !important;
}

.alahd-project-card__info {
    padding: 20px !important;
    text-align: center !important;
}

.alahd-project-card__info h4 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--alahd-text) !important;
}

/* Light Mode */
html:not(.dark) body:not(.alahd-dark) .alahd-project-card {
    background: #ffffff !important;
    border-color: #ddd !important;
}
/* Fix for WordPress Admin Bar overlapping header */
html { 
    margin-top: 0 !important; 
}

body.admin-bar .alahd-header { 
    top: 32px !important; 
}

@media screen and (max-width: 782px) {
    body.admin-bar .alahd-header { 
        top: 46px !important; 
    }
}
/* ============================================================
   Al-Ahd Premium Theme — v1.2.2 alignment + safety polish
   ============================================================ */

/* Nav row: every direct child of the UL is a flex item, perfectly centered */
.alahd-nav__links {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.alahd-nav__links > li {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  position: relative;
}

.alahd-nav .alahd-nav__link,
.alahd-nav .alahd-nav__link--has-arrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--alahd-text);
  border-radius: 10px;
  position: relative;
  white-space: nowrap;
  border: 0;
  background: transparent;
  transition: color 0.2s, background 0.2s;
}
.alahd-nav .alahd-nav__link:hover {
  color: var(--alahd-accent);
  background: rgba(108, 99, 255, 0.08);
}
.alahd-nav .alahd-nav__link.active {
  color: var(--alahd-accent);
  font-weight: 600;
}
.alahd-nav .alahd-nav__link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--alahd-gradient-1);
}
.alahd-nav__arrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.7em;
  line-height: 1;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}
.alahd-nav__item--has-dropdown:hover > .alahd-nav__link .alahd-nav__arrow,
.alahd-nav__item--has-dropdown[aria-expanded="true"] > .alahd-nav__link .alahd-nav__arrow {
  transform: translateY(1px) rotate(180deg);
}

.alahd-nav,
.alahd-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.alahd-nav__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.alahd-logo,
.alahd-btn-icon,
.alahd-lang-toggle,
.alahd-theme-toggle,
.alahd-hamburger {
  display: inline-flex;
  align-items: center;
}

/* Logo image (user-customized) sits centered, capped height */
.alahd-logo__image {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.alahd-nav__item--has-dropdown { position: relative; }
.alahd-nav__item--has-dropdown > .alahd-dropdown {
  position: absolute;
  top: 100%;
  margin: 0;
}

/* Footer: keep horizontal until small viewports */
@media (max-width: 1024px) {
  .alahd-footer__main {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 64px 24px 36px;
  }
  .alahd-footer__brand { grid-column: auto; }
}
@media (max-width: 880px) {
  .alahd-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .alahd-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .alahd-footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .alahd-footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }
}


/* ============================================================
   Al-Ahd Premium Theme — v1.2.3
   Icon-free redesign + premium product/category pages
   ============================================================ */

/* ---------- 1. Global icon removal -------------------------------------- */
/* The brand asks for a clean, typography-first design. Hide every
   decorative icon span/div across the site. Functional UI controls
   (theme toggle, language toggle, hamburger) are explicitly preserved. */
.alahd-product-card__icon,
.alahd-product-card__icon-wrap,
.alahd-product-card__glow,
.alahd-service-card__icon,
.alahd-detail__icon,
.alahd-highlight-card__icon,
.alahd-our-service-item__icon,
.alahd-pillar__icon,
.alahd-contact__detail-icon,
.alahd-footer__contact-icon,
.alahd-dropdown__item-icon,
.alahd-logo__icon {
    display: none !important;
}

/* Tighten layouts that lose their icon prefix so text sits flush */
.alahd-our-service-item,
.alahd-contact__detail,
.alahd-footer__contact-row {
    gap: 0 !important;
}
.alahd-our-service-item__label {
    margin: 0;
}

/* ---------- 2. Section rhythm ------------------------------------------- */
.alahd-products,
.alahd-product-detail {
    padding: clamp(48px, 7vw, 96px) 0;
}

/* ---------- 3. +25 Years Experience Badge ------------------------------- */
.alahd-products-experience {
    display: flex;
    justify-content: center;
    margin: 8px auto 40px;
}
.alahd-experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(0, 212, 255, 0.10));
    border: 1px solid rgba(108, 99, 255, 0.35);
    box-shadow: 0 10px 30px -12px rgba(108, 99, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--alahd-text, #fff);
    font-family: inherit;
    line-height: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.alahd-experience-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -14px rgba(108, 99, 255, 0.55);
}
.alahd-experience-badge--center { margin: 0 auto; }
.alahd-experience-badge__num {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6c63ff, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}
.alahd-experience-badge__text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ---------- 4. Products grid + cards (clean, equal, premium) ------------ */
.alahd-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.alahd-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 320px;
    padding: 32px 28px;
    text-decoration: none;
    color: var(--alahd-text, #fff);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 18px 40px -24px rgba(0, 0, 0, 0.6);
    transition:
        transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.alahd-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(0, 212, 255, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.alahd-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 99, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 28px 60px -24px rgba(108, 99, 255, 0.45);
}
.alahd-product-card:hover::before { opacity: 1; }

.alahd-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.alahd-product-card__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(108, 99, 255, 0.9);
    margin-bottom: 4px;
}
.alahd-product-card__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--alahd-text, #fff);
}
.alahd-product-card__desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}
.alahd-product-card__features {
    list-style: none;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.alahd-product-card__features li {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    padding-inline-start: 14px;
    position: relative;
}
.alahd-product-card__features li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.6em;
    width: 6px;
    height: 1px;
    background: rgba(108, 99, 255, 0.7);
}
.alahd-product-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}
.alahd-product-card__cta::after {
    content: "→";
    margin-inline-start: 8px;
    transition: transform 0.25s ease;
    display: inline-block;
}
[dir="rtl"] .alahd-product-card__cta::after { content: "←"; }
.alahd-product-card:hover .alahd-product-card__cta {
    color: #fff;
}
.alahd-product-card:hover .alahd-product-card__cta::after {
    transform: translateX(4px);
}
[dir="rtl"] .alahd-product-card:hover .alahd-product-card__cta::after {
    transform: translateX(-4px);
}

/* ---------- 5. Product detail page (all category pages) ----------------- */
.alahd-product-detail .container {
    max-width: 960px;
}
.alahd-product-detail__experience {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}
.alahd-product-detail__intro {
    margin-bottom: 56px;
    text-align: center;
}
.alahd-product-detail__intro .alahd-detail__lead {
    margin: 0 auto;
    max-width: 720px;
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

/* ---------- 6. Reusable Features Block (text-only, no icons) ------------ */
.alahd-features-block {
    padding: 40px 36px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.alahd-features-block__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(108, 99, 255, 0.95);
    margin-bottom: 10px;
}
.alahd-features-block__title {
    margin: 0 0 28px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--alahd-text, #fff);
}
.alahd-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 32px;
}
.alahd-features-list__item {
    position: relative;
    padding: 14px 0 14px 22px;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[dir="rtl"] .alahd-features-list__item {
    padding: 14px 22px 14px 0;
}
.alahd-features-list__item::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    background: linear-gradient(90deg, #6c63ff, #00d4ff);
    transform: translateY(-50%);
}

.alahd-product-detail__features { margin-bottom: 56px; }
.alahd-product-detail__projects { margin-bottom: 56px; }
.alahd-product-detail__projects .alahd-features-block__title { margin-bottom: 28px; }

/* ---------- 7. Project cards (refined, consistent) ---------------------- */
.alahd-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.alahd-project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s ease, box-shadow 0.3s ease;
}
.alahd-project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 22px 50px -24px rgba(108, 99, 255, 0.4);
}
.alahd-project-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}
.alahd-project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.alahd-project-card:hover .alahd-project-card__image img {
    transform: scale(1.05);
}
.alahd-project-card__info {
    padding: 18px 20px;
}
.alahd-project-card__info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--alahd-text, #fff);
}

/* ---------- 8. Detail page CTA row -------------------------------------- */
.alahd-product-detail__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding-top: 16px;
}

/* ---------- 9. Responsive --------------------------------------------- */
@media (max-width: 720px) {
    .alahd-products__grid { grid-template-columns: 1fr; }
    .alahd-product-card { min-height: auto; padding: 26px 22px; }
    .alahd-features-block { padding: 28px 20px; }
    .alahd-features-block__title { font-size: 1.35rem; }
    .alahd-product-detail__intro .alahd-detail__lead { font-size: 1.02rem; }
    .alahd-experience-badge { padding: 12px 18px; gap: 10px; }
    .alahd-experience-badge__num { font-size: 1.25rem; }
    .alahd-experience-badge__text { font-size: 0.78rem; }
}

/* ---------- 10. Light-mode adaptations ---------------------------------- */
html:not(.dark) .alahd-product-card,
html:not(.dark) .alahd-features-block,
html:not(.dark) .alahd-project-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.18);
}
html:not(.dark) .alahd-product-card__desc,
html:not(.dark) .alahd-product-card__features li,
html:not(.dark) .alahd-features-list__item,
html:not(.dark) .alahd-product-detail__intro .alahd-detail__lead {
    color: rgba(15, 15, 30, 0.75);
}
html:not(.dark) .alahd-product-card__features {
    border-top-color: rgba(0, 0, 0, 0.08);
}
html:not(.dark) .alahd-features-list__item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
html:not(.dark) .alahd-experience-badge {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(0, 212, 255, 0.06));
    border-color: rgba(108, 99, 255, 0.25);
}


/* ============================================================
   Al-Ahd Premium Theme — v1.2.4
   Unified Projects page
   ============================================================ */

.alahd-projects-unified .alahd-projects-experience {
    display: flex;
    justify-content: center;
    margin: 8px auto 40px;
}
.alahd-projects-unified__empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Tighter grid for the unified list — 4 cols on wide, 3 on medium, 2 then 1 */
.alahd-projects-grid--unified {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
@media (min-width: 1280px) {
    .alahd-projects-grid--unified {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Subtitle (hostname) under each project title */
.alahd-project-card__host {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: rgba(108, 99, 255, 0.85);
    text-transform: lowercase;
    direction: ltr;
    unicode-bidi: isolate;
}

html:not(.dark) .alahd-projects-unified__empty {
    color: rgba(15, 15, 30, 0.55);
}
html:not(.dark) .alahd-project-card__host {
    color: rgba(108, 99, 255, 0.95);
}


/* ============================================================
   Al-Ahd Premium Theme — v1.2.5
   Footer Services column visibility fix
   ============================================================ */

/* Ensure every footer column, its heading, lists, and links are
   always visible regardless of what custom theme CSS may layer on. */
.alahd-footer__col,
.alahd-footer__col h4,
.alahd-footer__col ul,
.alahd-footer__col li,
.alahd-footer__col a {
    visibility: visible !important;
    opacity: 1 !important;
}
.alahd-footer__col {
    display: block;
    min-width: 0;
}
.alahd-footer__col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.3;
}
.alahd-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.alahd-footer__col li {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
.alahd-footer__col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}
.alahd-footer__col a:hover,
.alahd-footer__col a:focus-visible {
    color: #fff;
    transform: translateX(2px);
}
[dir="rtl"] .alahd-footer__col a:hover,
[dir="rtl"] .alahd-footer__col a:focus-visible {
    transform: translateX(-2px);
}

/* Light mode adaptation for footer columns */
html:not(.dark) .alahd-footer__col h4 {
    color: rgba(15, 15, 30, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
html:not(.dark) .alahd-footer__col a {
    color: rgba(15, 15, 30, 0.7);
}
html:not(.dark) .alahd-footer__col a:hover,
html:not(.dark) .alahd-footer__col a:focus-visible {
    color: #6c63ff;
}


/* ============================================================
   Mobile menu (hamburger) — drawer fixes
   Overrides earlier non-media-query rules that were stripping the
   drawer's padding and breaking the layered open/close behaviour.
   The drawer must be fully opaque so the page underneath does not
   bleed through and make text look blurred / unreadable.
   ============================================================ */
@media (max-width: 1024px) {
  .alahd-nav ul.alahd-nav__links,
  .alahd-nav ul#alahd-nav-links {
    padding: 24px 24px 96px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* Solid, fully-opaque background so page content behind the
       drawer doesn't show through. No blur, no transparency. */
    background: var(--alahd-bg, #ffffff) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }

  /* Dark mode: use the dark surface so the drawer matches the theme */
  .alahd-dark .alahd-nav ul.alahd-nav__links,
  .alahd-dark .alahd-nav ul#alahd-nav-links {
    background: var(--alahd-surface, #0f0f1e) !important;
  }

  /* Each item stretches across the drawer */
  .alahd-nav ul.alahd-nav__links > li {
    width: 100%;
    display: block;
  }

  /* Make sure the hamburger button sits above the drawer so it
     remains clickable to close the menu. */
  .alahd-hamburger {
    position: relative;
    z-index: 1100;
  }

  /* When the WP admin bar is present, the header is shifted down,
     so push the drawer's top offset to match. */
  body.admin-bar .alahd-nav__links { top: 104px; }
}

@media screen and (max-width: 782px) {
  body.admin-bar .alahd-nav__links { top: 118px; }
}
