:root {
  --bg: #f5f7fb;
  --bg-soft: #f8f9fc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #14213d;
  --muted: #5e6c85;
  --primary: #1e3a8a;
  --secondary: #0f4c81;
  --accent: #f59e0b;
  --border: rgba(30, 58, 138, 0.14);
  --shadow: 0 22px 50px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6fc 100%);
  line-height: 1.6;
}

body[dir='rtl'] {
  text-align: right;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-label,
.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.1rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}

h3 {
  font-size: 1.2rem;
}

.section-copy,
.hero-text,
.service-card p,
.about-card p,
.team-card p,
.mini-card p,
.faq-answer p,
.cta-card p,
.inquiry-card label,
.testimonial-card p,
.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(248, 249, 252, 0.78);
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: contain;
  padding: 6px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.14);
}

.brand-mark {
  color: var(--primary);
}

.brand-text {
  color: var(--text);
  line-height: 1.1;
  white-space: normal;
}

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--secondary);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

.menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.16);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 1px solid rgba(30, 58, 138, 0.14);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 70px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 76, 129, 0.94), rgba(30, 58, 138, 0.82)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  pointer-events: none;
}

.hero-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.42;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-one {
  width: 260px;
  height: 260px;
  left: -40px;
  top: 90px;
  background: rgba(245, 158, 11, 0.28);
}

.orb-two {
  width: 340px;
  height: 340px;
  right: -80px;
  bottom: -70px;
  background: rgba(255, 255, 255, 0.16);
  animation-duration: 14s;
}

.orb-three {
  width: 240px;
  height: 240px;
  right: 16%;
  top: 8%;
  background: rgba(255, 255, 255, 0.12);
  animation-duration: 10s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  color: #fff;
  max-width: 700px;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1 {
  color: #fff;
  margin-bottom: 16px;
}

.hero-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.pill,
.tags-row span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-card-body {
  padding: 24px;
}

.hero-card-body .section-label {
  margin-bottom: 8px;
}

.hero-card-body h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  color: var(--secondary);
  background: rgba(30, 58, 138, 0.08);
  border-color: rgba(30, 58, 138, 0.14);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.8;
}

.scroll-indicator span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: bounce 1.4s ease-in-out infinite;
}

.scroll-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.scroll-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

.section-grid {
  display: grid;
  gap: 28px;
}

.about-grid,
.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.about-highlights {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.about-card,
.mini-card,
.service-card,
.stat-card,
.team-card,
.testimonial-card,
.faq-item,
.inquiry-card,
.cta-card,
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.about-card,
.mini-card,
.service-card,
.stat-card,
.team-card,
.faq-item,
.inquiry-card,
.cta-card {
  padding: 24px;
}

.about-image img {
  border-radius: 28px;
  min-height: 380px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  text-align: center;
}

.counter {
  display: block;
  color: var(--primary);
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  margin-bottom: 6px;
  font-weight: 800;
}

.service-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(245, 158, 11, 0.1));
  border: 1px solid var(--border);
}

.text-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(20, 33, 61, 0.14);
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-body {
  padding: 20px 22px 22px;
}

.icon-pill {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-weight: 600;
}

.feature-item i {
  color: var(--accent);
}

.card-stack {
  display: grid;
  gap: 14px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags-row span {
  color: var(--secondary);
  background: rgba(30, 58, 138, 0.08);
  border-color: rgba(30, 58, 138, 0.12);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline > div {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--border);
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.team-role {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}

.testimonial-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.testimonial-nav {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.2rem;
}

.testimonial-track {
  position: relative;
  min-height: 240px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 28px;
}

.testimonial-card.is-active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.stars {
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.testimonial-author {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  color: var(--secondary);
  background: rgba(30, 58, 138, 0.08);
  border-color: rgba(30, 58, 138, 0.12);
}

.filter-chip.is-active {
  background: var(--primary);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 14px 16px 16px;
  color: var(--secondary);
  font-weight: 700;
}

.gallery-item.is-hidden {
  display: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 700;
  text-align: left;
  color: var(--text);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  margin-top: 10px;
}

.faq-item.is-open .faq-question i {
  transform: rotate(45deg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.96), rgba(15, 76, 129, 0.92));
  color: #fff;
}

.cta-card .section-label,
.cta-card .section-copy {
  color: rgba(255,255,255,0.82);
}

.cta-card h2 {
  color: #fff;
}

.inquiry-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 58, 138, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.form-row label {
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.01em;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(30, 58, 138, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(30, 58, 138, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}

.form-hint {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-status {
  min-height: 24px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--secondary);
}

.site-footer {
  padding: 34px 0 48px;
  background: #0f172a;
  color: #e5e7eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-links a,
.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 60;
}

:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.55);
  outline-offset: 3px;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(16px, -18px, 0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .two-column,
  .stats-grid,
  .services-grid,
  .team-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-shell {
    grid-template-columns: 1fr;
  }

  .testimonial-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-bar {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .brand {
    flex: 1 1 100%;
    max-width: calc(100% - 96px);
    order: 1;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
  }

  .lang-switcher {
    margin-left: 0;
    order: 3;
  }

  .nav-links {
    display: none;
    position: static;
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
    padding: 12px;
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    order: 4;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 70px 0 90px;
  }

  .service-highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.9) 0%, transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(84,192,255,0.55) 0%, transparent 24%),
    radial-gradient(circle at 70% 80%, rgba(11,96,179,0.35) 0%, transparent 30%),
    linear-gradient(135deg, rgba(233,247,255,0.95), rgba(175,224,255,0.9));
  transform: scale(1.04);
  animation: heroPulse 12s ease-in-out infinite alternate;
}

.hero-background::before,
.hero-background::after {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 32px;
  filter: blur(24px);
  opacity: 0.8;
  mix-blend-mode: screen;
}

.hero-background::before {
  background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.95), transparent 26%),
    radial-gradient(circle at 65% 35%, rgba(76,185,255,0.7), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(22,137,232,0.3), transparent 33%);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero-background::after {
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 35%, transparent 70%);
  transform: translateX(-15%) skewX(-18deg);
  animation: sweep 8s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.78;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-glow-one {
  width: 420px;
  height: 420px;
  top: 4%;
  left: -10%;
  background: rgba(76, 185, 255, 0.32);
  animation-duration: 7s;
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: -8%;
  bottom: 8%;
  background: rgba(15, 94, 168, 0.24);
  animation-delay: 1.1s;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 88%);
  opacity: 0.5;
  animation: driftGrid 20s linear infinite;
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  animation: rotate 28s linear infinite;
  box-shadow: inset 0 0 40px rgba(255,255,255,0.16);
}

.hero-ring-one {
  width: 480px;
  height: 480px;
  top: 12%;
  right: 10%;
}

.hero-ring-two {
  width: 680px;
  height: 680px;
  bottom: -20%;
  left: -10%;
  animation-direction: reverse;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(20px, -16px, 0) scale(1.08);
  }
}

@keyframes driftGrid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(40px, 40px, 0);
  }
}

@keyframes heroPulse {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(1);
  }
  100% {
    transform: scale(1.06) translate3d(8px, -10px, 0);
    filter: saturate(1.15);
  }
}

@keyframes sweep {
  0%,
  100% {
    transform: translateX(-20%) skewX(-18deg);
    opacity: 0.3;
  }
  50% {
    transform: translateX(20%) skewX(-18deg);
    opacity: 0.75;
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(18px, -24px, 0) scale(1.3);
    opacity: 0.9;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
  transform: translate3d(var(--mouse-x, 0px), var(--mouse-y, 0px), 0);
  transition: transform 0.2s ease-out;
}

.eyebrow,
.section-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section h2 {
  margin: 0 0 16px;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.hero-text,
.section p,
.feature-list,
.service-card p,
.leader-card p,
.panel-card p,
.mini-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p,
.section p,
.service-card p,
.mini-card p,
.leader-card p,
.panel-card p {
  color: #46627a;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin: 26px 0 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(22, 137, 232, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 94, 168, 0.24);
}

.btn-secondary {
  border: 1px solid rgba(15, 94, 168, 0.24);
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.78);
}

.hero-badges,
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.tags-row span,
.impact-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 94, 168, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--secondary);
}

.hero-panel,
.card-list,
.grid,
.timeline,
.contact-grid {
  display: grid;
  gap: 18px;
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #0a3260;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 35, 70, 0.04) 36%, rgba(5, 35, 70, 0.82));
}

.hero-visual img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.panel-card,
.mini-card,
.service-card,
.leader-card,
.impact-card,
.inquiry-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 94, 168, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.panel-card,
.mini-card,
.service-card,
.leader-card {
  padding: 22px;
}

.service-image {
  width: calc(100% + 44px);
  height: 138px;
  display: block;
  margin: -22px -22px 18px;
  object-fit: cover;
  border-radius: 21px 21px 0 0;
  border-bottom: 1px solid rgba(15, 94, 168, 0.14);
}

.service-card:has(.service-image) h3 {
  margin-top: 0;
}

.highlight-card {
  background: linear-gradient(145deg, rgba(43, 209, 255, 0.16), rgba(143, 124, 255, 0.12));
}

.section {
  padding: 78px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.44);
}

.section-heading {
  margin-bottom: 26px;
}

.service-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(22, 137, 232, 0.14), rgba(15, 94, 168, 0.08));
  border: 1px solid rgba(15, 94, 168, 0.18);
  box-shadow: 0 14px 32px rgba(15, 94, 168, 0.1);
}

.service-highlight h3 {
  margin: 6px 0 8px;
  color: var(--secondary);
}

.service-highlight p {
  margin: 0;
}

.form-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.section-grid.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.services-grid,
.leadership-grid,
.impact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Gallery styles for added image section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.gallery-item {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,94,168,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(9,58,102,0.06);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 94, 168, 0.16);
  border-radius: 16px;
}

.timeline span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04101f;
  font-weight: 700;
}

.feature-list {
  padding-left: 18px;
}

.feature-list li + li {
  margin-top: 10px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.inquiry-card {
  padding: 24px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  color: var(--secondary);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 94, 168, 0.2);
  border-radius: 14px;
  padding: 14px 15px;
  background: #fafdff;
  color: var(--text);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #7090a8;
}

button.btn {
  border: none;
  cursor: pointer;
}

.form-status {
  margin-top: 14px;
  color: var(--primary);
  font-size: 0.95rem;
  min-height: 1.4em;
}

.site-footer {
  padding: 30px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid,
  .section-grid.two-column,
  .services-grid,
  .leadership-grid,
  .impact-grid,
  .timeline,
  .premium-grid,
  .premium-cards,
  .stat-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-card,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  body[dir='rtl'] .cta-card,
  body[dir='rtl'] .footer-grid,
  body[dir='rtl'] .service-highlight {
    flex-direction: row-reverse;
    align-items: flex-end;
  }
}

@media (max-width: 760px) {
  .nav-bar {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .brand {
    flex: 1 1 100%;
    max-width: calc(100% - 96px);
    order: 1;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
  }

  .lang-switcher {
    margin-left: 0;
    order: 3;
  }

  .nav-links {
    position: static;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    margin-left: 0;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    order: 4;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 44px;
  }
}
