@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* Variáveis únicas e consistentes */
:root {
  --primary-color: #0fe1fd;
  --primary-color-dark: #f5f3f3c0;
  --secondary-color: #04091d;
  --secondary-color-light: #0f1221;
  --secondary-color-dark: #03060f;
  --text-light: #94a3b8;
  --white: #ffffff;
  --max-width: 1200px;
  --gradient: linear-gradient(to right, var(--primary-color-dark), var(--primary-color));
  --transition: all 0.3s ease;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  --scroll-btn-size: 50px;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Botão de rolagem para o topo (C no rodapé) */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: var(--scroll-btn-size);
  height: var(--scroll-btn-size);
  background-image: var(--gradient);
  color: var(--secondary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(238, 152, 33, 0.4);
  text-decoration: none;
  font-weight: bold;
}

/* Mostra o botão quando rolar */
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(238, 152, 33, 0.6);
  animation: pulse 0.6s ease infinite alternate;
}

/* Responsivo: Ajusta posição em telas menores */
@media (max-width: 768px) {
  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--white);
  background-color: var(--secondary-color);
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
}

/* Container base */
.section__container {
  max-width: min(var(--max-width), 95vw);
  margin-inline: auto;
  padding: 4rem 1.5rem;
}

.section__header {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.section__subheader {
  margin-bottom: 10px;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  text-align: center;
  color: var(--primary-color-dark);
}

.section__description {
  max-width: 100%;
  margin-top: 1rem;
  margin-inline: auto;
  color: var(--text-light);
  text-align: center;
  line-height: 1.7;
  font-size: clamp(0.95rem, 3.5vw, 1rem);
}

/* Botão principal */
.btn {
  padding: 0.6rem 1.8rem;
  outline: none;
  border: none;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  color: var(--secondary-color);
  background-image: var(--gradient);
  border-radius: 5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(238, 152, 33, 0.3);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(238, 152, 33, 0.4);
}

/* Cabeçalho */
.header {
  position: relative;
  background-color: var(--secondary-color-dark);
}

.header__socials {
  display: flex;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 0.8rem;
  z-index: 1;
}

.header__socials a {
  padding: 0.4rem 0.8rem;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--secondary-color);
  background-image: var(--gradient);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(238, 152, 33, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
}

.header__socials a:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 15px rgba(238, 152, 33, 0.5);
  animation: pulse 0.6s ease infinite alternate;
}

/* Navegação */
nav {
  position: fixed;
  width: 100%;
  z-index: 10;
  background-color: rgba(3, 6, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__bar {
  max-width: min(var(--max-width), 95vw);
  margin-inline: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  transition: var(--transition);
  flex: 1;
}

.nav__header:hover {
  background-color: var(--secondary-color-light);
}

.nav__logo a {
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  font-weight: 700;
  white-space: nowrap;
}

.nav__logo a span {
  color: var(--primary-color-dark);
}

.nav__links {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 4rem 2rem 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  transform: translateX(100%);
  background-color: var(--secondary-color-light);
  transition: transform 0.5s ease;
  z-index: 20;
  overflow-y: auto;
  border-left: 4px solid var(--primary-color-dark);
}

.nav__links.open {
  transform: translateX(0);
}

.link a {
  position: relative;
  transition: var(--transition);
  font-size: clamp(1.1rem, 4.5vw, 1.3rem);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color-dark);
  transition: var(--transition);
}

.link a:hover::after {
  width: 100%;
}

.link a:hover {
  color: var(--primary-color-dark);
}

.nav__menu__btn {
  font-size: clamp(1.5rem, 6vw, 2rem);
  cursor: pointer;
  color: var(--white);
  z-index: 21;
  background: none;
  border: none;
  padding: 0.5rem;
}

.download__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: var(--gradient);
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(238, 152, 33, 0.3);
  position: relative;
  overflow: hidden;
}

.download__btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 15px rgba(238, 152, 33, 0.5);
}

/* Header principal com animação */
.header__container {
  padding-top: clamp(5rem, 15vh, 10rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.header__image img {
  max-width: min(350px, 90vw);
  margin: 0 auto;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.header__image img:hover {
  transform: rotate(3deg) scale(1.02);
}

.header__content h4 {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: 400;
  color: var(--primary-color-dark);
}

.header__content h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
  opacity: 0;
  animation: slideUp 1s ease forwards 0.5s;
}

.header__content p {
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: clamp(0.95rem, 4vw, 1rem);
  opacity: 0;
  animation: slideUp 1s ease forwards 0.8s;
}

/* Sobre mim */
.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about__image img {
  max-width: min(400px, 90vw);
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about__image img:hover {
  transform: scale(1.02);
}

.about__content .section__header {
  margin-bottom: 1rem;
  text-align: center;
}

.about__content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: clamp(0.95rem, 4vw, 1rem);
}

.about__content h4 {
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  font-weight: 400;
  color: var(--text-light);
  background-color: var(--secondary-color-light);
  border-left: 4px solid var(--primary-color-dark);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.about__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.about__btns .btn {
  white-space: nowrap;
}

.about__btns a {
  padding: 0.4rem;
  font-size: clamp(1.1rem, 5vw, 1.25rem);
  color: var(--secondary-color);
  background-image: var(--gradient);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(238, 152, 33, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  width: 44px;
  height: 44px;
}

.about__btns a:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 6px 15px rgba(238, 152, 33, 0.5);
}

/* Media Queries Adicionais */
@media (min-width: 769px) {
  .header__container,
  .about__container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .header__socials {
    right: 3rem;
  }

  .nav__links {
    position: absolute;
    top: 68px;
    left: auto;
    right: 0;
    width: auto;
    height: auto;
    padding: 1rem 2rem;
    flex-direction: row;
    justify-content: center;
    transform: translateY(-100%);
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav__links.open {
    transform: translateY(0);
  }

  .header__content {
    text-align: left;
  }

  .about__content .section__header {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .section__container {
    padding: 3rem 1rem;
  }

  .nav__bar {
    padding: 0.8rem 1rem;
  }

  .nav__header {
    padding: 0.6rem 0.8rem;
  }

  .nav__logo a {
    font-size: 1.3rem;
  }

  .header__container {
    padding-top: 8vh;
    gap: 2rem;
  }

  .header__image img {
    max-width: 85vw;
  }

  .header__content h1 {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .about__image img {
    max-width: 85vw;
  }

  .about__content h4 {
    padding: 1.2rem;
    font-size: 0.95rem;
  }

  .about__btns a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}


/* ========================================
               HABILIDADES
======================================== */

.skills__container {
  padding: clamp(3rem, 8vh, 5rem) 1rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.skills__container h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--white);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
}

.skills__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 2.5rem);
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.skill__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  min-width: clamp(100px, 25vw, 140px);
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill__item:hover {
  transform: scale(1.08) translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(15, 225, 253, 0.1);
  z-index: 2;
}

.skill__item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

.skill__item i {
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--primary-color-dark);
  margin-bottom: 0.5rem;
  transition: var(--transition);
  display: block;
}

.skill__item:hover i {
  transform: rotate(8deg) scale(1.05);
}

.skill__item span {
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

/* ========================================
               PROJETOS
======================================== */

.project__header {
  margin-bottom: clamp(2rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
}

.project__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.project__btn {
  padding: 0.5rem 1.2rem;
  margin: 0;
  border-radius: 50px;
  transition: var(--transition);
  color: var(--white);
  background: transparent;
  border: 1px solid var(--primary-color-dark);
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  cursor: pointer;
}

.project__btn:hover,
.project__btn:focus {
  background: rgba(245, 243, 243, 0.1);
  transform: translateY(-2px);
}

.project__btn.mixitup-control-active {
  color: var(--secondary-color);
  background-image: var(--gradient);
  box-shadow: 0 4px 10px rgba(238, 152, 33, 0.3);
  border-color: transparent;
}

.project__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-top: clamp(1.5rem, 4vw, 2rem);
  justify-items: center;
}

.project__card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--secondary-color-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 400px;
  will-change: transform, opacity;
}

.project__card.animate {
  opacity: 1;
  transform: translateY(0);
}

.project__card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(238, 152, 33, 0.2);
  z-index: 10;
}

.project__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.project__link img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: var(--transition);
}

.project__link:hover img {
  transform: scale(1.03);
}

.project__info {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.project__title {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1rem, 4vw, 1.1rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.project__desc {
  margin: 0;
  font-size: clamp(0.85rem, 3.5vw, 0.9rem);
  color: var(--text-light);
  line-height: 1.5;
  opacity: 0.9;
}

.project__card {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.project__card.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* ========================================
               SERVIÇOS
======================================== */

.service__grid {
  margin-top: clamp(3rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.service__card {
  position: relative;
  padding: clamp(1.5rem, 5vw, 2rem);
  padding-top: clamp(2.5rem, 7vw, 3rem);
  text-align: center;
  background-color: var(--secondary-color-light);
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow);
  cursor: pointer;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service__card:hover {
  border-color: var(--primary-color-dark);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(238, 152, 33, 0.15);
}

.service__card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

.service__card span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: clamp(0.3rem, 2vw, 0.5rem) clamp(0.5rem, 3vw, 1rem);
  font-size: clamp(1.5rem, 6vw, 2rem);
  background-color: var(--secondary-color);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  width: 60px;
  height: 60px;
}

.service__card:hover span {
  color: var(--secondary-color);
  background-image: var(--gradient);
  transform: translate(-50%, -55%) scale(1.08);
  box-shadow: 0 8px 20px rgba(18, 148, 255, 0.3);
}

.service__card h4 {
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 4vw, 1.2rem);
  font-weight: 600;
}

.service__card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: clamp(0.95rem, 3.5vw, 1rem);
  flex: 1;
}

/* ========================================
             DEPOIMENTOS (SWIPER)
======================================== */

.swiper {
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  width: 100%;
}

.swiper-slide {
  padding-block: clamp(1.5rem, 4vw, 2rem);
  background-color: var(--secondary-color-light);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0.9;
}

.swiper-slide-active {
  opacity: 1;
}

.swiper-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color-dark);
  transform: scale(1.2);
}

.client__card {
  padding: clamp(1.5rem, 5vw, 2rem) clamp(1rem, 4vw, 1.5rem);
  max-width: min(750px, 95vw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  background-color: var(--secondary-color-light);
  border-radius: 8px;
}

.client__card img {
  max-width: min(180px, 40vw);
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid var(--primary-color-dark);
  transition: var(--transition);
}

.client__card:hover img {
  transform: scale(1.03);
}

.client__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: clamp(0.95rem, 4vw, 1rem);
}

.client__card h4 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 4.5vw, 1.2rem);
  font-weight: 400;
  color: var(--primary-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.client__card h4 span {
  margin-left: 0;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  color: var(--text-light);
}

/* ========================================
          MEDIA QUERIES ADICIONAIS
======================================== */

@media (max-width: 768px) {
  .skills__grid {
    gap: 1.2rem;
  }

  .skill__item {
    min-width: 120px;
    padding: 0.8rem;
  }

  .skill__item i {
    font-size: 2.5rem;
  }

  .project__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project__info {
    padding: 1rem;
  }

  .service__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .client__card {
    padding: 1.5rem 1rem;
  }

  .client__card img {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .skills__container {
    padding: 2.5rem 1rem;
  }

  .skill__item {
    min-width: 100px;
    padding: 0.7rem;
  }

  .skill__item i {
    font-size: 2.2rem;
  }

  .skill__item span {
    font-size: 0.9rem;
  }

  .project__header {
    margin-bottom: 2rem;
    gap: 1rem;
  }

  .project__btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .service__card {
    padding: 1.5rem 1rem;
    padding-top: 2.5rem;
  }

  .service__card span {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .client__card h4 {
    font-size: 1.1rem;
  }

  .client__card p {
    font-size: 0.95rem;
  }
}

/* ========================================
                  BLOG
======================================== */

.blog__grid {
  margin-top: clamp(3rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  justify-items: center;
}

.blog__card {
  background: var(--secondary-color-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(15, 225, 253, 0.1);
}

.blog__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.blog__card:hover img {
  transform: scale(1.03);
}

.blog__card p {
  margin-bottom: 0.5rem;
  color: var(--primary-color-dark);
  font-weight: 500;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
}

.blog__card h4 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.1rem, 4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.blog__card a {
  color: var(--text-light);
  transition: var(--transition);
  font-weight: 500;
  text-decoration: none;
  padding: 0.3rem 0;
  position: relative;
  display: inline-block;
}

.blog__card a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color-dark);
  transition: width 0.3s ease;
}

.blog__card a:hover::after {
  width: 100%;
}

.blog__card a:hover {
  color: var(--primary-color-dark);
}

/* ========================================
                 CONTATO
======================================== */

.contact__form {
  max-width: min(600px, 95vw);
  margin-inline: auto;
  margin-top: clamp(3rem, 6vw, 4rem);
  display: grid;
  gap: 1rem;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  padding: 2rem;
  background: var(--secondary-color-light);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact__form .input__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 1rem;
  font-size: clamp(0.95rem, 3.5vw, 1rem);
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
  outline: none;
  border: 1px solid var(--primary-color-dark);
  border-radius: 8px;
  transition: var(--transition);
  font-family: inherit;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(15, 225, 253, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.contact__form input:focus-visible,
.contact__form textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.contact__form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact__form .btn {
  max-width: fit-content;
  margin-inline: auto;
  margin-top: 1rem;
  padding: 0.7rem 2rem;
  font-weight: 600;
}

/* =============================================
   FOOTER - ANIMAÇÕES OTIMIZADAS E RESPONSIVAS
============================================= */

/* --- Fundir variáveis :root --- */
/* (Já definidas nas partes anteriores — não duplicar) */
/* Mantemos apenas se houver override intencional */
/* Aqui, removi duplicação e mantive apenas o essencial */

.footer {
  position: relative;
  background-color: var(--secondary-color-dark);
  padding-block: clamp(4rem, 8vh, 5rem) clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  z-index: 1;
}

/* --- ONDA ANIMADA (OTIMIZADA) --- */
.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  animation: waveAnimation 15s linear infinite;
  will-change: transform;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--primary-color-dark);
}

@keyframes waveAnimation {
  0% {
    transform: translateX(0) scaleY(1);
  }
  50% {
    transform: translateX(-5%) scaleY(1.02);
  }
  100% {
    transform: translateX(0) scaleY(1);
  }
}

/* --- PARTÍCULAS FLUTUANTES (OTIMIZADAS) --- */
.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-particle {
  position: absolute;
  width: clamp(4px, 1vw, 6px);
  height: clamp(4px, 1vw, 6px);
  border-radius: 50%;
  background-color: rgba(7, 255, 255, 0.4);
  animation: floatParticle linear infinite;
  will-change: transform, opacity;
}

/* Gerado via JS na prática — aqui apenas base para fallback */
@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-20vh) translateX(100vw);
    opacity: 0;
  }
}

/* --- CONTAINER PRINCIPAL --- */
.footer__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 3rem);
  padding: 0 clamp(1rem, 5vw, 2rem);
}

.footer__col h5 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.footer__col h5::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.6s ease;
}

.footer__col h5:hover::after {
  width: 100%;
}

.footer__col p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: clamp(0.9rem, 3.5vw, 0.95rem);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer__col.animate-on-scroll p {
  opacity: 1;
  transform: translateY(0);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--secondary-color-light);
  color: var(--white);
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.footer__socials a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(8, 182, 250, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.footer__socials a:hover::before {
  width: 150px;
  height: 150px;
}

.footer__socials a:hover {
  color: var(--white);
  background: var(--gradient);
  transform: scale(1.15) rotate(4deg);
  box-shadow: 0 8px 25px rgba(17, 193, 247, 0.4);
}

.footer__col h4 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.2rem, 4.5vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.footer__col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.6s ease;
}

.footer__col h4:hover::after {
  width: 100%;
}

/* --- LINKS COM ANIMAÇÃO DE SUBLINHADO DINÂMICO --- */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.link-animation {
  position: relative;
  color: var(--text-light);
  text-decoration: none;
  font-size: clamp(0.95rem, 3.5vw, 1rem);
  transition: color 0.3s ease;
  padding: 0.3rem 0;
  display: inline-block;
  line-height: 1.5;
}

.link-animation::before,
.link-animation::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-animation::after {
  transform-origin: left;
  transition-delay: 0.1s;
}

.link-animation:hover::before,
.link-animation:hover::after {
  transform: scaleX(1);
}

.link-animation:hover {
  color: var(--primary-color);
}

/* --- COPYRIGHT --- */
.footer__copyright {
  margin-top: clamp(3rem, 6vw, 4rem);
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  line-height: 1.6;
}

.footer__copyright a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.footer__copyright a:hover {
  text-decoration: underline;
}

/* ========================================
          MEDIA QUERIES ADICIONAIS
======================================== */

@media (max-width: 768px) {
  .blog__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog__card {
    padding: 1.2rem;
  }

  .contact__form {
    padding: 1.5rem;
    margin-top: 3rem;
  }

  .footer__container {
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .footer__socials a {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .blog__card h4 {
    font-size: 1.1rem;
  }

  .contact__form input,
  .contact__form textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .footer__col h5 {
    font-size: 1.5rem;
  }

  .footer__col h4 {
    font-size: 1.2rem;
  }

  .footer__socials {
    gap: 0.8rem;
  }

  .footer__socials a {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .footer__copyright {
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
  }
}
/* =============================================
   FOOTER - EFEITO DE DIGITAÇÃO OTIMIZADO
============================================= */

.footer__bar {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  font-size: clamp(0.8rem, 3vw, 0.9rem);
  color: var(--text-light);
  border-top: 1px solid rgba(6, 193, 240, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
  line-height: 1.6;
}

.typing-text {
  display: inline-block;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.typing-text::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  animation: blink 0.8s step-end infinite;
  opacity: 0;
}

/* Animação de digitação só se o usuário não pedir redução de movimento */
@media (prefers-reduced-motion: no-preference) {
  .typing-text {
    animation: typing 4s steps(80) 1s 1 normal both;
  }

  .typing-text::after {
    opacity: 1;
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* =============================================
   MEDIA QUERIES — CONSOLIDADAS E OTIMIZADAS
============================================= */

/* --- TABLET (até 768px) --- */
@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .footer__col h5 {
    font-size: 1.6rem;
  }

  .footer__col h4 {
    font-size: 1.3rem;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer-wave {
    height: 60px;
  }

  .footer__bar {
    font-size: 0.85rem;
    padding: 1.5rem 1rem 1rem;
  }

  .typing-text {
    font-size: 0.85rem;
  }
}

/* --- MOBILE PEQUENO (até 480px) --- */
@media (max-width: 480px) {
  .footer {
    padding-block: 3rem 1.5rem;
  }

  .footer__col p {
    font-size: 0.88rem;
  }

  .footer__socials a {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .typing-text {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
  }

  .footer__bar {
    padding: 1.2rem 0.8rem 0.8rem;
  }
}

/* --- TABLET PEQUENO (481px até 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
  .contact__form .input__row {
    flex-direction: row;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__col:first-child {
    grid-column: 1 / -1;
  }
}

/* --- DESKTOP (769px+) --- */
@media (min-width: 769px) {
  .header__socials {
    display: flex;
  }

  nav {
    position: static;
  }

  .nav__bar {
    padding: 1.5rem clamp(1rem, 5vw, 2rem);
  }

  .nav__header {
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none;
    z-index: auto;
    gap: 2rem;
  }

  .header__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 0 clamp(1rem, 5vw, 2rem);
  }

  .header__content {
    padding-block: 5rem;
    text-align: left;
  }

  .about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .project__header {
    flex-direction: row;
    gap: 3rem;
  }

  .client__card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 2rem;
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__col:first-child {
    grid-column: span 2;
  }
}

/* --- DESKTOP GRANDE (1025px+) --- */
@media (min-width: 1025px) {
  .banner__container,
  .project__grid,
  .service__grid,
  .blog__grid {
    gap: 2.5rem;
  }

  .section__container {
    padding: 5rem clamp(1rem, 8vw, 5rem);
  }

  .nav__bar {
    padding: 1.5rem 5rem;
  }

  .header__container,
  .about__container {
    gap: 4rem;
  }
}

/* --- IMPRESSÃO --- */
@media print {
  .scroll-top,
  .nav__menu__btn,
  .footer-wave,
  .footer-particles,
  .typing-text::after {
    display: none !important;
  }

  .typing-text {
    animation: none !important;
    width: auto !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .section__container {
    padding: 2rem 1rem;
  }
}