* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ===== CORES BASE ===== */

body {
  background: linear-gradient(135deg, #0f0f0f 0%, #141414 40%, #1a1a1a 100%);
  color: #e5e5e5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* CONTAINER */

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 60px 0;
}

/* HEADER */

header {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 99;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* MENU */

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #d4d4d4;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #3b82f6;
}

/* HERO */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
}

/* BOTÃO */

.btn {
  display: inline-block;
  margin-top: 20px;
  background: #3b82f6;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  background: #2563eb;
}

/* TITULOS */

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
  color: #ffffff;
}

/* FOTO PERFIL */

.hero-img {
  width: 340px;
  aspect-ratio: 1 / 1; /* GARANTE quadrado */
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.foto-perfil {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.4);
}

/* CARDS / SKILLS */

#skills {
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.skill-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

#diferencial {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

#diferencial p {
  line-height: 1.8;
  font-size: 18px;
  color: #cbd5e1;
}

.diferencial-title {
  margin-top: 100px;
}

.diferencial-text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 18px;
  color: #cbd5e1;
}

/* ===== PROJETOS MODERNOS ===== */

.project-card {
  flex: 0 0 320px;
  background: #1f1f1f;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

/* Overlay */

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Botão */

.project-btn {
  background: #3b82f6;
  padding: 12px 22px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.project-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* Info */

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
}

.project-info p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* SOBRE */

.sobre {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center; /* CENTRALIZA */
  text-align: left;
}

.sobre img {
  width: 240px;
  border-radius: 14px;
  object-fit: cover;
}

.sobre-social {
  margin-top: 20px;
  display: flex;
  gap: 18px;
}

.sobre-social a {
  font-size: 26px;
  color: #d4d4d4;
  transition: 0.3s;
}

.sobre-social a:hover {
  color: #3b82f6;
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .sobre img {
    width: 180px;
    margin-bottom: 20px;
  }

  .sobre div {
    padding: 0 10px;
  }
}

/* SOCIAL */

.social {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 80px;
}

.social a {
  font-size: 36px;
  color: #d4d4d4;
  transition: 0.3s ease;
}

.social a:hover {
  color: #3b82f6;
  transform: translateY(-5px) scale(1.1);
}

.social i {
  display: inline-block;
}

#contato {
  padding-bottom: 120px;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 30px;
  background: #1a1a1a;
  color: #9ca3af;
}

/* RESPONSIVO */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .sobre {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    width: 200px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 14px;
  }
}

/* ================= MODAL ================= */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1f1f1f;
  color: #e5e5e5;
  padding: 30px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: modalPop 0.3s ease;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.close {
  float: right;
  font-size: 26px;
  cursor: pointer;
}

.tech {
  margin: 12px 0;
  color: #2563eb;
  font-weight: 600;
}

@keyframes modalPop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* BOTÃO HAMBURGUER */

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 999;
}

.btn-menu span {
  width: 28px;
  height: 3px;
  background: #e5e5e5;
  display: block;
  border-radius: 3px;
}

/* MENU MOBILE */

.menu-mobile {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: #111;
  padding-top: 80px;
  transition: 0.35s ease;
  z-index: 998;
}

.menu-mobile.abrir-menu {
  right: 0;
}

.menu-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-left: 30px;
}

.menu-mobile a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 18px;
}

/* OVERLAY */

.overlay-menu {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  z-index: 997;
}

.overlay-menu.ativo {
  visibility: visible;
  opacity: 1;
}

/* RESPONSIVO */

@media (max-width: 900px) {
  header nav {
    display: none;
  }

  .btn-menu {
    display: flex;
  }
}

/* ===== CURSOR GLOW EFFECT ===== */

.cursor-glow {
  position: fixed;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: transform 0.08s linear;
}

/* Mantém conteúdo acima do glow */
body > * {
  position: relative;
  z-index: 1;
}

/* ===== OBRIGADO ===== */

.obrigado-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.obrigado-card {
  background: linear-gradient(145deg, #1a1a1a, #141414);
  padding: 60px;
  border-radius: 24px;
  text-align: center;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.obrigado-card h1 {
  font-size: 30px;
  margin-bottom: 15px;
}

.obrigado-card p {
  color: #cbd5e1;
  margin-bottom: 30px;
}

.checkmark {
  font-size: 60px;
  color: #3b82f6;
  margin-bottom: 20px;
}

/* ===== FORMULÁRIO CENTRALIZADO DEFINITIVO ===== */

.form-box {
  max-width: 520px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(25, 25, 25, 0.85);
  padding: 45px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  background: #111;
  color: #e5e5e5;
  font-size: 15px;
  transition: 0.3s ease;
}

.form-box input:focus,
.form-box textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-box textarea {
  min-height: 140px;
  resize: none;
}

.form-box .btn {
  width: 180px;
  align-self: center;
}

.contato form {
  margin-bottom: 40px;
}

.contato form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.contato input,
.contato textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: white;
}

/* ===== CTA FINAL ===== */

.cta-contato {
  text-align: center;
  padding: 100px 20px;
}

.cta-contato h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.cta-contato p {
  color: #cbd5e1;
  margin-bottom: 30px;
}

.whats-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.whats-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}
