/* Container */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 3vw;
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Navigation - Refined glass effect */
.glass-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem 0.5rem 1.875rem;

  /* Fixed positioning */
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 6vw);
  max-width: calc(1600px - 6vw);
  z-index: 1000;

  /* Refined premium glass effect */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.glass-navbar > * {
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a:not(.btn) {
  position: relative;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  transform: scaleX(1);
}

.nav-links a:not(.btn):hover {
  opacity: 0.8;
}

/* Buttons */
.btn {
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-filled {
  background-color: var(--btn-dark);
  color: white;
  border: 1px solid var(--btn-dark);
}

.btn-filled:hover {
  background-color: var(--btn-dark-hover);
}

.btn-outlined {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outlined:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-glass {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: var(--btn-dark-hover);
  border-color: var(--btn-dark-hover);
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9375rem;
  padding-right: 0.9375rem;
}

/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2001;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  transform-origin: center;
}

/* Open State for Hamburger */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(3, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateY(-100%);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-close-btn {
  position: absolute;
  top: 2.5rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2005;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 0;
}

.mobile-close-btn:hover {
  opacity: 1;
}

.mobile-close-btn svg {
  width: 28px;
  height: 28px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav-links a:not(.btn) {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-nav-links .btn-glass {
  margin-top: 1rem;
}

.mobile-menu-overlay.active .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(5) { transition-delay: 0.5s; }

/* Mobile Media Query for Header */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 24px;
    min-height: 20px;
    pointer-events: auto;
  }
}
