.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Add padding to the main content to prevent it from hiding under the fixed header */
main.home {
  padding-top: 80px;
}

/* Ensure the header container has proper styling */
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo container styles */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-color);
  letter-spacing: -0.5px;
}

/* Navigation styles */
.main-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy-color);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Menu Hambúrguer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--navy-color);
  margin: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 3px;
}

.menu-toggle.active {
  background-color: rgba(255, 107, 129, 0.1);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background-color: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background-color: var(--primary-color);
}

/* Overlay para menu mobile */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 61, 89, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .header {
    background-color: rgba(255, 255, 255, 0.98);
  }

  .header .container {
    padding: 0.875rem 1.25rem;
  }

  .logo {
    height: 38px;
  }

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

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
  }

  .main-nav.active {
    height: 100vh;
    padding-top: 100px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
  }

  .main-nav.active ul {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(30, 61, 89, 0.1);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInNav 0.4s ease forwards;
  }

  .main-nav.active ul li:nth-child(1) { animation-delay: 0.1s; }
  .main-nav.active ul li:nth-child(2) { animation-delay: 0.2s; }
  .main-nav.active ul li:nth-child(3) { animation-delay: 0.3s; }
  .main-nav.active ul li:nth-child(4) { animation-delay: 0.4s; }

  @keyframes slideInNav {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .main-nav a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--navy-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  .main-nav a:hover,
  .main-nav a:active {
    background-color: rgba(255, 107, 129, 0.08);
    color: var(--primary-color);
    padding-left: 2rem;
  }

  .main-nav a:hover::before,
  .main-nav a:active::before {
    transform: scaleY(1);
  }

  main.home {
    padding-top: 70px;
  }
}

@media (max-width: 480px) {
  .header .container {
    padding: 0.75rem 1rem;
  }

  .logo {
    height: 35px;
  }

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

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .menu-toggle span {
    width: 24px;
  }

  .main-nav.active {
    padding-top: 90px;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
  }

  main.home {
    padding-top: 65px;
  }
}

@media (max-width: 360px) {
  .logo-text {
    font-size: 1rem;
  }

  .logo {
    height: 32px;
  }

  .main-nav a {
    font-size: 0.95rem;
    padding: 1rem 1.1rem;
  }
} 