/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Unbounded:wght@200..900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
         Change favorite color:

         Default (Purple): hsl(255, 60%, 64%)
         Blue: hsl(220, 60%, 64%) - Pink: hsl(300, 60%, 64%)
         Green: hsl(110, 60%, 64%) - Cyan: hsl(180, 60%, 64%)
         Orange: hsl(15, 60%, 64%) - Red: hsl(358, 60%, 64%)

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color 
         -> Copy the color mode (HSL)
  */
  --hue: 220;
  --first-color: hsl(var(--hue), 85%, 43%);
  /*  --first-color: hsl(var(--hue), 60%, 64%); */
  --first-color-alt: hsl(var(--hue), 80%, 56%);
  --first-color-alt-2: hsl(var(--hue), 60%, 56%);
  --first-color-light: hsl(var(--hue), 60%, 74%);
  --title-color: hsl(240, 8%, 95%);
  --text-color: hsl(240, 8%, 70%);
  --text-color-light: hsl(240, 8%, 50%);
  --body-color: hsl(240, 100%, 2%);
  --container-color: hsl(240, 8%, 6%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", 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 screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 2rem;
    --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,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

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

button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  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);
  margin-bottom: 3rem;
}

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

.main {
  overflow: hidden;
}

/*=============== BLOB ===============*/
/* Blob animate */
.blob-animate{
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg,
              var(--first-color-alt) 20%,
              var(--first-color-light) 100%);
  border-radius: 50%;
  position: absolute;
  filter: blur(35px);
  z-index: -1;
  animation: animateBlob 5s linear infinite;
}

@keyframes animateBlob {
  0%{
    transform: rotate(0);
  }
  100%{
    transform: rotate(360deg);
  }
} 
   

/* Blob */
.blob{
  width: 250px;
  height: 250px;
  background: linear-gradient(180deg,
              var(--first-color) 0%,
              var(--first-color-alt) 100%);
  border-radius: 50%;
  filter: blur(50px);
  position: absolute;
  z-index: -1;
}

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

}

/* Hide the custom cursor */
.hide-cursor{
  width: 0;
  height: 0;
}

/* Pre-loader */
#preloader{
  position: fixed;
  inset: 0;
  background-color: var(--body-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  perspective: 800px;
}
/* Logo Styling */
.preloader__img{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 8px 20px var(--first-color);
  animation: fall-down 1.2s ease-in-out forwards,
             spin-bounce 2.2s ease 1.2s forwards;
  transform-origin: center;
}

#content {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}

#content.show {
  opacity: 1;
  filter: blur(0);
}

/* Animate Sections */
.animate-section{
opacity: 0;
transform: translateY(100px);
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* Class added when section becomes visible */
.animate-section.visible{
  opacity: 1;
  transform: translateY(0);
}


/* First Animation */
@keyframes fall-down {
  0%{
    transform: translateY(-150vh);
  }
  100%{
    transform: translateY(0);     
  }
}

/* Second animation */
@keyframes spin-bounce {
  0% {
    transform: translateY(0) rotateY(0deg) scaleX(1) scaleY(1);
  }
  40% {
    transform: translateY(-30px) rotateY(720deg) scaleX(1.2) scaleY(0.8);
  }
  55% {
    transform: translateY(0) rotateY(1080deg) scaleX(1.05) scaleY(0.95);
  }
  70% {
    transform: translateY(-15px) rotateY(1440deg) scaleX(1.1) scaleY(0.9);
  }
  85% {
    transform: translateY(0) rotateY(1800deg) scaleX(1.03) scaleY(0.97);
  }
  100% {
    transform: translateY(0) rotateY(1800deg) scaleX(1) scaleY(1);
  }
}


/* Fade in Content */
.hidden{
  opacity: 0;
}
#content{
  transition: opacity 0.8s ease-in; 
}
.show{
  opacity: 1;
}



/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(180deg,
              var(--body-color) 60%,
              hsla(240, 100%, 2%, .0) 100%);
  z-index: var(--z-fixed);
}
.header .blob-animate{
  top: -3rem;
  left: -3rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  padding-block: 1rem;
}
.nav__logo {
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  align-self: flex-start;
  transition: color .4s;
}
.nav__logo:hover {
  color: var(--first-color);
}
.nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: .5rem;
}
.nav__link {
  color: var(--title-color);
  font: var(--font-semi-bold) var(--small-font-size) var(--second-font);
  transition: color .4s, text-shadow .4s;
}
.nav__link:hover {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/* Active link */
.active-link{
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/*=============== HOME ===============*/
.home{
  position: relative;
}
.home__container{
  position: relative;
  padding-top: 4rem;
  row-gap: 3rem;
}
.home__greeting{
  font-size: var(--h2-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}
.home__name{
  font-size: var(--biggest-font-size);
}
.home__image{
  position: relative;
  display: grid;
  overflow-y: clip;
}
.home__image .blob-animate{
  width: 250px;
  height: 250px;
  bottom: 0;
  justify-self: center;
}

.home__profile{
  width: 320px;
  justify-self: center;
}
.home__shadow, .home__info, .home__social, .home__cv{
  position: absolute;
}
.home__shadow{
  width: 100%;
  height: 375px;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg,
              hsla(240, 100%, 2%, 0) 60%,
              hsl(240, 100%, 2%) 85%);
}
.home__info{
  z-index: 2;
  bottom: -1rem;
  justify-content: center;
}
.home__split{
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}
.home__profession-1, .home__profession-2{
  font-size: var(--bigger-font-size);
  text-align: center;
  align-self: center;
  overflow: hidden;
}
.home__profession-1{
 position: relative;
 color: var(--first-color);
}
.home__profession-1::after{
  content: '';
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg,
              hsl(0, 0%, 0%, 0) 10%,
              hsla(0, 0%, 0%, 0) 60%);
  position: absolute;
  top: 0;
  left: 0;              
}
.home__profession-2{
  transform: translateY(-1rem);
}
.home__social{
  z-index: 2;
  left: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  row-gap: .75rem;
}
.home__social-link{
  color: var(--title-color);
  font-size: 1.25rem;
  transition: transform .4s, color .4s;
}
.home__social-link:hover{
  color: var(--first-color);
  transform: translateX(-.25rem);
}
.home__cv{
  z-index: 2;
  right: -2.5rem;
  bottom: 2.5rem;
  rotate: -90deg;
  color: var(--text-color-light);
  font: var(--font-medium) var(--small-font-size) var(--second-font);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  transition: color .4s;
}
.home__cv i{
  font-size: 1rem;
}
.home__cv:hover{
  color: var(--first-color);
}
/*=============== BUTTON ===============*/
.button{
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  color: var(--title-color);
  padding: 1rem 2rem;
  box-shadow: 0 0px 2px hsla(var(--hue), 60%, 64%, .5),
              inset 8px -8px 30px var(--first-color-alt-2);
  border-radius: 4rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  transition: box-shadow .4s;
  }
  .button i{
    font-weight: initial;
    font-size: 1rem;
  }
  .button:hover{
    box-shadow: 0 8px 30px hsla(var(--hue), 60%, 64%, .7),
                inset 8px -8px 30px var(--first-color-alt-2);
  }

/*=============== ABOUT ===============*/
.about{
  position: relative;
}
.about__container{
  row-gap: 3rem;
  overflow-y: clip;
}
.about__data, .section__title{
  margin-bottom: 1.5rem;
  text-align: initial;
}
.about__description{
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
}
.about__description b{
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}
.about__image{
  position: relative;
  justify-self: center;
}
.about__image .blob-animate:nth-child(1){
  top: 4rem;
  left: 4rem;
}
.about__image .blob-animate:nth-child(2){
  right: -.5rem;
  bottom: 4rem;
}
.about_profile{
  width: 220px;
}
.about__shadow{
  width: 100%;
  height: 258px;
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg,
              hsla(240, 100%, 2%, 0) 60%,
              var(--body-color) 95%);
}

/*=============== PROJECTS ===============*/
.projects .section__title{
  text-align: initial;
  margin-left: 1.5rem;
}
.projects__card{
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 3rem;
  overflow: hidden;
}
.projects__card .blob{
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}
.projects__number, .projects__data, .projects__image{
  position: relative; 
  z-index: 1;
}
.projects__number{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects__number h1{
  font-size: var(--biggest-font-size);
}
.projects__number h3{
  font-weight: var(--font-regular);
  font-size: var(--h3-font-size);
}
.projects__data{
  margin-block: 2rem;
}
.projects__title{
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}
.projects__subtitle{
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  margin-bottom: .5rem;
}

.projects__description{
  font-size: var(--small-font-size);
}

.projects__img{
  border-radius: 1.5rem;
}

.projects__button{
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 2rem;
  position: absolute;
  top: .75rem;
  right: .75rem;
  opacity: 0;
  pointer-events: none;
  transition: box-shadow .4s, opacity .4s;
}
.projects__button:hover{
  box-shadow: 0 0px 24px var(--first-color);
}
.projects__image:hover .projects__button{
  opacity: 1;
  pointer-events: initial;
}

/* Swiper class */
.projects__swiper{
  margin-inline: initial;
  padding-bottom: 2rem;
}
.projects .swiper-pagination-bullets{
  bottom: 0;
}
.projects .swiper-pagination-bullet{
  background-color: var(--first-color);
  transition: opacity .4s;
}
/*=============== Projects Popup ===============*/


.gallery-modal{
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
.gallery-modal.active{
  display: flex;
  animation: fadeIn 0.4s ease;
}

.gallery-content{
  position: relative;
  width: 80%;
  max-width: 900px;
}
.gallery-content img{
  width: 100%;
  border-radius: 1rem;
}
.gallery-close{
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}
.gallery-close:hover{
  color: black;
  transition: ease .4s;
}

.swiper-button-next,
.swiper-button-prev{
  color: #fff;
  z-index: 10;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}
.swiper-pagination-bullet-active{
  background: #fff;
  margin-top: 1rem;
}

@keyframes fadeIn{
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}


/*=============== WORK ===============*/
.work__tabs{
  background-color: var(--container-color);
  padding: 1.25rem 2rem;
  border-radius: 4rem;
  display: flex;
  justify-content: space-between;
}
.work__button{
  background: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  column-gap: .25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  cursor: pointer;
  transition: color .4s;
}
.work__button i{
  font-size: 1rem;
}
.work__button:hover{
  color: var(--first-color);
}

.work__area{
  position: relative;
  padding-left: 1rem;
}
.work__content{
  display: grid;
  row-gap: 4rem;
}

.work__card{
  display: grid;
  row-gap: 1rem;
}

.work__data{
  display: flex;
  justify-content: space-between;
}
.work__title{
  font-size: var(--h2-font-size);
  margin-bottom: .5rem;
}

.work__subtitle{
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}
.work__year{
  font-size: var(--h1-font-size);
}

.work__line{
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,
              hsla(var(--hue), 60%, 64%, 0),
              var(--first-color-alt-2));
  position: absolute;
  left: -.25rem;
}
.work__line::after{
  content: '';
  width: 16px;
  height: 16px;
  background-color: var(--first-color-alt-2);
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  left: -6px;
}

/* Show & hide sections */
.work__area [data-content]{
  display: none;
}
.work-active[data-content]{
  display: grid;
}

/* Active tab */
.work__button.work-active{
  color: var(--first-color);
}

/*=============== SERVICES ===============*/
.services__container{
  row-gap: 2rem;
}
.services__card{
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 3rem;
  display: grid;
  row-gap: 1.5rem;
  overflow: hidden;
}
.services__card .blob{
  z-index: 0;
  right: -7.75rem;
  bottom: -7.75rem;
}
.services__card .blob-2{
  left: initial;
  left: -7.75rem;
}
.services__card .blob-3{
  left: initial;
  top: -7.75rem;
}
.services__card .blob-4{
  top: -7.75rem;
  right: 18rem;
}
.services__data, .services__info{
  position: relative;
  z-index: 1;
}

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

.services__subtitle{
  font-size: var(--small-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color);
  margin-bottom: .5rem;
}

.services__skills{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .25rem;
}
.services__skill{
  background-color: var(--container-color);
  color: var(--title-color);
  border: 1px solid var(--title-color);
  padding: 4px 10px;
  border-radius: 4rem;
  font-size: var(--smaller-font-size);
  font-family: var(--second-font);
}

.services__button{
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background-color: var(--body-color);
  border: 2px solid var(--first-color);
  color: var(--title-color);
  border-radius: .5rem;
  font-size: 1.5rem;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  cursor: pointer;
}
.services__button i{
  transition: rotate .4s;
}

/* Hide services info */
.services-close .services__info{
  height: 0;
  opacity: 0;
  overflow: hidden;
}
.services__info{
  transition: height .4s, opacity .4s;
}

/* Rotate icon */
.services-open .services__button i{
  rotate: -180deg;
}
.services__card:hover{
  transform: translateY(-2px);
  /*box-shadow: 0 10px 25px hsl(var(--hue), 40%, 26%);*/
  transition: all 0.3s ease;
}
/*=============== Modal ===============*/
.home__cv.button__dl{
  display: inline-flex;
  align-items: center;
  column-gap: 5px;
  background-color: var(--first-color);
  padding: 10px 20px;
  border-radius: 12px;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: all ,3s ease;
}

.home__cv.button__dl:hover{
  background-color: var(--first-color-alt);
  transform: translateY(-2px);

}
    /*modal overlay*/
/* .resume__modal{
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
}
    /*show modal*/
/* 
.resume__modal.show{
  display: flex;
  opacity: 1;
}
.resume__image{
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, .1);
  animation: zoomIn 0.3s ease-in-out;
}
.close{
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.close:hover{
  color: #bbb;
}
.resume__actions{
  margin-top: 20px;
  display: flex;
  gap: 12px;
}
.download-btn, .view-btn{
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.2s ease;
}

.download-btn{
  background-color: #0056b3;
}
.view-btn{
  background-color: #28a745;
}
.download-btn:hover{
  background-color: #0056b3;
}
.view-btn:hover{
  background-color: #218838;
}

@keyframes zoomIn{
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
} */ 



/* Resume Button */

.resume__btn{
  margin-top: -1.5rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--first-color);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.resume__btn:hover{
  background: var(--first-color);
  color: #fff;
  transform: translateY(-3px);
}

/* Modal Layout */

.resume__modal{
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.resume__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.resume__container{
  position: relative;
  z-index: 101;
  background: var(--body-color);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 90%;
  width: 600px;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

@keyframes fadeUp {
  0%{
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.resume__preview{
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
}
/* Action buttons */

.resume__actions{
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}
.download__btn, 
.view__btn{
  padding: 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  color: #fff;
  transition: all 0.3s ease;
}
.download__btn{
  background: #007bff;
}
.download__btn:hover{
  opacity: 0.85;
  transform: translateY(-2px);
}
.view__btn{
  background: #28a745;
}
.view__btn:hover{
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Close Button */
.close__btn{
  position: absolute;
  top: -1px;
  right: 10px;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.close__btn:hover{
  transform: scale(1.2);
}

/* Active State */
.resume__modal.active{
  display: flex;
}
.resume__modal.active .resume__overlay{
  opacity: 1;
}

.resume__modal.active .resume__container{
  opacity: 1;
  transform: scale(1);
}
/* Animates when modal activates */

.resume__modal.active .resume__preview{
  animation: fadeUp 0.6s ease forwards;
}


.resume__modal.active .resume__actions{
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.2s;
}


/*=============== CONTACT ===============*/
.contact__container{
  row-gap: 4rem;
  padding-bottom: 2rem;
}
.contact .section__title{
  margin-bottom: 1rem;
}
.contact__data{
  text-align: center;
}

.contact__description{
  font-family: var(--second-font);
  margin-bottom: 1.5rem;
}
.contact__email{
  display: none;
}
.contact__button{
  cursor: pointer;
}
.contact__content{
  row-gap: 3rem;
}
.contact__info{
  row-gap: 1rem;
}
.contact__title{
  font-size: var(--h3-font-size);
  color: var(--first-color);
  text-align: center;
  margin-bottom: .5rem;
}
.contact__address{
  color: var(--title-color);
  font-style: normal;
  font-weight: var(--font-medium);
  text-align: center;
}

.contact__links{
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  row-gap: .25rem;
}
.contact__link{
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: .5rem;
  transition: transform .4s, color .4s;
}
.contact__link i{
  font-size: 1.5rem;
}
.contact__link:hover{
  transform: translateX(.40rem);
  color: var(--text-color);
}

/*=============== FOOTER ===============*/
.footer{
  position: relative;
  padding-block: 4rem 2rem;
  text-align: center;
  row-gap: 1rem;
  overflow: hidden;
}
.footer .blob-animate{
  right: -3rem;
  bottom: -3rem;
}
.footer__copy{
  color: var(--title-color);
}
.footer__copy span{
  color: var(--first-color);
}
.footer__year span{
  font-family: var(--second-font);
}

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

::-webkit-scrollbar-thumb{
  background-color: hsl(240, 6%, 20%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(240, 6%, 24%);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (min-width: 320) {
  .container {
    margin-inline: 1rem;
  }
  .blob, 
  .home__image  .blob-animate{
    width: 220px;
    height: 220px;
  }

  .projects__card{
    padding-inline: 1rem;
  }
  .section__title{
   text-align: center;
 }
 .work__tabs{
  padding-inline: 1rem;
 }
 
}

/* For medium devices */
@media screen and (min-width: 540px) {
 .home__container{
  width: 460px;
  margin-inline: auto;
 }
 .about__container, 
 .work__container,
 .services__container{
  grid-template-columns: 460px;
  justify-content: center;
 }
 .about__data, .about .section__title{
  text-align: center;
 }

 :is(.projects) .section__title{
  text-align: center;
  margin-left: 0;
 }
 .projects__card{
  width: 350px;
 }
 .work__tabs{
  width: 330px;
  justify-self: center;
 }
 .section__title{
    text-align: center;
  }

}


@media screen and (min-width: 768px) {
  .home__container{
    width: 600px;
  }
  
  .work__container{
    grid-template-columns: 600px;
  }
  .work__area{
    padding-left: 0;
  }
  .work__card{
    grid-template-columns: repeat(2, 270px);
    justify-content: center;
    column-gap: 3rem;
  }
  .work__line{
    left: 0;
    right: 0;
    margin-inline: auto;
  }
   .section__title{
    text-align: center;
  }
  .services__container{
    grid-template-columns: repeat(2, 350px);
    align-items: flex-start;
    gap: 1.5rem;
    align-items: stretch;
  }
 
}

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

  .section{
    padding-block: 7rem 2rem;  
  }
  .section__title{
    margin-bottom: 4rem;
  }
  .blob{
    width: 300px;
    height: 300px;
  }


  .nav{
    height: var(--header-height) + 2rem;
    align-items: center;
  }
  .nav__logo {
   align-self: initial;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 5.5rem;
  }

  .home__container{
    width: initial;
    padding-top: 3rem;
  }
  .home__profile{
    width: 600px;
  }
  .home__image .blob-animate{
    width: 450px;
    height: 450px;
    bottom: 2rem;
    filter: blur(50px);
  }
  .home__shadow{
    width: 700px;
    height: 700px;
    left: 0;
    right: 0;
    margin-inline: auto;
    background: linear-gradient(180deg,
              hsla(240, 100%, 2%, 0) 60%,
              hsl(240, 100%, 2%) 95%);
  }
  .home__data{
    position: absolute;
    top: 12rem;
    left: 3rem;
    z-index: 2;
  }
  .home__info{
    top: 12rem;
    right: 1rem;
    bottom: initial;
  }
  .home__split{
    font-size: var(--h2-font-size);
  }
  .home__profession-1{
    font-size: var(--biggest-font-size);
    text-align: initial;
  }
  .home__profession-2{
    font-size: var(--biggest-font-size);
    transform: translateY(-1.5rem);
  }
  .home__social{
    bottom: 3rem;
    row-gap: 1.5rem;
  }
  .home__social-link{
    font-size: 1.5rem;
  }
  .home__cv{
    font-size: var(--normal-font-size);
    rotate: 0deg;
    right: 0;
  }
  .about__container{
    grid-template-columns: repeat(2, 500px);
    align-items: center;
    column-gap: 5.5rem;
    padding-top: 2rem;
  }
  .about__data, .about__data .section__title{
    text-align: initial;
    z-index: 2;
  }
  .about__description{
    margin-bottom: 3rem;
  }
  .about__profile{
    width: 500px;
  }
  .about__image{
    order: -1;
  }
  .about__image .blob-animate{
    width: 200px;
    height: 200px;
    filter: blur(50px);
  }
  .about__image .blob-animate:nth-child(1){
    top: 4rem;
    left: 4rem;
  }
  .about__image .blob-animate:nth-child(2){
    right: -1rem;
    bottom: 3rem;
  }
  .about__shadow{
    height: 600px;
    bottom: 0;
  }

  .projects{
    padding-block: 9rem 4rem;
  }
  .projects__swiper{
    padding-bottom: 4rem;
  }
  .projects__container{
    max-width: 1380px;
  }
  .projects__card{
    width: 440px;
    padding: 2.5rem;
    border-radius: 2rem;
  }
  .projects__description, .projects__description{
    font-size: var(--normal-font-size);
  }
  .projects__img{
    border-radius: 2rem;
  }
  .projects__button{
    top: 1.5rem;
    right: 1.5rem;
  }

  .work__container{
    grid-template-columns: 1050px;
    row-gap: 3rem;
  }
  .work__content{
    row-gap: 5rem;
  }
  .work__card{
    grid-template-columns: repeat(2, 450px);
    column-gap: 9rem;
  }
  .work__title{
    font-size: var(--bigger-font-size);
  }
  .work__subtitle, .work__description{
    font-size: var(--h3-font-size);
  }
  .section__title{
    text-align: center;
  }

  .services__container{
    grid-template-columns: repeat(2, 455px);
    column-gap: 5rem;
  }

  .services__card{
    padding: 3rem 3rem 4rem 3rem;
    border-radius: 2rem;
    row-gap: 2rem;
  }
  .services__title{
    margin-bottom: 1rem;
  }
  .services__button{
    right: 2rem;
    bottom: 2rem;
  }

  .contact{
    padding-block: 9rem 4rem;
  }
  .contact__container{
    row-gap: 8rem;
  }
  .contact__description{
    font-size: var(--h2-font-size);
  }
  .contact__content{
    grid-template-columns: repeat(3, 1fr);
  }
  .contact__info{
    row-gap: 1.5rem;
    justify-self: flex-start;
  }
  .content__write{
    justify-self: end;
  }
  .content__title{
    margin-bottom: .75rem;
  }
  .contact__links{
    row-gap: .5rem;
  }
  .contact__link{
    font-size: 1.25rem;
  }

}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
  body{
    zoom: 1.4;
  }
}

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