/* Web Header Styles - Extracted from templates */

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #0891b2);
}

::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.1);
}

/* Firefox scrollbar */
/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #06b6d4 rgba(0, 0, 0, 0.1);
}

/* Body styles with header compensation */
body {
  background-color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  padding-top: 90px; /* Compensate for fixed header height */
}

/* Header styles */
#header {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  backdrop-filter: blur(4px);
  border-radius: 24px;
  width: 99%;
  max-width: 100rem;
  top: 16px;
  background: linear-gradient(135deg, #9333ea 0%, #4A90E2 50%, #06b6d4 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease-out;
}

/* Header scrolled state - maintain gradient with more opacity */
#header.scrolled {
  top: 8px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.95) 0%, rgba(74, 144, 226, 0.95) 50%, rgba(6, 182, 212, 0.95) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  border-color: rgba(226, 232, 240, 0.3);
}

/* Mobile menu open state */
@media (max-width: 1023px) {
  #header.menu-open {
    border-radius: 24px 24px 0 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.98) 0%, rgba(74, 144, 226, 0.98) 50%, rgba(6, 182, 212, 0.98) 100%);
    border-color: rgba(55, 65, 81, 1);
    border-bottom: none;
  }
}

/* Navigation container */
nav {
  padding: 16px;
}

@media (min-width: 768px) {
  nav {
    padding: 16px 40px;
  }
}

.nav-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

/* Logo styles */
.logo {
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-desktop {
  display: none;
}

@media (min-width: 768px) {
  .logo-desktop {
    display: block;
  }

  .logo-mobile {
    display: none;
  }
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: rgba(31, 41, 55, 1);
}

/* Dropdown styles */
.rjc-dropdown {
  position: relative;
}

.rjc-dropdown-btn {
  padding: 8px 16px;
  color: white;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.3s;
}

.rjc-dropdown-btn:hover {
  background-color: rgba(31, 41, 55, 1);
}

.rjc-dropdown-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.rjc-dropdown:hover .rjc-dropdown-btn svg {
  transform: rotate(180deg);
}

.rjc-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 288px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(55, 65, 81, 1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease-out;
  z-index: 50;
}

.rjc-dropdown:hover .rjc-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rjc-dropdown.active .rjc-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rjc-dropdown-item {
  display: block;
  padding: 12px 16px;
  color: rgba(229, 231, 235, 1);
  text-decoration: none;
  border-radius: 8px;
  margin: 0 8px;
  transition: all 0.2s;
}

.rjc-dropdown-item:hover {
  color: white;
  background-color: rgba(31, 41, 55, 1);
}

.rjc-dropdown-item-title {
  font-weight: 600;
  font-size: 14px;
}

.rjc-dropdown-item-desc {
  font-size: 12px;
  color: rgba(156, 163, 175, 1);
  margin-top: 4px;
}

/* CTA Button */
.cta-btn {
  margin-left: 8px;
  padding: 8px 20px;
  background-color: white;
  color: black !important;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background-color: rgba(229, 231, 235, 1);
}

.cta-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: white;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mobile-toggle:hover {
  background-color: rgba(31, 41, 55, 1);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

#menu-icon.hidden,
#close-icon.hidden {
  display: none;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: #000000;
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 16px;
  z-index: 40;
}

.mobile-menu.active {
  display: table !important;  
  width: 100%;

}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-service-toggle {
  width: 100%;
  text-align: left;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s;
}

.mobile-service-toggle:hover {
  background-color: rgba(31, 41, 55, 1);
}

.mobile-service-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.mobile-service-toggle svg.rotate {
  transform: rotate(180deg);
}

.mobile-services-container {
  transition: all 0.2s ease-out;
}

.mobile-services-container.active {
  background-color: rgba(17, 24, 39, 1);
  border: 1px solid rgba(55, 65, 81, 1);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.mobile-services-container.active .mobile-service-toggle {
  background-color: rgba(31, 41, 55, 1);
  border-bottom: 1px solid rgba(55, 65, 81, 1);
  border-radius: 0;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.2s ease-out;
  background-color: rgba(31, 41, 55, 0.5);
  border-radius: 6px;
  margin: 0;
}

.mobile-submenu.active {
  display: flex;
  max-height: 500px;
}

.mobile-link {
  display: block;
  color: rgba(209, 213, 219, 1);
  padding: 12px 16px;
  border-radius: 0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(55, 65, 81, 1);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  background-color: rgba(55, 65, 81, 1);
  color: white;
}

.mobile-menu-link {
  display: block;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s;
}

.mobile-menu-link:hover {
  background-color: rgba(31, 41, 55, 1);
}

.mobile-cta {
  display: block;
  text-align: center;
  background-color: white;
  color: black;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 8px;
  transition: background-color 0.3s;
}

.mobile-cta:hover {
  background-color: rgba(229, 231, 235, 1);
}
