/* Mobile Navigation Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  margin-top: 15px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Improved mobile responsiveness */
@media (max-width: 992px) {
  /* Container adjustments */
  .container {
    padding: 0 20px;
  }
  
  /* Hero section */
  .hero {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  /* Features section */
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  /* About section */
  .about > .container {
    flex-direction: column;
  }
  
  .about-content {
    flex: auto;
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .about-image {
    flex: auto;
  }
  
  /* Join section */
  .join-future .container {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .about-image img{
    width: 100%;
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  /* Header and Navigation */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar {
    align-items: flex-start;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 80px 20px 20px;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    align-items: flex-start;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 0 0 20px 0;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 18px;
  }
  
  /* Overlay for mobile menu */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .menu-overlay.active {
    display: block;
  }
  
  /* Hero section */
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    width: 100%;
    text-align: center;
    padding-right: 0;
  }
  
  .hero-text {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 40px;
  }
  
  .hero-image img {
    margin: 0 auto;
  }
  
  /* Logo section */
  .logos {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 20px 0;
  }
  
  .logo-item {
    width: 45%;
    margin-bottom: 20px;
  }
  
  .logo-item img {
    max-height: 100px;
    width: auto;
  }
  
  /* Features section */
  .features {
    grid-template-columns: 1fr;
  }
  
  .feature-box {
    padding: 20px 15px;
  }
  
  /* Service section */
  .service-header {
    flex-direction: column;
    text-align: center;
  }
  
  .service-header .btn {
    margin-top: 20px;
  }
  
  .service-item {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  
  .service-icon {
    margin-bottom: 15px;
  }
  
  .service-details {
    padding: 0;
    margin-bottom: 15px;
  }
  
  .service-link {
    margin-top: 10px;
  }
  
  /* Video section */
  .video-container {
    height: 300px;
  }
  
  /* Testimonials */
  .testimonials .container > div:first-child {
    flex-direction: column;
    align-items: center;
  }
  
  .testimonials .section-title {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .testimonials img {
    margin-top: 0 !important;
  }
  
  /* Vision steps */
  .vision-steps {
    margin: 30px 0;
  }
  
  .vision-step {
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .step-content p {
    max-width: 100%;
  }
  
  /* Appointment form */
  .appointment-form {
    padding: 0 15px;
  }
  
  /* Footer */
  .footer-links {
    flex-wrap: wrap;
  }
  
  .footer-links li {
    margin: 0 10px 10px;
  }
}

@media (max-width: 576px) {
  /* Header */
  header {
    padding: 15px 0;
  }
  
  /* Titles */
  .section-title {
    font-size: 28px;
  }
  
  /* Logo section */
  .logo-item {
    width: 100%;
  }
  
  /* Feature boxes */
  .feature-box {
    margin-bottom: 15px;
  }
  
  /* Vision steps */
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .vision-step {
    flex-direction: column;
  }
  
  /* Video section */
  .video-container {
    height: 250px;
  }
  
  .play-btn {
    width: 70px;
    height: 70px;
  }
  
  /* Scroll to top */
  .scroll-top {
    font-size: 12px;
  }
}

/* Animation fixes for mobile */
@media (max-width: 768px) {
  /* Prevent overflow issues with animations */
  .fade-left, .fade-right, .fade-up, .fade-down {
    animation-duration: 0.5s !important;
  }
  
  /* Make hero elements centered on mobile */
  .hero-content .section-title,
  .hero-text {
    text-align: center;
  }
  
  /* Fix staggered animations for feature boxes */
  .features.animate .feature-box:nth-child(n) {
    animation-delay: 0.1s !important;
  }
}

/* High-contrast mode toggle for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}