/* ============================================================
   OrthoMedica Libyan Italian Center — Main Stylesheet
   Design System: Teal/Navy Dark Theme
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --clr-primary:      #34AAB2;
  --clr-secondary:    #308496;
  --clr-accent:       #30718E;
  --clr-primary-rgb:  52, 170, 178;

  /* Background Palette (Light theme) */
  --clr-dark:         #FFFFFF;
  --clr-dark-2:       #F4F8FA;
  --clr-dark-3:       #E9F0F3;
  --clr-dark-4:       #DDE7EC;

  /* Text Colors (dark on light) */
  --clr-text:         #0F2840;
  --clr-text-muted:   #5A7A8A;
  --clr-text-light:   #3D5666;

  /* Glass */
  --glass-bg:         rgba(48, 113, 142, 0.08);
  --glass-border:     rgba(48, 113, 142, 0.20);
  --glass-bg-hover:   rgba(48, 113, 142, 0.15);

  /* Gradients */
  --grad-brand:       linear-gradient(135deg, #34AAB2 0%, #30718E 100%);
  --grad-brand-r:     linear-gradient(135deg, #30718E 0%, #34AAB2 100%);
  --grad-dark:        linear-gradient(180deg, #FFFFFF 0%, #F4F8FA 100%);
  --grad-hero:        radial-gradient(ellipse 80% 60% at 50% 0%, #E9F4F6 0%, #FFFFFF 70%);
  --grad-glow:        radial-gradient(circle, rgba(52,170,178,0.25) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm:        0 2px 8px rgba(15,40,64,0.08);
  --shadow-md:        0 4px 20px rgba(15,40,64,0.12);
  --shadow-lg:        0 8px 40px rgba(15,40,64,0.15);
  --shadow-glow:      0 0 30px rgba(52,170,178,0.25);
  --shadow-glow-lg:   0 0 60px rgba(52,170,178,0.35);

  /* Border Radius */
  --radius-sm:        8px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --radius-xl:        32px;
  --radius-full:      9999px;

  /* Spacing */
  --section-py:       100px;
  --container-px:     24px;

  /* Typography */
  --font-ar:          'Cairo', sans-serif;
  --font-en:          'Inter', sans-serif;

  /* Transitions */
  --trans-fast:       all 0.2s ease;
  --trans-mid:        all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow:       all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-behind:    -1;
  --z-base:       0;
  --z-above:      10;
  --z-modal:      100;
  --z-nav:        1000;
  --z-loader:     9999;
}

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

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

body {
  background: var(--clr-dark);
  color: var(--clr-text);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

body.lang-en {
  font-family: var(--font-en);
  direction: ltr;
}

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

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-brand);
  z-index: var(--z-loader);
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--clr-primary);
}

/* ── Page Loader ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--clr-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 120px;
  margin-bottom: 32px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--clr-dark-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: var(--radius-full);
  animation: loaderBar 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  box-shadow: 0 0 10px var(--clr-primary);
}

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ── Section Base ── */
.section, section[id] {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
}

/* ── Section Badge ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--clr-primary);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--clr-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--clr-primary);
}

/* ── Section Titles ── */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 16px;
}

.section-title span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

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

/* ── Glassmorphism Card ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--trans-mid);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(52, 170, 178, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--trans-mid);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(52, 170, 178, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--trans-fast);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 170, 178, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}

.btn-outline:hover {
  background: var(--glass-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ── Divider Wave ── */
.wave-divider {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg { display: block; width: 100%; }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(15,40,64,0.12);
}

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

.nav-logo img {
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(52,170,178,0.3));
  transition: var(--trans-fast);
}

.nav-logo img:hover {
  filter: drop-shadow(0 4px 16px rgba(52,170,178,0.5));
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  color: var(--clr-text-light);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--trans-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 6px var(--clr-primary);
}

.nav-link:hover { color: var(--clr-text); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

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

.lang-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--clr-primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  transition: var(--trans-fast);
  cursor: pointer;
}

.lang-btn:hover {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.nav-cta {
  background: var(--grad-brand);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--trans-mid);
  box-shadow: 0 4px 15px rgba(52,170,178,0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(52,170,178,0.45);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--trans-mid);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans-mid);
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile .nav-link {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 12px 24px;
}

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

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,170,178,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48,113,142,0.1) 0%, transparent 70%);
  bottom: 0; left: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--grad-brand);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 40px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  box-shadow: 0 8px 32px rgba(52, 170, 178, 0.35), 0 2px 8px rgba(48, 113, 142, 0.2);
  position: relative;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

/* تأثير البريق المتحرك */
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: badgeShimmer 3s ease-in-out infinite;
}

.hero-badge:hover {
  box-shadow: 0 12px 48px rgba(52, 170, 178, 0.5), 0 4px 16px rgba(48, 113, 142, 0.3);
  transform: translateY(-2px);
}



@keyframes badgeShimmer {
  0%   { left: -100%; }
  40%  { left: 130%; }
  100% { left: 130%; }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-title .line-1 { color: var(--clr-text); }
.hero-title .line-2 {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-title .line-3 { color: var(--clr-text-light); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 580px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s 2s forwards;
}

.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--clr-primary));
  animation: scrollLine 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════ */
#about {
  background: linear-gradient(180deg, var(--clr-dark) 0%, var(--clr-dark-2) 100%);
}

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

.about-visual {
  position: relative;
}

.about-logo-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.about-logo-card img {
  width: 220px;
  filter: drop-shadow(0 4px 20px rgba(52,170,178,0.3));
}

.about-logo-tagline {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.6;
}

.about-float-badge {
  position: absolute;
  background: var(--grad-brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(52,170,178,0.4);
  white-space: nowrap;
}

.float-1 { top: -20px; left: 30px; animation: floatBadge 3s ease-in-out infinite; }
.float-2 { bottom: -15px; right: 30px; animation: floatBadge 3s ease-in-out infinite 1.5s; }

.about-description {
  color: var(--clr-text-muted);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 40px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--trans-mid);
  cursor: default;
}

.value-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(52,170,178,0.35);
  transform: translateY(-3px);
}

.value-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.value-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.value-desc {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   PARTNERSHIPS SECTION
══════════════════════════════════════════════ */
#partnerships {
  background: var(--clr-dark);
  position: relative;
}

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

.partnership-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--trans-mid);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
}

.partnership-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(52,170,178,0.4);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-lg);
}

.partnership-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(52,170,178,0.1);
  border: 1px solid rgba(52,170,178,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--trans-mid);
}

.partnership-card:hover .partnership-icon-wrap {
  background: rgba(52,170,178,0.2);
  border-color: var(--clr-primary);
  box-shadow: 0 0 20px rgba(52,170,178,0.3);
  transform: scale(1.1);
}

.partnership-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 12px;
}

.partnership-card-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

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

/* ══════════════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════════════ */
#services {
  background: var(--clr-dark-2);
}

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

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--trans-mid);
  position: relative;
  overflow: hidden;
  cursor: default;
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.service-card:hover::before { opacity: 0.05; }

.service-card:hover {
  border-color: rgba(52,170,178,0.4);
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-glow-lg);
}

.service-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(52,170,178,0.1);
  border: 1px solid rgba(52,170,178,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--trans-mid);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon-wrap {
  background: rgba(52,170,178,0.2);
  border-color: var(--clr-primary);
  box-shadow: 0 0 20px rgba(52,170,178,0.3);
  transform: scale(1.1);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   PRODUCTS SECTION
══════════════════════════════════════════════ */
#products {
  background: var(--clr-dark);
}

.carousel-wrapper {
  position: relative;
  perspective: 1200px;
}

.carousel-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 480px;
  transform-style: preserve-3d;
}

.product-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  background: var(--clr-dark-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backface-visibility: hidden;
}

.product-card.active {
  border-color: var(--clr-primary);
  box-shadow: 0 0 40px rgba(52,170,178,0.3);
}

.product-img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img { transform: scale(1.05); }

.product-info { padding: 20px; }

.product-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-category-tag {
  display: inline-block;
  background: rgba(52,170,178,0.1);
  border: 1px solid rgba(52,170,178,0.2);
  color: var(--clr-text-muted);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* Flat carousel (alternative layout) */
.flat-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--clr-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-mid);
  cursor: pointer;
  font-family: inherit;
}

.carousel-btn:hover {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-dark-4);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--trans-fast);
}

.carousel-dot.active {
  background: var(--clr-primary);
  box-shadow: 0 0 8px var(--clr-primary);
  width: 24px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════
   PARTNERS SECTION
══════════════════════════════════════════════ */
#partners {
  background: var(--grad-brand);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#partners::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.partners-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  margin-top: 50px;
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 18s linear infinite;
  width: max-content;
}

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

.partner-item {
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
}

.partner-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow);
}

.partner-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--clr-text-muted);
  letter-spacing: 0.1em;
  font-family: var(--font-en);
  transition: var(--trans-fast);
}

.partner-item:hover .partner-name { color: var(--clr-primary); }

/* ── Partners section — white text overrides (gradient bg) ── */
#partners .section-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

#partners .section-badge::before {
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.7);
}

#partners .section-title {
  color: #fff;
}

#partners .section-title span {
  background: none;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.75);
  color: rgba(255, 255, 255, 0.75);
}

#partners .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

#partners .partner-item {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

#partners .partner-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

#partners .partner-name {
  color: #fff;
}

#partners .partner-item:hover .partner-name {
  color: #fff;
}


/* ══════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════ */
#stats {
  background: linear-gradient(135deg, var(--clr-dark-3) 0%, var(--clr-dark) 100%);
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--trans-mid);
}

.stat-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(52,170,178,0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  font-family: var(--font-en);
}

.stat-label {
  font-size: 1rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════ */
#contact {
  background: var(--clr-dark-2);
}

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

.contact-info-cards {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--trans-fast);
}

.info-card:hover {
  border-color: rgba(52,170,178,0.35);
  background: var(--glass-bg-hover);
}

.info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(52,170,178,0.1);
  border: 1px solid rgba(52,170,178,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.78rem;
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.info-value {
  font-size: 0.95rem;
  color: var(--clr-text);
  font-weight: 500;
}

.info-value[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Clickable info card (e.g. address → maps) */
.info-card--clickable {
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.info-card--clickable:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(52, 170, 178, 0.35);
  transform: translateY(-2px);
}

.map-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.map-link::after {
  content: ' ↗';
  font-size: 0.75em;
  opacity: 0;
  transform: translateX(-4px);
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-link:hover {
  color: var(--clr-primary);
}

.map-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}


.info-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-link:hover {
  color: var(--clr-primary);
  text-decoration: underline;
}

.phone-sep {
  color: var(--clr-text-muted, #888);
  margin: 0 4px;
}

/* Contact Form */
.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-light);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(48,113,142,0.04);
  border: 1px solid rgba(48,113,142,0.18);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--clr-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--trans-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--clr-primary);
  background: rgba(52,170,178,0.05);
  box-shadow: 0 0 0 3px rgba(52,170,178,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.7;
}

.form-textarea {
  height: 140px;
  resize: vertical;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(52,170,178,0.1);
  border: 1px solid rgba(52,170,178,0.3);
  border-radius: var(--radius-md);
  color: var(--clr-primary);
  font-weight: 600;
  margin-top: 16px;
}

.form-success.show { display: block; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#footer {
  background: var(--clr-dark);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}

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

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(52,170,178,0.2));
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.9;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 20px;
  position: relative;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -8px; right: 0;
  width: 24px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

body.lang-en .footer-col-title::after { right: auto; left: 0; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  transition: var(--trans-fast);
  position: relative;
  width: fit-content;
}

.footer-link:hover { color: var(--clr-primary); padding-right: 8px; }
body.lang-en .footer-link:hover { padding-right: 0; padding-left: 8px; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
}

.footer-contact-item span:first-child { color: var(--clr-primary); }

.footer-bottom {
  border-top: 1px solid rgba(48,113,142,0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

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

.social-btn {
  width: 40px; height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: var(--trans-fast);
  cursor: pointer;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-glow);
}

/* ── Floating Back-to-top ── */
#back-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px; height: 46px;
  background: var(--grad-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--trans-mid);
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  pointer-events: auto;
}

#back-top.visible { opacity: 1; visibility: visible; }
#back-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-lg); }

/* ── Reveal Animations (handled by JS/GSAP) ── */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Scroll-reveal base states ── */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.section-fade,
.service-card,
.stat-card,
.info-card,
.value-card,
.partner-company-card {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up    { transform: translateY(48px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX( 48px); }
.reveal-scale { transform: scale(0.88); }

.section-fade { opacity: 0; }

/* Cards start from slight bottom offset */
.service-card,
.stat-card,
.info-card,
.value-card,
.partner-company-card { transform: translateY(32px); }

/* Stagger delays for grid items */
.service-card:nth-child(2),
.stat-card:nth-child(2),
.value-card:nth-child(2),
.partner-company-card:nth-child(2) { transition-delay: 0.1s; }

.service-card:nth-child(3),
.stat-card:nth-child(3),
.value-card:nth-child(3),
.partner-company-card:nth-child(3) { transition-delay: 0.2s; }

.service-card:nth-child(4),
.stat-card:nth-child(4),
.value-card:nth-child(4),
.partner-company-card:nth-child(4) { transition-delay: 0.3s; }

.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* Visible state — applied by JS IntersectionObserver */
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.section-fade.visible,
.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-scale.in-view,
.section-fade.in-view,
.service-card.visible,
.service-card.in-view,
.stat-card.visible,
.stat-card.in-view,
.info-card.visible,
.info-card.in-view,
.value-card.visible,
.value-card.in-view,
.partner-company-card.visible,
.partner-company-card.in-view {
  opacity: 1;
  transform: none;
}

/* ── Hero initial hidden states (animated by GSAP or fallback) ── */
#hero-badge,
#hero-title,
#hero-subtitle,
#hero-actions,
.hero-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#hero-badge.visible,
#hero-title.visible,
#hero-subtitle.visible,
#hero-actions.visible,
.hero-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Ripple effect (injected by JS) ── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.7s linear forwards;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   @KEYFRAMES
══════════════════════════════════════════════ */

/* Loader logo pulse */
@keyframes loaderPulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.7; transform: scale(0.95); }
}

/* Loader progress bar */
@keyframes loaderBar {
  0%   { width: 0%;   }
  60%  { width: 80%;  }
  100% { width: 100%; }
}

/* Blinking dot in hero badge */
@keyframes blinkPulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 10px var(--clr-primary); }
  50%       { opacity: 0.4; box-shadow: 0 0 4px  var(--clr-primary); }
}

/* Generic fade in + rise */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Scroll indicator line */
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1);   opacity: 1;   }
  50%       { transform: scaleY(0.4); opacity: 0.3; }
}

/* Floating badges in about section */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-8px); }
}

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

/* Ripple click */
@keyframes rippleAnim {
  to { transform: scale(2.5); opacity: 0; }
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid     { grid-template-columns: 1fr; gap: 48px; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 70px; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .services-grid  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 40px; }
  .about-values   { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid    { grid-template-columns: 1fr; }

  .about-logo-card { padding: 32px; }
  .contact-form { padding: 24px; }
}

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

/* ═══════════════════════════════════════════
   VISION SECTION
═══════════════════════════════════════════ */
.vision-section {
  background: var(--grad-brand);
  position: relative;
  overflow: hidden;
}

.vision-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.vision-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.vision-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.15));
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.vision-section .section-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  margin: 0 auto 20px;
}

.vision-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.vision-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
  max-width: 680px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   PARTNER COMPANIES GRID
═══════════════════════════════════════════ */
.partner-companies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.partner-company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fff;
  transition: var(--trans-mid);
  position: relative;
  overflow: hidden;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.partner-company-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.partner-company-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

.partner-company-card:hover::before {
  opacity: 1;
}

.partner-company-logo {
  width: 110px;
  height: 56px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: var(--trans-mid);
}

.partner-company-card:hover .partner-company-logo {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.partner-company-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-company-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.partner-company-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  z-index: 1;
}

.partner-company-arrow {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  transition: transform 0.25s ease, color 0.25s ease;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-company-card:hover .partner-company-arrow {
  transform: translate(3px, -3px);
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

@media (max-width: 900px) {
  .partner-companies-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .partner-companies-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .partner-company-card { padding: 24px 16px; }
}


/* ============================================================
   WhatsApp Floating Animated Widget — Brand Identity Styling
   ============================================================ */
.wa-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  font-family: var(--font-ar);
  direction: rtl;
}

body.lang-en .wa-widget {
  font-family: var(--font-en);
  direction: ltr;
}

/* ── Main Floating Button ── */
.wa-button {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(52, 170, 178, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  outline: none;
  user-select: none;
}

.wa-button:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 35px rgba(52, 170, 178, 0.6);
}

.wa-button:active {
  transform: scale(0.95);
}

.wa-button.active {
  background: linear-gradient(135deg, #2A637C 0%, #1D4B5E 100%);
  transform: scale(1);
}

.wa-icon-svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.wa-button:hover .wa-icon-svg {
  transform: rotate(-8deg) scale(1.05);
}

.wa-button.active .wa-icon-svg {
  transform: rotate(90deg) scale(0.9);
}

/* ── Continuous Pulse Ring Animation ── */
.wa-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(52, 170, 178, 0.6);
  animation: waPulseRing 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

@keyframes waPulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ── Notification Badge ── */
.wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #FF3B30;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: waBadgeBounce 2s infinite ease-in-out;
}

@keyframes waBadgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ── Tooltip Bubble ── */
.wa-tooltip {
  position: absolute;
  bottom: 12px;
  right: 72px;
  white-space: nowrap;
  background: var(--clr-dark-2);
  color: var(--clr-text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(52, 170, 178, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

[dir="ltr"] .wa-tooltip {
  right: auto;
  left: 72px;
  transform: translateX(-10px);
}

.wa-widget:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.wa-button.active ~ .wa-tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ── Interactive Chat Popover Card ── */
.wa-card {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(15, 40, 64, 0.25);
  border: 1px solid rgba(52, 170, 178, 0.2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

[dir="ltr"] .wa-card {
  right: auto;
  left: 0;
  transform-origin: bottom left;
}

.wa-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ── Card Header ── */
.wa-card-header {
  background: linear-gradient(135deg, #30718E 0%, #34AAB2 100%);
  padding: 18px 20px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.wa-avatar-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.wa-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  padding: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wa-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: #25D366;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

[dir="ltr"] .wa-status-dot {
  right: auto;
  left: 1px;
}

.wa-header-info {
  flex-grow: 1;
}

.wa-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: #FFFFFF;
}

.wa-status-label {
  font-size: 0.78rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-card-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.wa-card-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ── Card Body ── */
.wa-card-body {
  padding: 20px;
  background: #F4F8FA;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 340px;
  overflow-y: auto;
}

.wa-chat-bubble {
  background: #FFFFFF;
  padding: 14px 16px;
  border-radius: 14px 14px 2px 14px;
  box-shadow: 0 2px 10px rgba(15, 40, 64, 0.05);
  border: 1px solid rgba(52, 170, 178, 0.12);
  position: relative;
  font-size: 0.9rem;
  color: var(--clr-text);
  line-height: 1.6;
}

[dir="ltr"] .wa-chat-bubble {
  border-radius: 14px 14px 14px 2px;
}

.wa-bubble-time {
  display: block;
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  text-align: left;
  margin-top: 6px;
}

[dir="ltr"] .wa-bubble-time {
  text-align: right;
}

/* ── Quick Action Chips ── */
.wa-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-chip {
  background: #FFFFFF;
  border: 1px solid rgba(52, 170, 178, 0.3);
  color: var(--clr-accent);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[dir="ltr"] .wa-chip {
  text-align: left;
}

.wa-chip:hover {
  background: var(--grad-brand);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(52, 170, 178, 0.25);
}

[dir="ltr"] .wa-chip:hover {
  transform: translateX(4px);
}

/* ── Card Footer ── */
.wa-card-footer {
  padding: 14px 16px;
  background: #FFFFFF;
  border-top: 1px solid rgba(52, 170, 178, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-input-row {
  display: flex;
  gap: 8px;
}

.wa-input {
  flex-grow: 1;
  border: 1px solid rgba(52, 170, 178, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: var(--clr-text);
  background: #F8FAFC;
}

.wa-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(52, 170, 178, 0.15);
  background: #FFFFFF;
}

.wa-send-btn {
  background: var(--grad-brand);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(52, 170, 178, 0.35);
  transition: all 0.25s ease;
  width: 100%;
}

.wa-send-btn:hover {
  box-shadow: 0 6px 20px rgba(52, 170, 178, 0.5);
  transform: translateY(-1px);
}

.wa-send-btn:active {
  transform: translateY(0);
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 576px) {
  .wa-widget {
    bottom: 20px;
    right: 20px;
  }

  .wa-button {
    width: 54px;
    height: 54px;
  }

  .wa-icon-svg {
    width: 28px;
    height: 28px;
  }

  .wa-card {
    bottom: 72px;
    right: 0;
    width: calc(100vw - 32px);
    max-width: 340px;
  }
}


