/* Variáveis de cor - TEMA ROXO PROFUNDO */
:root {
  --darkest-purple: #0a0415; /* Fundo mais escuro */
  --deep-purple: #180437; /* Elementos escuros */
  --dark-purple: #090414; /* Complementar escuro */
  --medium-purple: #13042b; /* Roxo médio */
  --vibrant-purple: #410294; /* Destaque vibrante */
  --text-color: #f0e6ff; /* Texto lavanda claro */
  --accent-color: #9d6bff; /* Roxo neon para detalhes */
  --card-bg: rgba(24, 4, 55, 0.7);
  --border-color: #2a1052;
  --neon-glow: 0 0 10px rgba(65, 2, 148, 0.5), 0 0 20px rgba(65, 2, 148, 0.3);
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--darkest-purple);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Efeito de fundo cósmico */
.vr-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(65, 2, 148, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(157, 107, 255, 0.1) 0%,
      transparent 40%
    ),
    linear-gradient(var(--darkest-purple), var(--deep-purple));
  z-index: -1;
}

/* Header cósmico */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 4, 21, 0.9);
  box-shadow: 0 2px 15px rgba(65, 2, 148, 0.3);
  z-index: 100;
  padding: 0.5rem 0; /* diminuído */
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  height: 70px; /* altura fixa menor */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px; /* igual ao header */
}

.logo {
  height: 60px; /* diminuído */
  width: auto;
  filter: drop-shadow(0 0 8px var(--accent-color));
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center; /* garante alinhamento vertical */
  height: 70px;
}

.main-navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 0; /* padding vertical removido para centralizar */
  height: 70px;
  display: flex;
  align-items: center;
}

.main-navigation a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 8px rgba(157, 107, 255, 0.7);
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 20px; /* afasta a linha da borda inferior do header */
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  transition: width 0.4s ease;
}

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

/* Conteúdo principal - Seções flutuantes */
.about-content {
  flex: 1 0 auto;
  max-width: 1200px;
  width: 100%;
  margin: 8rem auto 0;
  padding: 2rem;
}

.mission-section,
.history-section {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 7rem;
  padding: 3.5rem;
  background-color: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(6px);
  box-shadow: var(--neon-glow);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.mission-section::before,
.history-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(157, 107, 255, 0.05) 0%,
    transparent 70%
  );
  z-index: -1;
}

.mission-section:hover,
.history-section:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(65, 2, 148, 0.4);
}

.history-section {
  flex-direction: row-reverse;
}

.image-container {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
  border: 1px solid var(--border-color);
}

.image-container:hover {
  transform: scale(1.02) rotate(1deg);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}

.image-container:hover img {
  transform: scale(1.1);
}

.mission-section > div:last-child,
.history-section > div:last-child {
  flex: 1;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1.8rem;
  color: var(--text-color);
  line-height: 1.2;
  position: relative;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(157, 107, 255, 0.3);
}

h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  border-radius: 3px;
}

p {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  color: rgba(240, 230, 255, 0.85);
  line-height: 1.8;
}

/* Rodapé cósmico */
.site-footer {
  flex-shrink: 0;
  background: linear-gradient(
    to top,
    var(--deep-purple),
    var(--darkest-purple)
  );
  padding: 3rem 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.95rem;
  color: rgba(240, 230, 255, 0.6);
}

.footer-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-navigation a:hover {
  color: var(--accent-color);
}

.footer-navigation a::after {
  content: "•";
  position: absolute;
  right: -15px;
  color: var(--accent-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-navigation a:hover::after {
  opacity: 1;
}

/* Estilos do Carrossel de Fotos - Página about_us */
.carousel-section {
  margin: 3rem auto 0 auto;
  max-width: 700px;
  text-align: center;
}

.carousel-section h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  letter-spacing: 2px;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--neon-glow);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  width: 100%;
}

.carousel-img {
  min-width: 100%;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: absolute;
  left: 0;
  top: 0;
}

.carousel-img.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}

.carousel-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  cursor: pointer;
  position: relative;
  z-index: 3;
  margin: 0 10px;
  box-shadow: 0 2px 8px rgba(65, 2, 148, 0.2);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-btn:hover {
  background: var(--vibrant-purple);
}

/* Responsividade */
@media (max-width: 1024px) {
  .mission-section,
  .history-section {
    gap: 3rem;
    padding: 2.5rem;
  }

  h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .mission-section,
  .history-section {
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem;
    margin-bottom: 5rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1.5rem;
  }

  .main-navigation ul {
    gap: 1.5rem;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: center;
  }

  h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-content {
    padding: 1.5rem;
    margin-top: 7rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-navigation ul {
    gap: 1.5rem;
  }

  .footer-navigation a::after {
    display: none;
  }

  .carousel-section {
    max-width: 98vw;
  }

  .carousel-img {
    height: 180px;
  }

  .site-header {
    height: auto;
    min-height: 70px;
    position: relative;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0.5rem 1rem;
  }

  .logo {
    position: relative;
    height: 48px;
    margin: 0;
  }

  .main-navigation {
    position: relative;
  }

  .main-navigation ul {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    height: 100%;
  }

  .main-navigation a {
    position: relative;
    height: auto;
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}
