/**
 * ABOUT PAGE — DEDICATED STYLES
 * Dark cyber theme matching main site palette
 */

/* ── PRE-HIDE ANIMATED ELEMENTS ── */
.ab-hero__stats,
.ab-eyebrow,
.ab-hero__title,
.ab-hero__sub {
  opacity: 0;
}

/* ── SECTION HELPERS ── */
.ab-section {
  padding: 100px 0;
}

.ab-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.ab-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--clr-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ab-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--clr-primary);
  flex-shrink: 0;
}

.ab-section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ab-section-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto;
}

/* ── HERO ── */
.ab-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.ab-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,171,193,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,171,193,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.ab-hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,171,193,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ab-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  /* horizontal padding inherited from .container class */
}

.ab-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 20px;
}

.ab-hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #A5B4CB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Keep cyan span visible inside gradient heading */
.ab-hero__title .text-cyan { -webkit-text-fill-color: var(--clr-primary); }

.ab-hero__sub {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
}

/* HERO STATS */
.ab-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.ab-stat {
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ab-stat:last-child {
  border-bottom: none;
}

.ab-stat__num {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.ab-stat__lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── MISSION & VISION ── */
.ab-mv {
  background: rgba(0,0,0,0.3);
}

.ab-mv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ab-mv__card {
  padding: 56px 48px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  transition: border-color 0.3s, transform 0.3s;
}

.ab-mv__card:hover {
  border-color: rgba(0,171,193,0.3);
  transform: translateY(-4px);
}

.ab-mv__icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 28px;
  color: var(--clr-primary);
  background: transparent;
  border-bottom: 2px solid rgba(0,171,193,0.3);
  padding-bottom: 12px;
}

.ab-mv__card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.ab-mv__card p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

/* [data-animate] entrance */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── TIMELINE ── */
.ab-timeline {
  position: relative;
}

.ab-timeline__track {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.ab-timeline__track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(0,171,193,0.4) 20%, rgba(0,171,193,0.4) 80%, transparent);
  transform: translateX(-50%);
}

.ab-tl-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0 20px;
  align-items: start;
  margin-bottom: 56px;
  position: relative;
  direction: ltr; /* always LTR layout — prevents RTL double-reversal */
}

.ab-tl-item:nth-child(even) .ab-tl-year {
  order: 3;
  text-align: left;
}

.ab-tl-item:nth-child(even) .ab-tl-dot {
  order: 2;
}

.ab-tl-item:nth-child(even) .ab-tl-content {
  order: 1;
  text-align: right;
}

.ab-tl-year {
  font-size: 28px;
  font-weight: 900;
  color: var(--clr-primary);
  text-align: right;
  padding-top: 4px;
}

/* restore text direction inside content so Arabic reads correctly */
.ab-tl-content,
.ab-tl-year {
  direction: inherit;
  unicode-bidi: plaintext;
}

.ab-tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0,171,193,0.3);
  border: 2px solid var(--clr-primary);
  margin: 6px auto 0;
  position: relative;
  z-index: 1;
}

.ab-tl-dot--active {
  background: var(--clr-primary);
  box-shadow: 0 0 16px rgba(0,171,193,0.6);
}

.ab-tl-content {
  padding-top: 0;
}

.ab-tl-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.ab-tl-content p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.ab-tl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0de283;
  text-decoration: none;
  transition: gap 0.2s;
}

.ab-tl-link:hover {
  gap: 10px;
}

/* ── VALUES ── */
.ab-values {
  background: rgba(0,0,0,0.3);
}

.ab-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.ab-value-card {
  padding: 44px 32px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  transition: border-color 0.3s, transform 0.3s;
}

.ab-value-card:hover {
  border-color: rgba(0,171,193,0.25);
  transform: translateY(-4px);
}

.ab-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--clr-primary) !important;
  background: transparent !important;
  border-bottom: 2px solid rgba(0,171,193,0.25);
  padding-bottom: 10px;
}

.ab-value-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.ab-value-card p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

/* ── CERTIFICATIONS ── */
.ab-certs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.ab-cert-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 32px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, transform 0.3s;
}

.ab-cert-card:hover {
  border-color: rgba(0,171,193,0.25);
  transform: translateY(-4px);
}

.ab-cert-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-cert-icon img {
  width: 72px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.ab-cert-icon--w3c {
  font-size: 22px;
  font-weight: 900;
  color: var(--clr-primary);
  background: rgba(0,171,193,0.1);
  border: 1px solid rgba(0,171,193,0.25);
  border-radius: 12px;
  letter-spacing: 1px;
}

.ab-cert-year {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #0de283;
  background: rgba(13,226,131,0.1);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.ab-cert-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.ab-cert-body p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

/* ── PARTNERS ── */
.ab-partners {
  background: rgba(0,0,0,0.3);
}

.ab-partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ab-partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
  transition: border-color 0.3s, transform 0.3s;
}

.ab-partner-item:hover {
  border-color: rgba(0,171,193,0.2);
  transform: translateY(-3px);
}

.ab-partner-item img {
  max-height: 36px;
  max-width: 120px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(2) opacity(0.7);
  transition: filter 0.3s;
}

.ab-partner-item:hover img {
  filter: grayscale(0) brightness(1) opacity(1);
}

/* ── CTA ── */
.ab-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
}

.ab-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,171,193,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ab-cta__inner {
  position: relative;
  z-index: 1;
}

.ab-cta__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.ab-cta__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
}

.ab-cta__btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── RTL OVERRIDES ── */
[dir="rtl"] .ab-cert-card {
  flex-direction: row-reverse;
}

/* RTL line-height fixes */
[dir="rtl"] .ab-hero__title     { line-height: 1.35; }
[dir="rtl"] .ab-section-title   { line-height: 1.4;  }
[dir="rtl"] .ab-cta__title      { line-height: 1.4;  }

/* RTL — keep stat borders mirrored on stacked layout */
@media (max-width: 1100px) {
  [dir="rtl"] .ab-stat {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.06);
  }
  [dir="rtl"] .ab-stat:last-child { border-left: none; }
}

/* ── MEDIUM LAPTOP (1100–1280px) ── */
@media (max-width: 1280px) {
  .ab-hero__inner {
    gap: 40px;
  }
}

@media (max-width: 1100px) {
  /* Stack hero to single column — prevents cramping on small laptops */
  .ab-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 48px;
    text-align: center;
  }
  .ab-hero__sub {
    max-width: 100%;
    margin: 0 auto;
  }
  .ab-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 20px 0;
    flex-direction: row;
  }
  .ab-stat {
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 20px 16px;
  }
  .ab-stat:last-child { border-right: none; }
  .ab-stat__num { font-size: 40px; }

  .ab-mv__card {
    padding: 40px 32px;
  }
  .ab-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── MOBILE IMPROVEMENTS ── */
@media (max-width: 480px) {
  .ab-hero {
    padding-top: 80px;
    min-height: auto;
  }
  .ab-hero__title { font-size: clamp(2rem, 10vw, 3rem); }
  .ab-section { padding: 72px 0; }

  .ab-cta__btns {
    flex-direction: column;
    align-items: stretch;
  }
  .ab-cta__btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── MOBILE ── */
@media (max-width: 991px) {
  .ab-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ab-partners__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .ab-section {
    padding: 64px 0;
  }

  .ab-hero {
    min-height: auto;
    padding-top: 80px;
  }

  .ab-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
  }

  .ab-hero__sub {
    max-width: 100%;
  }

  .ab-hero__stats {
    flex-direction: row;
    gap: 0;
    padding: 20px 16px;
    justify-content: space-between;
  }

  .ab-stat {
    flex: 1;
    padding: 16px 8px;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.06);
  }

  .ab-stat:last-child {
    border-right: none;
  }

  .ab-stat__num {
    font-size: 32px;
  }

  .ab-stat__lbl {
    font-size: 10px;
  }

  .ab-mv__grid {
    grid-template-columns: 1fr;
  }

  .ab-timeline__track::before {
    left: 20px;
  }

  .ab-tl-item {
    grid-template-columns: 40px 1fr;
    gap: 0 16px;
  }

  .ab-tl-item .ab-tl-year {
    order: unset;
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    font-size: 20px;
  }

  .ab-tl-item .ab-tl-dot {
    order: unset;
    grid-column: 1;
    grid-row: 1 / 3;
    margin-top: 6px;
  }

  .ab-tl-item .ab-tl-content {
    order: unset;
    text-align: left;
    grid-column: 2;
    grid-row: 2;
  }

  .ab-values__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ab-certs__grid {
    grid-template-columns: 1fr;
  }

  .ab-cert-card {
    flex-direction: column;
    text-align: center;
  }

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

  [dir="rtl"] .ab-tl-item .ab-tl-year,
  [dir="rtl"] .ab-tl-item .ab-tl-content {
    text-align: right;
  }
}
