* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: poppins;
}

body {
  background-color: #e9e0e0;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.header {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Botão menu hamburguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  gap: 6px;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* Efeito de abrir (transforma em X) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* Animação Hamburguer */
.menu-toggle {
  width: 30px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Transformação ao abrir */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Animação para o menu (já está parcialmente feito) */
.nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Menu padrão em desktop */
.nav ul {
  display: flex;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  gap: 6px;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* Efeito X ao abrir */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
  }

  .nav.open {
    max-height: 300px;
  }

  /* Oculta a nav no topo no mobile */
  .nav {
    display: block;
  }
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  padding: 0 30px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #555;
}
.bolinha-verde {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #099b46; /* verde */
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.nav-contact-btn {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid #333;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.nav-contact-btn:hover {
  color: #f9f9f9;
  background: linear-gradient(0deg, rgb(250, 20, 97) 0%, rgb(196, 4, 87) 100%);
  transition: background-color 0.3s;
}

.hero {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: #c31432; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #240b36,
    #c31432
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #240b36,
    #c31432
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: left;
  height: 90vh;
}

.hero-content {
  flex-wrap: wrap;
  width: 50vw;
}

.hero h1 {
  font-size: 3.8em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 78px;
}

.hero p {
  font-size: 1.2em;
  font-weight: 200;
  margin-bottom: 40px;
}
.cta-btn {
  font-size: 16px;
  font-weight: 400;
  padding: 8px 16px;
  border: 2px solid #f9f9f9;
  border-radius: 4px;
  text-decoration: none;
  color: #f9f9f9;
  background-color: rgb(40, 37, 243);
  transition: all 0.3s ease;
}

.social-links i {
  color: floralwhite;
  text-decoration: none;
  font-size: 28px;
  padding-right: 8px;
  transition: all 0.3s ease;
}
.mail {
  color: #f9f9f9;
  font-weight: 300;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-hero {
  margin-top: 100px;
  padding: 0 20px;
  border-radius: 4px;
  display: flex;
  align-content: space-around;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta-btn {
  margin: 20px;
}
.cta-hero p {
  font-size: 0.9rem;
  font-weight: 500;
}

/*PROJECT SECTION*/
.portfolio-section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
}

.portfolio-subtitle {
  color: #371152;
  font-size: 1rem;
  margin: 10px 0 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.portfolio-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

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

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.2rem;
  color: #240b36;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 0.95rem;
  color: #240b36;
  margin-bottom: 16px;
}
/*
  Este é um comentário
  que pode ocupar várias linhas
  sem problemas.
*/
.project-btn {
  color: #ab2346;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.project-btn:hover {
  background-color: #821934;
  color: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
}

/*SERVICE SECTION*/
.services {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: auto;
  padding: 60px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 12px 12px 0 0;
}
.gradient-text {
  font-size: 32px;
  text-align: center;
  color: #240b36;
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  width: 300px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #cbc3cf;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: #aba8ad;
  transform: translateY(-5px);
}

.service-card h3 {
  color: #240b36;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #444;
}

.service-card a {
  background: #c31432; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #240b36,
    #c31432
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #240b36,
    #c31432
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: white;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
/*TESTEMONIAL SECTION*/
.testimonials {
  max-width: 100vw;
  padding: 80px 20px;
  text-align: center;
  background-color: #240b36;
  color: #e9e0e0;
}
.gradient-text2{
  color: #fff;
  padding-bottom: 30px;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.testimonial {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  display: block;
  opacity: 1;
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 10px;
}

.testimonial h4 {
  font-weight: 600;
}

.carousel-controls {
  margin-top: 20px;
}

.carousel-controls .dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-controls .dot.active {
  background-color: #4b635e;
}

/*ABOUT SECTION*/

.about {
  display: flex;
  max-width: 900px;
  margin: auto;
  padding: 80px 0;
}

.about-image {
  flex: 1;
  background-image: url('astro.png');
  background-size: cover;
  background-position: center;
  background-color: #2a084517;
  width: 10px;
  height: 520px;
  margin-top: 25px;
}

.about-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #2a084517;
}

.about-content h2 {
  color: #c31432;
  font-size: 0.8em;
  line-height: 18px;
  margin: 0;
}

.about-content h2 {
  font-size: 2em;
  line-height: 40px;
  margin: 10px 0;
}

.about-content p {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
}

.about-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
}

.about-content button:hover {
  background-color: #555;
}

/*CONTACT SECTION*/
.contact {
  padding: 100px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #240b36;
  color: #e9e0e0;
  line-height: 1.8;
}
.contact p {
  padding: 20px;
}
.btn {
  font-weight: 600;
  color: #fff;
  padding: 5px 15px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
  text-align: center;
  line-height: 42px;
  border: none;
  background: rgb(255, 27, 0);
  background: linear-gradient(
    0deg,
    rgba(255, 27, 0, 1) 0%,
    rgba(251, 75, 2, 1) 100%
  );
}
.btn:hover {
  color: #fff;
  background: rgb(255, 27, 0);
  background: linear-gradient(0deg, rgb(209, 22, 2) 0%, rgb(223, 70, 4) 100%);
  box-shadow: none;
}

/*FOLLOW SECTION*/
.follow-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(12, 9, 9, 0.918);
  padding: 40px;
  color: #f9f9f9;
}

.follow-me h2 {
  font-size: 1.5rem;
  font-weight: 100;
  letter-spacing: 1.5;
  padding: 20px;
}

.follow-me h3 {
  padding-top: 40px;
  font-weight: 100;
}

.follow-me p {
  font-weight: 600;
}
.social-links-footer {
  color: floralwhite;
  text-decoration: none;
  font-size: 28px;
  padding-right: 8px;
  transition: all 0.3s ease;
}

/*FOOTER SECTION*/
.footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: rgba(12, 9, 9, 0.918);
  color: #e0dbe959;
  padding: 20px;
  font-weight: 200;
  font-size: 0.8rem;
}
.line-footer {
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-content {
    padding: 20px;
    text-align: center;
    width: 100vw;
  }
  .hero h1 {
    font-size: 2em;
    line-height: 1.2;
  }
  .hero h2 {
    font-size: 1.5em;
    line-height: 1.2;
  }
  .social-links {
    display: none;
  }

  .cta-hero {
    margin-top: 40px;
  }

  .about {
    flex-direction: column;
    padding: 40px 20px;
  }

  .about-image {
    height: 300px;
    width: 100%;
  }

  .about-content {
    padding: 40px;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 40px;
  }
  .project-card {
    padding: 20px;
    border-radius: 4px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .services {
    padding: 60px;
  }
  .contact {
    padding: 30px 20px;
    text-align: center;
  }

  .contact h2 {
    max-width: 100vw;
    font-size: 2.4em;
    padding: 20px 0;
  }

  .follow-me {
    padding: 20px;
  }

  .follow-me h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  .footer {
    font-size: 0.7rem;
    padding: 15px;
  }

  .project-card {
    padding-bottom: 60px;
  }

  .project-btn {
    bottom: 16px;
    right: 16px;
  }
}
