/* Additional custom styles for enhanced tile background */
.tile-background {
  background-color: #010915;
  background-image: url("/grid-pattern.svg");
  background-size: 150px 150px;
  position: relative;
}

/* This is the fade effect for the first section only */
.tile-background.with-fade::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Modern Navigation Styles */
.modern-nav {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  transform: translateZ(0); /* Force GPU acceleration */
  will-change: transform; /* Hint for browser optimization */
  will-change: transform; /* Hint for browser optimization */
}

.modern-nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Immersive glowing nav links */
.nav-link-glow {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 1;
}

.nav-link-glow::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0097b2;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-link-glow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 151, 178, 0.1) 0%, rgba(0, 151, 178, 0) 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 0.375rem;
  filter: blur(8px);
}

.nav-link-glow:hover::before {
  width: 80%;
}

.nav-link-glow:hover::after {
  transform: translate(-50%, -50%) scale(1.5);
  opacity: 0.25;
  animation: pulse-glow 2s infinite;
}

.nav-link-glow:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  color: white;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.175;
  }
}

.logo-container {
  position: relative;
  overflow: hidden;
}

.logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 151, 178, 0.1) 0%, rgba(0, 151, 178, 0) 70%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.logo-container:hover .logo-glow {
  opacity: 0.25;
}

/* Update the mobile menu button styles to ensure proper centering of the X */
.mobile-menu-button {
  position: relative;
  z-index: 60;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex;
  }
}

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

.mobile-menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Remove the transform rotation that might be causing issues */
.mobile-menu-button.open {
  background: rgba(255, 255, 255, 0.15);
}

/* Completely new hamburger implementation */
.hamburger-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.hamburger-icon span {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-icon span:nth-child(1) {
  top: 4px;
}

.hamburger-icon span:nth-child(2) {
  top: 9px;
}

.hamburger-icon span:nth-child(3) {
  top: 14px;
}

/* X state */
.hamburger-icon.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* Mobile menu close button */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 60;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile menu styles */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 101; /* Higher than the navbar */
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

.mobile-menu-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-link {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease;
}

.mobile-menu-link:hover {
  color: #0097b2;
}

.mobile-menu-cta {
  margin-top: 24px;
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(90deg, #0097b2 0%, #007a8f 100%);
  color: white;
  font-weight: 500;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
  box-shadow: 0 0 10px rgba(0, 151, 178, 0.25);
}

/* Demo button glow effect - reduced to 25% */
.demo-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #0097b2 0%, #007a8f 100%);
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.demo-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.075) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-button:hover::before {
  transform: scale(1);
}

.demo-button:hover {
  box-shadow: 0 0 10px rgba(0, 151, 178, 0.25);
  transform: translateY(-2px);
}

/* Enhanced glow button effect - reduced to 25% */
.glow-button {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.glow-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0, 151, 178, 0.2) 0%, rgba(0, 151, 178, 0) 70%);
  filter: blur(20px);
  opacity: 0.2;
  z-index: -1;
  transform: translate(-50%, -50%);
  animation: button-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes button-glow-pulse {
  0%,
  100% {
    opacity: 0.175;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.225;
    transform: translate(-50%, -50%) scale(1.025);
  }
}

/* Logo styles */
.logo-container img {
  filter: invert(1);
  transition: transform 0.3s ease;
}

.logo-container:hover img {
  transform: scale(1.05);
}

/* Light leak effects - hero video/image at 50% intensity, other elements at 25% */
.light-leak-green {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(126, 217, 87, 0.125) 0%, rgba(126, 217, 87, 0) 70%);
  filter: blur(70px);
  opacity: 0.275;
  z-index: 1;
}

.light-leak-blue {
  position: absolute;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(0, 151, 178, 0.125) 0%, rgba(0, 151, 178, 0) 70%);
  filter: blur(80px);
  opacity: 0.275;
  z-index: 1;
}

.light-leak-purple {
  position: absolute;
  width: 495px;
  height: 495px;
  background: radial-gradient(circle, rgba(186, 127, 200, 0.1) 0%, rgba(186, 127, 200, 0) 70%);
  filter: blur(75px);
  opacity: 0.275;
  z-index: 1;
}

.glow {
  box-shadow: 0 0 15px rgba(0, 151, 178, 0.15);
}

.button-primary {
  background: linear-gradient(90deg, #0097b2 0%, #007a8f 100%);
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.button-primary:hover {
  box-shadow: 0 0 5px rgba(0, 151, 178, 0.125);
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Update the Notification Bar Styles */
.notification-bar {
  background: linear-gradient(90deg, rgba(0, 151, 178, 0.025) 0%, rgba(0, 151, 178, 0.05) 100%);
  position: fixed; /* Changed from relative to absolute */
  top: 80px; /* Position it right below the navbar */
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(0, 151, 178, 0.05);
  height: 44px; /* Fixed height to prevent layout shifts */
}

/* Notification bar container to properly position the dismiss button */
.notification-bar .container {
  position: relative;
  padding-right: 30px; /* Make room for the dismiss button */
}

/* Performance optimizations for animations */
.animate-pulse-slow,
.animate-pulse-medium,
.animate-float-slow,
.animate-float-medium,
.nav-link-glow::after {
  will-change: transform, opacity;
}

/* Reduce the performance impact of blur effects */
.blur-lg,
.blur-2xl,
.blur-2xl {
  will-change: filter;
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px); /* Reduced from -10px to -5px (50%) */
  }
}
