:root {
  --clr-bg: #f1f5f9;
  /* Light Slate Grey */
  --clr-bg-alt: #f8fafc;
  /* Whisper White */
  --clr-surface: #ffffff;
  /* White Surface */
  --clr-primary: #4f46e5;
  /* Premium Indigo */
  --clr-primary-h: #4338ca;
  /* Deep Indigo */
  --clr-accent: #0ea5e9;
  /* Sky Blue */
  --clr-text: #0f172a;
  /* Darkest Slate */
  --clr-muted: #64748b;
  /* Slate Muted */
  --clr-border: rgba(0, 0, 0, 0.06);

  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);

  --font-sans: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: font-family 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, .nav-brand {
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   Typography
   ============================================================ */
h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

p {
  color: var(--clr-muted);
  font-size: 1.1rem;
}

/* ============================================================
   Utilities
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 0.08em; /* prevents last glyph from being clipped at right edge */
  padding-bottom: 0.12em; /* prevents descenders (g, y, p) from being clipped at bottom */
  margin-bottom: -0.12em; /* cancel the extra space padding-bottom adds to layout */
}

/* ============================================================
   Utility
   ============================================================ */
.container {
  width: min(92%, 1200px);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background: var(--clr-primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.btn:hover {
  background: var(--clr-primary-h);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--clr-border);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: var(--clr-text);
  box-shadow: none;
}

/* ============================================================
   Premium Country Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
  animation: modalOverlayFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 3.5rem 2.5rem;
  border-radius: 40px;
  max-width: 480px;
  width: 92%;
  text-align: center;
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header p {
  font-size: 1.05rem;
  color: #64748b;
  margin-top: -0.5rem;
  font-weight: 500;
}

.logo-brand {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  padding-right: 0.1em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #0f172a, #334155);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.country-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.country-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 2rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.country-btn:hover {
  border-color: var(--clr-primary);
  background: white;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.country-btn img {
  width: 72px;
  height: 48px; /* Standardized 3:2 ratio */
  object-fit: cover; /* Ensures no stretching, just perfect framing */
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 6px; /* Precise rounded corners */
}

.country-btn:hover img {
  transform: scale(1.15) translateY(-4px);
}

.country-btn .name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1e293b;
  letter-spacing: -0.01em;
}

@keyframes modalOverlayFade {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(24px); }
}

@media (max-width: 500px) {
  .modal {
    padding: 2.5rem 1.5rem;
    border-radius: 32px;
  }
  .country-options {
    gap: 1rem;
  }
  .country-btn {
    padding: 1.5rem 0.5rem;
    border-radius: 20px;
  }
  .country-btn img {
    width: 56px;
  }
  .logo-brand {
    font-size: 2.2rem;
  }
}

/* ============================================================
   Navbar — Premium Enhanced
   ============================================================ */

/* Animated gradient keyframe for the border ring */
@keyframes navBorderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35); }
  50%       { box-shadow: 0 4px 25px rgba(14, 165, 233, 0.55); }
}

@keyframes searchShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 19999;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.navbar.scrolled {
  padding: 0.8rem 0;
}

.navbar.scrolled .nav-brand {
  height: 44px;
}

.navbar.scrolled .nav-brand-logo {
  height: 55px; /* Reduced for scrolled state */
}

.nav-container {
  width: min(94%, 1300px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.8rem;
  pointer-events: auto;

  background: #ffffff; /* Solid white for perfect logo blending */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 60px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);

  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Animated gradient accent line at top of container */
.nav-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), var(--clr-accent), var(--clr-primary), transparent);
  opacity: 0;
  transition: all 0.6s ease;
}

.nav-container:hover::after {
  opacity: 0.6;
  left: 10%;
  right: 10%;
}

.navbar.scrolled .nav-container {
  background: #ffffff; /* Consistent solid white for logo blending */
  padding: 0.4rem 1.8rem;
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(0, 0, 0, 0.03);
}

/* ── Left Section ── */
.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 0 1 auto;
}

/* ── Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: var(--clr-text);
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand:hover {
  transform: scale(1.02);
}

/* Gradient text for brand name */
.nav-brand-text {
  background: linear-gradient(135deg, var(--clr-text), #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
  padding-right: 0.08em; /* prevents last char clip from gradient text rendering */
  display: inline-block; /* required for padding-right to work with inline gradient text */
}

.nav-brand:hover .nav-brand-text {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-hexagon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
  transform: rotate(-3deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-brand:hover .brand-hexagon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #334155;
  font-size: 0.82rem; /* Reduced for better horizontal fit */
  padding: 0.5rem 0.8rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-primary);
  background: rgba(79, 70, 229, 0.07);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-icon {
  opacity: 0.85;
  transition: all 0.3s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-icon svg,
.nav-icon * {
  stroke: #334155 !important;
  stroke-width: 2.5;
  transition: all 0.3s;
}

.nav-link:hover .nav-icon svg,
.nav-link.active .nav-icon svg,
.nav-link:hover .nav-icon *,
.nav-link.active .nav-icon * {
  stroke: var(--clr-primary) !important;
}

/* ── Center: Search ── */
.nav-center {
  display: flex;
  justify-content: center;
  flex: 1;
}

.nav-search {
  width: 100%;
  max-width: 440px;
  min-width: 150px; /* Minimum width before breaking */
  position: relative;
  margin: 0 0.5rem;
}

.nav-search::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent), #a78bfa, var(--clr-primary));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: navBorderSpin 3s linear infinite;
}

.nav-search:focus-within::before {
  opacity: 1;
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.4rem;
  background: rgba(241, 245, 249, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.search-inner:hover {
  background: rgba(241, 245, 249, 0.8);
  border-color: rgba(79, 70, 229, 0.2);
}

.search-inner:focus-within {
  background: #ffffff;
  border-color: transparent;
  box-shadow: 
    0 10px 30px -10px rgba(79, 70, 229, 0.15),
    0 0 0 1px rgba(79, 70, 229, 0.05);
}

.search-inner svg {
  flex-shrink: 0;
  stroke: #94a3b8;
  transition: all 0.35s ease;
}

.search-inner:focus-within svg {
  stroke: var(--clr-primary);
  transform: scale(1.1) rotate(-5deg);
}

.search-inner input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--clr-text);
  min-width: 0;
}

.search-inner input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* ── Right Section ── */
.nav-right {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Glass Pills ── */
.glass-pill {
  background: none !important;
  border: none !important;
  border-radius: 50px;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.glass-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
  pointer-events: none; /* prevent blocking clicks */
  z-index: -1;
}

.glass-pill:hover {
  color: var(--clr-primary) !important;
  border-color: var(--clr-primary) !important;
  background: rgba(79, 70, 229, 0.06) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.2);
}

.country-pill .name {
  font-weight: 600;
}

/* Language switcher refinement */
.site-lang-switcher {
  font-size: 0.8rem !important;
  padding: 0.45rem 0.85rem !important;
  gap: 0.35rem !important;
}

.site-lang-switcher {
  display: flex !important;
  align-items: center;
  background: rgba(241, 245, 249, 0.6) !important;
  padding: 3px !important;
  border-radius: 50px !important;
  gap: 2px !important;
  border: 1px solid rgba(148, 163, 184, 0.15) !important;
}

.site-lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.72rem;
  color: #64748b;
  padding: 5px 10px; /* Reduced for better horizontal fit */
  border-radius: 50px;
  transition: all 0.3sease;
  font-family: inherit;
  position: relative;
  z-index: 2;
}

/* Site Language Switcher (Outdated, handled by dropdown now) */

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--clr-text);
  width: 38px;
  height: 38px;
  border-radius: 50px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-toggle:hover {
  background: #fff;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* ── Dropdown Arrow  ── */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-left: -0.1rem;
}

.nav-links li:hover .dropdown-toggle::after {
  opacity: 1;
}

/* ── Dropdown Panel ── */
.nav-links li {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(15px) scale(0.96);
  transform-origin: top center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  min-width: 320px;
  border-radius: 24px;
  padding: 0.8rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 20px 40px -8px rgba(0, 0, 0, 0.12),
    0 40px 80px -20px rgba(79, 70, 229, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20000;
}

.nav-dropdown.mini-dropdown {
  min-width: 160px;
}

.nav-dropdown.mini-dropdown .dropdown-item {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
}

.nav-dropdown.mini-dropdown .dropdown-item:hover {
  background: var(--clr-primary-gl);
}

.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

[dir="rtl"] .nav-item-dropdown:hover .nav-dropdown {
  transform: translateX(50%) translateY(0) scale(1) !important;
}

/* Invisible bridge to keep hover state while moving mouse to dropdown */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 25px;
  background: transparent;
}

/* Gradient top accent on dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: 0 0 4px 4px;
}

.nav-links li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown a {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links li:hover .nav-dropdown a {
  opacity: 1;
  transform: translateY(0);
}

.nav-links li:hover .nav-dropdown a:nth-child(1) { transition-delay: 0.05s; }
.nav-links li:hover .nav-dropdown a:nth-child(2) { transition-delay: 0.1s; }
.nav-links li:hover .nav-dropdown a:nth-child(3) { transition-delay: 0.15s; }
.nav-links li:hover .nav-dropdown a:nth-child(4) { transition-delay: 0.2s; }
.nav-links li:hover .nav-dropdown a:nth-child(5) { transition-delay: 0.25s; }
.nav-links li:hover .nav-dropdown a:nth-child(6) { transition-delay: 0.3s; }
.nav-links li:hover .nav-dropdown a:nth-child(7) { transition-delay: 0.35s; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--clr-text) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dropdown-item-meta {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text);
  transition: color 0.3s ease;
}

.dropdown-item-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-muted);
  margin-top: 2px;
}

.dropdown-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dropdown-item svg,
.dropdown-icon-img {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.dropdown-item svg * {
  stroke: #4f46e5 !important;
  stroke-width: 2px !important;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--clr-primary-gl);
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--clr-primary);
}

.dropdown-item:hover .dropdown-icon-img,
.dropdown-item:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

.dropdown-item:hover svg * {
  stroke: var(--clr-primary) !important;
}

.dropdown-item:hover .dropdown-icon-img {
  filter: invert(31%) sepia(85%) saturate(1914%) hue-rotate(224deg) brightness(98%) contrast(92%);
}

.dropdown-item:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ══════════════════════════════════════════════════════════════
   DYNAMIC RESPONSIVE NAVBAR — Fluid scaling at every viewport
   ══════════════════════════════════════════════════════════════

   Strategy: use clamp(min, preferred, max) for all sizing so
   the navbar scales smoothly on every window resize — no jarring
   jumps between breakpoints.
   ============================================================== */

/* Fluid container: padding & gap shrink continuously */
.nav-container {
  /* Override padding with fluid value */
  padding-inline: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(0.45rem, 0.8vw, 0.7rem);
  gap: clamp(0.8rem, 2.5vw, 2rem);
  /* Width stays fluid too */
  width: min(96%, 1440px);
}

/* Fluid brand identity */
.nav-brand {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  gap: clamp(0.5rem, 1vw, 0.75rem);
}

.brand-hexagon {
  width: clamp(30px, 3.5vw, 38px);
  height: clamp(30px, 3.5vw, 38px);
  border-radius: clamp(8px, 1vw, 11px);
}

/* Fluid link sizes */
.nav-link {
  font-size: clamp(0.8rem, 1.2vw, 0.92rem);
  padding: clamp(0.4rem, 0.6vw, 0.55rem) clamp(0.6rem, 1.2vw, 1.1rem);
}

.nav-links {
  gap: clamp(0rem, 0.4vw, 0.2rem);
}

.nav-left {
  gap: clamp(0.8rem, 2vw, 2rem);
}

/* Fluid search bar */
.nav-search {
  max-width: clamp(160px, 30vw, 480px);
}

.search-inner {
  padding: clamp(0.45rem, 0.8vw, 0.72rem) clamp(0.8rem, 1.5vw, 1.4rem);
  gap: clamp(0.5rem, 0.8vw, 0.8rem);
}

.search-inner input {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
}

/* Fluid glass pills */
.glass-pill {
  padding: clamp(0.35rem, 0.6vw, 0.5rem) clamp(0.6rem, 1.2vw, 1rem);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  gap: clamp(0.25rem, 0.5vw, 0.45rem);
}

.nav-actions {
  gap: clamp(0.3rem, 0.8vw, 0.65rem);
}

/* Fluid navbar padding from top */
.navbar.floating-nav {
  padding: clamp(0.75rem, 1.5vw, 1.4rem) 0;
}

.navbar.floating-nav.scrolled {
  padding: clamp(0.35rem, 0.7vw, 0.7rem) 0;
}

/* ── Breakpoint 1: Start collapsing nav-left gap ──────────── */
@media (max-width: 1100px) {
  .nav-left {
    gap: clamp(0.5rem, 1.5vw, 1.2rem);
  }

  /* Collapse site-lang-switcher text if needed */
  .site-lang-switcher {
    padding: 0.4rem 0.7rem !important;
  }
}

/* ── Breakpoint 2: Hide nav links, show hamburger ─────────── */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Give more room to search */
  .nav-search {
    max-width: clamp(140px, 38vw, 340px);
  }
}

/* ── Breakpoint 3: Mobile — hide region name text ─────────── */
@media (max-width: 640px) {
  .country-pill #currentName {
    display: none;
  }

  .country-pill {
    padding: clamp(0.3rem, 0.8vw, 0.4rem) clamp(0.45rem, 1vw, 0.6rem);
  }

  .glass-pill {
    font-size: 0.75rem;
  }

  .nav-search {
    max-width: clamp(100px, 40vw, 260px);
  }

  .search-inner input {
    font-size: 0.78rem;
  }
  
  .search-inner svg {
    display: none;
  }
}

/* ── Breakpoint 4: Very small — hide brand text ───────────── */
@media (max-width: 480px) {
  .nav-brand-text {
    display: none;
  }

  /* Hide lang switcher text separator, keep only buttons */
  .site-lang-sep {
    display: none;
  }

  .site-lang-switcher {
    padding: 0.35rem 0.6rem !important;
    gap: 0.2rem !important;
  }

  /* Collapse search to icon only */
  .search-inner input {
    max-width: 80px;
  }

  /* Make nav-container even more compact */
  .nav-container {
    padding-inline: 0.8rem;
    gap: 0.6rem;
  }
}

/* ── Scrolled state also scales down dynamically ─────────── */
.navbar.scrolled .nav-container {
  padding-inline: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(0.3rem, 0.6vw, 0.4rem);
}


/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: clamp(500px, 65vh, 750px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #030712; /* Deep space black */
  /* Cinematic lighting: Large blue glow on the right, purple on the left */
  background-image: 
    radial-gradient(circle at 15% 70%, rgba(14, 165, 233, 0.12) 0%, transparent 40%);
  padding-top: clamp(8rem, 15vw, 15rem); 
  padding-bottom: clamp(6rem, 10vw, 10rem);
  z-index: 1;
}

/* RTL Support for Hero Content */
[dir="rtl"] .hero-content {
  text-align: right; /* Restored right alignment for RTL desktop */
  align-items: flex-end;
}
[dir="rtl"] .hero-btns {
  flex-direction: row; /* Let flex handle RTL naturally */
}
[dir="rtl"] .hero-stats {
  justify-content: flex-start;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  position: relative;
  z-index: 2;
}

[dir="rtl"] .hero-grid {
  direction: rtl;
}

.hero-content {
  max-width: 650px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: 2rem;
}




.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-content h1 .text-gradient {
  background: linear-gradient(135deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: #94a3b8;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  margin-bottom: 0;
  max-width: 650px;
  line-height: 1.7;
  font-weight: 500;
  opacity: 0.9;
  margin-inline: 0;
}


.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.hero-badge-tag {
  position: absolute;
  top: 10%;
  left: -5%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(67, 56, 202, 0.95));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.8rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}

[dir="rtl"] .hero-badge-tag {
  left: auto;
  right: -5%;
}

.badge-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.badge-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}



@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-stats {
  display: none;
}



.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem); /* Controlled size */
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.05em;
}


.hero-stats .stat:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-stats .stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Hero Side Image ── */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Glow behind the person */
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}


.hero-person-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 32px;
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.7),
    0 18px 36px -18px rgba(0, 0, 0, 0.5);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Hero Responsive Layout ── */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }
  .hero-grid {
    /* At 992px we still remain side-by-side! */
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
    min-height: auto;
  }
  
  .hero-grid {
    grid-template-columns: 1fr; /* Stack into 1 column ONLY on mobile/tablets */
    gap: 3.5rem;
  }

  .hero-content {
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    align-items: center;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
    margin-top: 1.5rem;
    gap: 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    padding-block: 1.15rem; /* Larger touch targets */
  }
  
  .hero-content p {
    margin-inline: auto;
  }
  
  .hero-content h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }
  
  .hero-content p {
    font-size: 1.05rem;
    max-width: 90%;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 0.95rem;
  }

  /* Scale badge for mobile */
  .hero-badge-tag {
    top: -5%;
    left: -2%;
    padding: 0.6rem 1rem;
    border-radius: 12px;
  }
  
  [dir="rtl"] .hero-badge-tag {
    left: auto;
    right: -2%;
  }

  .badge-num { font-size: 1.25rem; }
  .badge-label { font-size: 0.65rem; }
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clr-accent);
  font-weight: 800;
  /* Increased weight for visibility */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 4rem 0; /* Reduced from 8rem */
}

.section--alt {
  background: var(--clr-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3rem; /* Reduced from 5rem */
}

.section-title {
  margin: 1.5rem 0;
}

/* ============================================================
   Services Grid
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 40px;
  padding: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--clr-primary);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.12);
}

.service-icon {
  width: 100%;
  height: 220px;
  margin: 0;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-bg);
  transition: all 0.4s ease;
}

.service-content {
  padding: 2rem;
  flex: 1;
}

.service-card:hover .service-icon {
  border-color: var(--clr-primary);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0; /* Reduce massive vertical padding to fit small screens */
  }
  .section-header {
    margin-bottom: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    border-radius: 28px; /* Tighter radius for smaller viewports */
  }
  
  .service-icon {
    height: 180px; /* Proportionally shorter images */
  }
  
  .service-content {
    padding: 1.5rem;
  }

  .country-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================================
   Grid / Cards
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 1rem;
}

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--clr-primary);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 800px; /* More focused for single column */
  margin: 0 auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.85); /* Slightly cleaner base */
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 40px; /* Chunkier, more modern corners */
  padding: clamp(2rem, 4vw, 4rem);
  box-shadow: 
    0 40px 100px -20px rgba(0, 0, 0, 0.12),
    inset 0 0 40px rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 50px 110px -25px rgba(0, 0, 0, 0.15);
}

.contact-form-card {
  border-bottom: 5px solid rgba(79, 70, 229, 0.1); /* Subtle brand accent */
}

.contact-form-card h2 {
  margin-bottom: 3rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.contact-form input:focus ~ label,
.contact-form select:focus ~ label,
.contact-form textarea:focus ~ label {
  color: var(--clr-primary);
}

.info-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.info-item {
  display: flex;
  width: auto;
  min-width: 280px;
  justify-content: flex-start;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-item:hover {
  background: #ffffff;
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.15);
}

.info-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 20px -10px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
}

.info-item:hover .info-icon {
  background: var(--clr-primary);
  color: #fff;
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 10px 25px -8px rgba(79, 70, 229, 0.5);
}

.info-text strong {
  display: block;
  font-size: 0.95rem; /* Smaller text */
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.info-text p {
  color: #64748b;
  font-weight: 600;
  font-size: 0.88rem; /* Smaller text */
}

.hero--small {
  min-height: clamp(350px, 45vh, 500px);
  padding-top: clamp(8rem, 12vw, 12rem);
  padding-bottom: 4rem;
  background: #0f172a; /* Deep base */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.15), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.1), transparent 40%);
}

.hero--small .hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero--small h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero--small p {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: clamp(0.9rem, 2.5vw, 1.2rem) clamp(1.2rem, 3vw, 1.4rem);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  color: #0f172a;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-family: inherit;
  transition: all 0.3s ease;
  resize: vertical;
}

.contact-form select {
  width: 100%;
  padding: clamp(0.9rem, 2.5vw, 1.2rem) 3.5rem clamp(0.9rem, 2.5vw, 1.2rem) clamp(1.2rem, 3vw, 1.4rem);
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  color: #0f172a;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-family: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}


.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(79, 70, 229, 0.3);
  background: #fbfbff;
}

.contact-form select:hover {
  border-color: rgba(79, 70, 229, 0.3);
  background-color: #fbfbff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: #fff;
  box-shadow: 
    0 0 0 4px rgba(79, 70, 229, 0.1),
    0 10px 20px -10px rgba(79, 70, 229, 0.1);
}

.contact-form select:focus {
  outline: none;
  border-color: var(--clr-primary);
  background-color: #fff;
  box-shadow: 
    0 0 0 4px rgba(79, 70, 229, 0.1),
    0 10px 20px -10px rgba(79, 70, 229, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

/* ── Contact Mobile Adjustments ── */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .glass-card {
    padding: 2rem;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.04);
  color: var(--clr-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-top: auto;
  width: 100%;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 1.5rem;
    right: 1.5rem;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    gap: 1rem;
    align-items: flex-start;
    pointer-events: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-container {
    padding: 0.6rem 1rem;
  }
}

/* ── Lang Switcher ─────────────────────────────────────────── */
/* Removed redundant/conflicting switcher styles */

[lang="ar"] .nav-link,
[lang="ar"] .dropdown-item-title {
  font-weight: 800;
  font-size: 0.95rem;
}

/* Dynamic spacing for Arabic mode */
[dir="rtl"] .nav-links {
  gap: clamp(0.4rem, 1vw, 1.2rem);
}

[dir="rtl"] .nav-brand {
  margin-left: clamp(1rem, 2vw, 2.5rem);
  margin-right: 0;
}

[dir="rtl"] .nav-container {
  direction: rtl;
  gap: clamp(1rem, 2vw, 3rem);
}

[dir="rtl"] .nav-dropdown {
  left: auto;
  right: 50%;
  transform: translateX(50%) translateY(15px) scale(0.96);
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .nav-item-dropdown:hover .nav-dropdown {
  transform: translateX(50%) translateY(0) scale(1) !important;
}

[dir="rtl"] .dropdown-item {
  text-align: right;
}

[dir="rtl"] .dropdown-toggle::after {
  margin-left: 0;
  margin-right: 0.5rem;
}

[dir="rtl"] .hero-content,
[dir="rtl"] .section-header,
[dir="rtl"] .footer {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero-btns {
  justify-content: flex-start;
}

[dir="rtl"] .modal {
  direction: rtl;
  text-align: right;
}

/* ── Toast Feedback ────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: #ffffff;
  border-left: 5px solid var(--clr-primary);
  border-radius: 12px;
  padding: 1rem 1.75rem;
  min-width: 330px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.visible {
  transform: translateX(0);
}

.toast-success { border-left-color: #10b981; }
.toast-icon { font-size: 1.2rem; line-height: 1; }
.toast-msg { font-size: 0.95rem; font-weight: 600; color: var(--clr-text); }

/* ── New Contact Card Overhaul ──────────────────────────────── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.info-row:hover .info-icon {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  transform: translateY(-2px) rotate(-3deg);
}

.info-meta strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  margin-bottom: 2px;
}

.info-meta p {
  font-weight: 700;
  color: var(--clr-text);
  font-size: 1.1rem;
}

/* ── Tight Minimalist High-End Footer ────────────────────────── */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid rgba(0,0,0,0.03);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-legal-copy {
  font-size: 0.9rem;
  color: var(--clr-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.management-pills {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.management-link {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
  background: rgba(0,0,0,0.02);
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0,0,0,0.02);
}

.management-link:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

@media (max-width: 768px) {
  .footer { padding: 4rem 1rem; }
  .footer-content { 
    flex-direction: column; 
    text-align: center;
    gap: 2rem;
  }
}
.nav-brand {
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

.nav-brand-logo {
  height: 72px; /* Slightly larger for presence */
  width: auto;
  object-fit: contain;
  display: block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: multiply; 
  filter: contrast(1.05) brightness(1.05); /* Normalizes off-whites to pure white */
}

@media (max-width: 640px) {
  .nav-brand {
    height: 45px;
  }
  .nav-brand-logo {
    height: 70px;
    margin-top: -10px;
  }
}

.nav-brand:hover .nav-brand-logo {
  transform: scale(1.05);
}
