/* Header Component Styles */
.nav-link {
  color: white !important;
}

.nav-link:hover {
  color: rgb(177, 224, 255) !important;
}

.nav-item.active {
  color: white !important;
  border-bottom: 2px solid white !important;
  transition: border-bottom 0.3s ease-in-out;
}

/* ===========================================
   DESKTOP STYLES (Default - No Media Queries)
   =========================================== */

/* Hide mobile sub-categories on desktop */
.mobile-solutions-submenu,
.mobile-submenu-items {
  display: none !important;
}

/* Desktop Navbar Styles */
.navbar {
  transition: all 0.3s ease-in-out;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: #000000 !important;
  padding: 0.75rem 1rem;
  min-height: 80px;
  box-sizing: border-box;
}

.navbar.scrolled-down {
  background-color: rgba(245, 245, 245, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled-down .nav-link,
.navbar.scrolled-down .navbar-brand {
  color: #000000 !important;
}

.navbar.scrolled-down .btn-signup {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000;
}

.navbar.scrolled-down .btn-signup:hover {
  background-color: #333333 !important;
  border-color: #333333;
}

.navbar.scrolled-down .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled-down .nav-item.active {
  border-bottom: 2px solid #000000 !important;
}

.navbar-brand {
  font-size: 1.5rem;
  padding: 0.25rem 0 0.25rem 1.5rem;
  display: flex;
  align-items: center;
}

.nav-link {
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: white !important;
}

.nav-link:hover {
  color: rgb(177, 224, 255) !important;
}

.nav-item.active {
  color: white !important;
  border-bottom: 2px solid white !important;
  transition: border-bottom 0.3s ease-in-out;
}

.btn-signup {
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  background-color: #1a1a1a !important;
  border: 1px solid #2a2a2a;
}

.btn-signup:hover {
  background-color: #2a2a2a !important;
}

/* Desktop Mega Menu Styles */
.mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #000000;
  border-top: 1px solid #2a2a2a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: none;
}

/* Hover functionality removed - mega menu only opens on click */
/* .nav-item.has-mega-menu:hover .mega-menu-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.3s;
  pointer-events: auto;
} */

/* Keep mega menu open when hovering over the menu content */
.mega-menu-container:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

/* Keep mega menu open when clicked */
.mega-menu-container.clicked-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
  pointer-events: auto;
}

/* Mega Menu Footer - Desktop Only */
.mega-menu-footer {
  display: block;
}

.mega-menu-content {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 0;
}

.mega-menu-column {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
  position: relative;
}

/* Column separator */
.mega-menu-column:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #2a2a2a;
}

/* Center align column 1 content */
.mega-menu-column:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding-top: 20px;
}

/* Center align paragraph in first column */
.mega-menu-column:first-child p {
  text-align: justify;
  align-self: stretch;
  max-width: 100%;
  word-wrap: break-word;
  padding-left: 0;
  margin-left: 0;
}

.mega-menu-column h3 {
  color: #f3852c;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  height: auto;
  display: inline-block;
  position: relative;
}

.mega-menu-column h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #f3852c 0%, #ff9f38 100%);
  border-radius: 1px;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.mega-menu-item:hover {
  color: #ffffff;
  transform: translateX(5px);
  text-decoration: none;
}

.mega-menu-item i {
  width: 20px;
  margin-right: 12px;
  color: #1b5ff0;
  font-size: 16px;
}

.mega-menu-item .description {
  color: #888888;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

.mega-menu-featured {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  margin-top: 10px;
}

.mega-menu-featured h4 {
  color: #1b5ff0;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.mega-menu-featured p {
  color: #cccccc;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

.mega-menu-featured .btn {
  background-color: #1b5ff0;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.mega-menu-featured .btn:hover {
  background-color: #28b4fa;
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

/* Book Now button hover effect */
.mega-menu-column .btn:hover {
  background-color: #0056b3 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  text-decoration: none;
  color: #ffffff;
}

/* ===========================================
   MOBILE STYLES (Media Queries)
   =========================================== */

@media (max-width: 991.98px) {
  /* Mobile Navbar Styles */
  .navbar {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Show mobile sub-categories on mobile */
  .mobile-solutions-submenu {
    display: none !important; /* Hidden by default on mobile */
  }
  
  /* Only show when Solutions menu is toggled */
  .mobile-solutions-submenu.show {
    display: block !important;
  }
  
  .navbar-collapse {
    background-color: transparent !important;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .navbar-collapse.show {
    background-color: transparent !important;
  }

  /* Only change background when scrolled */
  .navbar.scrolled-down .navbar-collapse.show {
    background-color: transparent !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .navbar.scrolled-down .navbar-collapse .nav-link {
    color: #000000 !important;
  }

  /* Default mobile menu text colors */
  .navbar-collapse .nav-link {
    color: #ffffff !important;
  }
  
  /* Ensure hamburger icon is always visible */
  .navbar-toggler {
    position: relative;
    z-index: 1032;
    margin-right: 0;
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
  }
  
  /* Ensure navbar brand doesn't overflow */
  .navbar-brand {
    max-width: calc(100vw - 100px);
    overflow: hidden;
    box-sizing: border-box;
  }
  
  /* Ensure navbar nav doesn't overflow */
  .navbar-nav {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Mobile menu text colors for default state */
  .mobile-solutions-submenu .nav-link {
    color: #cccccc !important;
    border-bottom: 1px solid #2a2a2a;
  }

  .mobile-submenu-items .nav-link {
    color: #cccccc !important;
    border-bottom: 1px solid #1a1a1a;
  }

  /* Mobile menu text colors for scrolled state */
  .navbar.scrolled-down .mobile-solutions-submenu .nav-link {
    color: #333333 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navbar.scrolled-down .mobile-submenu-items .nav-link {
    color: #555555 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Mobile Mega Menu Styles */
  .mega-menu-container {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: #1a1a1a;
    border: none;
    box-shadow: none;
    display: none;
  }

  .nav-item.has-mega-menu.show .mega-menu-container {
    display: block;
  }

  .mega-menu-content {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .mega-menu-column {
    flex: none;
    padding: 0;
  }

  /* Remove separators on mobile */
  .mega-menu-column::after {
    display: none;
  }

  .mega-menu-item {
    padding: 8px 0;
  }
}

@media (max-width: 767.98px) {
  /* Mobile Navbar Scrolled State */
  .navbar.scrolled-down {
    background-color: rgba(245, 245, 245, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  /* Mobile Mega Menu - Hide desktop version */
  .mega-menu-container {
    display: none !important;
  }

  .nav-item.has-mega-menu.show .mega-menu-container {
    display: none !important;
  }

  /* Mobile Nested Menu Styles */
  /* Make navbar collapsible content scrollable */
  .navbar-collapse {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  /* Ensure navbar nav takes full height and left align */
  .navbar-nav {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    justify-content: flex-start !important;
  }
  
  /* Left align all nav items */
  .navbar-nav .nav-item {
    text-align: left;
    width: 100%;
  }
  
  .navbar-nav .nav-link {
    text-align: left;
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .mobile-solutions-submenu {
    margin-left: 20px;
    width: calc(100% - 20px);
  }
  
  .mobile-solutions-submenu .nav-link {
    color: #cccccc !important;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 15px 12px 35px;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
  }
  
  /* Ensure submenu items are visible when scrolled */
  .navbar.scrolled-down .mobile-solutions-submenu .nav-link {
    color: #333333 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .mobile-solutions-submenu .nav-link:hover {
    color: #ffffff !important;
    background-color: #2a2a2a;
  }

  .navbar.scrolled-down .mobile-solutions-submenu .nav-link:hover {
    color: #000000 !important;
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  .mobile-submenu-items {
    margin-left: 20px;
    max-height: 300px;
    overflow-y: auto;
    width: calc(100% - 20px);
    display: none; /* Hidden by default */
  }
  
  /* Ensure sub-submenu items are visible when displayed */
  .mobile-submenu-items[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .mobile-submenu-items .nav-link {
    color: #cccccc !important;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 15px 10px 35px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: flex-start;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    min-height: 44px;
  }

  /* Ensure sub-submenu items are visible when scrolled */
  .navbar.scrolled-down .mobile-submenu-items .nav-link {
    color: #555555 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .mobile-submenu-items .nav-link i {
    width: 20px;
    margin-right: 10px;
    color: #1b5ff0;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .navbar.scrolled-down .mobile-submenu-items .nav-link i {
    color: #1b5ff0 !important;
  }
  
  .mobile-submenu-items .nav-link:hover {
    color: #ffffff !important;
    background-color: #1a1a1a;
  }
  
  .mobile-solutions-submenu .fa-chevron-down {
    transition: transform 0.3s ease;
  }
  
  /* Ensure the navbar itself doesn't overflow */
  .navbar {
    max-height: 100vh;
    overflow: hidden;
  }
  
  /* Left align the navbar collapse content */
  .navbar-collapse {
    text-align: left;
    justify-content: flex-start !important;
  }
  
  /* Left align the auth section */
  .auth-and-extra-style-1 {
    text-align: left;
    justify-content: flex-start;
    margin-left: 20px;
    margin-top: 20px;
  }
  
  /* Hide CTA button on mobile */
  .auth-and-extra-style-1 {
    display: none !important;
  }
  
  /* Close icon styles */
  .navbar-toggler.close-icon .navbar-toggler-icon {
    background-image: none !important;
    position: relative;
  }
  
  .navbar-toggler.close-icon .navbar-toggler-icon::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .navbar.scrolled-down .navbar-toggler.close-icon .navbar-toggler-icon::before {
    color: rgba(0, 0, 0, 0.8);
  }

  /* Mobile Container and Row Styles */
  .navbar .container, .navbar .row {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

/* Hide mobile dropdown on desktop and tablet */
@media (min-width: 768px) {
  .mobile-dropdown {
    display: none !important;
  }
  
  .mobile-dropdown.show {
    display: none !important;
  }
}

/* ===========================================
   GENERAL STYLES (Apply to both desktop and mobile)
   =========================================== */

img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.w-logo {
  max-height: 50px !important;
  width: auto !important;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.font-rubik {
  font-family: 'Poppins', sans-serif !important;
}

.cta-button {
  display: inline-block;
  background-color: #1b5ff0;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 525;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #28b4fa;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #ffffff;
}

/* Global overflow control - only for mobile menu */
@media (max-width: 767.98px) {
  .navbar, .navbar-collapse, .navbar-nav {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
}

/* Container and row styles - only apply overflow control to navbar */
.navbar .container, .navbar .row {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
} 