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

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
      Change favorite color
      Default: hsl(162, 100%, 40%)
      Orange: hsl(14, 100%, 65%) - Blue: hsl(210, 100%, 70%)
      Pink: hsl(356, 100%, 75%) - Purple: hsl(250, 100%, 75%)

      For more colors visit: https://colors.dopely.top/color-pedia
      -> Choose any color 
      -> click on tab (Color Conversion)
      -> Copy the color mode (HSL)
  */

  --hue: 162;
  --first-color: hsl(var(--hue), 100%, 40%);
  --first-color-alt: hsl(var(--hue), 56%, 35%);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 8%, 65%);
  --body-color: hsl(228, 15%, 20%);
  --container-color: hsl(228, 15%, 15%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --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: 1152px) {
  :root {
    --biggest-font-size: 4rem;
    --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;
}

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

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

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

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img,
svg {
  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;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

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

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

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

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

.nav__logo{
    color: var(--title-color);
    font-weight: var(--font-medium);
}

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

.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(0, 0%, 10%, .3);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* For safari */
    transition: right .4s;
}
}

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

.nav__link{
color: var(--title-color);
font-weight: var(--font-medium);
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 to header */
.blur-header{
  background-color: transparent;
}

.blur-header::after{
  content: '';
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 10%, .3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}
/* Active link */
.active-link{
  color: var(--first-color);
}


/*=============== HOME ===============*/
.home{
  background-color: var(--container-color);
}

.home__container{
  padding-top: 2rem;
  row-gap: 2.5rem;
}

.home__content{
  display: grid;
  row-gap: 2rem;
}

.home__data{
  text-align: center;
}

.home__subtitle,
.home__education{
  font-size: var(--bigger-font-size);
}

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

.home__title{
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
}

.home__description{
  margin-block: 1rem 1.5rem;
}

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

.home__social-link{
  display: flex;
  background-color: var(--first-color-alt);
  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;
}

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

.home__image{
  justify-self: center;
}

.home__blob{
  width: 320px;
  fill: var(--first-color);
  filter: drop-shadow(0 12px 12px hsla(var(--hue), 100%, 40%, .2));
}

.home__img{
  height: 1070px;
}



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

.button:hover{
  box-shadow: 0 8px 24px hsla(var( --hue), 100%, 40%, .25);
}


/*=============== ABOUT ===============*/
.about__container{
  row-gap: 2.5rem;
}

.about__data{
  text-align: center;
}

.about__description{
  margin-bottom: 2rem;
}

.about__image {
  justify-self: center;
}

.about__blob {
  width: 320px;
}

.about__blob path{
  stroke: var(--first-color);
}

.about__img{
  height: 1040px;
}

/*=============== SKILLS ===============*/
.skills{
  background-color: var(--container-color);
}

.skills__container{
  padding-bottom: 2rem;
  row-gap: 3.5rem;
}

.skills__data{
  text-align: center;
}

.skills__description{
  margin-bottom: 2rem;
}

.skills__content,
.skills__group{
  display: grid;
}

.skills__content{
  grid-template-columns: repeat(3, max-content);
  column-gap: 4rem;
  justify-content: center;
  align-items: baseline;
}

.skills__group{
  row-gap: 1rem;
  list-style: decimal-leading-zero;
}

.skills__item{
  font-weight: var(--font-medium);
  color: var(--title-color);
  display: flex;
  align-items: center;
  column-gap: 1rem; 
}

.skills__item::marker{
  color: var(--first-color);
}

.skills__item i{
  font-size: 2.5rem;      /* icon size */
}

/*=============== PROJECTS ===============*/
.projects__container{
  display: grid;
  gap: 2rem;
  justify-content: center;
  padding-block: 1rem;
}

/* @media screen and (min-width: 768px){
  .projects__container{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
} */

.projects__card{
  background: radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 55%),
              var(--container-color);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid hsla(0, 0%, 100%, 0.04);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.projects__card:hover{
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.75);
  border-color: hsla(var(--hue), 80%, 60%, 0.6);
}

/* image area */
.projects__img-wrapper{
  position: relative;
  height: 220px;
  overflow: hidden;
}

.projects__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .6s ease;
}

.projects__card:hover .projects__img{
  transform: scale(1.06);
}

/* hover overlay with icons */
.projects__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
}

.projects__card:hover .projects__overlay{
  opacity: 1;
  visibility: visible;
}

.projects__icons{
  display: flex;
  gap: .75rem;
}

.projects__icon{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid hsla(0,0%,100%,0.25);
  background-color: rgba(0,0,0,0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--title-color);
  transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}

.projects__icon:hover{
  background-color: var(--first-color);
  border-color: transparent;
  transform: translateY(-2px) scale(1.03);
}

/* content area */
.projects__content{
  padding: 1.5rem 1.75rem 1.75rem;
}

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

.projects__description{
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* tech tags */
.projects__tags{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.projects__tag{
  font-size: var(--smaller-font-size);
  padding: .35rem .75rem;
  border-radius: 999px;
  background-color: hsla(0,0%,100%,0.04);
  border: 1px solid hsla(0,0%,100%,0.06);
  text-transform: lowercase;
}


/*=============== CONTACT ===============*/
.contact{
  background-color: var(--container-color);
}

.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(--body-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{
  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__title span{
  color: var( --first-color);
}

.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-alt);
  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( --smaller-font-size);
  margin-top: 2rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(228, 12%, 25%) ;
}
::-webkit-scrollbar-thumb{
  background-color: hsl(228, 8%, 35%) ;
  border-radius: .5rem;
}
::-webkit-scrollbar-thumb:hover{
  background-color: hsl(228, 8%, 45%);
}


/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var( --body-color);
  padding: 6px;
  display: inline-flex;
  border-radius: .25rem;
  color: var( --first-color) ;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px hsla(228, 15%, 8%, .4);
  z-index: var( --z-tooltip);
  transition: bottom .4s, transform .4s;
}

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

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */

@media screen and (max-width: 320px){ 
  .container{ 
    margin-inline: 1rem; 
  } 
  .skills__content{ 
    grid-template-columns: max-content; 
    row-gap: 1rem; 
  } 
}

@media screen and (min-width: 350px){
  .container{
    margin-inline: 1rem;
  }

  .skills__container{
    grid-template-columns: 1fr;  
    text-align: center;
    row-gap: 2rem;
  }

  .skills__content{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    justify-items: center;
  }

  .skills__group{
    display: contents; 
  }

  .skills__item{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 0.25rem;
  }
}

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

@media screen and (min-width: 768px) {
  .nav__menu{
    width: 55%;
  }

  .home__container,
  .about__container,
  .skills__container{
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .home__data,
  .about__data,
  .skills__data
  :is(.about__data, .skills__data) :is(.section__title) {
    text-align: initial;
  }

  .home__social{
    justify-content: initial;
  }

  .home__blob,
  .about__blob{
    width: 400px;
  }

  .about__data{
    order: 1;
  }

  .projects__container{
    grid-template-columns: repeat(2, 352px);
  }
}

/* For large devices */

@media screen and (min-width: 1023px) {
  .section{
    padding-block: 7rem 2rem;
  }

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

  .nav__close,
  .nav__toggle{
    display: none;
  }
  
  .nav__list{
    flex-direction: row;
    column-gap: 3rem;
  }

  .nav__menu{
    width: initial;
  }

  .blur-header::after{
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }
}

@media screen and (min-width: 1152px){
  .container{
    margin-inline: auto;
  }
  .home__container{
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 7rem;
    padding-block: 2rem 3rem;
  }
  .home__blob{
    width: 550px;
  }
  .home__content {
    row-gap: 4.5rem
  }
  .home__description{
    margin-block: 1.5rem 2.5rem;
  }
  .home__social{
    column-gap: 1.5rem;
  }

  .about__container{
    grid-template-columns: 550px 460px;
    column-gap: 4.5rem;
    padding-bottom: 1rem;
  }
  .about__blob{
    width: 550px;
  }
  .about__description{
    margin-bottom: 3rem;
  }

  .skills__container{
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    column-gap: 6rem;
    padding-bottom: 4rem;
    align-items: center;
  }

  .skills__description{
    margin-bottom: 3rem;
    max-width: 28rem;
  }

  .skills__content{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    column-gap: 5rem;
  }

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

  .skills__item{
    font-size: var(--h3-font-size);
    white-space: nowrap;          
  }

  .projects__container{
    grid-template-columns: repeat(3, 350px);
    row-gap: 3rem;
    padding-block: 2.5rem 4rem;
  }
  .projects__button{
    font-size: var( --normal-font-size);
  }

  .contact__container{
    grid-template-columns: 680px;
    padding-block: 2.5rem 2rem;
  }
  .contact__form{
    row-gap: 1.5rem;
  }
  .contact__group{
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
  .contact__input{
    padding: 1.5rem;
  }
  .contact__form textarea{
    height: 20rem;
  }

  .footer{
    padding-block: 4.5rem 4rem;
  }
  .footer__container{
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: initial;
  }
  .footer__title{
    font-size: var( --bigger-font-size);
  }
  .footer__social{
    column-gap: 1.5rem;
  }
  .footer__copy{
    margin: 0;
    justify-self: flex-end;
  }

  .scrollup{
    right: 3rem;
  }

}
