/* Navbar Styles adapted from React component */
:root {
  --navbar-height: 80px; /* Increased height for better spacing */
  --navbar-font: 'Inter', sans-serif;
  --navbar-blur: 26px;
  --navbar-padding-x: 24px;
  --navbar-transition: all 0.3s ease;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Glass Header Styling */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.3) !important; /* Dark transparent background */
  backdrop-filter: blur(8px) !important; /* Restore blur effect */
  -webkit-backdrop-filter: blur(8px) !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding-left: 24px;
  padding-right: 24px;
}

/* Add new rule to remove blur when menu is active */
.main-header.is-active {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(20, 20, 30, 0.95) !important;
}

.main-header::after {
  display: none !important; /* Remove any potential pseudo-element styling */
}

/* Responsive header padding for all screens */
.main-header__layout {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 5vw;
  padding-right: 5vw;
  height: 80px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 1200px) {
  .main-header__layout {
    padding-left: 3vw;
    padding-right: 3vw;
  }
}
@media (max-width: 768px) {
  .main-header__layout {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.main-header *, 
.main-header__layout *,
.main-header__nav * {
  background-color: transparent !important;
}

.header-spacing {
  height: 30px; /* Adjust based on your header height */
}

/* Sleek Hamburger Icon */
.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  pointer-events: auto;
}

.main-header__nav-trigger.is-active .hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  width: 100%;
}

.main-header__nav-trigger.is-active .hamburger span:nth-child(2) {
  transform: translateY(-9px) rotate(-45deg);
  width: 100%;
}

.main-header__nav-trigger.is-active .hamburger span:nth-child(3) {
  opacity: 0;
  transform: translateX(-20px);
}

/* Center the hamburger button vertically */
.main-header__nav-trigger {
  position: relative;
  top: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  height: 40px;
  margin-top: -5px; /* Move up slightly */
}

.main-header__nav-trigger:hover {
  transform: scale(1.1);
}

.main-header__nav-trigger:active {
  transform: scale(0.95);
}

/* Remove all background, highlight, and tap highlight */
.main-header__nav-trigger,
.main-header__nav-trigger:active,
.main-header__nav-trigger:focus,
.main-header__nav-trigger:hover {
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}

/* Hamburger icon: tighter spacing and X animation */
.main-header__nav-trigger-icon {
  position: relative;
  display: block;
  transition: background-color 0.2s, box-shadow 0.2s;
  margin: 1.5px 0;
}

/* Remove pseudoelements from hamburger icon that could be causing conflicts */
.main-header__nav-trigger-icon::before,
.main-header__nav-trigger-icon::after {
  display: none !important;
  content: none !important;
}

/* Ensure bar elements are properly positioned and styled */
.main-header__nav-trigger-icon .bar {
  display: block !important;
  position: static !important;
  width: 22px !important;
  height: 2px !important;
  background-color: #fff !important;
  margin: 5px 0 !important;
}

.main-header__nav-trigger[aria-expanded='true'] .bar1 {
  transform: translateY(7px) rotate(45deg);
}

.main-header__nav-trigger[aria-expanded='true'] .bar2 {
  opacity: 0;
}

.main-header__nav-trigger[aria-expanded='true'] .bar3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide hamburger icon on desktop */
@media (min-width: 768px) {
  .main-header__nav-trigger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
  }
}

/* Mobile Menu Overlay with enhanced animations */
.main-header__nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(20, 20, 30, 0.0); /* Start transparent */
  /* Remove blur and glassmorphism */
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease,
              background-color 0.4s ease,
              opacity 0.3s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transform-origin: center;
}

.main-header__nav.is-active {
  background: rgba(20, 20, 30, 0.95); /* Increased opacity for better contrast */
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.35) inset, 0 8px 32px 0 rgba(0,0,0,0.45);
  border: none;
  opacity: 1;
  visibility: visible;
  transform: scale(1.1) !important;
  transition: opacity 0.4s ease,
              background-color 0.4s ease,
              opacity 0.3s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Center and Style Menu Items */
#primary-menu {
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.nav-link {
  position: relative;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
  padding: 0.5rem 0;
  display: inline-block;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #3fa9f5 0%, #007aff 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.nav-link:hover,
.nav-link:focus {
  color: #3fa9f5;
  transform: translateY(-1px) scale(1.04);
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

.menu-item .nav-link[aria-current="page"],
.menu-item .nav-link.active {
  color: #3fa9f5;
  font-weight: 700;
}

.menu-item .nav-link[aria-current="page"]::after,
.menu-item .nav-link.active::after {
  transform: scaleX(1);
}

/* Remove all background, highlight, and tap highlight */
.nav-link,
.nav-link:active,
.nav-link:focus {
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Remove ALL grey highlighting on header elements */
.main-header__logo a,
.main-header__nav-trigger,
.nav-link,
#primary-menu li a,
.main-header * {
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}

.main-header__logo a:hover,
.main-header__logo a:active,
.main-header__logo a:focus,
.nav-link:hover,
.nav-link:active,
.nav-link:focus,
#primary-menu li a:hover,
#primary-menu li a:active,
#primary-menu li a:focus {
  background-color: transparent !important;
}

/* Staggered animation for menu items */
.main-header__nav #primary-menu .menu-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0s;
}

.main-header__nav.is-active #primary-menu .menu-item {
  opacity: 1;
  transform: translateY(0);
}

.main-header__nav.is-active #primary-menu .menu-item:nth-child(1) {
  transition-delay: 0.1s;
}

.main-header__nav.is-active #primary-menu .menu-item:nth-child(2) {
  transition-delay: 0.15s;
}

.main-header__nav.is-active #primary-menu .menu-item:nth-child(3) {
  transition-delay: 0.2s;
}

/* Enhanced hamburger button animation */
.main-header__nav-trigger {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 768px) {
  .main-header__nav {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    right: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }
  
  .main-header__nav #primary-menu .menu-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  #primary-menu {
    flex-direction: row !important;
    gap: 2rem !important;
    width: auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  
  .nav-link {
    font-size: 1rem !important;
    width: auto !important;
    padding: 0.5rem 0 !important;
    text-align: left !important;
  }
}


  .main-header__nav.is-active {
    background: rgba(5, 8, 18, 0.98) !important;
    opacity: 1 !important;
    pointer-events: auto;
    width: 100%;
    left: 0;
  }
  .main-header__nav.is-active #primary-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    z-index: 2000 !important;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
    opacity: 1 !important;
    transform: translateY(0);
  }
  .main-header__nav.is-active .menu-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
  }
  .main-header__nav.is-active .menu-item.show {
    opacity: 1;
    transform: translateY(0);
  }
  .main-header__nav.is-active .nav-link {
    color: #fff !important;
    background: none !important;
    transition: color 0.25s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1), opacity 0.35s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    transform: translateY(40px);
  }
  .main-header__nav.is-active .menu-item.show .nav-link {
    opacity: 1;
    transform: translateY(0);
  }
  .main-header__nav.is-active .nav-link:hover,
  .main-header__nav.is-active .nav-link:focus,
  .main-header__nav.is-active .menu-item .nav-link[aria-current="page"],
  .main-header__nav.is-active .menu-item .nav-link.active {
    color: #3fa9f5 !important;
    background: none !important;
  }
  .main-header__nav.is-active .nav-link::after {
    display: none !important;
  }


/* Add psychedelic logo animation */
.main-header__logo .logo-link {
  position: relative;
  display: inline-block;
}

.main-header__logo .logo-link::before {
  content: '';
  position: absolute;
  top: -18%;
  left: -18%;
  right: -18%;
  bottom: -18%;
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  background-size: 400%;
  z-index: -1;
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
  animation: glowing 20s linear infinite;
  pointer-events: none;
}

.main-header__logo .logo-link:hover::before {
  opacity: 0.32;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}
@media (max-width: 767px) {
  .main-header__nav {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
  }
}
/* Ensure logo image stays above the gradient */
.main-header__logo .logo-link img {
  position: relative;
  z-index: 1;
  mix-blend-mode: difference;
  filter: brightness(1.2);
  max-height: 40px;
  width: auto;
}

/* Vibrant animated gradient text fill on hover */
.main-header__logo .logo-link:hover img {
  background: linear-gradient(90deg, #ff005a, #fffb00, #00ff94, #00c3ff, #7a00ff, #ff00c8, #ff005a 100%);
  background-size: 300% 300%;
  animation: textGradientMove 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.4) contrast(1.2);
}

@keyframes textGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.no-scroll {
  overflow: hidden !important;
}

/* Warp background effect styles */
.warp-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}
.grid-lines {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 55px 55px;
  transform: rotateX(60deg);
  transform-origin: center;
  animation: moveGrid 90s linear infinite;
}
.warp-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  animation: pulseEffect 25s ease-in-out infinite alternate;
  pointer-events: none;
}
.warp-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, 
                          rgba(0, 0, 0, 0) 30%, 
                          rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}
@keyframes moveGrid {
  0% {
    transform: rotateX(60deg) translateY(0);
  }
  100% {
    transform: rotateX(60deg) translateY(55px);
  }
}
@keyframes pulseEffect {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
}

/* Position logo and menu elements */
.main-header__logo {
  flex: 0 0 auto;
}

.main-header__nav-trigger {
  flex: 0 0 auto;
  z-index: 1500 !important;
}

/* Logo styling */
.logo-link img {
  max-height: 40px;
  width: auto;
}

/* Header fade-in animation */
@keyframes headerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-header, .main-header__layout {
  opacity: 0;
  animation: headerFadeIn 0.7s cubic-bezier(.4,0,.2,1) 0.1s forwards;
}

@media (min-width: 600px) {
  .main-header {
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1200px) {
  .main-header {
    padding-left: 72px;
    padding-right: 72px;
  }
}

/* Hide mobile-only menu items on desktop */
@media (min-width: 768px) {
  .menu-item--mobile-only {
    display: none !important;
  }
}

/* Show mobile-only menu items in mobile menu */
@media (max-width: 767px) {
  .menu-item--mobile-only {
    display: block;
  }
}


 

