/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS (RESET & CORES)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0a192f;
  color: #ecf0f1;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 10px;
}

/* ==========================================================================
   2. CABEÇALHO (PERFIL)
   ========================================================================== */
header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid #1e3a8a;
}

.profile-img-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #00a8ff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #112240;
  flex-shrink: 0;
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 5px;
}

.profile-info h2 {
  font-size: 1.3rem;
  color: #00a8ff;
  font-weight: 500;
  margin-bottom: 15px;
}

.profile-info p {
  color: #8892b0;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Tags de Habilidades */
.tech-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: #172a45;
  color: #00a8ff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 168, 255, 0.2);
}

/* ==========================================================================
   3. SEÇÃO DE PROJETOS E FILTROS
   ========================================================================== */
.portfolio-section {
  margin-top: 50px;
}

.portfolio-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.portfolio-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 3px;
  background-color: #00a8ff;
}

/* Menu de Filtros */
.filter-container {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #112240;
  color: #8892b0;
  border: 1px solid #233554;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #00a8ff;
  color: #ffffff;
  border-color: #00a8ff;
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.2);
}

/* Grid de Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

/* Card Individual */
.project-card {
  background: #112240;
  border: 1px solid #233554;
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #00a8ff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-tag {
  background: rgba(0, 168, 255, 0.1);
  color: #00a8ff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  width: fit-content;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.project-card p {
  color: #8892b0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-techs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  margin-top: auto;
}

.card-techs span {
  color: #00a8ff;
  font-size: 0.8rem;
  background: rgba(0, 168, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Botão do Card */
.view-btn {
  background: #00a8ff;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
  display: block;
}

.view-btn:hover {
  background: #0086cc;
}

/* Ocultação de cards via JS */
.project-card.hide {
  display: none;
}

/* ==========================================================================
   4. BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 100;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   5. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  .profile-info h1 {
    font-size: 2rem;
  }
  .filter-container {
    justify-content: center;
  }
}
/* ==========================================================================
   6. SEÇÃO DE CONTATO (FORMULÁRIO)
   ========================================================================== */
.contact-section {
  margin-top: 80px;
  margin-bottom: 40px;
  padding-top: 40px;
  border-top: 1px solid #1e3a8a;
}

.contact-section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.contact-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 3px;
  background-color: #00a8ff;
}

.contact-subtitle {
  color: #8892b0;
  margin-bottom: 30px;
  font-size: 1rem;
}

#contact-form {
  background: #112240;
  border: 1px solid #233554;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  background: #0a192f;
  border: 1px solid #233554;
  color: #ecf0f1;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00a8ff;
  box-shadow: 0 0 8px rgba(0, 168, 255, 0.2);
}

/* Estilo do Placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #495670;
}

.submit-btn {
  background: #00a8ff;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #0086cc;
}

#form-status {
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

#form-status.success {
  color: #25d366;
}

#form-status.error {
  color: #ff4d4d;
}
