/* Navbar */

.header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.header .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 42px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light-text-color);
  text-decoration: none;
  position: relative;
  font-size: 17px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links li a.active,
.nav-links a:hover {
  color: var(--secondary-color);
}

.book-table-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 52px;
  background: var(--secondary-color);
  color: var(--primary-color, #1f2937);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  margin-right: 20px;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(253, 224, 86, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.book-table-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.6s ease;
}

.book-table-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: inherit;
  border-radius: 24px;
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.book-table-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(253, 224, 86, 0.5);
}

.book-table-btn:hover::before {
  left: 100%;
}

.book-table-btn:hover::after {
  opacity: 0.6;
}

.book-table-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 20px rgba(253, 224, 86, 0.4);
  transition: all 0.1s ease;
}

.btn-text {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.btn-text span {
  position: absolute;
  width: 100%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backface-visibility: hidden;
}

.top-text {
  top: 0;
  transform: translateY(0%) rotateX(0deg);
  z-index: 2;
}

.bottom-text {
  top: 0;
  transform: translateY(100%) rotateX(90deg);
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: inherit;
}

.book-table-btn:hover .top-text {
  transform: translateY(-100%) rotateX(-90deg);
  opacity: 0;
}

.book-table-btn:hover .bottom-text {
  transform: translateY(0%) rotateX(0deg);
  opacity: 1;
}

.book-table-btn {
  --ripple-color: rgba(255, 255, 255, 0.6);
}

.book-table-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--ripple-color);
  transform: translate(-80%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.book-table-btn:hover::before {
  width: 300px;
  height: 300px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: var(--secondary-color);
  border-radius: 5px;
}

.nav-btn-bar {
  display: flex;
  align-items: center;
}

.nav-btn-bar button {
  background: transparent;
  border: none;
}

@media (max-width: 1124px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .book-table-btn {
    width: 150px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 950px) {
  .menu-toggle {
    display: flex;
    margin-left: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    gap: 15px;
    text-align: center;
    border-radius: 0 0 15px 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
  }

  .book-table-btn {
    margin: 10px auto;
    width: 160px;
    height: 42px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 32px;
  }

  .navbar {
    height: 60px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .book-table-btn {
    width: 140px;
    height: 40px;
    font-size: 12px;
  }
}
