/* Links do slide */
.slide-links {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 2rem;
}
.slide-link {
  background: var(--primary);
  color: #020617;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.slide-link:hover {
  background: #0ea5e9;
}
/* SLIDESHOW */
.slideshow-wrapper {
  position: relative;
  max-width: 100vw;
  width: 100%;
  margin: 0 auto 2rem auto;
  overflow: hidden;
}
.slideshow {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}
.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide video {
  width: 100vw;
  max-width: 100%;
  height: 60vw;
  max-height: 70vh;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
  display: block;
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  transition: background 0.2s;
}
.slide-btn:hover {
  background: rgba(56,189,248,0.8);
}
.slide-btn.prev {
  left: 10px;
}
.slide-btn.next {
  right: 10px;
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
/* VARIÁVEIS */
:root {
  --bg: #0f172a;
  --bg-card: #020617;
  --border: #1e293b;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #38bdf8;
}

/* BASE */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAV */
.topo {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  list-style: none;
}

.menu a {
  color: var(--muted);
  font-weight: 500;
}

.menu a:hover {
  color: var(--primary);
}

/* SECTIONS */
section {
  padding: 96px 10%;
}

/* HOME */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.titulo {
  font-size: 8rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.subtitulo {
    margin-top: -1rem;
  font-size: 1.5rem;
  color: var(--muted);
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.home p {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-align: center;
  margin-top: 1rem;
}
.cards{
    align-items: center;
    justify-content: center;
}
.projb,
.contb {
  display: inline;
  margin-right: 2rem;
  margin-top: 1rem;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.projb {
    margin-left: 25rem;
    width: 20rem;
    text-align: center;
  background: var(--primary);
  color: #020617;
}
.projb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
  background-color: #0ea5e9;
}
.contb {
    width: 20rem;
    text-align: center;
    margin-left: 50rem;
    margin-top: -4rem;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.contb:hover {
  transform: translateY(-2px);
  background-color: var(--primary);
  color: #020617;
}
/* CARDS */

.techtitulo {
    text-align: center;
    font-size: 4rem;
    margin-top: -28rem;
    margin-left: 50rem;
    font-family: 'Poppins', sans-serif;
}

.cards {

    margin-left: -11.78rem;
    margin-top: 8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}
.cardtitle {
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-align: center;
}
.card img {
  align-items: center;
  justify-content: center;
  margin-left: 1.2rem;
  width: 60px;
  margin-bottom: 12px;
}
.Sobremim{
    text-align: center;
    font-size: 4rem;
    margin-top: 0rem;
  font-family: 'Poppins', sans-serif;

}
.Nome{
  text-align: center;
    font-size: 4rem;
    margin-top: 0rem;
    font-family: 'Poppins', sans-serif;
}
.ctntext{
  text-align: center;
    font-size: 4rem;
    margin-top: 0rem;
    font-family: 'Poppins', sans-serif;
}
/* SOBRE */
.sobre ul {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.itens {
  list-style: none;          /* remove bolinhas */
  max-width: 700px;
  margin: 0 auto;            /* centraliza */
  padding: 0;
}

.itensli {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;

  display: flex;
  align-items: center;

  transition: border-color 0.2s ease, transform 0.2s ease;
}

.itensli:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.itenslitxt {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
/* PROJETOS */
.projetos {
  text-align: center;
}

/* HABILIDADES */
.skills {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

/* CONTATO */
.Contato ul {
  margin-top: 16px;
  display: flex;
  gap: 24px;
  list-style: none;
  justify-content: center;
  padding: 0;
}

.ctn {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.ctn li {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(56,189,248,0.08);
  margin: 0 4px;
}
.ctn li:hover {
  background: var(--primary);
  border-color: #0ea5e9;
  transform: translateY(-2px) scale(1.04);
}
.ctn a {
  display: block;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s;
}
.ctn li:hover a {
  color: #020617;
}


/* FOOTER */
footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* RESPONSIVIDADE */
/* Responsividade para tablets */
@media (max-width: 1024px) {
  .titulo {
    font-size: 4rem;
  }
  .projb, .contb {
    margin-left: 0;
    width: 100%;
    display: block;
    margin-top: 1rem;
  }
  .techtitulo {
    margin: 2rem 0;
    font-size: 2.5rem;
    text-align: center;
  }
  .cards {
    margin-left: 0;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* Responsividade para celulares */
@media (max-width: 768px) {
  .titulo {
    font-size: 2.5rem;
  }
  .subtitulo {
    font-size: 1rem;
  }
  .slide video {
    height: auto;
    max-height: 40vh;
  }
  section {
    padding: 48px 5%;
  }
  .projb, .contb {
    width: 100%;
    margin: 0.5rem 0;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card img {
    margin: 0 auto;
  }
}
/* Responsividade para celulares pequenos (até 500px) */
@media (max-width: 500px) {
  /* regra global para evitar overflow horizontal */
  body, html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14rem; /* espaço para o menu fixo */
    padding: 0 1rem;   /* respiro lateral */
  }

  .titulo {
    font-size: 3rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
  }

  .subtitulo {
    margin-top: -1rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }

  .home p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
  }

  .projb, .contb {
    width: 100%;
    margin: 0.5rem 0;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px;
  }

  .techtitulo,
  .Sobremim,
  .Nome,
  .ctntext {
    font-size: 1.5rem;
    margin: 1rem 0;
    text-align: center;
  }

  .cards {
    margin: 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
  }

  .cardtitle {
    font-size: 1rem;
    text-align: center;
  }

  .slide video {
    width: 100%;
    height: auto;
    max-height: 40vh;
  }

  section {
    padding: 32px 0;
  }

  .menu {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .menu a {
    font-size: 0.9rem;
    text-align: center;
  }
}
