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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

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

body {
  background: var(--bg-color);
  color: var(--text-color);
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.header.sticky {
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 3.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
  text-decoration: none;
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  font-weight: 500;
  margin-left: 4rem;
  text-decoration: none;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

span {
  color: var(--main-color);
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Alterações para a imagem circular */
.home-img img {
  width: 25vw;
  height: 25vw; /* Garante que a altura seja igual à largura para um círculo perfeito */
  object-fit: cover; /* Recorta a imagem para preencher o círculo sem distorcer */
  border-radius: 50%; /* Torna a imagem circular */
  animation: floatImage 4s ease-in-out infinite;
  border: 0.5rem solid var(--main-color); /* Adiciona uma borda para destaque */
  box-shadow: 0 0 2rem var(--main-color); /* Adiciona sombra para um efeito flutuante */
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4rem);
  }
  100% {
    transform: translateY(0);
  }
}

.home-content p {
  font-size: 1.6rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.5s ease;
  text-decoration: none;
}

.social-media a:hover {
  background: var(--main-color);
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--second-bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.5s ease;
  text-decoration: none;
}

.btn:hover {
  box-shadow: none;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--second-bg-color);
}

.about img {
  width: 35vw;
}

.heading {
  text-align: center;
  font-size: 4.5rem;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
}

.about-content h3 {
  font-size: 2.6rem;
}

.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

.services h2 {
  margin-bottom: 5rem;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.services-container .services-box {
  flex: 1 1 30rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  transition: 0.5s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 35rem;
  position: relative;
}

.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: translateY(-1rem);
  box-shadow: 0 1rem 2rem rgba(0, 238, 255, 0.2);
}

.services-box i {
  font-size: 7rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
}

.services-box h3 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
}

.services-box p {
  font-size: 1.6rem;
  margin: 1rem 0;
}

.portfolio {
  background: var(--second-bg-color);
}

.portfolio h2 {
  margin-bottom: 4rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.portfolio-container .portfolio-box {
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem var(--bg-color);
  overflow: hidden;
  display: flex;
}

.portfolio-box img {
  width: 100%;
  transition: 0.5s ease;
  height: 100%;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}

.portfolio-layer h4 {
  font-size: 3rem;
}

.portfolio-layer p {
  font-size: 1.6rem;
  margin: 0.3rem 0 1rem;
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background: var(--text-color);
  border-radius: 50%;
  text-decoration: none;
}

.portfolio-layer a i {
  font-size: 2rem;
  color: var(--second-bg-color);
}

.portfolio-layer .download-btn {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: var(--text-color);
  color: var(--second-bg-color);
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--second-bg-color);
  border-radius: 0.8rem;
  margin: 0.7rem 0;
  border: none;
}

.contact form .input-box input {
  width: 49%;
}

.contact form textarea {
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--second-bg-color);
}

.footer-text p {
  font-size: 1.6rem;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.5s ease;
  text-decoration: none;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--second-bg-color);
}

/* Estilos do WhatsApp Contact */
.contact-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.contact-info h3 {
  font-size: 3rem;
  color: var(--main-color);
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 60rem;
}

.contact-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--second-bg-color);
  border-radius: 1.5rem;
  border: 0.1rem solid var(--bg-color);
  transition: 0.3s ease;
  min-width: 15rem;
}

.contact-feature:hover {
  border-color: var(--main-color);
  transform: translateY(-0.5rem);
}

.contact-feature i {
  font-size: 3.5rem;
  color: var(--main-color);
}

.contact-feature span {
  font-size: 1.6rem;
  color: var(--text-color);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 4rem;
  background: #25D366;
  color: #fff;
  border-radius: 5rem;
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 0 2rem rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  background: #20BA5A;
  transform: scale(1.05);
  box-shadow: 0 0 3rem rgba(37, 211, 102, 0.6);
}

.whatsapp-btn,
.whatsapp-btn:hover,
.whatsapp-btn:active,
.whatsapp-btn:visited {
  color: #fff;
}

.whatsapp-btn span {
  color: #fff;
}

.whatsapp-btn i {
  font-size: 3rem;
  color: #fff;
}

@media (max-width: 768px) {
  .contact-features {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .whatsapp-btn {
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 2rem;
  }

  .services {
    padding-bottom: 7rem;
  }

  .portfolio {
    padding-bottom: 7rem;
  }

  .contact {
    min-height: auto;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home {
    flex-direction: column;
  }

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

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

  .home-content {
    order: 2;
  }

  .home-img {
    width: 70vw;
    height: 70vw; /* Adicionado para responsividade */
    margin-top: 4rem;
  }

  .home-img img {
    width: 100%;
    height: 100%; /* Garante que a imagem preencha o container circular */
  }

  .about {
    flex-direction: column-reverse;
  }

  .about img {
    width: 70vw;
    margin-top: 4rem;
  }

  .services h2 {
    margin-bottom: 3rem;
  }

  .portfolio h2 {
    margin-bottom: 3rem;
  }

  .portfolio-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 617px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .contact form .input-box input {
    width: 100%;
  }

  .home-img {
    /* Ajustado para telas menores */
    width: 60vw;
    height: 60vw;
  }

  .about img {
    width: 90vw;
  }

  .about-content h3 {
    font-size: 2rem;
  }
}

@media (max-width: 365px) {
  .home-img {
    /* Ajustado para as menores telas */
    width: 70vw;
    height: 70vw;
  }

  .about img {
    width: 90vw;
  }

  .footer {
    flex-direction: column-reverse;
  }

  .footer p {
    text-align: center;
    margin-top: 2rem;
  }
}

/* Estilos do Modal de Serviços */
.service-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.service-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.service-modal-content {
  background: linear-gradient(135deg, var(--second-bg-color) 0%, var(--bg-color) 100%);
  margin: auto;
  padding: 0;
  border: 0.2rem solid var(--main-color);
  border-radius: 2rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 2rem 4rem rgba(0, 238, 255, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(5rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.service-modal-close {
  position: absolute;
  right: 2rem;
  top: 2rem;
  font-size: 4rem;
  font-weight: bold;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1001;
  transition: 0.3s ease;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--main-color);
  border-radius: 50%;
  color: var(--bg-color);
}

.service-modal-close:hover {
  transform: rotate(90deg);
  box-shadow: 0 0 1.5rem var(--main-color);
}

#serviceModalBody {
  padding: 4rem 3rem;
}

.service-modal-header {
  margin-bottom: 3rem;
  text-align: center;
  border-bottom: 0.2rem solid var(--main-color);
  padding-bottom: 2rem;
}

.service-modal-header i {
  font-size: 6rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  display: block;
}

.service-modal-header h2 {
  font-size: 3.5rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.service-modal-header p {
  font-size: 1.8rem;
  color: var(--text-color);
  opacity: 0.9;
}

.service-modal-description {
  margin-bottom: 3rem;
}

.service-modal-description h3 {
  font-size: 2.4rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-modal-description p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.service-modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-modal-tech span {
  background: var(--bg-color);
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-size: 1.4rem;
  border: 0.1rem solid var(--main-color);
  color: var(--main-color);
}

.service-modal-projects {
  margin-top: 3rem;
}

.service-modal-projects h3 {
  font-size: 2.4rem;
  color: var(--main-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.service-project-item {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 0.1rem solid transparent;
  transition: 0.3s ease;
  text-align: center;
}

.service-project-item:hover {
  border-color: var(--main-color);
  transform: translateY(-0.5rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 238, 255, 0.2);
}

.service-project-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.service-project-item h4 {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.service-project-item p {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.service-project-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--main-color);
  text-decoration: none;
  font-size: 1.3rem;
  transition: 0.3s ease;
}

.service-project-item a:hover {
  color: var(--text-color);
  transform: translateX(0.5rem);
}

@media (max-width: 768px) {
  .service-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  #serviceModalBody {
    padding: 3rem 2rem;
  }

  .service-modal-header h2 {
    font-size: 2.5rem;
  }

  .service-modal-header i {
    font-size: 4rem;
  }

  .service-project-list {
    grid-template-columns: 1fr;
  }

  .services-container .services-box {
    height: 30rem;
  }
}

