/* ====================================
   Professional Navbar Enhancement
   ==================================== */

/* Glassmorphism Navbar - Enhanced */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(240, 250, 250, 0.75) 50%,
      rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(135, 181, 181, 0.15);
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: navSlideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: top center;
}

@keyframes navSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  60% {
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar.scrolled {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(245, 250, 250, 0.95) 50%,
      rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 4px 30px rgba(135, 181, 181, 0.1), 0 1px 3px rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(135, 181, 181, 0.2);
  height: calc(var(--navbar-height) - 5px);
}

/* Navbar glow effect */
.navbar::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      var(--primary),
      var(--primary-dark),
      var(--primary),
      transparent);
  transition: width 0.5s ease;
  opacity: 0.6;
}

.navbar.scrolled::before {
  width: 100%;
}

/* Nav Container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Premium Logo Styling */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-logo:hover::after {
  width: 100%;
}

.nav-logo:hover {
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 4px 12px rgba(135, 181, 181, 0.25));
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(-10deg) scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(135, 181, 181, 0.35));
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xs);
  margin: 0;
  padding: 0;
}

/* Premium Nav Links */
.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Hover background effect */
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(135, 181, 181, 0.08),
      rgba(135, 181, 181, 0.15));
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
  transform: scale(1);
}

/* Active indicator dot */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-link.active {
  font-weight: 700;
}

/* Premium Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(135, 181, 181, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(135, 181, 181, 0.2);
  transform: scale(1.05);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
  bottom: 14px;
}

.nav-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ====================================
   Enhanced Language Switcher
   ==================================== */
.lang-switcher {
  position: relative;
  z-index: 1000;
}

[dir="ltr"] .lang-switcher .lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95),
      rgba(245, 250, 250, 0.9));
  border: 1px solid rgba(135, 181, 181, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.lang-current::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(135, 181, 181, 0.1),
      rgba(135, 181, 181, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lang-current:hover::before {
  opacity: 1;
}

.lang-current:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(135, 181, 181, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.lang-flag {
  font-size: 1.15rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  position: relative;
  z-index: 1;
}

.lang-code {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  color: var(--primary-dark);
}

.lang-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  color: var(--primary);
}

.lang-dropdown.open~.lang-current .lang-arrow,
.lang-current:focus+.lang-dropdown.open~.lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.98),
      rgba(250, 252, 252, 0.98));
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(135, 181, 181, 0.2);
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1),
    0 5px 15px rgba(135, 181, 181, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  padding: var(--spacing-xs) 0;
}

[dir="ltr"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: 12px var(--spacing-md);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: right;
  transition: all 0.25s ease;
  position: relative;
}

[dir="ltr"] .lang-option {
  text-align: left;
}

.lang-option::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  transition: transform 0.25s ease;
}

[dir="ltr"] .lang-option::before {
  right: auto;
  left: 0;
}

.lang-option:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.lang-option:hover {
  background: rgba(135, 181, 181, 0.08);
  padding-right: var(--spacing-lg);
}

[dir="ltr"] .lang-option:hover {
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.lang-option.active {
  background: rgba(135, 181, 181, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
}

.lang-option.active::before {
  transform: translateY(-50%) scaleY(1);
}

.lang-option .lang-flag {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.lang-option:hover .lang-flag {
  transform: scale(1.1);
}

.lang-option .lang-name {
  flex: 1;
  font-weight: 500;
}

/* ====================================
   Enhanced Hero Section
   ==================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  padding-top: calc(var(--navbar-height) + var(--spacing-xl));
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 100px) !important;
    padding-bottom: var(--spacing-2xl);
    overflow: visible !important;
  }
}

/* Premium Badge Enhancement */
/* Slogan Badge next to Logo */
.hero-slogan-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.98),
      rgba(252, 255, 255, 0.92));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(135, 181, 181, 0.15);
  border-radius: 100px;
  box-shadow: 0 8px 25px rgba(135, 181, 181, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: badgeFloat 3.5s ease-in-out infinite;
}

.hero-slogan-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(135, 181, 181, 0.18);
  border-color: rgba(135, 181, 181, 0.3);
}

.badge-icon {
  font-size: 1.1rem;
  animation: badgeIconPulse 2s ease-in-out infinite;
}

@keyframes badgeIconPulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.2) rotate(10deg);
  }
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Enhanced Logo Layout in Hero */
.logo-container {
  margin-bottom: var(--spacing-md);
  perspective: 1000px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.hero-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-separator {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom,
      transparent,
      var(--primary),
      transparent);
  opacity: 0.5;
  margin: 0 var(--spacing-sm);
}

.hero-app-name-alt {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle,
      rgba(135, 181, 181, 0.5) 0%,
      rgba(135, 181, 181, 0.2) 40%,
      transparent 70%);
  border-radius: 50%;
  animation: logoGlowPulse 3s ease-in-out infinite;
  z-index: -1;
  filter: blur(20px);
}

@media (max-width: 480px) {
  .logo-glow {
    width: 100px;
    height: 100px;
  }
}

@keyframes logoGlowPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.4;
  }
}

.logo {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 20px 50px rgba(135, 181, 181, 0.4));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0) rotateY(0deg) rotateX(0deg);
  }

  25% {
    transform: translateY(-8px) rotateY(3deg) rotateX(2deg);
  }

  50% {
    transform: translateY(-15px) rotateY(0deg) rotateX(0deg);
  }

  75% {
    transform: translateY(-8px) rotateY(-3deg) rotateX(-2deg);
  }
}

.logo:hover {
  transform: rotateY(20deg) rotateX(-15deg) scale(1.1) !important;
  animation-play-state: paused;
  filter: drop-shadow(0 25px 60px rgba(135, 181, 181, 0.5));
}

/* Enhanced App Name */
.app-name {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
  letter-spacing: -2px;
}

.app-name-gradient {
  background: linear-gradient(135deg,
      var(--primary-dark) 0%,
      var(--primary) 30%,
      var(--teal-1) 60%,
      var(--primary-dark) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
  text-shadow: none;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced Tagline */
.tagline {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.tagline-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.tagline-highlight::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
      var(--primary),
      var(--teal-1),
      transparent);
  border-radius: 2px;
  animation: underlineWave 2s ease-in-out infinite;
}

@keyframes underlineWave {

  0%,
  100% {
    transform: scaleX(1) translateX(0);
  }

  50% {
    transform: scaleX(1.1) translateX(-2%);
  }
}

/* Enhanced Description */
.description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.description strong {
  color: var(--primary-dark);
  font-weight: 800;
  position: relative;
}

/* Enhanced Hero Features */
.hero-features {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--spacing-lg);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.85),
      rgba(250, 255, 255, 0.75));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(135, 181, 181, 0.2);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-feature:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(135, 181, 181, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: var(--primary);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95),
      rgba(250, 255, 255, 0.9));
}

.hero-feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(135, 181, 181, 0.12);
  border-radius: 10px;
  color: var(--primary);
  transition: all 0.4s ease;
}

.hero-feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
  transition: all 0.4s ease;
}

.hero-feature:hover .hero-feature-icon {
  background: var(--primary);
  transform: rotate(-5deg) scale(1.1);
}

.hero-feature:hover .hero-feature-icon svg {
  stroke: var(--white);
}

.hero-feature span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Enhanced Download Buttons */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 24px !important;
  border-radius: 14px;
  text-decoration: none;
  color: var(--white);
  background: rgba(23, 23, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 150px !important;
  width: auto !important;
}

.ios-btn {
  background: linear-gradient(145deg, #1c1c1e, #000000);
}

.android-btn {
  background: linear-gradient(145deg, #0d1f18, #050b08);
  border-color: rgba(52, 168, 83, 0.2);
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transition: left 0.6s ease;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%);
  pointer-events: none;
}

.download-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.ios-btn:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.android-btn:hover {
  box-shadow: 0 15px 30px rgba(46, 125, 50, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(52, 168, 83, 0.4);
}

/* Highlight styles removed to prevent conflict */

/* Enhanced Trust Indicators */
.hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-3px);
}

.trust-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

.trust-divider {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(135, 181, 181, 0.4),
      transparent);
  border-radius: 1px;
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-2xl);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.mouse {
  width: 28px;
  height: 44px;
  border: 2px solid var(--primary);
  border-radius: 22px;
  position: relative;
  background: rgba(135, 181, 181, 0.05);
}

.wheel {
  width: 4px;
  height: 10px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 1.8s ease-in-out infinite;
}

@keyframes wheelScroll {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(14px);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.7;
  }
}

/* ====================================
   Enhanced Section Titles
   ==================================== */
.section-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  margin: var(--spacing-md) auto 0;
}

.hero-app-name-alt {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

[dir="ltr"] .logo-separator {
  margin: 0 var(--spacing-sm);
}

/* Enhanced Step Numbers - Big & Poping Out */
.steps-grid .step-card .step-number {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(135, 181, 181, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.2);
  border: 4px solid var(--white);
  z-index: 10;
  transform-origin: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card:hover .step-number {
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 20px 40px rgba(135, 181, 181, 0.6);
}

[dir="ltr"] .steps-grid .step-card .step-number {
  right: auto;
  left: -20px;
}

.step-card,
.feature-card,
.audience-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover,
.feature-card:hover,
.audience-card:hover {
  transform: translateY(-8px);
}

/* ====================================
   Mobile Responsive Enhancements
   ==================================== */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    z-index: 2000;
    margin-right: 0;
  }

  [dir="rtl"] .nav-toggle {
    margin-right: 0;
    margin-left: 0;
  }

  /* Mobile Drawer Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Professional Mobile Drawer */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    max-width: 85vw;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 1),
        rgba(240, 252, 252, 1));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex !important;
    flex-direction: column;
    padding: calc(var(--navbar-height) + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    gap: var(--spacing-xs);
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-left: 1px solid rgba(135, 181, 181, 0.2);
    max-width: 100%;
  }

  .nav-menu::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: var(--navbar-height);
    background: linear-gradient(135deg,
        rgba(135, 181, 181, 0.08),
        rgba(135, 181, 181, 0.03));
    border-bottom: 1px solid rgba(135, 181, 181, 0.15);
  }

  .nav-menu::after {
    content: "القائمة";
    position: absolute;
    top: calc(var(--navbar-height) / 2);
    right: var(--spacing-lg);
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
  }

  [dir="ltr"] .nav-menu::after {
    content: "Menu";
    right: auto;
    left: var(--spacing-lg);
  }

  .nav-menu.active {
    right: 0;
  }

  [dir="ltr"] .nav-menu {
    right: auto;
    left: -320px;
    border-left: none;
    border-right: 1px solid rgba(135, 181, 181, 0.2);
    box-shadow: 10px 0 60px rgba(0, 0, 0, 0.15);
  }

  [dir="ltr"] .nav-menu.active {
    left: 0;
  }

  .nav-link {
    padding: var(--spacing-md);
    font-size: 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
  }

  .nav-link::before {
    display: none;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: rgba(135, 181, 181, 0.1);
    border-color: rgba(135, 181, 181, 0.2);
    transform: translateX(-5px);
  }

  [dir="ltr"] .nav-link:hover {
    transform: translateX(5px);
  }

  /* Mobile active link background handled in styles.css with high specificity */

  /* Staggered animation for menu items */
  .nav-menu li {
    opacity: 0;
    transform: translateX(25px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  [dir="ltr"] .nav-menu li {
    transform: translateX(-25px);
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-menu.active li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-menu.active li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-menu.active li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-menu.active li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav-menu.active li:nth-child(6) {
    transition-delay: 0.35s;
  }
}

@media (max-width: 768px) {
  .app-name {
    font-size: 3rem;
    letter-spacing: -1px;
  }

  .tagline {
    font-size: 1.3rem;
  }

  .description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-badge {
    padding: 8px var(--spacing-md);
  }

  .badge-text {
    font-size: 0.85rem;
  }

  .hero-feature {
    padding: 8px var(--spacing-md);
  }

  .hero-feature span {
    font-size: 0.85rem;
  }

  .trust-number {
    font-size: 1.4rem;
  }

  .trust-label {
    font-size: 0.8rem;
  }

  .nav-menu .lang-switcher {
    margin-top: auto !important;
    margin-bottom: 20px !important;
    position: relative !important;
    z-index: 1001;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .lang-switcher:not(.nav-menu .lang-switcher) {
    margin: 0;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1001;
  }

  [dir="ltr"] .lang-switcher {
    left: auto;
    right: auto;
  }

  .lang-code {
    display: none;
  }

  .lang-current {
    padding: 6px 10px;
    border-radius: 10px;
  }

  .container {
    max-width: 100%;
    padding: 0 var(--spacing-md);
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .app-name {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    width: 100%;
  }

  .logo-container {
    margin-bottom: var(--spacing-sm);
    gap: var(--spacing-sm);
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-logo-wrapper .logo {
    width: 110px;
    height: 110px;
  }

  .logo-container {
    margin-top: -15px !important;
  }

  .logo-separator {
    display: none;
  }

  .hero-slogan-badge {
    padding: 4px 12px;
    max-width: 90vw;
    margin: 0 auto;
  }

  .hero-app-name-alt {
    font-size: 0.8rem;
    white-space: normal;
    text-align: center;
  }

  .tagline {
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
  }

  .description {
    font-size: 1rem;
    text-align: center;
    width: 100%;
    padding: 0 var(--spacing-sm);
  }

  .section-title {
    font-size: 1.75rem;
    text-align: center;
    width: 100%;
  }

  .hero-features {
    gap: var(--spacing-sm);
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-feature {
    padding: 8px 12px;
    border-radius: 12px;
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .hero-feature-icon {
    width: 24px;
    height: 24px;
  }

  .hero-trust {
    gap: var(--spacing-sm);
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .trust-divider {
    display: none;
  }

  .trust-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    border-radius: 12px;
    width: 100%;
    max-width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    height: 70px !important;
    display: block !important;
    padding: 0 !important;
  }

  .nav-container {
    padding: 0 var(--spacing-sm) !important;
    flex-direction: row !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 70px !important;
  }

  .nav-logo {
    gap: 8px;
    display: flex !important;
    align-items: center !important;
    height: 70px !important;
    margin: 0 !important;
  }

  .nav-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    display: block !important;
  }

  .nav-toggle {
    margin-inline-start: 0;
    margin-inline-end: 0;
  }
}

/* ====================================
   Enhanced Cards with Shine Effect
   ==================================== */
.feature-card,
.audience-card,
.cta-card,
.developer-card {
  position: relative;
  overflow: hidden;
}

/* Step card allows numbers to pop out */
.step-card {
  position: relative;
  overflow: visible;
}

.step-card::after,
.feature-card::after,
.audience-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.step-card:hover::after,
.feature-card:hover::after,
.audience-card:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* ====================================
   Enhanced Footer
   ==================================== */
.footer {
  background: linear-gradient(135deg, var(--text-primary) 0%, #1a3a5c 100%);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: rotate(-10deg) scale(1.1);
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================================
   Language Check Icon
   ==================================== */
.lang-check {
  margin-right: auto;
  color: var(--primary);
  flex-shrink: 0;
}

[dir="ltr"] .lang-check {
  margin-right: 0;
  margin-left: auto;
}

/* ====================================
   Counted Animation for Trust Numbers
   ==================================== */
.trust-number.counted {
  animation: countedPop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes countedPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ====================================
   Focus States for Accessibility
   ==================================== */
.nav-link:focus-visible,
.download-btn:focus-visible,
.lang-current:focus-visible,
.lang-option:focus-visible,
.social-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ====================================
   Smooth Scrollbar for WebKit
   ==================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 5px;
  border: 2px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ====================================
   Print Styles
   ==================================== */
@media print {

  .navbar,
  .animated-background,
  .cursor,
  .cursor-follower,
  .scroll-indicator,
  .lang-switcher {
    display: none !important;
  }

  .hero {
    padding-top: 0;
    min-height: auto;
  }

  body {
    background: white;
  }
}

/* ====================================
   Mobile Menu Visibility Fixes
   ==================================== */
@media (max-width: 900px) {

  /* DEFAULT STATE: HIDDEN */
  .nav-menu {
    /* Force off-screen positioning */
    right: -320px !important;
    /* Start off-screen */
    left: auto !important;
    transform: none !important;
    /* Disable transforms ensuring no conflicting partially visible states */

    /* Ensure it's invisible */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    /* Transition for smooth opening */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
      visibility 0.4s ease !important;
  }

  /* RTL Support */
  [dir="ltr"] .nav-menu {
    right: auto !important;
    left: -320px !important;
  }

  /* ACTIVE STATE: VISIBLE */
  .nav-menu.active {
    /* Bring on-screen */
    right: 0 !important;

    /* Make visible */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;

    /* Ensure shadow is visible */
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.15) !important;
  }

  [dir="ltr"] .nav-menu.active {
    left: 0 !important;
    box-shadow: 10px 0 60px rgba(0, 0, 0, 0.15) !important;
  }
}

/* ====================================
   Mobile Menu Close Button & Logic
   ==================================== */
/* Hide close button on Desktop */
.nav-close-item {
  display: none;
}

@media (max-width: 900px) {

  /* Show close button on Mobile */
  .nav-close-item {
    display: block;
    margin-bottom: 20px;
  }

  .nav-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(135, 181, 181, 0.1);
    border: 1px solid rgba(135, 181, 181, 0.2);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
  }

  .nav-close-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
  }

  [dir="ltr"] .nav-close-item {
    margin-left: auto;
    /* Push to right */
  }

  [dir="rtl"] .nav-close-item {
    margin-right: auto;
    /* Push to left */
  }

  /* Override previous hidden state when active */
  .nav-menu.active {
    right: 0 !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    transform: none !important;
  }

  [dir="ltr"] .nav-menu.active {
    left: 0 !important;
    right: auto !important;
  }
}

/* ====================================
   FINAL SOLID FIXES FOR MOBILE MENU
   ==================================== */
@media (max-width: 900px) {
  .nav-menu {
    /* Ensure background is SOLID and OPAQUE */
    background: #ffffff !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0fafa 100%) !important;

    /* Ensure high z-index */
    z-index: 9999 !important;

    /* Reset any weird transforms */
    transform: none !important;

    /* Default hidden state */
    right: -320px !important;
    left: auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  [dir="ltr"] .nav-menu {
    left: -320px !important;
    right: auto !important;
  }

  .nav-menu.active {
    /* Visible state */
    right: 0 !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;

    /* Ensure shadow */
    box-shadow: -10px 0 100px rgba(0, 0, 0, 0.2) !important;
  }

  [dir="ltr"] .nav-menu.active {
    left: 0 !important;
    right: auto !important;
    box-shadow: 10px 0 100px rgba(0, 0, 0, 0.2) !important;
  }

  /* Force all list items to be visible when active */
  .nav-menu.active li {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* Ensure links color is dark enough */
  .nav-link {
    color: #152949 !important;
  }

  .nav-link.active {
    color: #87b5b5 !important;
    /* Primary color */
  }
}