@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: #2ec733;
  color: #fff;
}

/* Scrollbar */
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: rgb(202, 235, 202);
}
html::-webkit-scrollbar-thumb {
  background: #066b04;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  height: 6.5rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(146, 176, 146, 0.3);
  z-index: 1000;
}

header .logo {
  font-size: 2rem;
  font-weight: 800;
  color: #0b2e0e;
  display: flex;
  align-items: center;
}
header .logo i {
  font-size: 2.5rem;
  margin-right: 0.5rem;
}

header .navbar {
  display: flex;
  gap: 2rem;
}
header .navbar a {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0b2e0d;
  transition: 0.3s;
}
header .navbar a:hover,
header .navbar a.active {
  color: #02e825;
  border-bottom: 2px solid #02d91b;
  padding-bottom: 0.3rem;
}

/* Menu hambúrguer */
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}

/* Responsividade do menu */
@media (max-width: 900px) {
  #menu {
    display: block;
  }

  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -100%;
    width: 75%;
    height: 100%;
    flex-direction: column;
    background: #0c330e;
    align-items: center;
    padding-top: 2rem;
    transition: 0.3s;
  }

  header .navbar a {
    display: block;
    width: 100%;
    padding: 1.5rem;
    font-size: 2rem;
    text-align: center;
    color: #fff;
  }

  header .navbar a:hover {
    background: #027817;
  }

  header .navbar.active {
    right: 0;
  }
}

/* Work Section */
.work {
  background: linear-gradient(to bottom, #033309, #012e09);
  margin-top: 6.5rem;
  padding: 3rem 5%;
  text-align: center;
}

.work h2 {
  font-size: 3.5rem;
  color: #fff;
}

.work .button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.work .button-group .btn {
  padding: 1rem 2rem;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.work .button-group .btn:hover,
.work .button-group .btn.is-checked {
  background: #fff;
  color: #000;
}

/* Grid responsivo */
.work .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.work .box {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.work .box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
}

.work .box .content {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.work .box:hover .content {
  opacity: 1;
}

.work .box .tag h3 {
  font-size: 2.1rem;
  color: #03fc03;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.work .box .desc p {
  font-size: 1.45rem;
  line-height: 1.8;
  color: #e2e2e2;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
  margin-bottom: 2rem; /* aumenta o espaçamento com os botões */
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
  text-align: justify;
}


.work .box .desc .btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.work .box .desc .btns .btn {
  flex: 1 1 48%;
  padding: 0.8rem;
  font-size: 1.3rem;
  text-align: center;
  background: #03fc03;
  color: #000;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}

.work .box .desc .btns .btn:hover {
  background: #00c324;
}

/* Botão de voltar */
.backbtn {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.backbtn .btn {
  padding: 1.6rem 3rem;
  border: 2px solid #fff;
  background: none;
  color: #fff;
  transition: 0.3s;
  font-weight: 600;
}

.backbtn .btn:hover {
  background: #fff;
  color: #000;
}

/* Botão de rolagem */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  display: none;
  z-index: 1000;
  transition: 0.3s;
}

#scroll-top.active {
  display: block;
}

/* Responsividade extra */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .work .button-group {
    width: 100%;
  }
}

@media (max-width: 450px) {
  .work .box-container {
    grid-template-columns: 1fr;
  }
}

footer {
  background: #012b03;
  padding: 3rem 2rem;
  color: #eaeaea;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  background: #05c425;
  color: #012b03;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(5, 196, 37, 0.4);
}

.social-links a:hover {
  background: #fff;
  color: #05c425;
  transform: translateY(-3px);
}

