/* ═══════════════════════════════════════════════
   FREEBIES — styles.css
   Dark Futuristic | Deep Navy × Electric Cyan
═══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #050c1a;
  --navy-2: #0a1628;
  --navy-3: #0f1e35;
  --navy-4: #162540;
  --cyan: #00e5ff;
  --cyan-dim: #00b8cc;
  --cyan-glow: rgba(0, 229, 255, 0.15);
  --cyan-glow2: rgba(0, 229, 255, 0.06);
  --white: #f0f6ff;
  --white-dim: rgba(240, 246, 255, 0.65);
  --white-faint: rgba(240, 246, 255, 0.08);
  --border: rgba(0, 229, 255, 0.12);
  --border-hover: rgba(0, 229, 255, 0.35);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.2);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

input,
select,
textarea {
  font-family: inherit;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--cyan-dim);
  border-radius: 99px;
}

/* ── CUSTOM CURSOR ── */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  top: 0;
  left: 0;
}

/* ── SELECTION ── */
::selection {
  background: rgba(0, 229, 255, 0.25);
  color: var(--white);
}

/* ═══════════════════════════════════════════════
   SHARED COMPONENTS
═══════════════════════════════════════════════ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-glow2);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.highlight {
  color: var(--cyan);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  opacity: 0.4;
  border-radius: 99px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow2);
  transform: translateY(-2px);
}

/* ── CV BUTTON — hero ── */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid var(--cyan);
  background: transparent;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-cv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn-cv svg,
.btn-cv span {
  position: relative;
  z-index: 1;
}

.btn-cv:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.35);
}

.btn-cv:hover::before {
  transform: scaleX(1);
}

/* pulse arrow when cv is confirmed present */
.btn-cv.cv-ready svg {
  animation: cv-bounce 2s ease-in-out infinite;
}

/* ── CV BUTTON — navbar ── */
.nav-cv-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white-dim);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.nav-cv-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-glow2);
}

.nav-cv-btn.cv-ready {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.35);
}

.nav-cv-btn.cv-ready svg {
  animation: cv-bounce 2s ease-in-out infinite;
}

@keyframes cv-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(5, 12, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
.nav-logo-img {
  min-width: 100px;
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

body.rtl .nav-logo {
  margin-left: auto;
  margin-right: 0px;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  display: inline-block;
  animation: spin-slow 8s linear infinite;
}

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

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

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--cyan);
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-dim);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: var(--cyan);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--white-faint);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 14px;
  right: 14px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 32px 100px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  border: 1px solid var(--border);
  background: var(--cyan-glow2);
  padding: 8px 18px;
  border-radius: 99px;
  margin-bottom: 36px;
  animation: fadeInDown 0.8s ease both;
  letter-spacing: 0.05em;
}

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

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

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.reveal-line {
  display: block;
  transform: translateY(110%);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.accent-line em {
  font-style: italic;
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.4);
}

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

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.5s;
}

.delay-4 {
  animation-delay: 0.65s;
}

.delay-5 {
  animation-delay: 0.8s;
}

@keyframes slideUp {
  from {
    transform: translateY(110%);
  }

  to {
    transform: translateY(0);
  }
}

.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: revealFade 0.8s ease both;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

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

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--white-dim);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: space-around;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 0 40px 0 0;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  vertical-align: super;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--white-dim);
  letter-spacing: 0.05em;
  margin-top: 4px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin-right: 40px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* Floating badges */
.float-badge {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  background: var(--navy-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 99px;
  z-index: 2;
  animation: floatBadge 6s ease-in-out infinite;
  pointer-events: none;
}

/* ── LTR (English) — right side ── */
.fb-1 {
  top: 20%;
  right: 12%;
  animation-delay: 0s;
}

.fb-2 {
  top: 35%;
  right: 6%;
  animation-delay: 1.5s;
}

.fb-3 {
  bottom: 30%;
  right: 14%;
  animation-delay: 3s;
}

.fb-4 {
  top: 55%;
  right: 22%;
  animation-delay: 4.5s;
}

/* ── RTL (Arabic) — mirror to left side ── */
body.rtl .fb-1 {
  right: auto;
  left: 12%;
}

body.rtl .fb-2 {
  right: auto;
  left: 6%;
}

body.rtl .fb-3 {
  right: auto;
  left: 14%;
}

body.rtl .fb-4 {
  right: auto;
  left: 22%;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
.services {
  background: var(--navy-2);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
}

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

.service-card {
  position: relative;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.service-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card-glow {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 70%);
  pointer-events: none;
  transition: var(--transition);
  opacity: 0;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.sc-featured {
  background: linear-gradient(135deg, var(--navy-3), var(--navy-4));
  border-color: rgba(0, 229, 255, 0.25);
}

.sc-featured::after {
  content: "Most Popular";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cyan);
  padding: 4px 10px;
  border-radius: 99px;
}

.service-icon {
  width: 52px;
  height: 52px;
  color: var(--cyan);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 24px;
}

.service-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cyan-dim);
  background: var(--cyan-glow2);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 99px;
}

.service-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  transition: var(--transition);
  display: inline-block;
}

.service-link:hover {
  letter-spacing: 0.04em;
}

.sc-cta {
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.08),
    rgba(0, 229, 255, 0.02)
  );
  border-color: rgba(0, 229, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.cta-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 12px;
  font-weight: 600;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.about {
  background: var(--navy);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.about-left .section-tag {
  margin-bottom: 16px;
}

.about-left .section-title {
  margin-bottom: 24px;
  text-align: left;
}

.about-body {
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  border-left: 2px solid var(--border);
  transition: var(--transition);
}

.value-item:hover {
  border-left-color: var(--cyan);
}

.value-icon {
  font-size: 1.1rem;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.value-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.value-item span {
  font-size: 0.875rem;
  color: var(--white-dim);
}

/* About visual */
.about-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.about-visual {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: rotateRing 12s linear infinite;
}

.av-ring-1 {
  width: 100%;
  height: 100%;
  animation-duration: 20s;
}

.av-ring-2 {
  width: 72%;
  height: 72%;
  animation-duration: 14s;
  animation-direction: reverse;
  border-color: rgba(0, 229, 255, 0.2);
}

.av-ring-3 {
  width: 44%;
  height: 44%;
  animation-duration: 8s;
  border-color: rgba(0, 229, 255, 0.3);
}

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

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

.av-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.av-logo {
  font-size: 2.5rem;
  color: var(--cyan);
}

.av-core span:last-child {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.av-orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: orbitDot 6s linear infinite;
}

.od-1 {
  top: 70px;
  left: 50%;
  transform-origin: 0 70px;
}

.od-2 {
  top: 50%;
  left: 20px;
  transform-origin: 110px 0;
  animation-delay: -2s;
  animation-duration: 9s;
}

.od-3 {
  bottom: 0;
  right: 50%;
  transform-origin: 0 -140px;
  animation-delay: -4s;
  animation-duration: 12s;
}

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

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

.about-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.counter-box {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.counter-box:hover {
  border-color: var(--cyan);
}

.counter-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
}

.counter-box > span:nth-child(2) {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
}

.counter-label {
  display: block;
  font-size: 0.75rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Timeline */
.timeline {
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 48px;
  text-align: center;
}

.timeline-track {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border),
    var(--border),
    transparent
  );
}

.tl-item {
  flex: 1;
  min-width: 160px;
  padding-top: 44px;
  padding-right: 24px;
  position: relative;
}

.tl-dot {
  position: absolute;
  top: 7px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-3);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.tl-item:hover .tl-dot {
  border-color: var(--cyan);
  background: var(--cyan);
}

.tl-dot-active {
  border-color: var(--cyan) !important;
  background: var(--cyan) !important;
  box-shadow: 0 0 12px var(--cyan);
}

.tl-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}

.tl-text {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════════ */
.portfolio {
  background: var(--navy-2);
  position: relative;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
}

.portfolio-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pf-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 99px;
  transition: var(--transition);
  letter-spacing: 0.04em;
}

.pf-btn:hover {
  color: var(--white);
  border-color: rgba(0, 229, 255, 0.3);
}

.pf-btn.active {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}

.portfolio-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.portfolio-card.animated {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card.hidden {
  opacity: 0 !important;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

.pc-large {
  grid-column: span 2;
}

.portfolio-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pc-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.pc-large .pc-image {
  height: 220px;
}

/* Gradient fallbacks — shown when no image is set */
.pc-img-1 {
  background: linear-gradient(135deg, #0a2a4a, #0d3a5c, #0a4a6e);
}

.pc-img-2 {
  background: linear-gradient(135deg, #0a1a3a, #1a0a3a, #0d2060);
}

.pc-img-3 {
  background: linear-gradient(135deg, #001a2e, #003344, #004455);
}

.pc-img-4 {
  background: linear-gradient(135deg, #0a2a1a, #0a3a2a, #0d4a35);
}

.pc-img-5 {
  background: linear-gradient(135deg, #2a0a1a, #3a0a2a, #4a0d35);
}

.pc-img-6 {
  background: linear-gradient(135deg, #1a1a0a, #2a2a0a, #3a3a10);
}

.pc-img-7 {
  background: linear-gradient(135deg, #1a0a2a, #2a0a3a, #350d4a);
}

.pc-img-8 {
  background: linear-gradient(135deg, #0a1a2a, #103040, #0a2040);
}

.pc-img-9 {
  background: linear-gradient(135deg, #1a0a0a, #3a1010, #4a1515);
}

/* When a real image is provided — covers the gradient, scales to fill */
.pc-image img.pc-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  z-index: 1;
}

.portfolio-card:hover .pc-real-img {
  transform: scale(1.04);
}

/* Grid pattern overlay — sits above image, below overlay */
.pc-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0, 229, 255, 0.02) 0px,
      rgba(0, 229, 255, 0.02) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 229, 255, 0.02) 0px,
      rgba(0, 229, 255, 0.02) 1px,
      transparent 1px,
      transparent 20px
    );
  z-index: 2;
  pointer-events: none;
}

/* Overlay and button sit above image */
.pc-overlay {
  z-index: 3;
}

.pc-tag {
  z-index: 4;
}

.pc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.portfolio-card:hover .pc-overlay {
  opacity: 1;
}

.pc-view-btn {
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  transform: translateY(10px);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.pc-website-btn {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}

.pc-website-btn:hover {
  background: var(--cyan);
  color: var(--navy);
}

.portfolio-card:hover .pc-view-btn {
  transform: translateY(0);
}

.pc-ghost-btn {
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 10px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  transform: translateY(10px);
  transition: var(--transition);
}

.portfolio-card:hover .pc-ghost-btn {
  transform: translateY(0);
}

.pc-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 99px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.pc-body {
  padding: 24px;
}

.pc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.pc-desc {
  font-size: 0.875rem;
  color: var(--white-dim);
  line-height: 1.65;
  margin-bottom: 16px;
}

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

.pc-stack span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan-dim);
  background: var(--cyan-glow2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1rem;
  color: var(--white-dim);
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--cyan);
  background: var(--white-faint);
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact {
  background: var(--navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-left .section-title {
  text-align: left;
}

.contact-sub {
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.ci-icon {
  width: 44px;
  height: 44px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.ci-icon svg {
  width: 18px;
  height: 18px;
}

.ci-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 2px;
}

.ci-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 400;
}

a.ci-value:hover {
  color: var(--cyan);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white-dim);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 246, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: none;
  transition: var(--transition);
}
body.rtl .form-group select {
  background-position: left 16px center;
}
.form-group select option {
  background: var(--navy-2);
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px;
}

.form-success {
  display: none;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--cyan-glow2);
  border: 1px solid var(--border);
}

.form-success.show {
  display: block;
  animation: revealFade 0.5s ease;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--navy-2);
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin: 16px 0 28px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  transition: var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-glow2);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.fl-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.fl-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--white-dim);
  margin-bottom: 12px;
  transition: var(--transition);
}

.fl-col a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

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

.footer-bottom span {
  font-size: 0.85rem;
  color: var(--white-dim);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--white-dim);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .pc-large {
    grid-column: span 1;
  }

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

  .about-right {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-visual {
    width: 450px;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 1260px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 12, 26, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 1100;
    /* above navbar (1000) */
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.4rem;
    padding: 16px 32px;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1200;
    /* always above the overlay */
  }

  /* When menu is open, hamburger spans turn white for visibility */
  .hamburger.open span {
    background: var(--cyan);
  }

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

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

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

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

  .float-badge {
    display: none;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 0;
  }

  .hero-stats {
    gap: 32px;
  }

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


  .about-visual {
    width: 285px;
  }

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

  .section-container {
    padding: 72px 24px;
  }

  .timeline-track {
    flex-direction: column;
  }

  .timeline-track::before {
    display: none;
  }

  .tl-item {
    padding-top: 0;
    padding-left: 30px;
    border-left: 1px solid var(--border);
  }

  .tl-dot {
    top: 4px;
    left: -7px;
  }

  .about-right {
    flex-direction: column;
    align-items: center;
  }

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

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

/* ═══════════════════════════════════════════════
   i18n — RTL + Language Toggle
═══════════════════════════════════════════════ */

/* ── Language toggle button ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--white-faint);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
}

.lang-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white-dim);
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer !important;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.lang-btn:hover:not(.active) {
  color: var(--white);
  background: var(--white-faint);
}

/* ── RTL overrides ── */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .nav-container {
  direction: rtl;
}

body.rtl .hero-heading,
body.rtl .hero-sub,
body.rtl .section-title,
body.rtl .section-sub,
body.rtl .about-body,
body.rtl .pc-desc,
body.rtl .service-desc {
  text-align: right;
}

body.rtl .hero-actions {
  justify-content: flex-start;
}

body.rtl .hero-stats {
  flex-direction: row-reverse;
}

body.rtl .about-values {
  direction: rtl;
}

body.rtl .value-item {
  flex-direction: row-reverse;
}

body.rtl .timeline-track {
  direction: rtl;
}

body.rtl .tl-item {
  padding-right: 0;
  padding-left: 24px;
}

body.rtl .contact-layout {
  direction: rtl;
}

body.rtl .ci-item {
  flex-direction: row-reverse;
}

body.rtl .footer-links {
  direction: rtl;
}

body.rtl .footer-top {
  direction: rtl;
}

body.rtl .section-header {
  direction: rtl;
}

/* RTL: flip arrow icons */
body.rtl .btn-primary svg,
body.rtl .btn-cv svg,
body.rtl .nav-cta svg {
  transform: scaleX(-1);
}

/* RTL: mobile menu */
body.rtl .nav-links {
  direction: rtl;
}

/* RTL: modal */
body.rtl .modal-box {
  direction: rtl;
  text-align: right;
}

body.rtl .modal-close {
  left: 20px;
  right: auto;
}

/* RTL: service tags + stack pills */
body.rtl .service-tags,
body.rtl .pc-stack {
  justify-content: flex-end;
}

/* ── Arabic font enhancement ── */
body[lang="ar"] {
  font-family:
    "Segoe UI", "Noto Sans Arabic", "Cairo", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.85;
}

body[lang="ar"] .section-title,
body[lang="ar"] .hero-heading,
body[lang="ar"] .service-title,
body[lang="ar"] .pc-title {
  font-family: "Segoe UI", "Noto Sans Arabic", "Cairo", sans-serif;
  font-weight: 800;
}
