/* ===================================================================
   BEYOND LIMITS - RESPONSIVE STYLESHEET
   ===================================================================
   
   Table of Contents:
   1. General Responsive Settings
   2. Navigation & Header Improvements
   3. Hero Section Adjustments
   4. Content & Layout Fixes
   5. Mobile Form Improvements
   6. Footer Responsive Fixes
   7. Animation Performance Optimizations
   8. Accessibility Improvements
   9. Mobile Navigation Enhancements
   10. Hamburger Menu & Dropdown Styling
   
   ================================================================= */

/* ===================================================================
   1. GENERAL RESPONSIVE SETTINGS
   ================================================================= */
@media (max-width: 1199.98px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .content-container {
    padding: 0 15px;
  }
}

@media (max-width: 991.98px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .section-wrapper {
    padding: 60px 0;
  }
  
  .content-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  .section-wrapper {
    padding: 40px 0;
  }
  
  .typed-text {
    min-width: auto;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section-wrapper {
    padding: 30px 0;
  }
}

/* ===================================================================
   2. NAVIGATION & HEADER IMPROVEMENTS
   ================================================================= */
@media (max-width: 991.98px) {
  /* Modern mobile navigation */
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(125, 63, 152, 0.15);
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(125, 63, 152, 0.1);
    transition: all 0.3s ease;
  }
  
  .navbar-nav {
    padding-bottom: 15px;
  }
  
  .navbar-nav .nav-item {
    margin: 5px 0;        
    width: 100%;

  }
  
  .navbar-nav .nav-link {
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: #f5ebfd;
    color: var(--primary-purple);
    transform: translateX(5px);
  }
  
  /* Improved dropdown appearance */
  .navbar .dropdown-menu {
    border: none;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
  }
  
  .navbar .dropdown-menu-large {
    width: 100%;
    padding: 0;
  }
  .hero-img {
    height: auto;
}
  .hero-text {
       height: auto;
  }
  .location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  
  .dropdown-header {
    padding: 10px 15px;
    font-weight: 600;
    color: var(--primary-purple);
  }
  
  .dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    margin: 2px 5px;
    transition: all 0.3s ease;
  }
  
  .dropdown-item:hover {
    background-color: rgba(125, 63, 152, 0.1);
    transform: translateX(5px);
  }
  
  /* Improved toggler */
  .navbar-toggler {
    border: none;
    padding: 0;
    right: 1rem;
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 8px;
    background-color: rgba(125, 63, 152, 0.1);
    transition: all 0.3s ease;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }
  
  .navbar-toggler:hover {
    background-color: rgba(125, 63, 152, 0.2);
  }
  
  /* Contact button styling */
  .contact-phone .nav-link {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: 0 5px 15px rgba(125, 63, 152, 0.3);
    transition: all 0.3s ease;
  }
  
  .contact-phone .nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(125, 63, 152, 0.4);
  }
  
  .btn-refer .nav-link {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--success);
    color: white !important;
    box-shadow: 0 5px 15px rgba(140, 198, 63, 0.3);
    transition: all 0.3s ease;
  }
  
  .btn-refer .nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(140, 198, 63, 0.4);
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    max-width: 180px;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   3. HERO SECTION ADJUSTMENTS
   ================================================================= */
@media (max-width: 991.98px) {
  .hero-section-main {
    padding: 60px 0 40px;
    text-align: center;
  }
  
  .hero-text {
    margin-bottom: 30px;
  }
  
  .hero-image-container-main {
    margin: 0 auto;
    max-width: 80%;
  }
  
  .floating-elements {
    display: none;
  }
  
  .hero-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero-section-main {
    padding: 40px 0 30px;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .hero-cta-buttons .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    width: 100%;
    max-width: 200px;
  }
  
  .hero-badge-main {
    max-width: 120px;
    margin: 20px auto 0;
  }
  
  .typed-text {
    display: block;
    margin-bottom: 10px;
  }

  .hero-image-container-main {
    max-width: 90%;
    margin-top: 20px;
  }
  
  .hero-img {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(125, 63, 152, 0.15);
  }
  
  .specialist {
    font-size: 0.9rem;
    padding: 5px 12px;
    margin-bottom: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-section-main {
    padding: 30px 0 20px;
  }
  
  .hero-text h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta-buttons .btn {
    margin: 5px auto;
    width: 100%;
    max-width: 180px;
  }
  
  .hero-badge-main {
    max-width: 100px;
  }
  
  .hero-image-container-main {
    max-width: 100%;
    padding: 0 15px;
  }
}

/* ===================================================================
   4. CONTENT & LAYOUT FIXES
   ================================================================= */
@media (max-width: 991.98px) {
  /* Feature section improvements */
  .feature-section {
    flex-direction: column;
    padding: 50px 0;
  }
  
  .feature-left {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    margin-bottom:0px;
  }
  
  .feature-right {
    width: 100%;
    text-align: center;
  }
  
  .feature-icon {
    margin:  0px;
  }
  
  /* Service cards */
  .service-card-enhanced {
    height: auto;
    margin-bottom: 25px;
  }
  
  /* Testimonials */
  .testimonial-3d-container {
    height: auto;
    flex-direction: column;
  }
  
  .testimonial-card-3d {
    width: 100%;
    margin: 10px 0;
  }
  
  .testimonial-side {
    display: none;
  }
  
  .testimonial-center {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(125, 63, 152, 0.15);
  }
}

@media (max-width: 767.98px) {
  /* Content cards */
  .content-container {
    flex-direction: column;
  }
  
  .content-card {
    padding: 20px;
  }
  
  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  /* Feature icons */
  .feature-left {
    flex-wrap: wrap;
  }
  
  .feature-icon {
    width: 120px;
    height: 120px;
    padding: 15px;
  }
  
  .feature-icon img {
    width: 80px;
    height: auto;
  }
  
  .feature-icon h4 {
    font-size: 1.2rem;
  }
  
  /* CARE values section */
  .care-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .care-card {
    padding: 25px 20px;
  }
  
  /* Refer card */
  .refer-card {
    flex-direction: column;
    padding: 0px;
  }
  
  .refer-card-image {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .refer-card-content {
    width: 100%;
    text-align: center;
  }
  
  .refer-card-action {
    margin-top: 20px;
  }
}

/* ===================================================================
   5. MOBILE FORM IMPROVEMENTS
   ================================================================= */
@media (max-width: 991.98px) {
  .assistance-content {
    flex-direction: column;display: block;padding:0;
  }

    .assistance-form {
        width: 100%;
        margin-bottom: 30px;
        display: block;
        margin: 0;
    }
  
  .contact-card {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  .cta-box-goals {margin: 0;}
  .submit-btn-enhanced {
    width: 100%;
    padding: 14px;
  }
  
  .contact-items {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    padding: 15px;
  }
  
  .social-contact-box {
    padding: 15px;
  }
}

/* ===================================================================
   6. FOOTER RESPONSIVE FIXES
   ================================================================= */
@media (max-width: 991.98px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-contact-bar {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo {
    margin-bottom: 15px;
  }
  
  .footer-contact-text {
    margin: 10px 0;
  }
  
  .footer-social-icons {
    margin-top: 15px;
  }
}

@media (max-width: 767.98px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-copy {
    margin: 5px 0;
  }
}

/* ===================================================================
   7. ANIMATION PERFORMANCE OPTIMIZATIONS
   ================================================================= */
@media (max-width: 767.98px) {
  /* Optimize animations for mobile */
  .feature-card:hover,
  .content-card:hover,
  .service-card-enhanced:hover {
    transform: translateY(-5px);
  }
  
  /* Use simpler animations for better performance */
  @keyframes simplified-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  .bouncing-img {
    animation: simplified-float 3s ease-in-out infinite;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* ===================================================================
   8. ACCESSIBILITY IMPROVEMENTS
   ================================================================= */
@media (max-width: 767.98px) {
  /* Increase touch targets for better mobile accessibility */
  button,
  .btn,
  .nav-link,
  .dropdown-item,
  input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve form field focus states */
  input:focus,
  textarea:focus,
  select:focus {
    outline: 3px solid rgba(125, 63, 152, 0.5);
    outline-offset: 2px;
  }
}

/* ===================================================================
   9. MOBILE NAVIGATION ENHANCEMENTS
   ================================================================= */
@media (max-width: 991.98px) {
  /* Add slide-in animation for mobile menu */
  .navbar-collapse:not(.show) {
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
  }
  
  .navbar-collapse.show {
    height: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    overflow-x: hidden !important;
  }
  
  /* Fix for the dropdown menu blank space */
  .navbar-nav {
    width: 100% !important;
  }
  
  .navbar-nav .nav-item {
    width: 100% !important;
  }
  
  .navbar-nav .dropdown {
    width: 100% !important;
  }
  
  /* Active state indicator */
  .navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary-purple);
    border-radius: 0 4px 4px 0;
  }
  
  /* Dropdown animation - Fixed for Bootstrap 5 compatibility */
  .dropdown-menu {
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    display: block;
    pointer-events: none;
    transform: translateY(-10px);
    min-height: 0 !important;
    max-height: 0 !important;
  }
  
  .dropdown-menu.show {
    height: auto;
    padding: 10px 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    min-height: auto !important;
    max-height: 80vh !important;
  }
  
  /* Improved dropdown toggle */
  .dropdown-toggle::after {
    transition: transform 0.3s ease;
  }
  
  .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
}

/* ===================================================================
   10. HAMBURGER MENU & DROPDOWN STYLING
   ================================================================= */
/* Modern hamburger menu */
.toggler-icon {
  width: 24px;
  height: 24px;
  position: relative;
  margin: 0 auto;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.toggler-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-purple);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.toggler-icon span:nth-child(1) {
  top: 0;
}

.toggler-icon span:nth-child(2) {
  top: 10px;
}

.toggler-icon span:nth-child(3) {
  top: 20px;
}

/* Hamburger menu animation */
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Dropdown arrow styling */
.dropdown-arrow {
  font-size: 0.8rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* Make dropdown items more touch-friendly */
@media (max-width: 991.98px) {
  .dropdown-item {
    padding: 12px 15px;
  }
  
  .dropdown-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(125, 63, 152, 0.1);
    border-radius: 6px;
    margin-right: 12px;
    transition: all 0.3s ease;
  }
  
  .dropdown-item:hover .dropdown-icon {
    background-color: var(--primary-purple);
    color: white;
    transform: rotate(5deg);
  }
  
  /* Improve dropdown menu appearance */
  .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(125, 63, 152, 0.1);
    z-index: 1030;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Improve nav-link positioning */
  .navbar-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Make dropdown toggles more touch-friendly */
  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(125, 63, 152, 0.1);
    position: relative;
    z-index: 2;
  }
  
  /* Ensure the dropdown toggle is visible and clickable */
  .dropdown-toggle:focus,
  .dropdown-toggle:active {
    outline: none;
    background-color: rgba(125, 63, 152, 0.1);
  }
}

/* ===================================================================
   11. MOBILE FORM ENHANCEMENTS
   ================================================================= */
@media (max-width: 767.98px) {
  /* Enhanced form styling for mobile */
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(125, 63, 152, 0.2);
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 16px; /* Prevent iOS zoom on focus */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(125, 63, 152, 0.2);
    background-color: white;
    outline: none;
  }
  
  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  /* Improved select styling */
  .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d3f98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
  }
  
  /* Submit button enhancements */
  .submit-btn-enhanced {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(125, 63, 152, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .submit-btn-enhanced:hover,
  .submit-btn-enhanced:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(125, 63, 152, 0.4);
  }
  
  .submit-btn-enhanced:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(125, 63, 152, 0.4);
  }
  
  /* Form validation styling */
  .form-group input:invalid:not(:placeholder-shown),
  .form-group select:invalid:not(:placeholder-shown),
  .form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
    background-color: rgba(220, 53, 69, 0.05);
  }
  
  .form-group input:valid:not(:placeholder-shown),
  .form-group select:valid:not(:placeholder-shown),
  .form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--success);
    background-color: rgba(140, 198, 63, 0.05);
  }
  
  /* Contact form specific enhancements */
  .assistance-form {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(125, 63, 152, 0.15);
    border: 1px solid rgba(125, 63, 152, 0.1);
  }
  
  /* Contact card improvements */
    .contact-card {
        border-radius: 16px;
        overflow: hidden;
        margin-top: 30px;
        padding: 15px;
    }
  
  .contact-card-header {
    padding: 20px; 
    color: white;
  }
  
  .contact-card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }
  
  .contact-subtitle {
    opacity: 0.8;
    font-size: 0.9rem;
  }
  
  .contact-items {
    padding: 15px;
  }
  
  .contact-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
  }
  
  .contact-item:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(125, 63, 152, 0.1);
    transform: translateY(-3px);
  }
  
  .contact-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
  }
  
  .contact-item:hover .icon {
    transform: rotate(10deg) scale(1.1);
  }
  
  .contact-item .details strong {
    font-size: 0.9rem;
    color: var(--gray-700);
    display: block;
    margin-bottom: 5px;
  }
  
  .contact-value {
    font-weight: 600;
    color: var(--gray-900);
  }
  
  .contact-value a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .contact-value a:hover {
    color: var(--primary-purple-dark);
    text-decoration: underline;
  }
  
  .contact-item small {
    font-size: 0.8rem;
    color: var(--gray-600);
    display: block;
    margin-top: 3px;
  }
}

/* ===================================================================
   12. MOBILE PERFORMANCE OPTIMIZATIONS
   ================================================================= */
@media (max-width: 767.98px) {
  /* Reduce animation complexity for better performance */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Optimize background effects */
  .hero-particles {
    display: none;
  }
  
  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Improve scrolling performance */
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Reduce box-shadow complexity */
  .card,
  .content-card,
  .service-card-enhanced,
  .care-card,
  .testimonial-card-3d {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Improved hero section for mobile */
  .hero-section-main {
    overflow: hidden;
    position: relative;
  }
  
  .hero-section-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.2));
    z-index: -1;
    pointer-events: none;
  }
  
  .typed-text, .typing-cursor {
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
  }
  
  .typing-cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
  }
  
  .hero-text {
    padding: 0 10px;
  }
  
  /* Fix button layout */
  .hero-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  
  .hero-cta-buttons .btn {
    width: 100%;
    max-width: 220px;
    margin: 0;
    justify-content: center;
    display: flex;
    align-items: center;
  }
}

/* ===================================================================
   13. FORM VALIDATION STYLES
   ================================================================= */
/* Form validation styles */
.form-group.focused {
  position: relative;
}

.form-group.focused::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-purple);
  animation: formFocus 0.3s ease forwards;
}

@keyframes formFocus {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.form-group input.is-valid,
.form-group select.is-valid,
.form-group textarea.is-valid {
  border-color: var(--success);
  background-color: rgba(140, 198, 63, 0.05);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238cc63f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--danger);
  background-color: rgba(220, 53, 69, 0.05);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Alert styling */
.alert {
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

.alert-success {
  background-color: rgba(140, 198, 63, 0.1);
  border: 1px solid rgba(140, 198, 63, 0.3);
  color: var(--success);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: var(--danger);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   14. MEDIA QUERIES MOVED FROM STYLE.CSS
   ================================================================= */

/* Media queries moved from style.css */

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-card h3 {
        font-size: 1.5rem;
    }
    
    .content-card .card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .mb-p2  {padding: 2rem;}
    .mb-p0  {padding: 0px;}
}

@media (max-width: 991px) {
    .content-container {
        flex-direction: column;
    }
    
    .content-card {
        margin-bottom: 2rem;
    }
    
    .image-container {
        height: auto;
    }
}

@media (max-width: 1400px) {
    .testimonial-3d-container {
        gap: 40px;
    }
    
    .testimonial-center {
        width: 450px;
        height: 380px;
    }
    
    .testimonial-side {
        width: 250px;
        height: 280px;
    }
}

@media (max-width: 1200px) {
    .testimonial-3d-container {
        flex-direction: column;
        height: auto;
        gap: 30px;
    }
    
    .testimonial-3d-container::before {
        display: none;
    }
    
    .testimonial-center {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 350px;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        order: 1;
    }
    
    .testimonial-side {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 280px;
        transform: none !important;
        opacity: 0.8 !important;
        filter: none !important;
        pointer-events: auto !important;
        order: 2;
    }
    
    .testimonial-card-3d:hover {
        transform: translateY(-10px) scale(1.02) !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 80px 0;
    }
    
    .testimonial-3d-container {
        height: auto;
    }
    
    .testimonial-card-3d {
        padding: 25px 20px;
    }
    
    .testimonial-center {
        min-height: 320px;
    }
    
    .testimonial-side {
        min-height: 250px;
    }
    
    .testimonial-center .testimonial-avatar-3d,
    .testimonial-side .testimonial-avatar-3d {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .testimonial-center .testimonial-info-3d h5 {
        font-size: 1.1rem;
    }
    
    .testimonial-side .testimonial-info-3d h5 {
        font-size: 1rem;
    }
    
    .testimonial-center .testimonial-quote-3d {
        font-size: 1rem;
    }
    
    .testimonial-side .testimonial-quote-3d {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .footer-contact-bar {
        flex-direction: column;
        padding: 20px;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-contact-text {
        text-align: center;
        margin: 10px 0;
    }
    
    .footer-social-icons {
        margin-top: 15px;
        justify-content: center;
    }
    
    .footer-columns {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
    
    .footer-copy {
        justify-content: center;
        margin-top: 0px;
    }
}

/* ===================================================================
   MOVED FROM style.css: Responsive and Media Queries
   =================================================================== */

@media (max-width: 992px) {
    /* Navbar tablet adjustments */
    .navbar > .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
        display: contents;
    }
    .navbar-brand img { 
      padding-left: 1rem;
  }
  .navbar-scrolled .navbar-brand img { max-height: 80px; transform: scale(1); }
  .navbar-scrolled {
    padding: 0.3rem 0;
    min-height: 100px !important;
}
    .feature-section {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 40px;
    }
    .feature-right {
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        width: 100%;
        max-width: 600px;
    }
    .feature-right .text {
        max-width: 100%;
    }
    .feature-left {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .feature-icon {
        min-width: 250px;
        flex: 1 1 250px;
        padding: 40px 20px;
    }
    .hero-text h1{ text-align: left;}
    .hero-subtitle{ text-align: left;}

}

@media (max-width: 768px) {
    /* Typography Adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    .hero-text .specialist {margin: auto !important;}
    .hero-text h1 { font-size: 2.5rem; text-align: center;}
    .section-wrapper h2,
    .section-wrapper2 h2 { font-size: 2rem; }
    .feature-section { padding:2rem}
    .feature-left { flex-direction: column; gap: 20px; }
    .feature-icon { min-width: 100%; width: 100%; padding: 30px 20px; }
    .feature-right { padding: 30px 20px; max-width: 100%;}
    .feature-right img { max-width: 120px; }
    .feature-right .text h2 { font-size: 24px; margin-bottom: 15px; }
    .feature-right .text h3 { font-size: 16px; }
    .feature-right .text p { font-size: 14px; }
    .content-container { flex-direction: column;  padding: 2rem;}
    .column { flex: 1 1 100%; padding: 2rem; }
    .hero-text { padding-right: var(--spacing-lg) !important; padding-left: var(--spacing-lg) !important; }
    body { padding-top: 0px; }
    .navbar { padding: 0.5rem 0; }
    .navbar > .container-fluid { padding-left: 1rem; padding-right: 1rem; }
    .navbar-brand img { max-height: 100px; }
    .navbar-scrolled { padding: 0.3rem 0;   min-height: 100px !important; }
    .navbar-scrolled .navbar-brand img { max-height: 80px; transform: scale(1); }
    .navbar-collapse { margin-top: 15px; padding: 15px; max-height: 70vh; overflow-y: auto; }
    .navbar .dropdown-menu { min-width: 100%; position: static !important; transform: none !important; box-shadow: none; border: 1px solid var(--gray-200); border-radius: var(--border-radius-sm); margin: 5px 0; }
    .navbar .dropdown-menu-large { min-width: 100%; padding: 10px; }
    .location-grid { display: block; }
    .location-grid .col-md-4 { width: 100%; margin-bottom: 5px; }
    .contact-phone .nav-link { font-size: 1rem; padding: 10px 15px; margin: 10px 0; justify-content: center; max-width: 100%; }
    .btn-refer .nav-link { font-size: 1rem; padding: 10px 15px; margin: 10px 0; justify-content: center; max-width: 100%; }
    .contact-phone .icon img { width: 28px; height: 28px; }
    .navbar-nav .nav-item { margin: 3px 0; }
    .navbar-nav .nav-link { padding: 12px 16px !important; border-radius: var(--border-radius-sm); transition: var(--transition-base); }
    .navbar-nav .nav-link:hover { background-color: var(--lightest-purple); color: var(--primary-purple) !important; }
    .assistance-header { padding: 60px 20px; }
    .assistance-header h2 { font-size: 2rem; }
    .footer-contact-bar { flex-direction: column; align-items: flex-start; }
    .footer-columns { flex-direction: column; align-items: flex-start; }
    .footer-column { flex: 1 1 100%; margin-bottom: 20px; }
    .services-grid { grid-template-columns: 1fr; gap: 15px; }
    .quote-icon-left { transform: translateX(-120px); font-size: 3rem; }
    .quote-icon-right { transform: translateX(120px); font-size: 3rem; }
    .testimonial-section { padding: 60px 0; }
}

@media (max-width: 480px) {
    body { padding-top: 0px; }
    .feature-section { padding: 20px 10px; }
    .feature-icon { padding: 25px 15px; }
    .feature-icon img { width: 80px; height: auto; }
    .feature-icon h4 { font-size: 1.2rem; }
    .feature-right { padding: 25px 15px; }
    .navbar { padding: 0.3rem 0; }
    .navbar > .container-fluid { padding-left: 0.75rem; padding-right: 0.75rem; }
    .navbar-brand img { max-height: 60px; }
    .navbar-scrolled .navbar-brand img { max-height: 55px; }
    .navbar-collapse { margin-top: 10px; padding: 10px; max-height: 60vh; border-radius: var(--border-radius-sm); }
    .contact-phone .nav-link { font-size: 0.9rem; padding: 8px 12px; gap: 8px; }
    .contact-phone .icon img { width: 24px; height: 24px; }
    .navbar .dropdown-menu { font-size: 0.9rem; }
    .dropdown-icon { width: 32px; height: 32px; font-size: 14px; }
    .section-wrapper, .section-wrapper2 { padding: var(--spacing-xl) var(--spacing-md); }
    .assistance-header { padding: 40px var(--spacing-md); }
    .column { padding: var(--spacing-lg); }
    .cta-box-goals { max-width: 280px; }
}

@media (min-width: 1400px) {
    .navbar > .container-fluid {
        max-width: 100%;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-purple: #000;
        --primary-purple-dark: #000;
        --gray-600: #000;
    }
    .btn-purple,
    .btn-discover,
    .btn-contact {
        border: 2px solid var(--gray-900);
    }
}

@media (max-width: 768px) {
    .hero-cta-buttons { flex-direction: column; align-items: center; gap: 1rem; }
    .hero-cta-buttons .btn { width: 100%; max-width: 300px; text-align: center; }
    .floating-card { display: none; }
    .trust-indicators { gap: 0.5rem; }
    .trust-item { padding: 0.75rem; font-size: 0.9rem; }
    .features-list { gap: 1rem; }
    .feature-item { padding: 0.75rem; flex-direction: column; text-align: center; display: flex;  align-content: center; align-items: center; }
    .feature-item i { margin-bottom: 0.5rem; margin-top: 0; }
    .hero-particles { display: none; }
    .content-card { padding: 1.5rem; margin-bottom: 2rem; }
    .btn-cta-enhanced { width: 100%; max-width: 300px; justify-content: center; }
    .hero-subtitle { font-size: 1.1rem; text-align: center; }
    .hero-badge { max-width: 150px; margin: 1rem auto; display: block; }
    .overlay-content { padding: 1rem; }
    .overlay-content i {font-size: 1rem;}
    
    }
}

/* Additional moved media queries from style.css (for enhanced components, cards, etc.) should be appended here as needed. */

@media (max-width: 991.98px) {
  .navbar { 
    height: 100px;
    min-height: 130px;
}
  /* Add these rules to fix the blank space issue in mobile dropdown menu */
  .navbar-collapse {
    padding: 15px !important;
    margin-top: 5px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 0px !important;
    box-shadow: 0 10px 30px rgba(125, 63, 152, 0.15) !important;
  }
  
  .dropdown-menu {
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 5px 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(125, 63, 152, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    transform: none !important;
  }
  
  .dropdown-menu.show {
    padding: 8px 0 !important;
    margin-bottom: 10px !important;
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }
  
  .dropdown-item {
    padding: 10px 15px !important;
    margin: 10px 5px !important;
    border-radius: 8px !important;
  }
  
  .location-grid {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .location-grid .col-md-4 {
    padding: 0 5px !important;
  }
  
  /* Fix dropdown menu animation */
  .dropdown-menu {
    transition: all 0.3s ease !important;
    display: block !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  .dropdown-menu.show {
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 5px 0 !important;
    border: 0 !important;
  }
  
  /* Additional fixes for dropdown content */
  .dropdown-header {
    padding: 10px 15px !important;
    margin-top: 5px !important;
    font-weight: 600 !important;
    color: var(--primary-purple) !important;
  }
  
  /* Fix for nested dropdowns on mobile */
  .dropdown-submenu {
    position: relative !important;
  }
  
  .dropdown-submenu > .dropdown-menu,
  .nested-dropdown-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin-top: 5px !important;
    margin-left: 0px !important;
    box-shadow: none !important;
    border-left: 0;
    border-radius: 8px !important;
  }
  
  .dropdown-submenu > .dropdown-menu.show,
  .nested-dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
  }
  
  .dropdown-submenu > .dropdown-toggle::after {
    transform: rotate(-90deg) !important;
    transition: transform 0.3s ease !important;
  }
  
  .dropdown-submenu > .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(0deg) !important;
  }
  
  .dropdown-menu .row {
    margin: 0 !important;
    width: 100% !important;
    display: flex;
  }
  
  /* Ensure dropdown items are properly aligned and styled */
  .dropdown-menu .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word !important;
    display: flex !important;
    align-items: center !important;
    background-color: #f5ebfd !important;
    gap: 0px !important;
  }
  
  /* Fix for dropdown icon alignment */
  .dropdown-icon {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Ensure proper spacing between dropdown items */
  .navbar-nav .dropdown {
    margin-bottom: 5px !important;
  }
  
  /* Fix for dropdown toggle arrow */
  .dropdown-toggle .dropdown-arrow {
    transition: transform 0.3s ease !important;
    margin-left: 5px !important;
  }
  
  .dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg) !important;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .hero-section-main {
    padding: 25px 0 15px;
  }
  
  .hero-text h1 {
    font-size: 1.7rem;
    line-height: 1.2;
  }
  
  .specialist {
    font-size: 0.8rem;
    padding: 4px 10px;
    margin-bottom: 8px;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .hero-cta-buttons .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
    max-width: 160px;
  }
  
  .hero-badge-main {
    max-width: 80px;
  }
  
  .typed-text, .typing-cursor {
    font-size: 1.7rem;
  }
  
  /* Ensure image doesn't overflow */
  .hero-image-container-main {
    padding: 0 10px;
  }
  
  /* Improve spacing between sections */
  .feature-section {
    margin-top: 20px;
  }
}

/* Typing cursor animation */
.typing-cursor {
  opacity: 1;
  animation: blink 0.7s infinite;
}

.typing-cursor-blink {
  opacity: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 767.98px) {
  /* Improved text alignment for hero section */
  .hero-text {
    text-align: center;
    padding: 0 15px;
  }
  
  .hero-text h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
  
  /* Ensure hero image is properly centered */
  .hero-image-container-main {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Adjust vertical spacing between elements */
  .hero-section-main .row {
    row-gap: 20px;
  }
}
