/* Variáveis de Cores e Padrões */
:root {
  --bg-main: #283536;
  --bg-header-footer: #344546; /* Um pouco mais claro que o fundo */
  --navy: #003e65;
  --gold: #daae00;
  --white: #f9f9f9;
  --font-main: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Fixo */
.main-header {
  background-color: var(--bg-header-footer);
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo a {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: var(--gold);
  border: none;
  color: var(--bg-main);
  font-size: 1.5rem;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 4px;
}

/* Telas Cheias e Blocos */
main {
  margin-top: 80px; /* Compensar o header fixo */
}

/* Uso do DVH para precisão em mobiles como Edge/Safari */
.hero-fullscreen {
  min-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
  padding: 0 10%;
  background: radial-gradient(
    circle at center,
    var(--bg-header-footer) 0%,
    var(--bg-main) 100%
  );
}

.hero-content {
  max-width: 600px;
  text-align: left;
}

.hero-content h3 {
  color: var(--gold);
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--white);
}

.content-block {
  padding: 100px 5%;
  min-height: 50vh;
}

.bg-darker {
  background-color: rgba(0, 0, 0, 0.15);
}

/* Grid de Mestres (Página Mestres) */
.mestres-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.mestre-card {
  text-align: center;
}

.mestre-card a {
  text-decoration: none;
}

.perfil-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.perfil-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(218, 174, 0, 0.4);
}

.mestre-card h4 {
  margin-top: 15px;
  color: var(--white);
  font-weight: 300;
}

/* Vídeo Responsivo */
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid var(--navy);
  padding: 5px;
  border-radius: 8px;
}

/* Footer */
.main-footer {
  background-color: var(--bg-header-footer);
  text-align: center;
  padding: 20px;
  color: var(--white);
  font-size: 0.8rem;
  border-top: 1px solid var(--navy);
}

/* Responsividade (Sidebar Flutuante) */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Escondido por padrão na esquerda */
    width: 250px;
    height: 100dvh;
    background-color: var(--bg-main);
    flex-direction: column;
    padding-top: 80px;
    transition: left 0.3s ease;
    border-right: 2px solid var(--gold);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
  }

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

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-menu ul li {
    width: 100%;
    text-align: left;
  }

  .nav-menu ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-header-footer);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* --- CSS EXCLUSIVO DO PERFIL DOS MESTRES --- */
.mestre-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.mestre-hero .hero-content {
  flex: 1;
  min-width: 300px;
}

.mestre-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.mestre-hero-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--bg-header-footer);
}

/* Seção de Skills */
.skills-section {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  align-items: center;
}

.skills-title {
  flex: 1;
  min-width: 300px;
}

.skills-title h3 {
  color: var(--gold);
  font-weight: 300;
}

.skills-bars {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--white);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-header-footer);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--gold);
  border-radius: 10px;
}
