/* styles.css - Estilos compartilhados entre todas as páginas */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  color: #333;
  overflow-x: hidden;
  position: relative;
}

/* Efeito de partículas no fundo */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(56, 24, 108, 0.1);
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* ------------------- Navbar ------------------- */
header {
  background: #38186c;
  color: #fff;
  height: 80px;
  padding: 0 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.8s ease, opacity 0.8s ease;
  transform: translateY(-100px);
  opacity: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.show {
  transform: translateY(0);
  opacity: 1;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Logos */
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo-left {
  justify-content: flex-start;
}

.logo-right {
  justify-content: flex-end;
}

.logo img {
  height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.8s ease;
  opacity: 0;
  transform: translateY(-20px);
}

.logo.show img {
  opacity: 1;
  transform: translateY(0);
}

.logo img:hover {
  transform: scale(1.05);
}

.logo-right img {
  height: 75px !important;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: transform 0.8s ease, opacity 0.8s ease;
  margin: 0 auto;
}

.nav-links.show {
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1.05em;
  padding: 6px 10px;
  transition: color 0.3s ease;
}

.nav-links a::before,
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a::before { top: 0; }
.nav-links a::after { bottom: 0; }

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.ativo {
  color: #fff;
}

.nav-links a.ativo::before,
.nav-links a.ativo::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.dropdown-toggle .fa-chevron-down {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: #38186c;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-item:hover::before {
  left: 100%;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding-left: 25px;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.dropdown-item:hover i {
  transform: scale(1.2);
}

.dropdown-toggle.active {
  color: #fff !important;
}

.dropdown-toggle.active::before,
.dropdown-toggle.active::after {
  width: 100% !important;
}

.dropdown-item.ativo-drop {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-item.ativo-drop i {
  color: #fff;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  z-index: 1001;
}

/* ------------------- Footer ------------------- */
footer {
  background: linear-gradient(135deg, #38186c, #2a1252);
  color: #fff;
  padding: 60px 5% 30px;
  margin-top: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

footer.show {
  opacity: 1;
  transform: translateY(0);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.footer-section p {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-section i {
  margin-right: 10px;
  color: #ffd700;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #981f1b;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #e0e0e0;
}

/* Responsividade */
@media(max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1003;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 240px;
    background: #38186c;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    display: none;
  }

  .dropdown-menu.show {
    display: flex;
    flex-direction: column;
  }

  .dropdown-item {
    padding: 10px 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}