/* Reset e configurações gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d32f2f;
  --primary-dark: #b71c1c;
  --primary-light: #ff6659;
  --white-color: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --shadow-light: rgba(211, 47, 47, 0.1);
  --shadow-medium: rgba(211, 47, 47, 0.2);
  --shadow-heavy: rgba(211, 47, 47, 0.3);
  --glass-bg: rgba(204, 0, 0, 0.44);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--white-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background com imagem desfocada */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcT7LJ-GSsri53L0zQDJIfaqsVZEIjQXm4TDImC3Tc7g0WgxmGs3');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px) brightness(0.4);
  z-index: -2;
}

/* Overlay escuro para melhor contraste */
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Menu de Vidro Vermelho - TRANSPARENTE */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px var(--shadow-heavy);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.nav-logo {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover {
  background-color: rgba(255, 62, 62, 0.35);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 1.1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Scroll suave para todo o site */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Cabeçalho da Página */
.page-header {
  text-align: center;
  padding: 40px 0 30px;
  margin-bottom: 20px;
}

.page-title {
  font-family: 'Roboto Slab', serif;
  font-size: 3rem;
  color: var(--white-color);
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 20px;
}

.decorative-line {
  height: 4px;
  width: 100px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary-color),
    transparent
  );
  margin: 0 auto;
}

/* Seções Gerais */
section {
  margin-bottom: 60px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  background-color: rgba(211, 47, 47, 0.8);
  color: var(--white-color);
  padding: 20px;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 600;
}

/* Biografia */
.bio-content {
  display: flex;
  gap: 40px;
  padding: 30px;
  border-radius: 0 0 12px 12px;
}

.bio-image {
  flex: 0 0 200px;
}

.image-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-dark)
  );
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-color);
  font-size: 5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.bio-text {
  flex: 1;
}

.bio-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Detalhes Pessoais */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 30px;
  border-radius: 0 0 12px 12px;
}

.detail-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
  backdrop-filter: blur(5px);
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.2);
}

.detail-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 102, 89, 0.2);
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin-bottom: 15px;
  border: 2px solid rgba(255, 102, 89, 0.3);
}

.detail-content h3 {
  color: var(--white-color);
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.detail-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white-color);
  margin-bottom: 8px;
}

.detail-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Neurodiversidade */
.neuro-content {
  padding: 30px;
  border-radius: 0 0 12px 12px;
}

.neuro-text {
  width: 100%;
}

.condition-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary-dark);
  backdrop-filter: blur(5px);
}

.condition-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white-color);
  margin-bottom: 10px;
}

.condition-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.neuro-message {
  font-style: italic;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
  border-left: 4px solid var(--primary-light);
  color: rgba(255, 255, 255, 0.9);
}

/* Mensagem Final */
.final-message {
  background: linear-gradient(
    135deg,
    rgba(183, 28, 28, 0.8),
    rgba(211, 47, 47, 0.8)
  );
  color: var(--white-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-content h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.message-content p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 25px;
  line-height: 1.8;
  font-family: 'Roboto Slab', serif;
  color: rgba(255, 255, 255, 0.95);
}

.signature {
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

/* Rodapé */
.page-footer {
  background-color: rgba(183, 28, 28, 0.8);
  color: var(--white-color);
  padding: 40px 0 20px;
  margin-top: 60px;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-family: 'Roboto Slab', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  transition: var(--transition);
}

.footer-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  width: 100%;
  color: rgba(255, 255, 255, 0.9);
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* Elementos de UI para scroll */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-light),
    var(--primary-dark)
  );
  z-index: 1001;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 90px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Botão de contraste */
.contrast-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsividade */
@media (max-width: 992px) {
  .bio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    padding: 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  html {
    scroll-padding-top: 60px;
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 10px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .bio-content,
  .neuro-content,
  .details-grid {
    padding: 20px;
  }

  .image-placeholder {
    width: 150px;
    height: 150px;
    font-size: 4rem;
  }

  .final-message {
    padding: 30px 20px;
  }

  .message-content h2 {
    font-size: 1.8rem;
  }

  .message-content p {
    font-size: 1.1rem;
  }
}
