/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
        Change favorite color
        Default: hsl(230, 55%, 55%)
        Purple: hsl(245, 55%, 55%) - Blue: hsl(210, 55%, 55%)
        Pink: hsl(340, 55%, 55%) - Green: hsl(162, 55%, 55%)
        Orange: hsl(14, 55%, 55%)

        For more colors visit: https://colors.dopely.top/color-pedia
        -> Choose any color 
        -> Click on tab (Color Conversion)
        -> Copy the color mode (HSL)
  */
  --hue: 230;
  --first-color: hsl(var(--hue), 55%, 55%);
  --first-color-light: hsl(var(--hue), 55%, 65%);
  --first-color-alt: hsl(var(--hue), 50%, 50%);
  --title-color: hsl(var(--hue), 30%, 95%);
  --text-color: hsl(var(--hue), 20%, 80%);
  --text-color-light: hsl(var(--hue), 20%, 70%);
  --body-color: hsl(var(--hue), 40%, 16%);
  --container-color: hsl(var(--hue), 40%, 20%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Syne", sans-serif;
  --biggest-font-size: 3rem;
  --big-font-size: 1.5rem;
  --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-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

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

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

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

html {
  scroll-behavior: smooth;
}

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

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

input,
button,
textarea {
  border: none;
  outline: none;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

p {
  line-height: 130%;
}

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 2rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

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

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

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-bold);
  font-size: var(--h2-font-size);
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(var(--hue), 40%, 16%, .8);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: right .4s;
  }
}

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

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

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

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

/* Show menu */
.show-menu {
  right: 0;
}

/* Add blur header */
.blur-header {
  background-color: var(--body-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  position: relative;
}

.home__container {
  padding-top: 7rem;
  row-gap: 3rem;
}

.home__name {
  font-size: var(--biggest-font-size);
  text-align: center;
}

.home__profession {
  font-size: var(--big-font-size);
  font-weight: var(--font-regular);
  text-align: center;
  margin-bottom: 1.5rem;
}

.home__image {
  justify-self: center;
}

.home__image img {
  width: 230px;
}

.home__button {
  display: flex;
  justify-content: center;
}

.home__scroll {
  position: absolute;
  bottom: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.home__scroll-link {
  display: flex;
  align-items: center;
  color: var(--title-color);
  gap: .25rem;
}

.home__scroll-text {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.home__scroll-icon {
  font-size: 1.25rem;
  transition: transform .4s;
}

.home__scroll-link:hover .home__scroll-icon {
  transform: translateY(.25rem);
}

/* Animate scroll icon */
@keyframes scroll-down {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-.25rem);
  }
  100% {
    transform: translateY(0);
  }
}

.home__scroll-icon {
  animation: scroll-down 2s infinite;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--title-color);
  padding: 1rem 1.75rem;
  border-radius: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background .4s;
}

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

/*=============== WORKS ===============*/
.work {
  padding-top: 8rem; /* Added padding to move the section down */
}

.work__container {
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
  row-gap: 2rem;
}

.work__card {
  position: relative;
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  transition: background .4s;
}

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

.work__img {
  margin-bottom: 1rem;
  border-radius: .75rem;
}

.work__title {
  font-size: var(--h2-font-size);
  margin-bottom: .5rem;
}

.work__description {
  margin-bottom: 1.25rem;
}

.work__button {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.work__button i {
  font-size: 1.25rem;
  transition: transform .4s;
}

.work__button:hover i {
  transform: translateX(.25rem);
}

/*=============== INFO ===============*/
.info__container {
  grid-template-columns: repeat(1, 1fr);
  row-gap: 2rem;
}

.info__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
  height: 100%;
}

.info__image {
  width: 60px;
  margin: 0 auto .75rem;
}

.info__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.25rem;
}

/* ABOUT */
.about__description {
  text-align: center;
}

/* EXPERIENCE */
.experience__content {
  display: grid;
  row-gap: 1.5rem;
}

.experience__data {
  text-align: left;
}

.experience__year {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--title-color);
  padding: .25rem .75rem;
  border-radius: .25rem;
  font-size: var(--small-font-size);
  margin-bottom: .5rem;
}

.experience__title {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

/* SKILLS */
.skills__content {
  display: grid;
  row-gap: 1.5rem;
}

.skills__data {
  position: relative;
  text-align: left;
}

.skills__name {
  margin-bottom: .5rem;
}

.skills__number {
  display: inline-block;
  position: absolute;
  right: 0;
  top: 0;
}

.skills__bar {
  position: relative;
  height: 5px;
  border-radius: .25rem;
  background-color: var(--body-color);
}

.skills__bar::after {
  content: '';
  position: absolute;
  height: 5px;
  border-radius: .25rem;
  background-color: var(--first-color);
}

.skills__html::after {
  width: 90%;
}

.skills__js::after {
  width: 80%;
}

.skills__react::after {
  width: 70%;
}

/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: repeat(1, 1fr);
  row-gap: 2rem;
}

.services__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem 1.75rem;
  text-align: center;
}

.services__icon {
  display: block;
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

/*=============== CONTACT ===============*/
.contact__container {
  padding-top: 1rem;
}

.contact__form,
.contact__group {
  display: grid;
  row-gap: 1rem;
}

.contact__form {
  position: relative;
}

.contact__input {
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  background-color: var(--container-color);
  color: var(--title-color);
}

.contact__input::placeholder {
  color: var(--text-color);
}

.contact__form textarea {
  height: 11rem;
  resize: none;
  margin-bottom: 2rem;
}

.contact__button {
  justify-self: center;
  cursor: pointer;
}

.contact__message {
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--container-color);
  padding-block: 3.5rem 2rem;
}

.footer__container {
  row-gap: 2rem;
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .25rem;
}

.footer__education {
  font-size: var(--normal-font-size);
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.footer__social-link {
  display: flex;
  background-color: var(--first-color);
  padding: .5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform .4s;
}

.footer__social-link:hover {
  transform: translateY(-.25rem);
}

.footer__copy {
  font-size: var(--small-font-size);
  margin-top: 2rem;
}

.footer__subtitle,
.footer__link {
  display: block;
  color: var(--title-color);
}

.footer__subtitle {
  margin-bottom: 1rem;
}

.footer__link {
  margin-bottom: .5rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(var(--hue), 8%, 38%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(var(--hue), 8%, 26%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--hue), 8%, 20%);
}

/*=============== SCROLL UP ===============*/
.scrollup{
   position: fixed;
   right: 1rem;
   bottom: -20%;
   background-color: var(--container-color);
   padding: .5rem;
   display: flex;
   border-radius: .25rem;
   color: var(--first-color);
   font-size: 1.25rem;
   z-index: var(--z-tooltip);
   transition: bottom .4s, transform .4s;
}

.scrollup:hover{
   transform: translateY(-.25rem);
}

/* Show Scroll Up*/
.show-scroll{
   bottom: 3rem;
}

/*=============== WHATSAPP BUTTON ===============*/
.whatsapp-button{
   position: fixed;
   left: 1rem;
   bottom: 3rem;
   background-color: #25d366;
   padding: .75rem;
   display: flex;
   border-radius: 50%;
   color: white;
   font-size: 1.5rem;
   z-index: var(--z-tooltip);
   transition: transform .3s, background-color .3s;
   box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover{
   transform: scale(1.1);
   background-color: #128c7e;
   box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* For medium devices */
@media screen and (min-width: 768px){
   .whatsapp-button{
      left: 2rem;
      bottom: 4rem;
   }
}

/* For large devices */
@media screen and (min-width: 1024px){
   .whatsapp-button{
      left: 3rem;
      bottom: 5rem;
   }
}

.scrollup:hover {
  transform: translateY(-.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

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

  .home__image img {
    width: 180px;
  }

  .info__card {
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .work__container,
  .info__container,
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .home__container {
    align-items: center;
  }

  .home__name,
  .home__profession {
    text-align: initial;
  }

  .home__name {
    align-self: flex-end;
  }

  .home__image {
    order: -1;
  }

  .home__button {
    justify-content: initial;
  }

  .contact__container {
    grid-template-columns: .8fr;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .home__image img {
    width: 280px;
  }

  .work__container,
  .info__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__container {
    grid-template-columns: .8fr;
    justify-content: center;
  }

  .contact__group {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    text-align: initial;
  }

  .footer__social {
    justify-content: initial;
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .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: repeat(2, 1fr);
    align-items: center;
  }
}



