@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap");
/*=========== COLORS ==========*/
:root {
  --header-height: 3.5rem;

  --hue: 180;
  --first-color: hsl(var(--hue), 80%, 48%);
  --first-color-alt: hsl(var(--hue), 80%, 44%);
  --white-color: hsl(var(--hue), 8%, 92%);
  --black-color: hsl(var(--hue), 4%, 8%);
  --gray-color: hsl(var(--hue), 4%, 50%);
  --body-color: hsl(var(--hue), 8%, 8%);
  --body-color-second: hsl(var(--hue), 8%, 10%);
  --container-color: hsl(var(--hue), 8%, 12%);


  /*========== Font and typography ==========*/
    --body-font: "Unbounded", sans-serif;
    --bigger-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;


    /*========== Font weight =========*/
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== z index ===========*/
    --z-tooltip: 10;
    --z-fixed: 100;


    /*========== Responsive typography ==========*/
    @media screen and (min-width: 1150px) {
        :root {
            --bigger-font-size: 3rem;
            --h1-font-size: 2.25rem;
            --h2-font-size: 1.5rem;
            --h3-font-size: 1.25rem;
            --normal-font-size: 1rem;
            --small-font-size: .875rem;
        }
    }
}

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

html{
    scroll-behavior: smooth;
}

body, button, input, textarea {
    font: var(--font-light) var(--normal-font-size) var(--body-font);
}

body {
    background-color: var(--body-color);
    color: var(--white-color);
}

button {
    outline: none;
    border: none;
}
h1, h2, h3, h4 {
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

/*========== Reusable CSS Classes ==========*/
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 5rem 1rem;
}

.section__title {
    text-align: center;
    font-size: var(--h1-font-size);
    color: var(--first-color);
    margin-bottom: 1.5rem;
}

.main {
    overflow: hidden;
}

/* ============== HEADER & NAV ====================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: box-shadow .4s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

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

.nav__toggle,
.nav__close {
    font-size: 1.5rem;
    cursor: pointer;
}

/*============== Navigation for mobile devices ===========*/
@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        top: -120%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        box-shadow: 0 8px 16px hsla(0, 0%, 0%, .5);
        padding-block: 5rem 4rem;
        border-radius: 0 0 1.5rem 1.5rem;
        transition: top .4s;
    }
}

.nav__list {
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.nav__link {
    position: relative;
    color: var(--white-color);
    font-weight: var(--font-medium);
    transition: color .4s, width .4s;
}

.nav__link::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--first-color);
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .4s;
}

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

.nav__link:hover::after {
    width: 60%;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/*======= Show Menu ==================*/
.show-menu {
    top: 0;
}

/*======== Add shadow header ===========*/
.shadow-header {
    box-shadow: 0 2px 16px hsla(0, 0%, 0%, .5);
}
/*======= Active link ====================*/

/*================= HOME ====================*/
.home__container {
    row-gap: 4rem;
    padding-block: 2.5rem 2rem;
}

.home__content {
    position: relative;
    justify-self: center;
}

.home__image {
    width: 240px;
    height: 240px;
    background-color: var(--white-color);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border: 5px solid var(--first-color);
    box-shadow: 0 8px 32px hsla(var(--hue), 80%, 48%, .3);
}

.home__img {
    width: 200px;
    filter: drop-shadow(0 4px 16px hsla(0, 0%, 0%, .2));
}

.home__social {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2.5rem;
    display: grid;
    align-content: center;
    row-gap: 1.5rem;
}

.home__link {
    color: var(--white-color);
    font-size: 1.5rem;
    transition: transform .4s, color .4s;
}

.home__link:hover {
    transform: translateY(-.25rem);
    color: var(--first-color);
}

.home__data {
    text-align: center;
    row-gap: 1rem;
}

.home__subtitle span {
    color: var(--first-color);
}

.home__title {
    font-size: var(--bigger-font-size);
}

.home__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 2rem;
}

/*================== BUTTONS ===================*/
.button {
    display: inline-flex;
    justify-content: center;
    background-color: var(--first-color);
    color: var(--black-color);
    font-weight: var(--font-medium);
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    transition: box-shadow .4s, color .4s;
}

.button:hover {
    box-shadow: 0 8px 24px hsla(var(--hue), 80%, 48%, .3);
}

.button__ghost {
    background-color: var(--body-color);
    color: var(--white-color);
    border: 2px solid var(--first-color);
}

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

/*==================== ABOUT ================================ */
.about {
    background-color: var(--body-color-second);

}
.about__container {
    row-gap: 4rem;
}

.about__content{
    display: grid;
    row-gap: 3rem;
}

.about__data {
    text-align: center;
}

.about__description {
    margin-bottom: 3rem;
    line-height: 1.9rem;
}



.about__image {
    width: 240px;
    height: 240px;
    background-color: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    justify-self: center;
    box-shadow: 0 8px 32px hsla(var(--hue), 80%, 48%, .3);
}

.about__img {
    width: 200px;
    filter: drop-shadow(0 4px 16px hsla(0, 0%, 0%, .2));
}


/*==================== SKILLS ================================*/
.skills {
    margin: 6rem 0 12rem 0;
}
.skills__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}


.skills__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px hsla(var(--hue), 80%, 48%, .15);
  transition: transform .4s, box-shadow .4s;
}

.skills__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px hsla(var(--hue), 80%, 48%, .3);
}

.skills__card i {
    transition: .5s;
}

.skills__card:hover i {
    transform: translateY(-6px);
}

.skills__title {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

.skills__title i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.skills__list {
  display: grid;
  row-gap: .75rem;
}

.skills__list li {
  position: relative;
  padding-left: 1rem;
  font-size: var(--normal-font-size);
  color: var(--white-color);
}

.skills__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--first-color);
}

/*==================== PROJECTS ================================*/
.projects {
    background-color: var(--body-color-second)
}
.projects__container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.project__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px hsla(var(--hue), 80%, 48%, .15);
  transition: transform .4s, box-shadow .4s;
}

.project__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px hsla(var(--hue), 80%, 48%, .3);
}

.project__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project__content {
  padding: 1.5rem;
}

.project__title {
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: .75rem;
  position: relative;
}

.project__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--first-color);
  margin-top: .5rem;
}

.project__description {
  font-size: var(--normal-font-size);
  color: var(--white-color);
  opacity: .85;
  margin: 1rem 0 1.25rem;
  line-height: 1.6;
}

.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.project__tech span {
  background-color: var(--first-color);
  color: var(--black-color);
  font-size: var(--small-font-size);
  padding: .35rem .75rem;
  border-radius: 2rem;
}

.project__links {
  display: flex;
  gap: 1rem;
}

.project__links a {
  font-size: 1.4rem;
  color: var(--white-color);
  transition: color .3s, transform .3s;
}

.project__links a:hover {
  color: var(--first-color);
  transform: translateY(-3px);
}

/*==================== CONTACT ================================*/
.contact__container {
  row-gap: 4rem;
}

.contact__content {
  display: grid;
  row-gap: 1.5rem;
}

.contact__title {
  font-size: var(--h1-font-size);
  color: var(--first-color);
}

.contact__description {
  line-height: 1.9rem;
  color: var(--white-color);
}

.contact__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact__social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--first-color);
  display: grid;
  place-items: center;
  color: var(--white-color);
  font-size: 1.25rem;
  transition: background-color .4s, color .4s, transform .4s;
}

.contact__social-link:hover {
  background-color: var(--first-color);
  color: var(--black-color);
  transform: translateY(-4px);
}

/* Lado direito */
.contact__info {
  display: grid;
  row-gap: 1.25rem;
}

.contact__subtitle {
  font-size: var(--h3-font-size);
  color: var(--white-color);
}

.contact__text {
  line-height: 1.8rem;
}

.contact__email {
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: text-decoration .3s;
}

.contact__email:hover {
  text-decoration: underline;
}

/*==================== FOOTER ================================*/
.footer {
  background-color: var(--body-color-second);
  padding: 2.5rem 0;
}

.footer__container {
  display: grid;
  place-items: center;
}

.footer__copy {
  font-size: var(--small-font-size);
  color: var(--white-color);
  opacity: 0.7;
  text-align: center;
}

/*==================== WHATSAPP FLOAT ====================*/
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/*==================== WHATSAPP PULSE ====================*/
.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.6);
  animation: whatsapp-pulse 2s infinite;
  z-index: -1;
}

.whatsapp-float::after {
  animation-delay: 1s;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}




/*================= BREAKPOINTS ==============*/
/* For small devices */
@media screen and (max-width: 320px) {
    .container {
        margin-inline: 1rem;
    }

    .home__image,
    .about__image {
        width: 200px;
        height: 200px;
    }

    .home__img,
    .about__img {
        width: 170px;
    }
}

/* For medium devices */
@media screen and (min-width: 540px) {
    .home__container,
    .about__container {
        grid-template-columns: 400px;
        justify-content: center;
    }
}

@media screen and (min-width: 768px) {
    .home__container,
    .about__container {
        grid-template-columns: repeat(2, 350px);
        align-items: center;
    }

    .home__data,
    .about__data,
    .about__data .section__title {
        text-align: initial;
    }

    .home__buttons {
        justify-content: initial;
    }
    .contact__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    column-gap: 6rem;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
    .container {
        margin-inline: auto ;
    }

    .section {
        padding-block: 7rem 2rem;
    }

    .home__title {
        margin-bottom: 3rem;
    }

    .nav {
        height: calc(var(--header-height) + 2rem);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

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

    .home__container {
        grid-template-columns: 400px 480px;
        column-gap: 7rem;
        padding-block: 8rem 3rem;
    }

    .home__image {
        width: 400px;
        height: 400px;
        border-width: 8px;
    }

    .home__img {
        width: 340px;
    }

    .home__social {
        left: -4rem;
    }

    .home__data {
        row-gap: 1.5rem;
    }

    .home__buttons {
        margin-top: 3.5rem;
        column-gap: 1.5rem;
    }

    .about__container {
        grid-template-columns: 540px 400px;
        column-gap: 6rem;
        padding-block: 5rem 3rem;
    }

    .about__content {
        row-gap: 5rem;
    }

    .about__data .section__title {
        margin-bottom: 1.5rem;
    }

    .about__image {
        width: 400px;
        height: 400px;
        border-radius: 1.5rem;
    }

    .about__img {
        width: 350px;
    }
}
/* For 2k resolutions (2048 x 1152, 2048 x 1536) */