:root {
  --primary: #0f5da6;
  --primary-dark: #0b4377;
  --secondary: #77c4f2;
  --secondary-soft: #eaf7ff;
  --accent: #c83c43;
  --text: #18324a;
  --text-soft: #53708a;
  --white: #ffffff;
  --border: rgba(15, 93, 166, 0.12);
  --shadow: 0 20px 45px rgba(9, 62, 105, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1140px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(119, 196, 242, 0.22), transparent 28%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 20%, #f8fcff 100%);
  color: var(--text);
  line-height: 1.9;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(119, 196, 242, 0.09), rgba(119, 196, 242, 0.02));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.intro-card h2,
.quick-contact h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.35;
}

.section-heading p,
.intro-card p,
.quick-contact p {
  margin: 0;
  color: var(--text-soft);
}

.section-tag,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.section-tag::before,
.eyebrow::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 0 0 6px rgba(119, 196, 242, 0.16);
}

.site-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  z-index: 1200;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.loader-ring {
  width: 82px;
  height: 82px;
  border: 4px solid rgba(15, 93, 166, 0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
}

.hero-shell {
  position: relative;
  overflow: clip;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(8px);
  z-index: -1;
}

.hero-shell::before {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(119, 196, 242, 0.35), transparent 70%);
}

.hero-shell::after {
  width: 520px;
  height: 520px;
  top: 120px;
  right: -180px;
  background: radial-gradient(circle, rgba(15, 93, 166, 0.15), transparent 70%);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(16, 57, 94, 0.08);
  border-color: var(--border);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #1587d9);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-text {
  display: grid;
  line-height: 1.3;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.language-switch {
  min-width: 48px;
  min-height: 42px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.language-switch:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.nav-links a {
  position: relative;
  font-weight: 700;
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 93, 166, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  padding: 3.5rem 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 1rem 0;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.25;
}

.hero-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1c7ac4);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(15, 93, 166, 0.22);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--border);
  color: var(--primary-dark);
}

.hero-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.hero-points li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(200, 60, 67, 0.12);
}

.hero-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(234, 247, 255, 0.96)),
    var(--white);
  border: 1px solid rgba(119, 196, 242, 0.22);
  box-shadow: var(--shadow);
}

.card-glass {
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: "";
  position: absolute;
  inset: auto auto -20px -20px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(119, 196, 242, 0.28), transparent 65%);
}

.hero-card-top span,
.hero-badge span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-card-top strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.3rem;
}

.hero-stats {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0;
}

.hero-stats article {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
}

.hero-stats strong,
.intro-metrics strong,
.contact-card h3,
.footer h3 {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-stats span,
.intro-metrics span,
.contact-card p,
.footer p,
.footer li {
  color: var(--text-soft);
}

.hero-badge {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.hero-badge p {
  margin: 0.35rem 0 0;
  font-weight: 700;
  color: var(--primary-dark);
}

.intro-strip {
  padding-top: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: -2rem;
}

.intro-card,
.intro-metrics,
.card,
.value-card,
.service-card,
.product-card,
.contact-card,
.contact-form,
.quick-contact-wrap {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.intro-card,
.intro-metrics,
.card,
.value-card,
.service-card,
.product-card,
.contact-form {
  padding: 1.7rem;
}

.intro-metrics {
  display: grid;
  gap: 1rem;
}

.about-grid,
.values-grid,
.service-grid,
.product-grid,
.footer-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.values-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
}

.value-card ul,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-card li,
.footer-links li {
  margin-bottom: 0.75rem;
  color: var(--text-soft);
}

.highlight {
  background: linear-gradient(135deg, rgba(15, 93, 166, 0.95), rgba(21, 135, 217, 0.92));
  color: var(--white);
}

.highlight p {
  color: rgba(255, 255, 255, 0.88);
}

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

.service-card,
.product-card {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  border-bottom-left-radius: 24px;
  background: linear-gradient(135deg, rgba(119, 196, 242, 0.22), transparent);
}

.why-us {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(11, 67, 119, 0.98), rgba(15, 93, 166, 0.88));
  color: var(--white);
  box-shadow: var(--shadow);
}

.why-copy h3 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.why-list {
  display: grid;
  gap: 0.9rem;
}

.why-list div {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.partner-logo {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 247, 255, 0.96));
  border: 1px dashed rgba(15, 93, 166, 0.22);
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
}

.partner-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.partner-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(9, 62, 105, 0.07);
}

.partner-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.02rem;
}

.partner-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.91rem;
  line-height: 1.75;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.partner-link::after {
  content: "←";
  margin-right: 0.35rem;
}

html[dir="ltr"] .partner-link::after {
  content: "→";
  margin-right: 0;
  margin-left: 0.35rem;
}

.partners-note {
  margin-top: 1rem;
}

.partners-note p {
  margin: 0;
  color: var(--text-soft);
}

.quick-contact-wrap {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.3rem 1.4rem;
}

.contact-card a,
.footer a {
  color: var(--primary);
}

.map-card iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
}

.contact-form h3 {
  margin: 0 0 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 93, 166, 0.14);
  background: #fafdff;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(15, 93, 166, 0.45);
  box-shadow: 0 0 0 4px rgba(119, 196, 242, 0.18);
}

.form-note {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.footer {
  background: linear-gradient(180deg, #0c2e51, #0a223b);
  color: var(--white);
  padding-top: 4rem;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.8fr 0.9fr;
  padding-bottom: 2rem;
}

.footer p,
.footer li,
.footer a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.whatsapp-float,
.to-top {
  position: fixed;
  left: 1.25rem;
  z-index: 999;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.whatsapp-float {
  bottom: 1.25rem;
  min-width: 130px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18a957;
  color: var(--white);
  font-weight: 800;
}

.to-top {
  bottom: 5.6rem;
  width: 50px;
  height: 50px;
  border: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

@media (max-width: 980px) {
  .hero-grid,
  .intro-grid,
  .about-grid,
  .values-grid,
  .service-grid,
  .product-grid,
  .why-us,
  .contact-grid,
  .footer-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .quick-contact-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-block;
  }

  .language-switch {
    margin-inline-start: auto;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.7rem 0.3rem;
  }
}

html[dir="ltr"] .brand,
html[dir="ltr"] .hero-copy,
html[dir="ltr"] .section-heading,
html[dir="ltr"] .intro-card,
html[dir="ltr"] .intro-metrics,
html[dir="ltr"] .card,
html[dir="ltr"] .value-card,
html[dir="ltr"] .service-card,
html[dir="ltr"] .product-card,
html[dir="ltr"] .contact-card,
html[dir="ltr"] .contact-form,
html[dir="ltr"] .footer,
html[dir="ltr"] .quick-contact-wrap {
  text-align: left;
}

html[dir="ltr"] .whatsapp-float,
html[dir="ltr"] .to-top {
  left: auto;
  right: 1.25rem;
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .nav-wrap {
    min-height: 76px;
  }

  .hero {
    padding: 2.5rem 0 4rem;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .brand-text small {
    display: none;
  }

  .hero-card,
  .intro-card,
  .intro-metrics,
  .card,
  .value-card,
  .service-card,
  .product-card,
  .contact-form,
  .quick-contact-wrap {
    padding: 1.3rem;
  }

  .whatsapp-float {
    left: 1rem;
    right: 1rem;
    min-width: 0;
  }

  .to-top {
    left: auto;
    right: 1rem;
    bottom: 5.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
