/* ============================================
   Menu Improvements & Mobile Fixes
   ============================================ */

/* Optimized Navigation Menu */
.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  white-space: nowrap;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b9ba3, #aeaab9);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Hide hamburger by default */
.btn-menu-toggle {
  display: none !important;
}

/* Mobile Navigation - Cleaner Layout */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 0.3rem;
  }

  .nav-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .btn-menu-toggle {
    display: flex !important;
  }

  .nav-menu {
    display: none;
  }

  .navbar {
    padding: 0.75rem 0;
    max-width: 100%;
  }

  /* Mobile Menu Styling */
  .mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
    animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu-link {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
  }

  .mobile-menu-link:hover {
    background: rgba(56, 182, 255, 0.08);
    color: var(--secondary);
    padding-left: 2rem;
    border-left: 3px solid var(--secondary);
  }

  .mobile-menu-link.active {
    background: linear-gradient(
      90deg,
      rgba(56, 182, 255, 0.1) 0%,
      transparent 100%
    );
    color: var(--secondary);
    border-left: 3px solid var(--secondary);
    padding-left: 2rem;
  }

  body.dark-mode .mobile-menu-link {
    background: var(--white);
    color: #1a1a2e;
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .mobile-menu-link:hover {
    background: rgba(139, 155, 163, 0.15);
    color: #aeaab9;
    border-left-color: #aeaab9;
  }

  body.dark-mode .mobile-menu-link.active {
    background: rgba(139, 155, 163, 0.12);
    color: #aeaab9;
    border-left-color: #aeaab9;
  }

  body.dark-mode .mobile-menu {
    background: #f5f7fa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
}

/* ============================================
   Mobile Hero & Content Fixes
   ============================================ */

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 0;
    height: auto;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    margin-top: 60px;
    padding: 2rem 0 1rem;
    min-height: auto;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }

  .hero-actions {
    gap: 0.8rem;
    flex-direction: column;
  }

  .btn-lg {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }

  /* Stats on Mobile */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
  }

  .stat-card {
    padding: 1.2rem;
    border-radius: 10px;
  }

  .stat-number {
    font-size: 1.6rem !important;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Scroll indicator - hidden on mobile */
  .scroll-indicator {
    display: none !important;
  }

  /* Section fixes */
  .section-padding {
    padding: 3rem 0 !important;
  }

  .section-title {
    font-size: 1.8rem !important;
    margin-bottom: 2rem !important;
  }

  /* Reason cards on mobile */
  .reasons-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .reason-card {
    padding: 1.5rem;
  }

  .reason-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Package card on mobile */
  .package-card {
    border-radius: 10px;
  }

  .package-image {
    height: 200px;
  }

  .package-title {
    font-size: 1.1rem;
  }

  .package-price {
    font-size: 1.5rem;
  }

  /* Form inputs */
  input,
  textarea,
  select {
    padding: 0.85rem;
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo span {
    display: none;
  }

  .hero {
    padding: 1.5rem 0;
    margin-top: 50px;
  }

  .hero h1 {
    font-size: 1.5rem !important;
  }

  .hero p {
    font-size: 0.95rem !important;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
    margin-top: 1rem !important;
  }

  .stat-card {
    padding: 0.9rem;
  }

  .stat-number {
    font-size: 1.3rem !important;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .reason-icon {
    width: 45px;
    height: 45px;
  }

  .package-content {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  input,
  textarea,
  select {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/* ============================================
   Animations for Mobile Menu
   ============================================ */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Menu toggle button animation */
.btn-menu-toggle span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.btn-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
  background: var(--secondary);
}

.btn-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.btn-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
  background: var(--secondary);
}

/* ============================================
   Header Responsive
   ============================================ */

@media (max-width: 768px) {
  .header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .header.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  }

  .logo a {
    flex-shrink: 0;
  }

  .nav-actions {
    flex-shrink: 0;
  }

  .btn-dark-mode,
  .btn-language {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
  }
}
