/*=============== GOOGLE FONTS - Insert link for typography ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Syne:wght@400..800&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --hue: 165;
  --first-color: hsl(var(--hue), 75%, 60%);
  --gradient-color: linear-gradient(90deg, hsl(var(--hue), 75%, 60%) 0%,
                                           hsl(var(--hue), 100%, 85%) 40%,
                                           hsl(var(--hue), 100%, 85%) 60%,
                                           hsl(var(--hue), 75%, 60%) 100%);
  --white-color: hsl(var(--hue), 24%, 98%);
  --black-color: hsl(var(--hue), 12%, 8%);
  --text-color: hsl(var(--hue), 4%, 70%);
  --body-color: hsl(var(--hue), 12%, 4%);
  --container-color: hsl(var(--hue), 8%, 10%);
  --border-color: hsl(var(--hue), 8%, 20%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --second-font: "Syne", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

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

/*========== Responsive typography ==========*/
@media (width >= 1150px) {
  :root {
    --biggest-font-size: 5rem;
    --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;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
input,
button,
textarea,
label {
  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;
  background: none;
}

h1, h2, h3, h4 {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--second-font);
}

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: 1rem;
}

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

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

.section__title {
  text-align: center;
  font-size: var(--bigger-font-size);
  color: var(--white-color);
  margin-bottom: 2rem;
}

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

.main {
  overflow: hidden;
}

/*=============== BLOB ===============*/
.blob-small, .blob-big {
  background-color: var(--first-color);
  border-radius: 50%;
  position: absolute;
  z-index: -1;
}

.blob-small {
  width: 100px;
  height: 100px;
  filter: blur(50px);
}

.blob-big {
  width: 150px;
  height: 150px;
  filter: blur(100px);
}

/*=============== CUSTOM CURSOR ===============*/
.cursor{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 30px;
  height: 30px;
  background-color: hsl(var(--hue), 60%, 75%);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--first-color);
  mix-blend-mode: difference;
  pointer-events: none;
  transition: transform 0.2s ease-out, left 0.2s ease-out,
                        top 0.2s ease-out, width 0.3s ease-out, height 0.3s;
}

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

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

.nav__logo{
  color: var(--white-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}

.nav__toggle{
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices <> */
@media (width <= 1150px){
  .nav__menu{
    position: fixed;
    top: 0;
    right: -120%;
    width: 80%;
    height: 100%;
    background-color: hsla(var(--hue), 8%, 10%, 0.4);
    backdrop-filter: blur(24px);
    padding: 6rem 2rem 2rem 3rem;
    z-index: var(--z-fixed);
    transition: right 0.4s;
  }
}

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

.nav__link{
  position: relative;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

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

.nav__link::after{
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--first-color);
  border-radius: 50%;
  top: 0;
  left: -1rem;
  bottom: 0;
  margin-block: auto;
  opacity: 0;
  transition: opacity 0.4s;
}

.nav__contact{
  display: inline-flex;
  background-color: var(--first-color);
  color: var(--black-color);
  padding: 1rem 2rem;
  border-radius: 4rem;
  font-weight: var(--font-semi-bold);
  transition: box-shadow 0.4s;
}

.nav__contact:hover{
  box-shadow: 0 8px 24px hsla(var(--hue), 75%, 60%, 0.3);
}

.nav__close{
  position: absolute;
  color: var(--white-color);
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

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

/* Change header styles */
.scroll-header::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(var(--hue), 8%, 10%, 0.4);
  backdrop-filter: blur(24px);
  z-index: -1;
  top: 0;
  left: 0;
}

/* Active link */
.active-link::after{
  opacity: 1;
}

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

.home .blob-small:nth-child(1){
  top: -2rem;
  left: -2rem;
}

.home .blob-small:nth-child(2){
  top: 11rem;
  right: -4rem;
}

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

.home__data{
  text-align: center;
  color: var(--white-color);
}

.home__subtitle{
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.home__title{
  font-size: var(--bigger-font-size);
  margin-bottom: 0.5rem;
}

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

.home__images{
  position: relative;
  justify-self: center;
  margin-right: 1.5rem;
}

.home__box-1,
.home__box-2,
.home__box-3{
  width: 210px;
  height: 250px;
  border-radius: 1.5rem;
}

.home__box-1{
  background-color: hsl(var(--hue), 25%, 32%);
}

.home__box-2{
  background-color: var(--white-color);
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  rotate: 5deg;
}

.home__box-3{
  background: linear-gradient(180deg,
                    hsl(var(--hue), 75%, 85%) 0%,
                    hsl(var(--hue), 16%, 27%) 100%);
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  rotate: 10deg;
}

.home__img{
  position: absolute;
  width: 190px;
  bottom: 0.5rem;
  right: -1.5rem;
  mask-image: linear-gradient(to bottom,
                              hsla(var(--hue), 16%, 27%) 70%,
                              transparent 100%);
}

.home__circle{
  position: absolute;
  right: -2rem;
  bottom: -3.5rem;
  width: 100px;
  height: 100px;
  border: 20px solid hsla(var(--hue), 24%, 4%, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.home__circle::after{
  content: '';
  width: 100px;
  height: 100px;
  position: absolute;
  mask-image: radial-gradient(circle, transparent 30px, #000 0);
  backdrop-filter: blur(4px);
  border-radius: 50%;
}

.home__arrow{
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--white-color);
  color: var(--black-color);
  font-size: 1.5rem;
  border-radius: 50%;
  z-index: 10;
}

.home__text{
  z-index: 10;
  color: var(--white-color);
  font: var(--font-semi-bold) var(--smaller-font-size) var(--second-font);
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate-text 8s linear infinite;
}

.home__text span{
  position: absolute;
  transform-origin: 0 45px;
  left: 1.85rem;
  top: -14px;
}

.home__images .blob-big{
  top: -1.5rem;
  left: 0;
  right: 0;
  justify-self: center;
}

/* Circular text animation */
@keyframes rotate-text {
  0%{
    transform: rotate(0);
  }
  100%{
    transform: rotate(360deg);
  }
}

/*=============== BUTTON ===============*/
.button{
  background: var(--gradient-color);
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  border-radius: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.button i{
  font-size: 1.5rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.button:hover i{
  transform: translateX(0.5rem);
}

/*=============== ABOUT SECTION ===============*/
.about__container{
  color: var(--white-color);
  text-align: center;
}

.about__title{
  font-size: var(--h1-font-size);
}

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

.about__description{
  margin-bottom: 1rem;
}

.about__button{
  width: 100%;
}

/*=============== WORK SECTION ===============*/
.work__card{
  position: relative;
  background-color: var(--container-color);
  padding: 1rem 1rem 3rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.work__link{
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  z-index: 5;
}

.work__data{
  z-index: 5;
}

.work__img{
  border-radius: 1rem;
  transition: transform 0.4s;
}

.work__arrow{
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--black-color);
  opacity: 0;
  transition: opacity 0.4s;
}

.work__number{
  display: block;
  font: var(--font-semi-bold) var(--biggest-font-size) var(--second-font);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.work__name{
  font-size: var(--h2-font-size);
  color: var(--white-color);
  margin-bottom: 0.5rem;
}

.work__card:hover .work__img{
  transform: scale(1.1);
}

.work__card:hover .work__arrow{
  opacity: 1;
}

.work__card .blob-big{
  top: 2rem;
  right: -2rem;
  z-index: 1;
}

/* Swiper class */
.work__swiper{
  width: 100%;
  height: 100%;
  padding-bottom: 4rem;  
}

.work .swiper-pagination-bullets{
  bottom: 0;
}

.work .swiper-pagination-bullet{
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

/*=============== SERVICES SECTION ===============*/
.services__container{
  row-gap: 2rem;
}

.services__card{
  border-bottom: 2px solid var(--container-color);
  padding-bottom: 1.5rem;
  overflow: hidden;
}

.services__button{
  width: 100%;
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  cursor: pointer;
}

.services__icon{
  color: var(--first-color);
  font-size: 2rem;
  font-weight: 10 !important;
}

.services__name{
  font-size: var(--h2-font-size);
  text-align: initial;
}

.services__arrow{
  width: 32px;
  height: 32px;
  background-color: var(--container-color);
  color: var(--white-color);
  border-radius: 50%;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  margin-left: auto;
}

.services__arrow i{
  transition: rotate 0.4s;
}

.services__description{
  margin-block: 1rem 2rem;
}

.services__list{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.services__item{
  border: 2px solid var(--first-color);
  border-radius: 4rem;
  padding: 0.375rem 0.5rem;
  color: var(--white-color);
  font: var(--font-semi-bold) var(--h3-font-size) var(--second-font);
}

.services__data{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s opacity 0.4s;
}

/* Hide services info */
.services-open .services__data{
  max-height: 500px;
  opacity: 1;
}

/* Rotate icon */
.services-open .services__arrow i{
  transform: rotate(180deg);
}

/*=============== SKILLS SECTION ===============*/
.skills__description{
  margin: 0 1rem 3rem;
  text-align: center;
}

.skills__card{
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem 1rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  overflow: hidden;
}

.skills__icon{
  font-size: 2rem;
  color: var(--first-color);
}

.skills__title{
  font-size: var(--h2-font-size);
}

.skills__list{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  z-index: 5;
}

.skills__item{
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: default;
  transition: filter 0.4s;
}

.skills__img{
  width: 20px;
  height: 20px;
}

.skills__name{
  font-size: var(--small-font-size);
  transition: color 0.4s, text-shadow 0.4s;
}

.skills__item:hover {
  filter: drop-shadow(0 0 12px var(--first-color));
}

.skills__item:hover .skills__name{
  color: var(--first-color);
  text-shadow: 0 0 12px var(--first-color);
}

.skills__card .blob-small{
  top: -5rem;
  left: 0;
  z-index: 1;
  right: 0;
  justify-self: center;
}

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

.contact__form{
  position: relative;
  row-gap: 1rem;
}

.contact__group{
  position: relative;
}

.contact__input{
  width: 100%;
  background: var(--container-color);
  color: var(--white-color);
  padding: 1.25rem;
  border-radius: 4rem;
  font-weight: var(--font-semi-bold);
  font-family: var(--second-font);
}

.contact__label{
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  pointer-events: none;
  font-weight: var(--font-semi-bold);
  font-family: var(--second-font);
  transition: opacity 0.4s;
}

.contact__input:focus ~ .contact__label,
.contact__input:valid ~ .contact__label{
  opacity: 0;
}

.contact__input:autofill{
  transition: background-color 6000s, color 6000s;
}

.contact__area{
  height: 10rem;
  border-radius: 1.5rem;
  resize: none;
}

.contact__button{
  margin-top: 1rem;
  cursor: pointer;
}

.contact__message{
  position: absolute;
  bottom: -2rem;
  color: var(--white-color);
  font-size: var(--small-font-size);
}

.contact__content{
  row-gap: 1rem;
}

.contact__link{
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact__info{
  display: flex;
  column-gap: 0.5rem;
  align-items: center;
}

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

.contact__title{
  font-size: var(--normal-font-size);
  margin-bottom: 0.25rem;
}

.contact__address{
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--second-font);
  font-style: initial;
}

.contact__arrow{
  width: 32px;
  height: 32px;
  background-color: var(--body-color);
  color: var(--white-color);
  border-radius: 50%;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  transition: background-color 0.4s, color 0.4s;
}

.contact__link:hover .contact__arrow{
  background-color: var(--first-color);
  color: var(--black-color);
}

/*=============== FOOTER ===============*/
.footer{
  position: relative;
  padding-block: 5rem 2rem;
  overflow: hidden;
}

.footer__content{
  row-gap: 2rem;
}

.footer__title{
  font-size: var(--h2-font-size);
  text-align: center;
}

.footer__content,
.footer__links,
.footer__social{
  display: flex;
}

.footer__content{
  flex-direction: column;
  row-gap: 2rem;
}

.footer__links{
  justify-content: center;
  column-gap: 2rem;
}

.footer__link{
  color: var(--text-color);
  transition: color 0.4s;
  font-weight: var(--font-semi-bold);
  font-family: var(--second-font);
}

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

.footer__social{
  justify-content: center;
  column-gap: 1.5rem;
}

.footer__social-link{
  display: block;
  color: var(--first-color);
  font-size: 1.5rem;
  transition: transform 0.4s;
}

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

.footer__copy{
  display: block;
  margin-top: 5.5rem;
  text-align: center;
  font-size: var(--smaller-font-size);
  font-family: var(--second-font);
}

.footer .blob-big{
  bottom: -1.5rem;
  left: 0;
  right: 0;
  margin-inline: auto;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: 0.6rem;
  background-color: hsl(var(--hue), 6%, 12%);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb{
  background-color: hsl(var(--hue), 6%, 20%);
  border-radius: 0.5rem;
}

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

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: hsla(var(--hue), 8%, 10% 0.4);
  color: var(--white-color);
  backdrop-filter: blur(8px);
  display: inline;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: 50%;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
}

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

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

/*=============== BREAKPOINTS ===============*/
/* For medium devices <> */
@media (width >= 540px){
  .nav__menu{
    width: 50%;
  }

  .home__container,
  .about__container,
  .services__container,
  .skills__container,
  .contact__container,
  .footer__container{
    grid-template-columns: 400px;
     justify-content: center;
  }

  .work__card{
    width: 350px;
  }

  .skills__description{
    width: 500px;
     margin-inline: auto;
  }
}

/* For large devices <> */
@media (width >= 1150px){
  .container{
    margin-inline: auto;
  }

  .section{
    padding-block: 7rem 2rem;
  }
  .section__title{
    margin-bottom: 3rem;
  }

  .blob-small{
    width: 150px;
    height: 150px;
    filter: blur(100px);
  }

  .blob-big{
    width: 250px;
    height: 250px;
    filter: blur(150px);
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
    align-items: center;
  }
  .nav__toggle,
  .nav__close{
    display: none;
  }
  .nav__menu{
    width: initial;
  }
  .nav__list{
    flex-direction: row;
    align-items: center;
    column-gap: 4rem;
  }

  .home__container{
    grid-template-columns: 800px;
  }

  .home__subtitle{
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
  }

  .home__name{
    margin-bottom: 1rem;
  }

  .home__box-1,
  .home__box-2,
  .home__box-3{
    width: 250px;
    height: 300px;
  }

  .home__img{
    width: 230px;
  }

  .home__circle{
    right: -3rem;
    bottom: -1.5rem;
  }

  .home__images .blob-big{
    top: -8rem;
  }
  
  .home .blob-small:nth-child(1){
    top: -3rem;
    left: -3rem;
  }

  .home .blob-small:nth-child(2){
    top: 21rem;
  }

  .about__container{
    grid-template-columns: 580px 380px;
     justify-content: space-between;
     align-items: center;
     text-align: initial;
  }

  .about__description{
    font-size: var(--h3-font-size);
     margin-bottom: 2rem;
  }

  .about__button{
    width: initial;
  }

  .work__card{
    max-width: 1380px;
    border-radius: 3rem;
    padding: 1.5rem 1.5rem 4rem;
  }

  .work__img{
    border-radius: 2rem;
  }

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

  .work .blob-big{
    right: -6rem;
  }

  .services__container{
    grid-template-columns: 690px;
    row-gap: 3rem;
  }

  .services__card{
    padding-bottom: 2rem;
  }

  .services__button{
    column-gap: 3rem;
  }

  .services__icon{
    font-size: 2.5rem;
  }

  .services__name{
    font-size: var(--h1-font-size);
  }

  .services__description,
  .services__list{
    padding-left: 5.5rem;
  }

  .skills__description{
    width: 700px;
  }

  .skills__container{
    grid-template-columns: 700px;
  }

  .skills__card{
    padding: 3.5rem 2rem;
    flex-direction: row;
    column-gap: 6rem;
  }

  .skills__img{
    width: 24px;
    height: 24px;
  }

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

  .skills__card .blob-small{
    top: -8rem;  }

  .contact__container{
    grid-template-columns: 450px 380px;
    align-items: center;
    column-gap: 10rem;
    padding-bottom: 3rem;
 }

 .contact__input{
  padding-block: 1.5rem;
 }

 .contact__label{
  top: 1.5rem;
 }

 .contact__area{
  height: 14rem;
 }

 .contact__content{
  row-gap: 2rem;
 }

 .footer__container{
    grid-template-columns: 600px max-content;
    justify-content: space-between;
 }

 .footer__title{
  text-align: initial;
  font-size: var(--h1-font-size);
 }

 .footer__links{
   column-gap: 4rem;
 }

 .font-social{
  column-gap: 2rem;
 }

 .footer__copy{
  margin-top: 7rem;
  font-size: var(--normal-font-size);
  text-align: initial;
 }

 .footer .blob-big{
  bottom: -15rem;
 }

 .scrollup{
  right: 3rem;
 }
}

/* For 2K resolutions <> */
@media (width >= 2048px){
  body{
    zoom: 120%;
  }
}

/* Custom cursor is hidden for mobile devices */
@media (pointer: coarse){
  .cursor{
    display: none;
  }
}
