/* ==========================================================================
   ESTILO ATUALIZADO E UNIFICADO - BLOGUEIRO SAMURAI
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Reset Geral - Estilo Clean, Premium e Dark */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #08090d; /* Fundo escuro profundo e minimalista */
  color: #f5f5f7;            /* Texto principal claro e confortável */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Navbar de Vidro Fosco (Glassmorphism Dark) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-nav {
  background-color: #ffffff;
  color: #08090d !important;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.btn-nav:hover {
  opacity: 0.9;
}

/* Seção Hero (Ajustada para o Dark Mode Premium) */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px 20px;
  background-color: #08090d;
}

.hero-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #718096;
  margin-bottom: 25px;
  font-weight: 600;
}

.hero h1 {
  font-size: 68px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #ffffff;
  margin-bottom: 30px;
}

.hero p {
  font-size: 18px;
  color: #a0aec0;
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.btn-black {
  background-color: #ffffff;
  color: #08090d;
  border: none;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-black:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-text:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.hero-footer-text {
  font-size: 12px;
  color: #4a5568;
}

/* Seções de Conteúdo (Projetos e Blog) */
.section-container {
  padding: 100px 8%;
  background-color: #08090d;
}

/* Quebra de seção sutil usando um tom levemente diferente */
.bg-light {
  background-color: #0d0e15; 
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-header p {
  color: #a0aec0;
  font-size: 16px;
}

/* Grids */
.grid-projects, .grid-blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards com bordas sutis e fundo ligeiramente elevado */
.project-card, .blog-card {
  background-color: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card:hover, .blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.3); /* Destaque sutil no vermelho Samurai */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Identidade Visual do Samurai */
.tag {
  font-size: 12px;
  font-weight: 600;
  color: #ff3b30; /* Vermelho vibrante para dar contraste nas tags */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 15px;
}

.project-card h3, .blog-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.project-card p, .blog-card p {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
}

/* --- Seção de Contato Duas Colunas (Dark Integration) --- */
.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
  text-align: left;
}

.contact-info h2, .contact-form-wrapper h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: left;
}

.contact-desc, .form-desc {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: left;
}

/* Cards de Redes Sociais */
.social-links-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background-color: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, border-color 0.2s;
}

.social-card:hover {
  transform: translateX(5px);
  border-color: rgba(255, 59, 48, 0.3);
}

.social-icon-wrapper {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
}

/* Estilização dos Inputs do Formulário */
.custom-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.custom-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #a0aec0;
  margin-bottom: 8px;
  text-align: left;
}

.custom-form input, .custom-form textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-form input:focus, .custom-form textarea:focus {
  outline: none;
  border-color: #ff3b30; /* Foco com a cor do Samurai */
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.custom-form input::placeholder, .custom-form textarea::placeholder {
  color: #4a5568;
}

/* Botão de Envio */
.btn-submit {
  width: 100%;
  background-color: #ffffff;
  color: #08090d;
  border: none;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

/* Rodapé */
.footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #08090d;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: #4a5568;
  font-size: 13px;
}

/* ==========================================================================
   REGRAS DE RESPONSIVIDADE (MOBILE) - SEMPRE NO FINAL DO ARQUIVO
   ========================================================================== */

@media (max-width: 900px) {
  .contact-two-columns {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .hero h1 { 
    font-size: 40px; 
  }
  .nav-links a:not(.btn-nav) { 
    display: none; 
  }
  .hero-buttons { 
    flex-direction: column; 
    width: 100%; 
    gap: 15px; 
  }
  .btn-black { 
    width: 100%; 
  }
}
