/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== HEADER CLARO =====*/
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}

.nav__logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--first-color);
  transition: color 0.3s;
}

.nav__logo:hover {
  color: var(--first-color-alt);
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  color: #333;
  font-size: 1rem;
  letter-spacing: 0.4px;
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--first-color);
}

/* Linha animada embaixo do link */
.nav__link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--first-color);
  transition: width 0.3s;
}

.nav__link:hover::after,
.active-link::after {
  width: 100%;
}

/* Toggle Button */
.nav__toggle {
  display: none;
  color: #333;
  font-size: 1.6rem;
  cursor: pointer;
}

/*===== MOBILE =====*/
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 75%;
    height: 100%;
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
    padding: 3rem 2rem;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav__toggle {
    display: block;
  }

  .show {
    right: 0;
  }
}

/*===== HOME =====*/
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f9f9f9;
  padding: 2rem;
}

.home__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

/* Texto */
.home__text {
  max-width: 600px;
}

.home__title {
  font-size: 4rem;
  line-height: 1.1;
  color: #333;
  margin-bottom: 1rem;
}

.home__title-color {
  color: #1E90FF; /* azul */
}

.home__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #555;
}

/* Botões */
.home__buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.button {
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  background-color: #1E90FF; /* azul */
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.1rem;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.button-outline {
  background-color: transparent;
  border: 2px solid #1E90FF; /* azul */
  color: #1E90FF;
}

.button-outline:hover {
  background-color: #1E90FF;
  color: #fff;
}

/* Redes sociais */
.home__social {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
}

.home__social-icon {
  font-size: 2rem;
  color: #555;
  transition: color 0.3s, transform 0.3s;
}

.home__social-icon:hover {
  color: #1E90FF; /* azul */
  transform: translateY(-5px);
}

/* Imagem */
.home__image {
  max-width: 450px;
  width: 100%;
}

.home__blob {
  width: 100%;
  fill: #87CEFA; /* azul claro */
  animation: float 6s ease-in-out infinite;
}

.home__blob-img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

/* Animações */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Responsividade */
@media screen and (max-width: 992px) {
  .home__container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .home__image {
    max-width: 350px;
  }
  .home__title {
    font-size: 3rem;
  }
  .home__subtitle {
    font-size: 1.3rem;
  }
  .home__social {
    justify-content: center;
  }
}

/* ===== ABOUT =====*/
/* Container */
.about__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

/* Imagem */
.about__img img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about__img img:hover {
    transform: scale(1.05);
}

/* Conteúdo */
.about__content {
    flex: 1;
}

/* Subtítulo */
.about__subtitle {
    font-size: 1.8rem;
    color: #1E90FF; /* azul moderno */
    margin-bottom: 1rem;
}

/* Texto */
.about__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .about__container {
        flex-direction: column;
        text-align: center;
    }

    .about__img img {
        margin-bottom: 1.5rem;
    }
}

/* ===== SKILLS =====*/
.section {
  padding: 80px 20px;
  text-align: center;
  background: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: #222;
  font-weight: 800;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #ff7a18, #af002d, #ff7a18);
  left: 20%;
  bottom: -10px;
  border-radius: 2px;
  animation: slide 2s infinite;
}

@keyframes slide {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.skills__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  justify-items: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.skills__item {
  background: linear-gradient(145deg, #ffffff, #e6f2ff);
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.skills__item::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  transform: rotate(45deg) scale(0);
  transition: transform 0.5s ease;
}

.skills__item:hover::before {
  transform: rotate(45deg) scale(1);
}

.skills__item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.skills__item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.skills__item:hover img {
  transform: scale(1.2) rotate(-10deg);
}

.skills__item span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
}

.skills__item p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
  line-height: 1.4;
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
  .section {
    background: #fff;
  }
  .skills__item {
    background: linear-gradient(145deg, #0a3649, #005d72);
    box-shadow: 0 8px 25px rgba(255,255,255,0.05);
  }
  .skills__item span, 
  .skills__item p {
    color: #eee;
  }
}

/* ===== WORK SECTION ===== */
.work.section {
  padding: 4rem 2rem;
  background: #f9fafb;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #0078ff;
  margin: 0.5rem auto 0;
  border-radius: 3px;
}

.work__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.work__item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.work__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work__item:hover img {
  transform: scale(1.05);
}

.work__content {
  padding: 1.5rem;
}

.work__content h3 {
  color: #0078ff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.work__content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ===== BUTTON STYLE ===== */
.work__button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 120, 255, 0.4);
}

.work__button:hover {
  background: linear-gradient(135deg, #00c6ff, #0078ff);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 120, 255, 0.6);
}

/* ===== CONTACT =====*/
.contact.section {
  position: relative;
  padding: 100px 20px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.contact.section::before {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -150px;
}

.contact.section::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -200px;
  animation-delay: 4s;
}

@keyframes floatBubbles {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-30px) scale(1.05); opacity: 1; }
}

/* ==== Título ==== */
.section-title {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: #0a0a0a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #007bff, #00c6ff);
}

/* ==== Caixa principal ==== */
.contact__container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.contact__container:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 123, 255, 0.15);
}

/* ==== Texto introdutório ==== */
.contact__text {
  color: #444;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* ==== Itens de contato ==== */
.contact__item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  text-align: left;
}

.contact__icon {
  font-size: 26px;
  margin-right: 15px;
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact__item:hover .contact__icon {
  background: rgba(0, 123, 255, 0.2);
  transform: scale(1.1);
}

.contact__item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  color: #111;
  font-weight: 600;
}

.contact__item p {
  color: #555;
  font-size: 0.95rem;
}

/* ==== Botão com brilho animado ==== */
.contact__button {
  display: inline-block;
  margin-top: 2.2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  color: #fff;
  padding: 14px 30px;
  border-radius: 14px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
}

/* camada de brilho */
.contact__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75px;
  width: 50px;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
}

/* animação de brilho */
@keyframes shimmer {
  0% { left: -75px; }
  50% { left: 120%; }
  100% { left: 120%; }
}

.contact__button:hover {
  background: linear-gradient(90deg, #0056b3, #00aaff);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==== Responsivo ==== */
@media (max-width: 600px) {
  .contact__container {
    padding: 2.5rem 1.8rem;
  }

  .contact__item {
    flex-direction: column;
    text-align: center;
  }

  .contact__icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .section-title::after {
    width: 45px;
  }
}

/* ===== FOOTER =====*/
.footer {
    background: linear-gradient(135deg, #003974, #0056b3);
    color: #fff;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: wrap; /* melhora a responsividade */
}

.footer__left {
    flex: 1 1 300px;
    text-align: center;
    margin-bottom: 20px;
}

.footer__title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.footer__social {
    margin-bottom: 20px;
}

.footer__icon {
    display: inline-block;
    margin: 0 12px;
    font-size: 30px;
    color: #fff;
    transition: all 0.5s ease;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.footer__icon:hover {
    color: #00ffff;
    transform: rotate(20deg) scale(1.4);
    text-shadow: 2px 2px 12px rgba(0,255,255,0.8);
    animation: shine 0.8s forwards;
}

/* Pequena animação de brilho nos ícones */
@keyframes shine {
    0% { text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
    50% { text-shadow: 1px 1px 20px rgba(0,255,255,1); }
    100% { text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
}

.footer__logo {
    max-height: 80px;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.5));
    transition: transform 0.5s ease, filter 0.5s ease;
}

.footer__logo:hover {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(4px 4px 10px rgba(0,0,0,0.6));
}

.footer__copy {
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
    }
    .footer__left, .footer__right {
        text-align: center;
    }
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}
@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }
}
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}
@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}