/* ============================================
   Dark Mode & Contrast Fixes
   ============================================ */

body.dark-mode {
  --primary: #aeaab9;
  --secondary: #8b9ba3;
  --accent: #ff6b6b;
  --dark: #f5f7fa;
  --light: #1a1a2e;
  --white: #2a2a3e;
  --gray: #b0b0b0;
  background-color: #1a1a2e;
  color: #f5f7fa;
}

body.dark-mode .header {
  background-color: rgba(26, 26, 46, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo,
body.dark-mode .logo a,
body.dark-mode .logo span,
body.dark-mode .logo i {
  color: #8b9ba3 !important;
}

body.dark-mode .nav-link {
  color: #f5f7fa;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
  color: #8b9ba3;
}

body.dark-mode .btn-dark-mode,
body.dark-mode .btn-language {
  background: linear-gradient(
    135deg,
    rgba(139, 155, 163, 0.2) 0%,
    rgba(139, 155, 163, 0.15) 100%
  );
  border-color: rgba(139, 155, 163, 0.5);
  color: #8b9ba3;
}

body.dark-mode .btn-dark-mode:hover,
body.dark-mode .btn-language:hover {
  background: linear-gradient(
    135deg,
    rgba(139, 155, 163, 0.3) 0%,
    rgba(139, 155, 163, 0.25) 100%
  );
}

body.dark-mode .mobile-menu {
  background-color: #2a2a3e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mobile-menu-link {
  color: #f5f7fa;
}

body.dark-mode .mobile-menu-link:hover,
body.dark-mode .mobile-menu-link.active {
  background: linear-gradient(
    135deg,
    rgba(139, 155, 163, 0.2) 0%,
    rgba(139, 155, 163, 0.1) 100%
  );
  color: #8b9ba3;
}

body.dark-mode section {
  background-color: #1a1a2e;
  color: #f5f7fa;
}

body.dark-mode .section-title {
  color: #f5f7fa;
}

body.dark-mode .package-card,
body.dark-mode .reason-card,
body.dark-mode .testimonial-card {
  background-color: #2a2a3e;
  color: #f5f7fa;
  border-color: rgba(139, 155, 163, 0.2);
}

body.dark-mode .package-title,
body.dark-mode .reason-card h3,
body.dark-mode .testimonial-meta h4 {
  color: #f5f7fa;
}

body.dark-mode .package-description,
body.dark-mode .package-info,
body.dark-mode .reason-card p,
body.dark-mode .testimonial-location,
body.dark-mode .testimonial-text {
  color: #b0b0b0;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #2a2a3e;
  color: #f5f7fa;
  border-color: rgba(139, 155, 163, 0.3);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #808080;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: #8b9ba3;
  box-shadow: 0 0 0 3px rgba(139, 155, 163, 0.2);
}

body.dark-mode footer {
  background-color: #0f0f1e;
  border-top-color: rgba(139, 155, 163, 0.2);
}

body.dark-mode .footer-section a {
  color: #b0b0b0;
}

body.dark-mode .footer-section a:hover {
  color: #8b9ba3;
}

body.dark-mode .footer-bottom {
  color: rgba(180, 180, 200, 0.7);
}

body.dark-mode .why-choose-us {
  background: linear-gradient(
    135deg,
    rgba(139, 155, 163, 0.05) 0%,
    rgba(139, 155, 163, 0.02) 100%
  );
}

body.dark-mode .reasons-grid {
  color: #f5f7fa;
}

/* ============================================
   Enhanced Menu Layout
   ============================================ */

.nav-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav-link {
  white-space: nowrap;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
}

.nav-link::before {
  height: 2px;
  bottom: -5px;
}

.nav-link:hover::before,
.nav-link.active::before {
  top: auto;
  bottom: 0;
  animation: slideInFromLeft 0.3s ease;
}

@keyframes slideInFromLeft {
  from {
    width: 0;
    left: 0;
  }
  to {
    width: 100%;
  }
}

/* Hide some menu items on small screens */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 70px !important;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    max-height: none;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    text-align: left;
  }

  body.dark-mode .mobile-menu {
    background-color: #2a2a3e;
    border-bottom: 1px solid rgba(139, 155, 163, 0.2);
  }

  body.dark-mode .mobile-menu-link {
    border-bottom-color: rgba(139, 155, 163, 0.1);
  }
}

/* ============================================
   Mobile Hero Fixes
   ============================================ */

.hero {
  margin-top: 70px;
  padding-top: 3rem;
  padding-bottom: 2rem;
  min-height: calc(100vh - 70px);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 2rem 0 1rem;
    margin-top: 60px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.8rem !important;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
  }

  .hero-stats {
    margin-top: 2rem !important;
    gap: 0.8rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .scroll-indicator {
    bottom: 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding: 1.5rem 0;
    margin-top: 50px;
  }

  .hero h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.95rem !important;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: 1.5rem !important;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ============================================
   Form Styling for Dark Mode
   ============================================ */

input[type="email"],
input[type="text"],
input[type="tel"],
input[type="date"],
textarea,
select {
  transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  transform: translateY(-2px);
}

/* ============================================
   Enhanced Footer for Dark Mode
   ============================================ */

footer {
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode footer {
  border-top-color: rgba(56, 182, 255, 0.2);
}

footer .social-links a {
  background: rgba(139, 155, 163, 0.15);
  border-color: rgba(139, 155, 163, 0.3);
  color: #8b9ba3;
}

footer .social-links a:hover {
  background: var(--gradient-1);
}

body.dark-mode footer .social-links a {
  background: rgba(56, 182, 255, 0.2);
  border-color: rgba(56, 182, 255, 0.4);
}

/* ============================================
   Text Visibility in Dark Mode
   ============================================ */

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f5f7fa;
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode td {
  color: #d0d0d0;
}

body.dark-mode .section-padding {
  color: #f5f7fa;
}

body.dark-mode .container {
  color: #f5f7fa;
}
