/* ===================== */
/* 🎨 VARIÁVEIS DE TEMA */
/* ===================== */
:root {
  --bg: #ffffff;
  --text: #333333;
  --accent: #ff6f00;
  --light: #ffe0b2;
  --shadow: rgba(0, 0, 0, 0.1);
}

body.dark {
  --bg: #1e1e1e;
  --text: #f0f0f0;
  --accent: #ff9800;
  --light: #333333;
  --shadow: rgba(255, 255, 255, 0.1);
}

/* ===================== */
/* 🧱 ESTRUTURA GERAL */
/* ===================== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  transition: background 0.3s ease, color 0.3s ease;
}

main {
  flex: 1;
  padding: 2rem;
  animation: slideIn 0.6s ease-out;
}

.content-section {
  display: block;
}

.hidden {
  display: none;
}

/* ===================== */
/* 🧭 SIDEBAR */
/* ===================== */
.sidebar {
  position: fixed;
  background-color: var(--accent);
  width: 80px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

.sidebar button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  margin: 1rem 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sidebar button:hover {
  transform: scale(1.1);
}

.profile-icon img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid white;
  cursor: pointer;
}

/* ===================== */
/* 👤 PERFIL */
/* ===================== */
.perfil {
  text-align: center;
}

.perfil img {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.skills-list li {
  background-color: var(--light);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 5px var(--shadow);
}

/* ===================== */
/* 💬 CHAT */
/* ===================== */
.chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: auto;
}

.mensagem {
  padding: 1rem;
  border-radius: 10px;
  max-width: 80%;
  animation: fadeIn 0.5s ease-in;
}

.entrevistador {
  background-color: var(--light);
  align-self: flex-start;
}

.entrevistado {
  background-color: var(--accent);
  color: white;
  align-self: flex-end;
  text-align: right;
}

.entrevistado a {
  color: white;
  text-decoration: underline;
}

.mensagem.entrevistado::after {
  content: '|';
  animation: blink 1s infinite;
}

/* ===================== */
/* 📁 PROJETOS */
/* ===================== */
.projetos-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.projetos-list li {
  margin: 0.5rem 0;
}

.projetos-list a {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.projetos-list a:hover {
  color: #ffb74d;
}

/* ===================== */
/* 📬 CONTATO */
/* ===================== */
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

form input,
form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

form button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #ff8f00;
}

.respostas button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.projeto-card {
  background-color: var(--light);
  color: var(--text);
  text-decoration: none;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px var(--shadow);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

.projeto-card i {
  font-size: 1.5rem;
  color: var(--accent);
}

.projeto-card:hover {
  transform: translateY(-5px);
  background-color: var(--accent);
  color: white;
}

.projeto-card:hover i {
  color: white;
}

/* ===================== */
/* 🧑‍💻 ANIMAÇÕES */
/* ===================== */
@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== */
/* 📱 RESPONSIVO */
/* ===================== */
@media (max-width: 900px) {
  .chat {
    max-width: 90%;
    padding: 1rem;
  }

  .perfil img {
    width: 120px;
  }

  .sidebar {
    width: 60px;
  }

  .sidebar button {
    font-size: 1.2rem;
  }

  .skills-list {
    gap: 0.5rem;
  }

  .projetos-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 600px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--accent);
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    z-index: 1000;
  }

  .profile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.profile-icon img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid white;
}

  main {
    padding: 1rem;
    padding-top: 70px; 
  }

  .mensagem {
    max-width: 100%;
  }

  .perfil img {
    width: 100px;
  }

  .skills-list {
    flex-direction: column;
    align-items: center;
  }

  .projetos-grid {
    grid-template-columns: 1fr;
  }

  .projeto-card {
    padding: 0.75rem;
  }

  form input,
  form textarea {
    font-size: 0.9rem;
  }

  form button {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .respostas button {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .sidebar button {
    font-size: 1rem;
    margin: 0.5rem;
  }

  .perfil img {
    width: 80px;
  }

  .skills-list li {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .projeto-card {
    font-size: 0.9rem;
  }

  .chat {
    padding: 0.5rem;
  }
}
