/* Dotted pattern overlay restored */
body::before {
  content: "" !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.171) 2px,
    transparent 0
  ) !important;
  background-size: 30px 30px;
  background-position: -5px -5px;
  pointer-events: none;
  z-index: 1;
}
/* Remove browser smooth behavior (Lenis handles it) */
* {
  scroll-behavior: auto !important;
}

html {
  overflow-y: scroll;
  scroll-padding-top: 80px;
}

body {
  background: #1c2027 !important;
  position: relative;
  overflow-x: hidden;
}
.beta-badge {
  background-color: white;
  color: #007bff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  margin-left: 5px;
  border: 1px solid #007bff;
}

/* Dotted pattern overlay removed for solid footer background */

/* Ensure content is above the pattern */
.services-carousel-container {
  position: relative;
  z-index: 10;
}

/* Book Meeting Button Hover Effect */
.btn {
  transition: background-color 0.4s ease;
  min-width: 150px !important;
}

.btn:hover {
  background-color: #222429 !important;
}

.btn:hover .btn-text-one {
  top: -50%;
}

.btn:hover .btn-text-two {
  top: 50%;
}

/* Disable all hover effects on navbar links */
nav .menu a:hover,
nav .menu a:focus,
nav .menu a:active {
  background-color: transparent !important;
  color: white !important;
  text-decoration: none !important;
  transform: none !important;
  transition: none !important;
}

nav .menu li:hover {
  background-color: transparent !important;
}

/* Ensure active underline has sharp corners and is thick */
nav .menu a[class*="border-b"] {
  border-radius: 0 !important;
  border-bottom-width: 4px !important;
}

/* Make navbar links only as wide as their text content */
nav .navbar-center .menu li {
  width: auto !important;
  padding: 0 !important;
  margin: 0 12px !important;
  display: inline-block !important;
}

nav .navbar-center .menu a {
  display: inline-block !important;
  padding: 0 0 4px 0 !important;
  margin: 0 !important;
  width: auto !important;
  position: relative;
}

/* Use pseudo-element for underline to match text width exactly */
nav .navbar-center .menu a[class*="border-b"] {
  border-bottom: none !important;
}

nav .navbar-center .menu a[class*="border-b"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgb(29 78 216); /* blue-700 */
  border-radius: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineSlide 0.7s cubic-bezier(0.55, 0, 0.67, 1) forwards;
}

@keyframes underlineSlide {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.btn:hover .btn-text-one {
  top: -100%;
}

.btn:hover .btn-text-two {
  top: 50%;
}

.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent; /* transparent at start */
  backdrop-filter: none; /* no blur at start */
  -webkit-backdrop-filter: none;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: backdrop-filter 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

/* Only appears when scrolled */
.glass-nav.scrolled {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(36, 39, 48, 0.45); /* dark glass */
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Spacer to avoid layout jumping */
.nav-spacer {
  height: 60px; /* same height as navbar */
}
