:root {
  --primary: #0077ff;
  --bg: #1e1e1e; /* tom base escuro */
  --bg-light: #2a2a2a; /* tom mais claro para conteúdo */
  --text: #f0f0f0;
  --sidebar-bg: #151515;
  --sidebar-text: #fff;
  --accent: #00c6ff;
  --card-bg: #2f2f2f;
}

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

.container {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 300px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 2px solid rgba(211, 210, 210, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.sidebar h1 {
  font-size: 1.8em;
  margin-bottom: 5px;
}

.sidebar p {
  font-size: 0.9em;
  margin-bottom: 20px;
  text-align: center;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar nav ul li {
  margin: 10px 0;
}

.sidebar nav ul a {
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar nav ul a:hover {
  color: var(--accent);
}

.sidebar footer {
  margin-top: auto;
  font-size: 0.8em;
  text-align: center;
}

/* ===== CONTEÚDO ===== */
.content {
  flex: 1;
  padding: 40px;
  background-color: var(--bg-light);
}

section {
  margin-top: 60px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 50vh;
  background-size: 110%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  transition: background-image 1s ease-in-out;
  border: 3px solid #ffffff;
  border-radius: 20px;
  overflow: hidden;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-overlay h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.hero .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
}

/* ===== HERO ANIMAÇÕES ===== */
@keyframes diagonal-down {
  0% { background-position: center top; background-size: 110%; }
  100% { background-position: center 80%; background-size: 120%; }
}
@keyframes diagonal-up {
  0% { background-position: center bottom; background-size: 110%; }
  100% { background-position: center 20%; background-size: 120%; }
}
@keyframes diagonal-left {
  0% { background-position: right center; background-size: 110%; }
  100% { background-position: left center; background-size: 120%; }
}
@keyframes diagonal-right {
  0% { background-position: left center; background-size: 110%; }
  100% { background-position: right center; background-size: 120%; }
}

.hero.diagonal-left { animation: diagonal-left 20s ease forwards; }
.hero.diagonal-right { animation: diagonal-right 20s ease forwards; }
.hero.diagonal-down { animation: diagonal-down 20s ease forwards; }
.hero.diagonal-up { animation: diagonal-up 20s ease forwards; }

/* ===== CARDS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
}

/* NOVO ESTILO DE CARD COM IMAGEM DE FUNDO */
.card {
  display: block;
  width: 240px;
  height: 160px;
  border-radius: 16px;
  background-size: cover;        /* preenche toda a área do card */
  background-position: center;   /* centraliza a imagem */
  background-repeat: no-repeat;  /* evita repetição */
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;              /* garante que o conteúdo respeite os cantos arredondados */
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
  border-color: var(--accent);
}


.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.card h3 {
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.card p {
  margin-bottom: 1rem;
  color: #aaa;
}

/* ===== SOBRE ===== */
.sobre-section {
  padding: 60px 20px;
}

.sobre-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.sobre-foto {
  flex: 0 0 250px;
}

.sobre-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sobre-img:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.sobre-texto {
  flex: 1;
  max-width: 700px;
  color: var(--text);
}

.sobre-texto h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.sobre-texto p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== LINHA DIVISÓRIA ===== */
hr {
  width: 60%;
  margin: 3rem auto;
  border: none;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
