/* Reset para evitar overflow */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1e004d, #3a0066);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden !important;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}

header {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00f2ff;
}
.logo span {
  color: #ff00d4;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  transition: all 0.3s ease;
}
nav a {
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}
nav a:hover {
  color: #f8c146;
}

/* Seção HERO */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 100px 4%;
  gap: 60px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #25005a, #3d0070);
}

.hero-text {
  max-width: 600px;
  flex: 1 1 400px;
  text-align: left;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(90deg, #ff00d4, #00f2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  margin-bottom: 30px;
  color: #ccc;
}
.hero-buttons {
  display: flex;
  gap: 15px;
}
.btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
}
.btn.primary {
  background: linear-gradient(90deg, #ff00d4, #ff6ec4);
  color: #fff;
}
.btn.outline {
  border: 2px solid #ff00d4;
  color: #ff00d4;
}
.btn:hover {
  transform: scale(1.05);
}

.hero-img {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}
.hero-img img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Seção Sobre */
.sobre {
  padding: 80px 5%;
  background: linear-gradient(135deg, #2a0066, #3a0070);
}
.sobre h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}
.sobre h2::after {
  content: '';
  display: block;
  height: 4px;
  width: 80px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #ff00d4, #00f2ff);
}

.sobre-conteudo {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
}

.sobre-texto {
  flex: 1 1 45%;
}
.sobre-texto p {
  margin-bottom: 20px;
  color: #eee;
}
.contato-info {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.contato-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
}

.sobre-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.card {
  flex: 1 1 200px;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
  padding: 20px;
}

.card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #00f2ff;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #fff;
}
.card p {
  font-size: 0.9rem;
  color: #bbb;
}

/* Habilidades */
.habilidades {
  padding: 80px 5%;
  background: linear-gradient(135deg, #3d0070, #2a0066);
}
.habilidades h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}
.habilidades h2::after {
  content: '';
  display: block;
  height: 4px;
  width: 100px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #ff00d4, #00f2ff);
}
.habilidades-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.habilidade-bloco {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.habilidade-bloco h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
}
.habilidade-bloco i {
  margin-right: 8px;
  color: #ff00d4;
}
.habilidade-bloco ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  list-style: none;
}
.habilidade-bloco ul li {
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #ddd;
}

/* Projetos */
.projetos {
  padding: 80px 5%;
  background: linear-gradient(135deg, #3a0070, #2a0066);
}
.projetos h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}
.projetos h2::after {
  content: '';
  display: block;
  height: 4px;
  width: 100px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #ff00d4, #00f2ff);
}
.projetos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.projeto-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}
.projeto-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.projeto-info {
  padding: 20px;
}
.projeto-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}
.projeto-info p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 15px;
}
.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.tags li {
  background-color: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: #ccc;
}
.botoes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Contato */
.contato {
  padding: 80px 5%;
  text-align: center;
  background: linear-gradient(135deg, #2a0066, #3d0070);
}
.contato h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.contato h2::after {
  content: '';
  display: block;
  height: 4px;
  width: 100px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #ff00d4, #00f2ff);
}
.contato .descricao {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #ccc;
  font-size: 1rem;
}
.contato-info-blocos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}
.contato-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.contato-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ff00d4;
}
.contato-card h3 {
  color: #fff;
  margin-bottom: 5px;
}
.contato-card p {
  color: #ccc;
  font-size: 0.9rem;
}
.botao-centro {
  margin-top: 20px;
}
.botao-centro .btn {
  font-size: 1rem;
  padding: 10px 25px;
}

/* Rodapé */
footer {
  background: #12003a;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* Botão flutuante redondo */
.floating-button {
  position: fixed;
  top: 100px;             /* distância do topo */
  left: 30px;             /* alinhado à esquerda */
  background: linear-gradient(135deg, #ff00d4, #00f2ff);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}
.floating-button:hover {
  transform: scale(1.1);
}

.menu-flutuante {
  position: fixed;
  top: 100px;            /* mesmo valor da bolinha */
  left: 100px;           /* aparece à direita da bolinha */
  display: none;
  flex-direction: row;
  gap: 20px;
  background: #1e004d;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  z-index: 998;
  width: fit-content;
}
.menu-flutuante.active {
  display: flex;
}

.menu-flutuante li {
  list-style: none;
  text-align: center;
}
.menu-flutuante li a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}
.menu-flutuante li a:hover {
  color: #f8c146;
}


/* Menu invisível até clicar */
nav ul {
  display: none;
  flex-direction: column;
  background-color: #1e004d;
  position: fixed;
  top: 80px;
  right: 20px;
  width: 200px;
  padding: 20px;
  border-radius: 10px;
  z-index: 998;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
nav ul.active {
  display: flex;
}
nav ul li {
  margin: 10px 0;
  text-align: center;
}


/* Responsividade */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  

.menu-toggle {
  display: none; /* Escondido por padrão em telas grandes */
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 10px;
}

nav ul.menu {
  display: flex !important;
  flex-direction: row; /* ← Deixa os itens em linha */
  justify-content: center;
  background-color: transparent; /* Remove o fundo roxo escuro */
  position: relative;
  padding: 10px 0;
  gap: 20px;
}



  nav ul.menu.active {
    display: flex;
  }



  nav a {
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .hero {
    flex-direction: column;
    padding: 60px 40px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-img img {
    width: 200px;
    height: 200px;
  }

  .sobre-conteudo {
    flex-direction: column;
  }

  .sobre-cards,
  .habilidades-container,
  .projetos-container {
    grid-template-columns: 1fr;
  }

  .contato-info-blocos {
    flex-direction: column;
    align-items: center;
  }

  .sobre,
  .habilidades,
  .projetos,
  .contato {
    padding: 60px 5%;
  }
    .modal-slide {
    max-height: 300px;
  }
    .floating-button {
    top: 89px;
    left: 20px;
  }
  .menu-flutuante {
    top: 80px;
    left: 60px;
    flex-direction: row;
  }
}

/* Animações */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
section {
  animation: fadeInUp 1s ease-in-out both;
}
#sobre { animation-delay: 0.2s; }
#habilidades { animation-delay: 0.4s; }
#projetos { animation-delay: 0.6s; }
#contato { animation-delay: 0.8s; }

/* Menu Toggle */
.menu-toggle {
  display: none;
}
/* Modal Carrossel */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.modal-slide {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  margin: auto;
}

.modal-slide video {
  max-width: 100%;
  height: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 30px;
  user-select: none;
}

.prev { left: 0; }
.next { right: 0; }

.prev:hover, .next:hover, .close:hover {
  color: #f1c40f;
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ff00d4;
  color: white;
  padding: 10px 12px;
  border-radius: 50%;
  font-size: 18px;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: 0.3s;
}
.back-to-top:hover {
  background: #00f2ff;
}
