/* Mobile Menu Styles */

/* Hide desktop menu on mobile */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  
  /* Hero section adjustments for mobile */
  .hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  .hero-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  /* Reset body and html to prevent horizontal scroll */
  html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  /* Hero content for all mobile devices */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    padding: 15px 0;
  }
  
  .hero-text h2 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #fff;
    text-align: center;
    width: 100%;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    line-height: 1.2;
    text-align: center;
    width: 100%;
  }
  
  .hero-text h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0 1.5rem;
    color: #fff;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem auto;
    padding: 0 1rem;
    width: 100%;
    max-width: 400px;
  }
  
  .hero-features li {
    font-size: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
  }
  
  .hero-features i {
    color: #03BD63;
    margin-right: 0.5rem;
    font-size: 1.1rem;
  }
  
  /* Apply form card adjustments */
  .apply-form-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 10px auto 0;
    padding: 20px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 12px;
    z-index: 10;
    transform: none !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    box-sizing: border-box;
  }
  
  .hero-overlay {
    position: relative;
    padding: 0;
    background: transparent;
    height: auto;
  }
  
  .elementor-form-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .elementor-field-group {
    margin-bottom: 0;
  }
  
  .elementor-field-label {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #333;
  }
  
  .elementor-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  .elementor-button {
    width: 100%;
    padding: 15px;
    background: #3b82f6; /* Matching desktop blue */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0 4px 0;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: none;
    letter-spacing: normal;
  }
  
  .elementor-button:hover {
    background: #2563eb; /* Slightly darker blue on hover */
    transform: translateY(-1px);
    opacity: 1;
  }
  
  .mobile-menu-toggle {
    display: block !important;
    position: absolute;
    top: 40px; /* Lower the hamburger menu */
    right: 20px;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  /* Hamburger icon */
  .mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }
  
  .menu-icon, .close-icon {
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
  }
  
  .close-icon {
    display: none;
  }
  
  /* Main content when menu is open */
  .menu-open #main-content {
    filter: blur(8px);
    transition: filter 0.3s ease;
    pointer-events: none;
    transform: translateZ(0); /* Force hardware acceleration for smoother blur */
  }
  
  /* Mobile menu overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Mobile menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    padding-top: 5px; /* Add some top padding to align with the close button */
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0; /* Increased padding for better spacing */
    flex-wrap: nowrap;
    position: relative; /* For absolute positioning of hamburger */
    min-height: 80px; /* Ensure header has enough height */
  }
  
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    padding: 20px 20px 15px; /* Match the top padding with hamburger menu */
    border-bottom: 1px solid #eee;
    position: relative;
    min-height: 80px; /* Ensure enough height for the close button */
  }
  
  /* Close button styles */
  .mobile-menu-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    pointer-events: auto !important;
  }
  
  .mobile-menu-close svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: #333;
  }
  
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
  }
  
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .mobile-menu-close .close-icon {
    font-size: 24px;
    color: #333;
    pointer-events: none; /* Make sure clicks go through to the button */
  }
  
  .mobile-menu-close:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
  }
  
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-nav li {
    border-bottom: 1px solid #eee;
  }
  
  .mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .mobile-nav a:hover,
  .mobile-nav a.active {
    background: #f5f5f5;
    color: var(--primary-color);
  }
  
  .mobile-menu-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Services Section Mobile Styles */
@media (max-width: 768px) {
  .services {
    padding: 3rem 0;
  }
  
  .services h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding: 0 15px;
    width: 100%;
    text-align: center;
    left: 0;
    transform: none;
  }
  
  .service-content {
    flex-direction: column;
    padding: 2rem 1.5rem;
    margin: 0 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
  }
  
  .service-image {
    min-width: 100%;
    margin-bottom: 2rem;
  }
  
  .service-image img {
    margin-top: 0;
  }
  
  .service-details {
    min-width: 100%;
    text-align: left;
  }
  
  .service-details h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .service-details p {
    text-align: justify;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .requirement-list {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
  }
  
  .requirement-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
}
