@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* ==================================================
   RESET GLOBAL
   Remove estilos padrão e define fonte base
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ==================================================
   ESTILO BASE
   Configurações gerais da página
================================================== */
body {
  background: #081b29;
  color: aliceblue;
  overflow-x: hidden;
  padding-top: 90px;
}

/* ==================================================
   HEADER / NAVEGAÇÃO
   Menu fixo e efeito ao rolar
================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(8, 27, 41, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 171, 240, 0.15);
}

.logo {
  position: relative;
  font-size: 1.6rem;
  color: aliceblue;
  text-decoration: none;
  font-weight: 600;
}

.logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
  animation-delay: .4s;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  /* permite quebrar linha se faltar espaço */
  justify-content: flex-end;
  /* ou center, se quiser centralizado */
  align-items: center;
  gap: 25px;
  /* espaçamento entre links */
  max-width: 100%;
  /* garante que não ultrapasse o header */
  overflow: hidden;
  /* evita que os itens escapem */
}

.navbar a {
  font-size: 1rem;
  color: aliceblue;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0;
  /* remove margem fixa */
  transition: .3s;
  line-height: 60px;
  white-space: nowrap;
  /* impede quebra feia de palavras */
}


.navbar a:hover,
.navbar a:active {
  color: #00abf0;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: aliceblue;
  cursor: pointer;
}


/* ==================================================
   HERO SECTION
   Área principal de apresentação
================================================== */
.home {
  min-height: 100vh;
  background: url('./images/perfil-home2.webp') no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 10%;
  position: relative;
}


.home-content h1 {
  position: relative;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-content h1::before,
.home-content h3::before,
.home-content p::before,
.home-content .btn-box::before,
.home-sci::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 101%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
}

.home-content h1::before {
  animation-delay: 1s;
}

.home-content h3 {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  color: #00abf0;
}

.home-content h3::before {
  animation-delay: 1.3s;
}

.home-content p {
  position: relative;
  font-size: 1rem;
  margin: 20px 0 40px;
}

.home-content p::before {
  animation-delay: 1.6s;
}

.home-content h1,
.home-content h3,
.home-content p,
.home-content .btn-box,
.home-sci {
  position: relative;
  overflow: hidden;
  display: block;
}

/* ==================================================
   BOTÃO PRINCIPAL
   Download do currículo
================================================== */
.home-content .btn-box {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 60px;
  margin-top: 25px;
  margin-bottom: 35px;
}

.home-content .btn-box::before {
  animation-delay: 1.6s;
  z-index: 2;
}

.btn-box a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 230px;
  height: 50px;
  gap: 8px;
  background: #00abf0;
  border: 2px solid #00abf0;
  border-radius: 8px;
  font-size: 1rem;
  color: #081b29;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 1;
  overflow: hidden;
  transition: .5s;
}

.btn-box a:hover {
  color: #00abf0;
}

.btn-box a:nth-child(2) {
  background: transparent;
  color: #00abf0;
}

.btn-box a:nth-child(2):hover {
  color: #081b29;
}

.btn-box a:nth-child(2)::before {
  background: #00abf0;
}

.btn-box a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #081b29;
  z-index: -1;
  transition: .5s;
}

.btn-box a:hover::before {
  width: 100%;
}

/* ==================================================
   REDES SOCIAIS
   Links externos com hover
================================================== */
.home-content {
  max-width: 650px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-sci {
  position: relative;
  margin-top: 20px;
  width: 230px;
  display: flex;
  justify-content: space-between;
}

.home-sci::before {
  animation-delay: 2.5s;
  z-index: 2;
}

.home-sci a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #00abf0;
  border-radius: 50px;
  font-size: 20px;
  color: #00abf0;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
  transition: .5s;
}

.home-sci a:hover {
  color: #081b29;
}

.home-sci a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #00abf0;
  z-index: -1;
  transition: .5s;
}

.home-sci a:hover::before {
  width: 100%;
}

/* ==================================================
   EFEITO VISUAL DA IMAGEM
   Hover lateral animado
================================================== */
.home-imgHover {
  position: absolute;
  top: 0;
  right: 0;
  width: 700px;
  height: 100%;
  z-index: 2;
  transition: opacity 0.8s ease-in-out, background 0.8s ease-in-out;
}

.home-imgHover:hover {
  background: #081b29;
  opacity: .75;
}

.home-imgHover::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120%;
  height: 100%;
  background: #081b29;
  animation: showRight 1s ease forwards;
  animation-delay: 3s;
  z-index: 1;
}

/* ==================================================
   ANIMAÇÕES GERAIS
================================================== */
@keyframes showRight {
  100% {
    width: 0;
  }
}

@keyframes manipActiveHover {
  100% {
    pointer-events: auto;
  }
}

/* ==================================================
   SOBRE MIM
   Texto principal + cards laterais
================================================== */
.sobre {
  padding: 100px 10%;
  background: #112e42;
}

.sobre-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.sobre-texto {
  flex: 2;
}

.sobre-texto h2 {
  font-size: 42px;
  color: #00abf0;
  margin-bottom: 25px;
}

.sobre-texto p {
  font-size: 17px;
  line-height: 1.8;
  color: #ededed;
  text-align: justify;
}

.sobre-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #081b29;
  border: 2px solid #00abf0;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s ease;
}

.info-card:hover {
  transform: translateX(10px);
}

.info-card h3 {
  color: #00abf0;
  margin-bottom: 10px;
}

.info-card p {
  color: #fff;
  font-size: 15px;
}


/* ==================================================
   PROJETOS
   Cards com preview e link GitHub
================================================== */
.projetos {
  padding: 100px 10%;
  text-align: center;
}

.projetos h2 {
  font-size: 42px;
  margin-bottom: 50px;
}

.projetos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

.projeto-card {
  width: 380px;
  background: #112e42;
  border: 2px solid #00abf0;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s ease;
}

.projeto-card:hover {
  transform: translateY(-12px);
}

.projeto-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.projeto-info {
  padding: 20px;
}

.projeto-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.projeto-info p {
  font-size: 15px;
  margin-bottom: 20px;
}

.projeto-info a {
  display: inline-block;
  padding: 10px 20px;
  background: #00abf0;
  color: #081b29;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}



/* ==================================================
   TECNOLOGIAS
   Ícones animados
================================================== */
.tecnologias {
  padding: 100px 10%;
  text-align: center;
}

.tecnologias h2 {
  font-size: 42px;
  margin-bottom: 50px;
  color: #fff;
}

.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 3s ease-in-out infinite;
}

.tech-item span {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.tech-item i {
  font-size: 60px;
  color: #00abf0;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}

.tech-item:hover i {
  transform: translateY(-6px) scale(1.12);
  color: #fff;
}

.tech-item:nth-child(2) {
  animation-delay: 0.08s;
}

.tech-item:nth-child(3) {
  animation-delay: 0.16s;
}

.tech-item:nth-child(4) {
  animation-delay: 0.24s;
}

.tech-item:nth-child(5) {
  animation-delay: 0.32s;
}

.tech-item:nth-child(6) {
  animation-delay: 0.40s;
}

.tech-item:nth-child(7) {
  animation-delay: 0.48s;
}

.tech-item:nth-child(8) {
  animation-delay: 0.56s;
}

.tech-item:nth-child(9) {
  animation-delay: 0.64s;
}

.tech-item:nth-child(10) {
  animation-delay: 0.72s;
}

.tech-item:nth-child(11) {
  animation-delay: 0.80s;
}

.tech-item:nth-child(12) {
  animation-delay: 0.88s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ==================================================
   CERTIFICADOS
   Cards clicáveis
================================================== */
.certificados {
  padding: 100px 10%;
  background: #112e42;
  text-align: center;
}

.certificados h2 {
  font-size: 42px;
  color: #00abf0;
  margin-bottom: 50px;
}

.certificados-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.certificado-card {
  width: 320px;
  background: #081b29;
  border: 2px solid #00abf0;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s ease;
  cursor: pointer;
}

.certificado-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 8px 25px rgba(0, 171, 240, 0.2);
}

.certificado-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.certificado-card h3 {
  font-size: 18px;
  margin: 20px 15px 10px;
  color: #fff;
}

.certificado-card p {
  margin-bottom: 20px;
  color: #00abf0;
  font-size: 14px;
  font-weight: 500;
}

/* ==================================================
   CONTATO
   Formas de contato
================================================== */
.contato {
  padding: 100px 10%;
  text-align: center;
  background: #112e42;
}

.contato h2 {
  font-size: 42px;
  color: #00abf0;
  margin-bottom: 20px;
}

.contato p {
  font-size: 16px;
  margin-bottom: 50px;
}

.contato-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.contato-card {
  width: 250px;
  padding: 30px;
  background: #081b29;
  border: 2px solid #00abf0;
  border-radius: 15px;
  transition: 0.4s ease;
}

.contato-card:hover {
  transform: translateY(-12px);
}

.contato-card i {
  font-size: 50px;
  color: #00abf0;
  margin-bottom: 15px;
}

.contato-card h3 {
  margin-bottom: 10px;
}

.contato-card a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contato-card a:hover {
  color: #00abf0;
}

/* ==================================================
   RODAPÉ
================================================== */
.footer {
  background: #081b29;
  color: #fff;
  padding: 70px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  /* primeira coluna maior */
  gap: 50px;
  align-items: flex-start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3,
.footer-col h4 {
  color: #00abf0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.footer-col p,
.footer-col li {
  color: #ccc;
  line-height: 1.7;
  font-size: 0.95rem;
  list-style: none;
}

.footer-col ul {
  padding: 0;
}

.footer-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #00abf0;
  color: #081b29;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.footer-btn:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #888;
  font-size: 14px;
}




/* RESPONSIVE */

@media screen and (max-width: 1200px) {
  .navbar a {
    font-size: 0.9rem;
  }

  .navbar {
    gap: 18px;
  }
}



/* ===============================
TABLETS
================================= */
@media screen and (max-width: 992px) {

  .navbar a {
    margin-left: 20px;
    font-size: 0.95rem;
  }

  .hamburger {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    background: #081b29;
    position: absolute;
    top: 90px;
    right: 0;
    width: 220px;
    padding: 20px;
    border: 2px solid #00abf0;
    border-radius: 8px;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    margin: 12px 0;
    line-height: normal;
  }

  .header {
    padding: 20px 3%;
  }

  .home {
    padding: 0 5%;
    background-position: center right;
  }

  .home-content h1 {
    font-size: 3rem;
  }

  .home-content h3 {
    font-size: 1.8rem;
  }

  .sobre-container {
    flex-direction: column;
  }

  .projeto-card,
  .certificado-card,
  .contato-card {
    width: 100%;
    max-width: 500px;
  }

  .home-sci {
    width: 230px;
  }

  .home-content h1::before,
  .home-content h3::before,
  .home-content p::before {
    display: none;
  }
}


/* ===============================
   RESPONSIVO MOBILE
================================= */
@media screen and (max-width: 768px) {

  .header {
    padding: 15px 5%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    color: aliceblue;
    cursor: pointer;
  }

  .navbar {
    display: none;
    flex-direction: column;
    background: #081b29;
    position: absolute;
    top: 90px;
    right: -250px;
    /* começa fora da tela */
    width: 220px;
    padding: 20px;
    border: 2px solid #00abf0;
    border-radius: 8px;
    transition: right 0.3s ease;
    /* animação suave */
  }

  .navbar.active {
    display: flex;
    right: 0;
    /* desliza para dentro */
  }

  .navbar a {
    margin: 12px 0;
    line-height: normal;
  }

  .home {
    min-height: calc(100vh - 90px);
    padding: 40px 5%;
    justify-content: center;
    text-align: center;
    background-image: none;
  }

  .home-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-content h1 {
    font-size: 2.3rem;
    line-height: 1.2;
  }

  .home-content h3 {
    font-size: 1.5rem;
    margin-top: 15px;
  }

  .home-content p {
    font-size: 1rem;
    margin: 20px 0;
  }

  .sobre-texto p {
    text-align: left;
    font-size: 16px;
  }

  /* ÍCONES CENTRALIZADOS */
  .home-sci {
    position: static;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 30px 0;
  }

  .home-sci a {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  /* BOTÃO */
  .home-content .btn-box {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .btn-box a {
    width: 100%;
    max-width: 280px;
  }

  .home-imgHover {
    display: none;
  }

  .sobre,
  .projetos,
  .tecnologias,
  .certificados,
  .contato {
    padding: 80px 5%;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer {
    padding: 60px 20px 20px;
  }

  .footer-btn {
    display: block;
    margin: 20px auto;
    text-align: center;
    width: 100%;
    max-width: 280px;

  }


  .projetos-container,
  .certificados-container,
  .contato-container {
    gap: 20px;
  }

}


/* CELULARES PEQUENOS */
@media screen and (max-width: 480px) {

  .hamburger {
    font-size: 32px;
    /* ícone maior */
  }

  .navbar {
    display: none;
    /* escondido por padrão */
    flex-direction: column;
    background: #081b29;
    position: absolute;
    top: 70px;
    /* mais próximo do topo */
    right: 0;
    width: 100%;
    /* ocupa toda a largura */
    padding: 15px;
    border: none;
    /* remove borda para ficar mais clean */
    border-radius: 0;
  }

  .navbar.active {
    display: flex;
    /* aparece ao clicar */
  }

  .navbar a {
    margin: 10px 0;
    font-size: 0.95rem;
    /* fonte menor para caber melhor */
    text-align: center;
    /* centraliza os links */
    line-height: normal;
  }

  .logo {
    font-size: 1.3rem;
  }

  .home {
    min-height: calc(100vh - 90px);
    padding: 80px 5% 50px;
  }

  .home-content {
    gap: 24px;
  }

  .home-content h1 {
    font-size: 2rem;
  }

  .home-content h3 {
    font-size: 1.2rem;
  }

  .home-content p {
    font-size: .9rem;
    margin: 10px 0 20px;
  }

  .btn-box a {
    height: 48px;
    font-size: .9rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  .footer-col p,
  .footer-col li {
    text-align: center;
  }

  .footer-btn {
    display: block;
    margin: 20px auto;
    text-align: center;
    width: 100%;
    max-width: 280px;

  }

  .footer-bottom {
    font-size: 12px;
    line-height: 1.6;
  }

  .home-content .btn-box {
    margin-top: 25px;
    margin-bottom: 25px;
  }
}