/* ================================================
   BANA MARKETING — Stylesheet
   Bilingual (AR/EN) — Production
   ================================================ */

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

:root {
  /* Colors — Brand palette: #222A35 dark slate + #6D98A9 muted teal + #7BA6C4 logo sky */
  --bg-primary: #222A35;
  --bg-secondary: #2A3340;
  --bg-tertiary: #323C4B;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --color-primary: #6D98A9;
  --color-primary-hover: #82AEC0;
  --color-accent: #7BA6C4;
  --color-accent-soft: rgba(123, 166, 196, 0.12);

  --text-primary: #FFFFFF;
  --text-secondary: #C8D1DC;
  --text-muted: #7A8694;
  --text-dim: #525E6E;

  /* Typography */
  --font-ar: 'Tajawal', 'Cairo', sans-serif;
  --font-en: 'Outfit', 'Manrope', system-ui, sans-serif;

  /* Spacing */
  --container: 1280px;
  --section-py: clamp(60px, 8vw, 120px);

  /* Effects */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(109, 152, 169, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ar);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="en"] body { font-family: var(--font-en); }

/* Background atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(109, 152, 169, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(123, 166, 196, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

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

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }

.section-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 640px;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(109, 152, 169, 0.35);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(109, 152, 169, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 8px 0;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--color-primary-hover); gap: 12px; }

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(34, 42, 53, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.logo img { height: 200px; width: auto; transition: var(--transition); }
.header.scrolled .logo img { height: 150px; }

.logo-text { display: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

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

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

.lang-switch {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}
.lang-switch:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.04); }
.menu-toggle svg { width: 22px; height: 22px; }

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

[dir="rtl"] .hero-bg::before {
  background: url('../images/hero-pattern.png') center / 90% no-repeat;
}

[dir="ltr"] .hero-bg::before {
  background: url('../images/hero-pattern.png') center / 90% no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(34, 42, 53, 0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--color-accent-soft);
  border-radius: 100px;
  border: 1px solid rgba(123, 166, 196, 0.2);
}

.hero-tagline::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 78px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 800;
}

.hero p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-tags {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.hero-tags span:not(.dot) { white-space: nowrap; }
.hero-tags .dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  z-index: 2;
}

[dir="rtl"] .scroll-indicator { right: auto; left: 24px; }

.scroll-indicator .scroll-dot {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-indicator .scroll-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ---------- Section base ---------- */
.section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 1;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 152, 169, 0.08), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(109, 152, 169, 0.4);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.service-icon svg { width: 24px; height: 24px; color: var(--color-accent); }

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

/* ---------- Portfolio / Work ---------- */
.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.work-header h2 { font-size: clamp(28px, 4vw, 44px); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.work-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 42, 53, 0.95) 0%, rgba(34, 42, 53, 0.3) 50%, transparent 100%);
  pointer-events: none;
}

.work-card:hover img { transform: scale(1.08); }

.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.work-card:hover .work-play {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.work-play svg { width: 20px; height: 20px; color: #fff; margin-inline-start: 2px; }

.work-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  text-align: center;
}

.work-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.work-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- About / Stats ---------- */
.about {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg-primary) 0%, rgba(34, 42, 53, 0.85) 40%, rgba(34, 42, 53, 0.5) 100%),
    url('https://images.unsplash.com/photo-1492724441997-5dc865305da7?w=1600&q=80') center / cover;
  z-index: 0;
}

[dir="ltr"] .about-bg {
  background:
    linear-gradient(to left, var(--bg-primary) 0%, rgba(34, 42, 53, 0.85) 40%, rgba(34, 42, 53, 0.5) 100%),
    url('https://images.unsplash.com/photo-1492724441997-5dc865305da7?w=1600&q=80') center / cover;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin-inline-start: auto;
  text-align: start;
}

[dir="rtl"] .about-content { margin-inline-start: auto; margin-inline-end: 0; }

.about-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-family: var(--font-en);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ---------- Clients ---------- */
.clients {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients h2 {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
}

/* Image-based client logos — white tile cards (so brand colors show clearly) */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.client-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.5) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.client-logo:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(123, 166, 196, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.client-logo:hover::before { opacity: 1; }

.client-logo img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-logo:hover img { transform: scale(1.08); }

/* Fallback for any remaining text-based client logos (legacy) */
.client-logo.text-only {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  opacity: 0.7;
  font-family: var(--font-en);
  white-space: nowrap;
  background: transparent;
  border: none;
  padding: 0;
  height: auto;
}
.client-logo.text-only:hover {
  opacity: 1;
  color: var(--text-secondary);
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

/* Clients wall — for the dedicated /clients page (3-column grid of card-style logos) */
.clients-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.clients-wall .client-logo {
  height: 180px;
  padding: 32px;
}

.clients-wall .client-card-large {
  aspect-ratio: 4 / 3;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s;
  cursor: pointer;
  padding: 36px;
  overflow: hidden;
  position: relative;
}

.clients-wall .client-card-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.clients-wall .client-card-large:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(123, 166, 196, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.clients-wall .client-card-large:hover::before { opacity: 1; }

.clients-wall .client-card-large img {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clients-wall .client-card-large:hover img { transform: scale(1.06); }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 20px; }

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

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

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--color-accent); }

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; color: var(--color-accent); }

.contact-list a { direction: ltr; }
[dir="rtl"] .contact-list .phone { direction: ltr; display: inline-block; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom .crafted span { color: var(--color-accent); font-style: italic; }

.footer-bottom .credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom .credit a {
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}
.footer-bottom .credit a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}
.footer-bottom .credit a:hover {
  color: var(--color-primary);
}
.footer-bottom .credit a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 290px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top, rgba(109, 152, 169, 0.15), transparent 60%),
    linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  z-index: 0;
}

.page-header .breadcrumb {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.page-header .breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.page-header .breadcrumb a:hover { color: var(--color-accent); }
.page-header .breadcrumb-sep { color: var(--text-dim); }

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-header h1 .accent { color: var(--color-primary); font-style: italic; }

.page-header p {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Two column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}

.two-col h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.two-col p { color: var(--text-secondary); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }

/* ---------- Vision/Mission cards ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.vm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.vm-card:hover {
  border-color: rgba(109, 152, 169, 0.3);
  transform: translateY(-4px);
}

.vm-card .vm-num {
  font-family: var(--font-en);
  font-size: 90px;
  font-weight: 800;
  color: rgba(123, 166, 196, 0.08);
  position: absolute;
  top: 16px;
  inset-inline-end: 24px;
  line-height: 1;
  pointer-events: none;
}

.vm-card .vm-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.vm-card .vm-icon svg { width: 26px; height: 26px; color: var(--color-accent); }

.vm-card h3 { font-size: 24px; margin-bottom: 12px; }
.vm-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }

/* ---------- Departments grid ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.dept-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.dept-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(123, 166, 196, 0.3);
}

.dept-item .dept-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.dept-item span:last-child { font-size: 14px; font-weight: 500; }

/* ---------- Service detail (services page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.service-detail:last-child { margin-bottom: 0; }

.service-detail:nth-child(even) .service-detail-image {
  order: 2;
}

.service-detail-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 152, 169, 0.2), transparent 60%);
}

.service-detail-content h3 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
}

.service-detail-content > p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-detail-content ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border);
}
.service-detail-content ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Blog cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 152, 169, 0.3);
}

.blog-card .blog-img {
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.blog-card .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-card .blog-body { padding: 24px; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-tag {
  padding: 4px 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: 100px;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.contact-info > p { color: var(--text-secondary); font-size: 16px; line-height: 1.8; margin-bottom: 40px; }

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(109, 152, 169, 0.3);
  background: var(--bg-card-hover);
}

.contact-card .contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card .contact-card-icon svg { width: 22px; height: 22px; color: var(--color-accent); }

.contact-card .contact-card-body h4 { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.contact-card .contact-card-body p { font-size: 15px; color: var(--text-primary); font-weight: 600; }
.contact-card .contact-card-body a { display: inline-block; }
.contact-card.phone-card p { direction: ltr; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 { font-size: 22px; margin-bottom: 24px; }

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

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
  background: var(--bg-secondary);
}

.form-field textarea { resize: vertical; min-height: 120px; font-family: inherit; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1E4FB8 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.15), transparent 60%);
}

.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: 28px; font-size: 16px; }
.cta-banner .btn {
  background: #fff;
  color: var(--color-primary);
}
.cta-banner .btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.3; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: 110px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  overflow-y: auto;
}

[dir="rtl"] .mobile-menu { transform: translateX(-100%); }

.mobile-menu.is-open { transform: translateX(0); visibility: visible; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-menu a::after {
  content: '←';
  font-size: 18px;
  color: var(--text-dim);
  transition: var(--transition);
}
[dir="ltr"] .mobile-menu a::after { content: '→'; }

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  padding-inline-start: 12px;
}
.mobile-menu a.active::after,
.mobile-menu a:hover::after { color: var(--color-primary); }

.mobile-menu .mobile-cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu .mobile-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid, .two-col, .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .service-detail:nth-child(even) .service-detail-image { order: 0; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
  .lang-switch { padding: 8px 12px; font-size: 13px; }
  .logo img { height: 150px; }
  .header.scrolled .logo img { height: 120px; }
  .nav { gap: 12px; }
  .hero { padding: 220px 0 60px; min-height: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .scroll-indicator { display: none; }
  .work-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .cta-banner { padding: 40px 24px; }
  .vm-card { padding: 32px 24px; }
  .container { padding: 0 20px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .page-header { padding: 260px 0 70px; }
}

@media (max-width: 480px) {
  .logo img { height: 120px; }
  .header.scrolled .logo img { height: 100px; }
  .lang-switch { padding: 7px 10px; font-size: 12px; }
  .menu-toggle { width: 44px; height: 44px; }
  .mobile-menu { padding: 180px 22px 32px; }
  .mobile-menu a { font-size: 18px; padding: 18px 4px; }
  .hero h1 { font-size: 40px; }
  .hero { padding: 200px 0 50px; }
  .page-header { padding: 220px 0 60px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 380px) {
  .logo img { height: 100px; }
  .header.scrolled .logo img { height: 85px; }
}

/* ===================================================================
   LANDSCAPE + MOTION ENHANCEMENTS
   =================================================================== */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------- Cursor follower (desktop only) ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover {
  width: 60px;
  height: 60px;
  background: rgba(109, 152, 169, 0.2);
  border-color: var(--color-primary);
}
@media (max-width: 1024px) { .cursor-dot { display: none; } }

/* ---------- Hero — landscape composition with visual ---------- */
.hero { overflow: hidden; }

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content { max-width: 100% !important; }

.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(109, 152, 169, 0.18) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
  animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-visual img {
  position: relative;
  width: 80%;
  max-width: 440px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(109, 152, 169, 0.4));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-1deg); }
}

.hero-visual .orbit {
  position: absolute;
  border: 1px dashed rgba(123, 166, 196, 0.2);
  border-radius: 50%;
  animation: orbitSpin 30s linear infinite;
}
.hero-visual .orbit.o1 { width: 380px; height: 380px; }
.hero-visual .orbit.o2 { width: 480px; height: 480px; animation-duration: 50s; animation-direction: reverse; }
.hero-visual .orbit.o3 { width: 280px; height: 280px; animation-duration: 20s; }

.hero-visual .orbit::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-primary);
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { height: 360px; order: -1; }
  .hero-visual .orbit.o1 { width: 280px; height: 280px; }
  .hero-visual .orbit.o2 { width: 360px; height: 360px; }
  .hero-visual .orbit.o3 { width: 200px; height: 200px; }
  .hero-visual img { max-width: 280px; }
}

@media (max-width: 600px) {
  .hero-visual { height: 280px; }
  .hero-visual .orbit.o1 { width: 220px; height: 220px; }
  .hero-visual .orbit.o2 { width: 280px; height: 280px; }
  .hero-visual .orbit.o3 { width: 160px; height: 160px; }
  .hero-visual img { max-width: 220px; }
}

/* ---------- Hero word reveal animation ---------- */
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-30deg);
  animation: wordRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.2s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.3s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.4s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.5s; }
.hero h1 .word:nth-child(6) { animation-delay: 0.6s; }

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

/* ---------- Marquee — horizontal scrolling band ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 50px 0;
  background: linear-gradient(180deg, transparent, rgba(109, 152, 169, 0.06), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 60px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
  line-height: 1.1;
}

[dir="rtl"] .marquee-track { animation-direction: reverse; }

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text-secondary);
  line-height: 1;
  padding: 8px 0;
}

[dir="rtl"] .marquee-item { font-family: 'Tajawal', sans-serif; }

.marquee-item::after {
  content: '✦';
  color: var(--color-primary);
  font-size: 0.6em;
}

.marquee-item.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-muted);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Horizontal-scrolling portfolio ---------- */
.h-scroll {
  position: relative;
  padding: 40px 0 80px;
}

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

.h-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.h-scroll-hint .arrow {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--text-muted);
  position: relative;
}
.h-scroll-hint .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--text-muted);
  border-top: 1.5px solid var(--text-muted);
  transform: translateY(-50%) rotate(45deg);
}
[dir="rtl"] .h-scroll-hint .arrow::after {
  right: auto;
  left: 0;
  border: none;
  border-left: 1.5px solid var(--text-muted);
  border-top: 1.5px solid var(--text-muted);
  transform: translateY(-50%) rotate(-45deg);
}

.h-scroll-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
  padding-bottom: 24px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.h-scroll-track::-webkit-scrollbar { height: 4px; }
.h-scroll-track::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }
.h-scroll-track::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }

.h-scroll-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.h-scroll-card:hover { transform: translateY(-8px); }

.h-scroll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.h-scroll-card:hover img { transform: scale(1.08); }

.h-scroll-card-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(180deg, transparent 40%, rgba(34, 42, 53, 0.9) 100%);
  color: white;
}
.h-scroll-card-info .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
  padding: 6px 12px;
  background: rgba(123, 166, 196, 0.15);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.h-scroll-card-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.h-scroll-card-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

.h-scroll-card .play-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}
.h-scroll-card:hover .play-badge {
  background: var(--color-primary);
  transform: scale(1.1);
}
.h-scroll-card .play-badge svg { width: 18px; height: 18px; color: white; }
[dir="rtl"] .h-scroll-card .play-badge { right: auto; left: 24px; }

@media (max-width: 768px) {
  .h-scroll-card { flex: 0 0 280px; }
  .h-scroll-card-info { padding: 20px; }
  .h-scroll-card-info h3 { font-size: 22px; }
}

/* ---------- Staggered reveal ---------- */
.reveal { transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }
.reveal[data-delay="600"] { transition-delay: 0.6s; }

.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }
.reveal-left.is-visible, .reveal-right.is-visible { transform: translateX(0); }
.reveal-scale.is-visible { transform: scale(1); }

/* ---------- Magnetic / lift on hover ---------- */
.btn { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(109, 152, 169, 0.4); }

.service-card,
.work-card,
.vm-card,
.blog-card,
.contact-card,
.testimonial-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s;
}

.service-card:hover,
.vm-card:hover,
.blog-card:hover,
.contact-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(109, 152, 169, 0.3);
}

/* ---------- Parallax helper ---------- */
.parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ---------- Page entry animation ---------- */
body { animation: pageEntry 0.6s ease-out; }
@keyframes pageEntry {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Smooth scroll ---------- */
html { scroll-behavior: smooth; }


/* ---------- Video lightbox ---------- */
.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.video-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-lightbox.is-open .video-lightbox-content { transform: scale(1); }

.video-lightbox iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1001;
}

.video-lightbox-close:hover {
  background: var(--color-primary);
  transform: rotate(90deg) scale(1.1);
  border-color: transparent;
}

.video-lightbox-close svg { width: 22px; height: 22px; }

[dir="rtl"] .video-lightbox-close { right: auto; left: 24px; }

/* Video cards get a "live" indicator */
.video-card .play-badge,
.h-scroll-card[data-video-id] .play-badge {
  width: 72px;
  height: 72px;
  background: rgba(109, 152, 169, 0.9);
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 0 0 rgba(109, 152, 169, 0.6);
  animation: pulseRing 2s ease-out infinite;
}

[dir="rtl"] .h-scroll-card[data-video-id] .play-badge {
  left: 50%;
  right: auto;
}

.h-scroll-card[data-video-id]:hover .play-badge,
.video-card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--color-primary);
}

.h-scroll-card[data-video-id] .play-badge svg,
.video-card .play-badge svg { width: 24px; height: 24px; }

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(109, 152, 169, 0.55); }
  70% { box-shadow: 0 0 0 24px rgba(109, 152, 169, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 152, 169, 0); }
}

/* Work-card video variant on inner work pages */
.work-card[data-video-id] { cursor: pointer; }
.work-card[data-video-id] .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(109, 152, 169, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 3;
  box-shadow: 0 0 0 0 rgba(109, 152, 169, 0.6);
  animation: pulseRing 2s ease-out infinite;
  transition: var(--transition);
}
.work-card[data-video-id]:hover .play-badge {
  background: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.15);
}
.work-card[data-video-id] .play-badge svg { width: 22px; height: 22px; }
.work-card[data-video-id] .work-play { display: none; }

@media (max-width: 768px) {
  .video-lightbox { padding: 16px; }
  .video-lightbox-close { width: 44px; height: 44px; top: 16px; right: 16px; }
  [dir="rtl"] .video-lightbox-close { left: 16px; right: auto; }
}


/* ---------- Image lightbox (portfolio photos) ---------- */
.image-lightbox .image-lightbox-content {
  aspect-ratio: auto;
  width: auto;
  max-width: 90vw;
  max-height: 80vh;
  background: transparent;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox .image-lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1001;
}
.lightbox-nav:hover {
  background: var(--color-primary);
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 32px; }
.lightbox-next { right: 32px; }
[dir="rtl"] .lightbox-prev { left: auto; right: 32px; }
[dir="rtl"] .lightbox-next { right: auto; left: 32px; }
[dir="rtl"] .lightbox-prev svg,
[dir="rtl"] .lightbox-next svg { transform: scaleX(-1); }

.lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  max-width: 80vw;
  pointer-events: none;
}
.lightbox-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 4px 10px;
  background: rgba(123, 166, 196, 0.15);
  border-radius: 100px;
}
.lightbox-title { font-weight: 600; color: white; }
.lightbox-counter {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  [dir="rtl"] .lightbox-prev { right: 12px; left: auto; }
  [dir="rtl"] .lightbox-next { left: 12px; right: auto; }
  .lightbox-caption { bottom: 16px; padding: 10px 16px; font-size: 12px; gap: 10px; }
}

/* Portfolio photo card — image overlay differs from video card */
.h-scroll-card[data-image-src] .play-badge,
.work-card[data-image-src] .play-badge {
  background: rgba(123, 166, 196, 0.9);
  animation: none;
}
.h-scroll-card[data-image-src]:hover .play-badge,
.work-card[data-image-src]:hover .play-badge {
  background: var(--color-accent);
}

