/* ============================================
   MOBILE RESPONSIVE STYLES FOR HOMEPAGE
   ============================================ */

/* Mobile-First Approach - Base styles for mobile */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
}

/* Fix viewport units for mobile browsers */
:root {
  --vh: 1vh;
}

.full-height {
  height: calc(var(--vh, 1vh) * 100);
}

/* ============================================
   LARGE SCREEN HERO SECTION (Desktop)
   ============================================ */
@media (min-width: 992px) {
  /* Left align hero content text on large screens */
  .hero-content {
    text-align: left !important;
  }
}

/* ============================================
   MEDIUM SCREEN HERO SECTION (Tablets)
   ============================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Keep row layout for medium screens but optimize spacing */
  .hero-section .row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .hero-section .order-1,
  .hero-section .order-2 {
    flex: 1 !important;
    width: auto !important;
  }
  
  /* Left align hero content text on medium screens */
  .hero-content {
    text-align: left !important;
  }
  .btn-search-modern{
    width: 100%;
  }
}

/* ============================================
   MOBILE FORM PRIORITY OVERRIDE (Mobile Only)
   ============================================ */
@media (max-width: 767.98px) {
  /* Force booking form to appear first on mobile devices only */
  .hero-section .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .hero-section .order-1 {
    order: -1 !important; /* Force to top */
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto 2rem auto !important;
  }
  
  .hero-section .order-2 {
    order: 1 !important; /* Hero content comes after */
    width: 100% !important;
  }
  
  /* Center the booking form column content */
  .hero-section .order-1 > * {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ============================================
   MOBILE NAVIGATION (Small devices)
   ============================================ */
@media (max-width: 575.98px) {
  .navbar-brand img {
    height: 35px !important;
  }
  
  .container-fluid {
    padding: 0 10px !important;
  }
  
  .navbar-nav .nav-link {
    font-size: 15px;
    padding: 0.6rem 0.8rem !important;
  }
  
  .btn.btn-primary {
    font-size: 13px;
    padding: 0.4rem 0.8rem !important;
  }
}

/* ============================================
   HERO SECTION MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 80px 0 40px 0;
    min-height: auto;
  }
  
  .hero-section .min-vh-100 {
    min-height: auto !important;
  }
  
  /* Hero content appears second on mobile, with reduced prominence */
  .hero-content {
    padding: 1.5rem 0 1rem 0;
    text-align: center;
  }
  
  .hero-badge {
    margin-bottom: 1rem !important;
  }
  
  .badge-modern {
    font-size: 11px;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.2);
  }
  
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin-bottom: 1rem !important;
    color: #333;
  }
  
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 1.5rem !important;
    color: #666;
    padding: 0 0.5rem;
  }
  
  .hero-features {
    margin-bottom: 1.5rem !important;
  }
  
  .feature-item-modern {
    margin: 0.4rem 0;
    font-size: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    
    opacity: 0.9;
  }
  
  .feature-item-modern i {
    margin-right: 0.4rem;
    color: #28a745;
    font-size: 12px;
  }
  
  .hero-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .btn-modern-primary,
  .btn-modern-outline {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    font-size: 14px;
    border-radius: 8px;
  }
  
  .btn-modern-primary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
  }
  
  .btn-modern-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
  }
  .footer-title::after {
  display: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
}

/* ============================================
   BOOKING FORM MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 767.98px) {
  /* Make booking form prominent on mobile - appears first */
  .hero-section .order-1 {
    order: 1 !important;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .hero-section .order-2 {
    order: 2 !important;
  }
  
  .booking-card-modern {
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    background: white;
    border: 2px solid #007bff;
    position: relative;
    width: 100%;
    max-width: 100%;
  }
  
  .booking-card-modern {
    animation: mobilePulse 3s ease-in-out infinite;
  }
  
  @keyframes mobilePulse {
    0%, 100% { 
      box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(0, 123, 255, 0.1);
    }
    50% { 
      box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(0, 123, 255, 0.1);
    }
  }
  
  .booking-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    color: #007bff;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
  }
  
  .booking-subtitle {
    font-size: 13px;
    margin-bottom: 1.25rem;
    color: #000 !important;
    text-align: center;
    line-height: 1.4;
  }
  
  /* Ensure booking form container is properly aligned */
  .booking-form-container {
    width: 100%;
    padding: 0;
  }
  
  .modern-booking-form {
    width: 100%;
  }
  
  .form-group-modern {
    margin-bottom: 1.5rem !important;
    width: 100%;
  }
  
  .form-label-modern {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
    text-align: left;
  }
  
  .form-label-modern i {
    color: #007bff;
    margin-right: 0.5rem;
  }
  
  .input-group-modern {
    position: relative;
    width: 100%;
  }
  
  .form-control-modern {
    padding: 0.75rem 1rem;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    width: 100%;
    background: white;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  
  .form-control-modern:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
    outline: none;
  }
  
  /* Fix dropdown arrow positioning */
  .dropdown-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 12px;
    z-index: 1;
  }
  
  /* Ensure select elements show dropdown arrow */
  select.form-control-modern {
    padding-right: 40px;
    background-image: none;
  }  
  .btn-search-modern {
    width: 60%;
    padding: 0.875rem 1.5rem;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
  }
  
  .btn-search-modern i {
    margin-right: 0.5rem;
  }
  
  .btn-search-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    color: white;
  }
  
  .btn-search-modern:active {
    transform: translateY(0);
  }
  
  /* Fix row spacing for date/time fields */
  .booking-form-container .row {
    margin: 0 -0.5rem;
  }
  
  .booking-form-container .row > [class*="col-"] {
    padding: 0 0.5rem;
  }
  
  /* Force all form fields to full width like the first 2 fields */
  .booking-form-container .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Mobile form validation styles */
  .form-control-modern.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25) !important;
  }
  
  .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
  }
  .footer-links{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-title{
   margin-left: auto;
   margin-right: auto;
   text-align: center;
  }
  
  /* Center contact cards content in footer */
  .contact-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  .contact-icon {
    margin-right: 0 !important;
    margin-bottom: 0.75rem !important;
  }
  
  .contact-info {
    text-align: center !important;
  }
  
  .contact-info strong {
    text-align: center !important;
    display: block !important;
  }
  
  .contact-info p {
    text-align: center !important;
    margin: 0 !important;
  }
}

/* ============================================
   VIEW ALL VEHICLES BUTTON - SMALL SCREENS
   ============================================ */
@media (max-width: 767.98px) {
  /* Target "View all vehicles" buttons specifically without affecting other buttons */
  .btn-primary.btn-lg:contains("View all vehicles"),
  .btn-outline-primary.btn-lg:contains("View all vehicles"),
  .btn[href*="all-cars"]:not(.btn-search-modern),
  .btn[href*="all-bikes"]:not(.btn-search-modern) {
    width: 60% !important;
    max-width: 250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* More specific selector for buttons containing "View all" text */
  a.btn.btn-primary.btn-lg[href*="all-cars"],
  a.btn.btn-outline-primary.btn-lg[href*="all-cars"],
  a.btn.btn-primary.btn-lg[href*="all-bikes"],
  a.btn.btn-outline-primary.btn-lg[href*="all-bikes"] {
    width: 60% !important;
    max-width: 250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ============================================
   PRODUCT CARD BUTTONS - SMALL SCREENS
   ============================================ */
@media (max-width: 767.98px) {
  /* Target specific booking buttons with mb-xl class */
  .btn.btn-primary.mb-xl:not(.btn-search-modern):not([href*="all-cars"]):not([href*="all-bikes"]):not([value="SEARCH"]) {
    width: 60% !important;
    max-width: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Target buttons inside hdetails class (common wrapper for booking buttons) */
  .hdetails .btn.btn-primary.mb-xl,
  .hdetails .btn:not(.btn-search-modern) {
    width: 60% !important;
    max-width: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Target input buttons with Book Now value */
  input[type="submit"][value="Book Now"].btn.btn-primary.mb-xl {
    width: 60% !important;
    max-width: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
  }
}

/* ============================================
   MOBILE CTA SECTION
   ============================================ */
@media (max-width: 991.98px) {
  .mobile-cta-section {
    display: block !important;
    padding: 2rem 0;
  }
  
  .mobile-cta-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-step {
    padding: 0.75rem 0.5rem;
  }
  
  .step-icon {
    margin-bottom: 0.5rem !important;
  }
  
  .step-icon i {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .cta-step small {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
  }
  
  .mobile-cta-section .btn {
    font-size: 15px;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid white !important;
    color: white !important;
    transition: all 0.3s ease;
  }
  
  /* Limit button width on smaller screens */
  @media (max-width: 767.98px) {
    .mobile-cta-section .btn {
      width: 50% !important;
      max-width: 200px !important;
      margin: 0 auto !important;
      display: block !important;
    }
  }
  
  .mobile-cta-section .btn:hover {
    background: white !important;
    color: #007bff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  }
  
  /* Update the CTA text to emphasize going back to form */
  .mobile-cta-section .btn::before {
    content: "⬆️ ";
  }
  
  .smooth-scroll {
    scroll-behavior: smooth;
  }
}

/* Small mobile adjustments */
@media (max-width: 575.98px) {
  .mobile-cta-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .cta-step small {
    font-size: 11px;
  }
  
  .mobile-cta-section .btn {
    font-size: 14px;
    padding: 0.5rem 1rem;
  }
  
  .booking-card-modern {
    margin: 0 auto 2rem auto !important;
    padding: 1.25rem !important;
    max-width: 100% !important;
  }
  
  .booking-title {
    font-size: 1.2rem;
  }
  
  /* Make form inputs slightly larger for easier tapping */
  .form-control-modern {
    min-height: 48px;
    font-size: 16px;
    padding: 0.75rem 1rem;
  }
  
  .btn-search-modern {
    min-height: 50px;
    font-size: 16px;
    font-weight: 700;
    padding: 0.875rem 1rem;
  }
  
  /* Fix container spacing on small screens */
  .hero-section .container {
    padding: 0 15px;
  }
  
  /* Ensure proper form field spacing */
  .form-group-modern {
    margin-bottom: 1.25rem !important;
  }
  
  /* Fix select dropdown appearance on small screens */
  select.form-control-modern {
    background-color: white !important;
    color: #333 !important;
  }
  
  select.form-control-modern option {
    background-color: white !important;
    color: #333 !important;
  }
}

/* ============================================
   FEATURES SECTION MOBILE
   ============================================ */
@media (max-width: 767.98px) {
  .modern-features-section {
    padding: 2.5rem 0;
  }
  
  .section-badge {
    margin-bottom: 1rem;
  }
  
  .badge-modern {
    font-size: 11px;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
  }
  
  .section-title-modern {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .highlight-text {
    display: block;
    margin-top: 0.25rem;
    color: #007bff;
  }
  
  .section-subtitle-modern {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .feature-card-modern {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    text-align: center;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .feature-icon-modern {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem auto;
  }
  
  .feature-icon-modern i {
    font-size: 1.25rem;
  }
  
  .feature-title-modern {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  .feature-desc-modern {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
  }
}

/* ============================================
   MOBILE FEATURES REPOSITIONING
   ============================================ */
@media (max-width: 991.98px) {
  /* Position mobile features after all hero content */
  .hero-features-mobile {
    margin-top: 2rem !important;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    order: 999 !important; /* Force to bottom */
  }
  
  .feature-mobile {
    text-align: center;
    padding: 1rem 0.5rem;
  }
  
  .feature-mobile i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .feature-mobile span {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    line-height: 1.2;
  }
}

/* ============================================
   IMPROVED TOUCH TARGETS
   ============================================ */
@media (max-width: 767.98px) {
  /* Ensure all clickable elements are at least 44px tall */
  .btn,
  .form-control,
  .nav-link,
  .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Better spacing for touch */
  .navbar-nav .nav-item {
    margin: 0.2rem 0;
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem;
  }
}

/* ============================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   ============================================ */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    padding: 70px 0 30px 0;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 1.8rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 1rem !important;
  }
  
  .feature-item-modern {
    margin: 0.25rem 0;
    font-size: 12px;
  }
  
  .booking-card-modern {
    padding: 1rem;
  }
  
  .mobile-cta-section {
    padding: 1.5rem 0;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (max-width: 767.98px) {
  /* Focus states for better accessibility */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
  }
  
  /* Better contrast for text */
  .hero-subtitle,
  .section-subtitle-modern {
    color: #495057;
  }
  
  /* Skip link for screen readers */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #007bff;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1100;
  }
  
  .skip-link:focus {
    top: 6px;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
@media (max-width: 767.98px) {
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    
    html {
      scroll-behavior: auto;
    }
  }
  
  /* Optimize rendering */
  .hero-section,
  .booking-card-modern,
  .feature-card-modern {
    will-change: auto;
    transform: translateZ(0);
  }
}

/* ============================================
   DARK MODE SUPPORT (Future Enhancement)
   ============================================ */
@media (prefers-color-scheme: dark) and (max-width: 767.98px) {
  /* This can be expanded later for dark mode support */
  .navbar-light .navbar-toggler-icon {
    filter: invert(1);
  }
}

/* ============================================
   SMART NAVBAR MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 767.98px) {
  /* Faster transitions on mobile for better performance */
  .navbar.fixed-top {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease;
  }
  
  /* Ensure navbar stays hidden during mobile keyboard appearance */
  .navbar.navbar-hidden {
    visibility: hidden;
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease, visibility 0.2s ease;
  }
  
  .navbar.navbar-visible {
    visibility: visible;
    opacity: 1;
  }
  
  /* Improved touch area for mobile nav items */
  .navbar-nav .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  /* Enhanced backdrop blur on mobile when scrolled */
  .navbar.navbar-visible.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* ============================================
   MOBILE NAVBAR DROPDOWN POSITIONING
   ============================================ */
@media (max-width: 991.98px) {
  /* Mobile dropdown positioned below navbar instead of inside - super compact */
  .navbar-collapse.show {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    z-index: 1020 !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    width: 100% !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-top: none !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
  }

  /* Right-aligned dropdown for better mobile UX - aligned with menu button right edge */
  .navbar-collapse.show {
    right: 15px !important;
    left: auto !important;
    width: 280px !important;
    max-width: calc(100vw - 30px) !important;
  }

  /* Ultra attractive Pay Now button in mobile dropdown - super compact */
  .navbar-collapse.show .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 4px 10px 6px 10px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4), 0 3px 8px rgba(0, 123, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    font-size: 13px !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    line-height: 1.2 !important;
  }

  .navbar-collapse.show .btn-primary::before {
    content: '💳' !important;
    margin-right: 8px !important;
    font-size: 16px !important;
  }

  .navbar-collapse.show .btn-primary::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: left 0.6s ease !important;
  }

  .navbar-collapse.show .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 50%, #002752 100%) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.5), 0 6px 18px rgba(0, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  .navbar-collapse.show .btn-primary:hover::after {
    left: 100% !important;
  }

  .navbar-collapse.show .btn-primary:active {
    transform: translateY(-2px) scale(0.98) !important;
    transition: all 0.1s ease !important;
  }

  /* Beautiful nav links in dropdown - super compact */
  .navbar-collapse.show .nav-link {
    color: #333 !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    margin: 0px 8px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    position: relative !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .navbar-collapse.show .nav-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #007bff !important;
    transform: translateX(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1) !important;
  }

  .navbar-collapse.show .nav-link::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 4px !important;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    transform: scaleY(0) !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 4px 4px 0 !important;
  }

  .navbar-collapse.show .nav-link:hover::before {
    transform: scaleY(1) !important;
  }
}
