/* ===== RESET / BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}


/* ===== VARIÁVEIS ===== */
:root {
  --cor-primaria: #2563eb;
  --cor-primaria-hover: #1d4ed8;
  --cor-fundo: #0f172a;
  --cor-fundo-alt: #1e293b;
  --cor-texto: #e2e8f0;
  --cor-texto-secundario: #94a3b8;
  --cor-borda: #334155;
}


/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cor-borda);
  z-index: 100;
}

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

.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--cor-texto);
}

.nav__logo span {
  color: var(--cor-primaria);
}

.nav__menu {
  display: flex;
  gap: 32px;
}

.nav__link {
  text-decoration: none;
  color: var(--cor-texto-secundario);
  font-weight: 500;
  transition: color 0.3s;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--cor-texto);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav__toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--cor-texto);
  transition: 0.3s;
}


/* ===== HERO (#inicio) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 70px;
}

.hero__image {
  flex-shrink: 0;
}

.hero__image img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--cor-primaria);
}

.hero__greeting {
  color: var(--cor-primaria);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero__role {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cor-texto-secundario);
  margin-bottom: 20px;
}

.hero__text {
  max-width: 560px;
  color: var(--cor-texto-secundario);
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ===== BOTÕES (reutilizados em várias seções) ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.btn--primary {
  background-color: var(--cor-primaria);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--cor-primaria-hover);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--cor-primaria);
  color: var(--cor-texto);
}

.btn--outline:hover {
  background-color: var(--cor-primaria);
}

.btn--small {
  padding: 8px 18px;
  font-size: 0.9rem;
}


/* ===== SEÇÕES / TÍTULOS ===== */
section {
  padding: 100px 0;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 12px;
}

.section__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--cor-primaria);
}


/* ===== SOBRE (#sobre) ===== */
.sobre__content p {
  max-width: 720px;
  color: var(--cor-texto-secundario);
  margin-bottom: 16px;
}


/* ===== SKILLS (#skills) ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.skill__card {
  padding: 20px;
  background-color: var(--cor-fundo-alt);
  border: 1px solid var(--cor-borda);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  transition: transform 0.3s, border-color 0.3s;
}

.skill__card:hover {
  transform: translateY(-4px);
  border-color: var(--cor-primaria);
}


/* ===== PROJETOS (#projetos) ===== */
.projetos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project__card {
  background-color: var(--cor-fundo-alt);
  border: 1px solid var(--cor-borda);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

.project__card:hover {
  transform: translateY(-4px);
}

.project__info {
  padding: 28px;
}

.project__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.project__desc {
  color: var(--cor-texto-secundario);
  margin-bottom: 16px;
}

.project__tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.project__tech li {
  padding: 4px 12px;
  background-color: rgba(37, 99, 235, 0.15);
  color: var(--cor-primaria);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project__links {
  display: flex;
  gap: 12px;
}


/* ===== CONTATO (#contato) ===== */
.contato__text {
  color: var(--cor-texto-secundario);
  margin-bottom: 28px;
}

.contato__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 24px;
  background-color: var(--cor-fundo-alt);
  border-top: 1px solid var(--cor-borda);
  color: var(--cor-texto-secundario);
  font-size: 0.9rem;
}


/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 0;
    background-color: var(--cor-fundo-alt);
    border-bottom: 1px solid var(--cor-borda);
    transition: left 0.4s;
  }

  .nav__menu.show-menu {
    left: 0;
  }

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

  .hero__image img {
    width: 180px;
    height: 180px;
  }

  .hero__buttons {
    justify-content: center;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
