/* ===================================================================
 * HIGH TECHNOLOGY - NAVBAR RESPONSIVA
 * ===================================================================*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(25, 25, 25, 0.88) 30%,
    rgba(35, 35, 35, 0.85) 70%,
    rgba(20, 20, 20, 0.9) 100%
  );
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 24px 24px;
  border-bottom: 1px solid rgba(99, 255, 82, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(20, 20, 20, 0.92) 30%,
    rgba(30, 30, 30, 0.88) 70%,
    rgba(15, 15, 15, 0.93) 100%
  );
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.navbar:hover {
  border-bottom-color: rgba(99, 255, 82, 0.25);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 255, 82, 0.2) 30%,
    rgba(85, 198, 255, 0.25) 50%,
    rgba(99, 255, 82, 0.2) 70%,
    transparent 100%
  );
  opacity: 0.7;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px 20px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================================================================
 * LOGO
 * ===================================================================*/

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(99, 255, 82, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  z-index: 1001;
}

.logo:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 255, 82, 0.15);
  box-shadow: 0 2px 12px rgba(99, 255, 82, 0.08);
  transform: translateY(-1px);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(99, 255, 82, 0.4);
  box-shadow: 0 0 15px rgba(99, 255, 82, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  filter: brightness(1.2) contrast(1.1);
  object-fit: cover;
}

.logo:hover .logo-img {
  border-color: rgba(99, 255, 82, 0.6);
  box-shadow: 0 0 20px rgba(99, 255, 82, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  filter: brightness(1.3) contrast(1.2);
}

.logo-text {
  font-family: var(--ht-font-secondary);
  font-size: 18px;
  font-weight: 600;
  color: var(--ht-white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-text {
  color: var(--ht-green-neon);
  text-shadow: 0 0 8px rgba(99, 255, 82, 0.3);
}

/* ===================================================================
 * BOTÃO MOBILE
 * ===================================================================*/

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background: var(--ht-green-neon);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  box-shadow: 0 0 4px rgba(99, 255, 82, 0.3);
}

.mobile-toggle:hover span {
  background: rgba(99, 255, 82, 0.8);
  box-shadow: 0 0 8px rgba(99, 255, 82, 0.5);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================================================
 * MENU DESKTOP
 * ===================================================================*/

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  font-family: var(--ht-font-secondary);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--ht-dark);
  background: linear-gradient(
    135deg,
    var(--ht-green-neon) 0%,
    rgba(99, 255, 82, 0.9) 100%
  );
  box-shadow: 0 2px 8px rgba(99, 255, 82, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(99, 255, 82, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
}

.nav-link:hover::before {
  width: 120%;
  height: 120%;
}

.nav-link.active {
  color: var(--ht-green-neon);
  background: rgba(99, 255, 82, 0.1);
  border: 1px solid rgba(99, 255, 82, 0.2);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--ht-green-neon);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(99, 255, 82, 0.5);
}

/* ===================================================================
 * OVERLAY PARA FECHAR MENU
 * ===================================================================*/

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================================================
 * RESPONSIVO - TABLET (768px e abaixo)
 * ===================================================================*/

@media (max-width: 768px) {
  .navbar {
    border-radius: 0 0 20px 20px;
  }

  .nav-container {
    padding: 12px 24px 16px;
  }

  .logo {
    padding: 6px 10px;
    border-radius: 10px;
    gap: 8px;
  }

  .logo-img {
    width: 35px;
    height: 35px;
  }

  .logo-text {
    font-size: 16px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(
      135deg,
      rgba(15, 15, 15, 0.98) 0%,
      rgba(25, 25, 25, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    border-radius: 20px 0 0 0;
    border: 1px solid rgba(99, 255, 82, 0.1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 12px;
    margin-bottom: 4px;
  }
}

/* ===================================================================
 * RESPONSIVO - MOBILE PEQUENO (480px e abaixo)
 * ===================================================================*/

@media (max-width: 480px) {
  .navbar {
    border-radius: 0 0 16px 16px;
  }

  .nav-container {
    padding: 10px 16px 12px;
  }

  .logo {
    padding: 4px 8px;
    gap: 6px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 14px;
  }

  .mobile-toggle {
    width: 28px;
    height: 28px;
  }

  .mobile-toggle span {
    height: 2px;
  }

  .nav-menu {
    width: 100vw;
    right: -100vw;
    top: 60px;
    height: calc(100vh - 60px);
    border-radius: 16px 0 0 0;
    padding: 16px;
  }

  .nav-link {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ===================================================================
 * RESPONSIVO - MOBILE MUITO PEQUENO (360px e abaixo)
 * ===================================================================*/

@media (max-width: 360px) {
  .nav-container {
    padding: 8px 12px 10px;
  }

  .logo {
    padding: 3px 6px;
    gap: 4px;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 12px;
    letter-spacing: 0.4px;
  }

  .mobile-toggle {
    width: 26px;
    height: 26px;
  }

  .nav-menu {
    top: 50px;
    height: calc(100vh - 50px);
    padding: 12px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ===================================================================
 * ANIMAÇÕES
 * ===================================================================*/

@keyframes navbarSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  animation: navbarSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
