/* header-float.css */
.header {
  position: fixed;
  top: 20px; /* Espaçamento do topo para efeito flutuante */
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(18, 18, 18, 0.6); /* Fundo translúcido */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 24px;
  position: relative;
}

.header-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-light),
    transparent
  );
  transition: width 1.5s ease-in-out;
  opacity: 0;
}

.header.active .header-container::after {
  width: 90%;
  opacity: 1;
}

/* Efeito sutil de brilho na borda superior */
.header-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  justify-self: start;
  grid-column: 1;
  perspective: 800px;
  margin-top: 10px;
  margin-left: 5rem;
}

.logo-wrapper {
  position: relative;
  width: 130px;
  height: 50px;
  margin-right: var(--spacing-sm);
  perspective: 800px;
  transform-style: preserve-3d;
}

@keyframes logoPulsate {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}

/* Navegação Principal */
.main-nav {
  position: relative;
  z-index: 2;
  grid-column: 2;
  justify-self: center;
}

.nav-menu {
  display: flex;
  gap: 36px;
}

.nav-link {
  color: var(--text-light);
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: #fff;
}

/* Efeito de sublinhado animado */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  opacity: 1;
}

/* Efeito de destaque no item ativo */
.nav-link.active {
  position: relative;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Ações do Header */
.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Estado ao rolar a página */
.header.scrolled {
  top: 10px;
}

.header.scrolled .header-container {
  background: rgba(18, 18, 18, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(0);
}

/* Estado recolhido - scroll para baixo */
.header.hidden {
  transform: translateY(-100px);
}

/* Menu Mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: var(--font-size-xl);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: rgba(24, 24, 30, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 100px 40px 60px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(50px);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(84, 82, 254, 0.15) 0%,
    rgba(18, 18, 24, 0) 60%
  );
  z-index: -1;
  pointer-events: none;
}
.mobile-menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}


.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}
.mobile-nav-link {
  color: var(--text-light);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  overflow: hidden;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
  color: #fff;
}

.mobile-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 4px;
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-nav-link-icon {
  margin-right: 15px;
  font-size: 18px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover .mobile-nav-link-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Divisor para separar os links do CTA */
.mobile-nav-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 20px 0 30px;
}

.mobile-nav-link:hover::before {
  opacity: 1;
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsividade */
@media (max-width: 991px) {
  .header {
    top: 15px;
    padding: 0 15px;
  }

  .header-container {
    border-radius: 15px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header {
    top: 10px;
    padding: 0 10px;
  }

  .header-container {
    border-radius: 12px;
  }

  .header-content {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .header {
    top: 8px;
    padding: 0 8px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .header-container {
    border-radius: 10px;
  }

  .header-content {
    padding: 10px 12px;
  }
}

/* /css/header-cta.css */

/* Estilos para o botão de orçamento no header */
.header-cta {
  display: flex;
  align-items: center;
  margin-right: 5rem;
}

.btn-header-orcamento {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(84, 82, 254, 0.2);
  transform: translateY(0);
}

.btn-header-orcamento .btn-text {
  position: relative;
  z-index: 2;
}

.btn-header-orcamento .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Efeitos de hover */
.btn-header-orcamento:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(84, 82, 254, 0.3);
}

.btn-header-orcamento:hover .btn-icon {
  transform: translateX(3px);
}

/* Efeito de brilho no hover */
.btn-header-orcamento::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  z-index: 1;
  transition: all 0.6s ease;
  opacity: 0;
}

.btn-header-orcamento:hover::before {
  animation: btn-shine 1.2s ease;
}

/* Estilos para o botão no menu mobile */
.mobile-nav-cta {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.mobile-btn-orcamento {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(84, 82, 254, 0.25);
}

.mobile-btn-orcamento:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(84, 82, 254, 0.35);
}

.mobile-btn-orcamento:active {
  transform: translateY(1px);
}

.mobile-btn-orcamento::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.mobile-btn-orcamento:hover::before {
  animation: btn-shine 1.2s ease;
}


/* Animação de brilho */
@keyframes btn-shine {
  0% {
    left: -100%;
    opacity: 0.7;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}



/* Ajustes para responsividade */
@media (max-width: 991px) {
  .header-cta {
    margin-left: 15px;
  }

  .btn-header-orcamento {
    padding: 8px 15px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .header-cta {
    display: none; /* Oculta no mobile, já que adicionamos ao menu mobile */
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-nav-link,
  .mobile-btn-orcamento,
  .mobile-menu-close {
    transition: opacity 0.1s ease-in-out;
    animation: none !important;
  }
}