html {
  scroll-behavior: smooth;
}

html, body {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 80px; /* Adjust to offset for your fixed navbar height */
}

section {
  scroll-snap-align: start;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #a3c3ff;
  cursor: crosshair;
  overflow-x: hidden;
}

/* Navbar */
.wrappernav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 75px;
  z-index: 1300;
  cursor: crosshair;
}

.navbar {
  position: absolute;
  top: -45px; /* Removed translateY and use top */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 60px;
  background: #000;
  box-shadow: #a3c3ff 0 0 10px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: top 1s ease-in-out, transform 1s ease-in-out;
  box-sizing: border-box;
  cursor: crosshair;
}

.wrappernav:hover .navbar {
  top: 30px; /* Replace translateY with top */
}

.navitem {
  position: relative;
  color: #fff;
  text-decoration: none;   /* Remove default underline */
  font-size: 1.2rem;
  display: inline-block;   /* Ensure padding and width apply */
  padding: 10px 5px 8px 5px; /* Bottom padding to make space for underline */
  transition: color 0.3s, transform 0.3s;
  transform-origin: center;
  will-change: transform;
  cursor: crosshair;
  border-bottom: 2px solid transparent; /* Reserve space for underline */
}

.navitem:hover,
.navitem:focus {
  color: #fff;
  transform: scale(1.1);
  border-bottom-color: #a3c3ff; /* Show underline smoothly by changing border color */
}

/* Remove your ::after underline to avoid hover flicker */
.navitem::after {
  display: none;
}

/* Links da navbar */
.navlinks {
  display: flex;
  gap: 30px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 100px;
  object-fit: contain;
}

/* ----------- SEÇÃO SOBRE ----------- */
.sobre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 10%;
  height: 100vh;
  background: #000;
  box-sizing: border-box;
}

.sobretext {
  flex: 1;
  max-width: 600px;
  padding-right: 20px;
  color: aliceblue;
}

.sobretext h1 {
  margin-bottom: 20px;
  font-size: 3rem;
}

.sobretext h2 {
  font-size: 1.5rem;
  line-height: 1.4;
}

.personalphoto {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(163, 195, 255, 0.7);
  flex-shrink: 0;
}

/* ----------- SEÇÃO INSTITUCIONAL ----------- */
.institucional {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 10%;
  height: 100vh;
  background: #000;
  box-sizing: border-box;
  position: relative;
}

.institle1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: left;
}

.spinBtn1 {
  position: absolute;
  top: 50%;
  right: -250px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  transition: transform 0.3s ease-in-out;
  z-index: 1100;
}

.spinBtn1:hover {
  transform: translateY(-50%) scale(1.2);
  cursor: crosshair;
}

.barrelImg1 {
  width: 400px;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform: rotate(30deg);
  transition: transform 0.3s ease;
}

/* ----------- SEÇÃO PESSOAL (invertida) ----------- */
.pessoal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 10%;
  height: 100vh;
  background: #000;
  box-sizing: border-box;
  position: relative;
  flex-direction: row-reverse;
}

.institle2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: left;
}

.spinBtn2 {
  position: absolute;
  top: 50%;
  left: -250px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  transition: transform 0.3s ease-in-out;
  z-index: 1100;
}

.spinBtn2:hover {
  transform: translateY(-50%) scale(1.2);
  cursor: crosshair;
}

.barrelImg2 {
  width: 400px;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform: rotate(30deg);
  transition: transform 0.3s ease;
}

/* ----------- SEÇÃO PROFISSIONAL ----------- */
.profissional {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 10%;
  height: 100vh;
  background: #000;
  box-sizing: border-box;
  position: relative;
}

.institle3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: left;
}

.spinBtn3 {
  position: absolute;
  top: 50%;
  right: -250px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  transition: transform 0.3s ease-in-out;
  z-index: 1100;
}

.spinBtn3:hover {
  transform: translateY(-50%) scale(1.2);
  cursor: crosshair;
}

.barrelImg3 {
  width: 400px;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform: rotate(30deg);
  transition: transform 0.3s ease;
}

/* ----------- PROJETOS DINÂMICOS ----------- */
.project {
  display: none;
}

.project.visible {
  display: block;
}

/* ----------- CONTATO ----------- */
.contato {
  position: relative;
  padding: 50px 10%;
  background: #000;
  color: #a3c3ff;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.contacttitle {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.formopen {
  background-color: #a3c3ff;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: crosshair;
}

/* ----------- FOOTER ----------- */
.footer {
  background: #000;
  color: #a3c3ff;
  text-align: center;
  padding: 20px 10%;
  font-size: 1rem;
  border-top: 1px solid #a3c3ff;
  user-select: none;
}

.footer-content p {
  margin: 5px 0;
}

.footer-link {
  color: #a3c3ff;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: #76a9ff;
  text-decoration: underline;
  cursor: crosshair;
}

/* ----------- NAV SETAS ----------- */
.nav-arrow {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #a3c3ff;
  user-select: none;
  z-index: 1300;
  padding: 20px 30px;
  background-color: transparent;
  animation: bounceUpDown 2s infinite ease-in-out;
}

@keyframes bounceUpDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

.nav-arrow:hover {
  color: #76a9ff;
}

/* Toggle Arrow */
.nav-toggle {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #a3c3ff;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease;
  z-index: 1300;
}

.nav-toggle.open {
  transform: translateX(-50%) rotate(180deg);
}

/* ----------- MODAL FORM ----------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
}

.modal-content {
  background: #000;
  color: #f8f8f8;
  border-radius: 10px;
  width: min(90%, 480px);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2rem 2.5rem;
  box-shadow: 0px 0px 20px #76a9ff;
}

#modalClose {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.modal-content label {
  margin-top: 1rem;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #eee;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #535353;
  border-radius: 5px;
  background: #121212;
  color: #f0f0f0;
  box-shadow: #76a9ff 0 0 10px;
}

.modal-content button[type="submit"] {
  background: #4CAF50;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
  font-weight: bold;
  width: 100%;
  transition: background 0.2s;
}

.modal-content button[type="submit"]:hover {
  background: #45a049;
  cursor: crosshair;
}


/* ----- Estilização dos blocos de projeto ----- */

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 100;
  position: relative;
  max-width: 700px;
  padding: 40px 0;
}

.project {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  border-left: 4px solid #76a9ff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(118, 169, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(118, 169, 255, 0.4);
  cursor: crosshair;
}

.project p {
  color: #dce8ff;
  font-size: 1.1rem;
  margin: 10px 0;
  line-height: 1.6;
}

.project a {
  color: #a3c3ff;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.project a:hover {
  color: #ffffff;
  text-decoration: underline;
  cursor: crosshair;
}

/* Alinhamento da .projects-container para cada seção */
.institucional .projects-container {
  margin-right: auto; /* texto à esquerda, botão à direita */
}

.pessoal .projects-container {
  margin-left: auto; /* texto à direita, botão à esquerda */
  text-align: right;
}

.profissional .projects-container {
  margin-right: auto; /* texto à esquerda, botão à direita */
}

/* Responsivo */
@media (max-width: 768px) {
  .projects-container {
    max-width: 100%;
    padding: 20px 10px;
  }

  .pessoal .projects-container {
    text-align: left;
    margin-left: 0;
  }

  .project {
    padding: 16px 18px;
  }
}

/* Estilo geral dos títulos */
.institle1,
.institle2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  padding: 20px 0;
  position: absolute;
  top: 40px;
  z-index: 120;
}

/* Título institucional e profissional → canto superior esquerdo */
.institucional .institle1,
.profissional .institle1 {
  left: 10%;
  text-align: left;
}

/* Título pessoal → canto superior direito */
.pessoal .institle2 {
  right: 10%;
  text-align: right;
}

/* Responsivo */
@media (max-width: 768px) {
  .institle1,
  .institle2 {
    font-size: 1.8rem;
    top: 20px;
    padding: 10px 0;
  }

  .institucional .institle1,
  .profissional .institle1 {
    left: 5%;
  }

  .pessoal .institle2 {
    right: 5%;
  }
}

hr {
  color: #141414;
  box-shadow: #76a9ff 0 0 10px;
  
}