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

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

    /*========== Colors ==========*/
    /* Change favorite color */
    --hue-color: 154; /*Purple 250 - Green 142 - Blue 230 - Pink 340* - teal 193 62 18 -brown 7 39 39 lightgreen-154 15% 49%/

    /* HSL color mode */
    /* --first-color: hsl(var(--hue-color), 69%, 61%); */
    --first-color: hsl(var(--hue-color), 15%, 49%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    /* --first-color-alt: hsl(var(--hue-color), 57%, 53%); */
    --first-color-alt: hsl(var(--hue-color), 11%, 61%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 98%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    /* --body-color: hsl(245, 19%, 89%); */
    --container-color: hsl(var(--hue-color), 29%, 99%);
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

    /*========== Font ==========*/
    --body-font: 'Poppins', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

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

    /*========== Margins Bottom ==========*/
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
  /* top margins */
    --mt-0-5: .5rem;
    --mt-2-5: 2.5rem;
    --mt-3: 3rem;
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
    :root {
        --big-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;
    }
}

/*========== Variables Dark theme ==========*/
body.dark-theme{
   /* HSL color mode */
    --first-color:hsl(var(--hue-color), 69%, 99%);
    --first-color-alt: hsl(var(--hue-color), 2%, 90%);
    --first-color-second: hsl(var(--hue-color), 30%, 8%);
    --title-color: hsl(var(--hue-color), 8%, 96%);
    --text-color: hsl(var(--hue-color), 2%, 85%);
    --text-color-light: hsl(var(--hue-color), 2%, 75%);
    --input-color: hsl(var(--hue-color), 20%, 1%);
    --body-color: hsl(var(--hue-color), 28%, 5%);
    --container-color:hsl(var(--hue-color),29%,16%);
}

/*========== Button Dark/Light ==========*/
.nav__btns{
  display: flex;
  align-items: center;
}
.change-theme{
  font-size: 1.2rem;
  color: var(--title-color);
  margin-right: var(--mb-1-5);
  cursor: pointer;
}
.change-theme:hover{
  color: var(--first-color);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  /* background-color: hsl(45, 33%, 80%);brown */
  color: var(--text-color);
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title, 
.section__subtitle {
  text-align: center;
}

/*==================== LAYOUT ====================*/
.container,
.swiper {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
  /* background-color: var(--first-color-second); */
}

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

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*==================== NAV ====================*/
.nav{
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo,
.nav__toggle{
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}
.nav__logo:hover{
  color: var(--first-color);
}
.nav__toggle{
  cursor: pointer;
  font-size: 1.1rem;
}
.nav__toggle:hover{
  color: var(--first-color);
}

@media  screen and (max-width:767px ){
  .nav__menu{
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0px -1px 4px rgba(0,0,0,.15);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: .3s;
  }
}

.nav__list{
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}
.nav__link{
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav__link:hover{
  color: var(--first-color);
}
.nav__icon{
  font-size: 1.2rem;  
}
.nav__close{
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}
.nav__close:hover{
  color: var(--first-color-alt);
}


/* show menu */
.show-menu{
  bottom: 0;
}

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

/* Change background header */
.scroll-header{
  box-shadow: 0 -1px 4px rgba(0,0,0,.15);
}

/*==================== HOME ====================*/
.home__container{
  gap: 1rem;
}
.home__content{
  grid-template-columns: .5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}
/* social links */
.home__social{
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
  animation:  slideFromLeft 1s ease forwards;
  opacity: 0;
}

@keyframes slideFromLeft {
    0%{
        opacity: 0;
        transform: translateX(-100%);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}


.home__social-icon{
  font-size: 1.4rem;
  color: var(--first-color);
}
.home__social-icon:hover{
  color: var(--first-color-alt);
}
/* profile pic */

.home__img{
  animation: slideFromTop 1.5s ease forwards;
  opacity: 0;
}
@keyframes slideFromTop{
  0%{
        opacity: 0;
        transform: translateY(-100%);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

.home__blob{
  width: 200px;
  /* fill: var(--first-color); */
}
.home__blob-img{
  width: 200px;
}
/* name description */
.home__data{
  grid-column: 1/3;
  animation:  slideFromBottom 1s ease forwards;
  opacity: 0;
}
@keyframes slideFromBottom {
    0%{
        opacity: 0;
        transform: translateY(100%);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}


            /* change to big or h1 later on */
.home__title{
  font-size: var(--big-font-size);
  font-weight: var(--font-semi-bold);
}
.home__subtitle{
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__location{
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
  font-size: var(--small-font-size);
}
.loc-item1{
  display: flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  color: var(--text-color);
}
.loc-item2{
  display: flex;
  align-items: center;
  gap: .3rem;
}
.home__description{
  margin-bottom: 1.8rem;
  color: var(--text-color-light);
}


/*==================== BUTTONS ====================*/
/* resume live submit given container color */
.button{
  display: inline-flex;
  background-color: var(--first-color);
  color:var(--container-color);
  padding:  .5rem .7rem;
  border-radius: .5rem;
  gap: .8rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}
.button:hover{
  background-color: var(--first-color-alt);
}
/* .button__icon{
  font-size: 1rem;
  transition: .1s;
} */
 .button--flex{
  display: inline-flex;
  align-items: center;
 }
 .button--small{
  padding: .75rem 1rem;
 }

/*==================== ABOUT ====================*/
.about__description{
  text-align: center;
  margin-bottom: var(--mb-1-5);
  color: var(--text-color-light);
}
/* clg proj intern flex */
.about__info{
  display: flex;
  justify-content: space-evenly;
}
/* 2 10 0 */
.about__info-title{
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}
.about__info-name{
  font-size: var(--normal-font-size)
}
/* for keeping in center */
.about__info-title,
.about__info-name{
  display: block;
  text-align: center;
}

/*==================== SKILLS ====================*/
.skill__description{
  text-align: center;
  margin-bottom: var(--mb-1-5);
}
/* fbt and img */
.skill__title{
  transition: transform 0.25s ease;
}
.skill__title:hover{
  transform: translateX(8px);
}

.skill-img{
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 15px 0 30px 0;
}
.skill-item img {
     width: 75px;
    height: 75px;
    background: hsl(0, 0%, 95%);  
    border-radius: 50%;    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px; 
    transition: transform 0.18s ease-out, background 0.25s ease;
    cursor: default;
}
.skill-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.skill-item p {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-color);
    text-align: center;
}  
.skill-item img:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-8px);
    /* transform: scale(1.35); */
}

/*==================== QUALIFICATION ====================*/




/*==================== PROJECTS ====================*/
.section__featured{
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
}

/* img text link */

.project__content{
  width: 390px;
  padding: 0 1.5rem ;
  display: flex ;
  flex-direction: column;
  align-items: center;
  /* justify-content: space-evenly; */
  /* margin-bottom: 2rem; */
}

.project__img{
  max-width: 325px;
  border-radius: .5rem;
  justify-self: center;
  border: 2px solid var(--first-color-alt);
}

/* title desc link */
.project__data{
  max-width: 325px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content:; */
  /* gap: 1rem; */
  /* border: 1px  solid red; */
}


.project__title{
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
 
}
.project__description{
  /* border: 1px solid black; */
  margin-bottom: var(--mb-1-5);
  text-align: center;
}

/* align the icon and live text */
/* .project__button:hover .button__icon{
  transform: translateX(.25rem);
} */

.project__button {
  margin-top: auto;
  margin-bottom: var(--mb-1-5);  
}

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


/* SWIPER */
.swiper{
  margin-top: var(--mt-2-5);
}
.swiper-pagination-button-active{
  color: var(--first-color);
  margin-bottom: 3rem;

}





/*==================== BLOGS ====================*/
.blog__description{
  text-align: center;
  margin-bottom: var(--mb-1-5);
}
.coming-soon{
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    text-align: center;
    /* margin-bottom: 10rem ; no need bcz section will automatically give padding */
}



/*==================== CONTACT ME ====================*/
.contact__container{
  row-gap: 3rem;
}
.contact__information{
  display: flex;
  margin-bottom: var(--mb-1-5);
}
.contact__icon{
  margin-right: var(--mb-0-75);
  font-size: 1.8rem;
  color: var(--first-color);
}
.contact__title{
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.contact__subtitle{
  font-size: 1.1rem;
  font-weight: var(--font-medium);
  color: var(--title-color);
}

/* message section */

/* .contact__content{
  change bg color
  background-color: var(--input-color);
  border-radius: .5rem;
  padding: .75rem 1rem .25rem;
} */

.contact__label{
  display: block;
  margin-bottom: .6rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}
.contact__input{
  width: 100%;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  /* change bg color */
  background-color: var(--input-color);
  color: var(--text-color);
  outline: none;
  padding: .25rem .5rem .5rem .25rem;
  border: 1px solid hsl(0, 1%, 31%);
  border-radius: 6px;
}

.contact__content textarea {
    min-height: 130px;
    resize: vertical;
}
#contactSubmitBtn{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .7rem;
  border: none;
  font-size: var(--normal-font-size);
}
.contact__message{
  position: absolute;
  margin-top: 1rem;
  font-size: var(--small-font-size);
}

.reveal{
  opacity: 0;
  transform: translateY(100%);

  animation: slideUp linear  forwards;
  animation-timeline: view();
  animation-range: entry 5% cover 35%;
}
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*==================== FOOTER ====================*/
.footer{
  padding-top: 2rem;
  border-top: 1px solid hsl(0, 11%, 66%);
}
.footer__container{
  row-gap: 2.5rem;
}
.footer__bg{
  /* background-color: hsl(0, 100%, 74%); */
  padding: .5rem 0 3rem;
}

/* links */
.footer__links{
  display: flex;
  flex-direction: column;
  row-gap: 1.3rem;
}

.footer__link:hover{
  color: var(--first-color-alt);
}
.footer__social{
  font-size: 1.2rem;
  margin-right: var(--mb-1-5);
}
.footer__social:hover{
  color: var(--first-color-alt);
}

.footer__copy{
  font-size: var(--small-font-size);
  text-align: center;
  color:var(--text-color-light);
  margin-top: var(--mb-3);
}

.footer__link,
.footer__social{
  color: var(--title-color);
}



/* Show scroll */


/*========== SCROLL BAR ==========*/


/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width:370px) {
  .container{
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  /* navbar */
  .nav__menu{
    padding: 2rem .25rem 4rem;
  }
  .nav__list{
    column-gap: 0;
  }
  /* home */
  .home__content{
    grid-template-columns: .25fr 3fr;
  }
  .home__blob{
    width: 180px;
  }
  /* .home__title{
    font-size: 2.5rem;
  } */

  /* skill */
  .skill__title{
    font-size: var(--normal-font-size);
  }
  .skill-item p{
    font-size: .7rem;
  }
  /* project */
  .portfolio section{
    margin:auto 1rem;
  }
  .project__img{
   max-width: 260px;
  }
  .project__data{
    width: 260px;
  }

}

/* For medium devices */
@media screen and (min-width:568px) {
  /* home */
  .home__content{
    grid-template-columns: max-content 1fr 1fr;
  }
  .home__social{
    animation: slideFromLeft 2s ease forwards;
    opacity: 0;
  }

  @keyframes slideFromLeft {
    0%{
        opacity: 0;
        transform: translateX(-100%);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

  .home__data{
    grid-column: initial ;
    animation: slideFromLeft 1s ease forwards;
    opacity: 0;
  }

  @keyframes slideFromLeft {
    0%{
        opacity: 0;
        transform: translateX(-100%);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

  .home__img{
    order: 1;
    justify-self: center;
    margin-bottom: 6rem;
    animation: slideFromRight 1s ease forwards;
    opacity: 0;
  }

  @keyframes slideFromRight {
    0%{
        opacity: 0;
        transform: translateX(100%);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}


  /* abt */
  .about__container{
    grid-template-columns: repeat(2,1fr);
  }
  .about__description{
    margin-top: 1rem;
    text-align: start;
  }
  .about__info{
    margin-top: 2rem;
  }
  /* skills img */

  .skill__title{
    font-size: var(--h3-font-size);
  }
  .skill-item img {
    width: 59px;
    height: 59px;
    object-fit: contain;
  }  

  /* proj */

    /* both side margins */
   .swiper{
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
   }

   /* columns */
   .swiper-wrapper{
    display: flex;
    justify-content: center;
    /* align-items: stretch; */
    align-items: center;
    flex-direction: column;
    gap: 2.5rem;
  } 

  /* gives max width same as projcon */
  .swiper-slide{
    width: 100% !important;
     /* max-width: 768px; */
    /* in big screen do this and medium keep project content maxwidth  */
  }

  /* contents */
  .project__content{
    max-width: 660px;
    padding: 0;
    border: 1px solid var(--text-color-light);
    border-radius: .6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    overflow: hidden;
  }
  /* img full size */
  .project__img{
  width: 100%;    
  height: 100%;    
  }

  .project__img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: .6rem 0 0 .6rem;
  }
  /* padding to text only */
  .project__data{
    padding: 1rem;
    border-left: 1px solid var(--text-color-light);
    /* margin-top: 1.5rem; */
    /* padding-top: 2rem; */
    /* padding: 1rem; */
    /* column-gap: 0; */
  }
  /* .project__description{
    text-align: start;
  } */
  /* live button padding */
  .project__button{
    padding: .5rem 1rem;
    margin-bottom: var(--mb-0-5);
  }


  .swiper-pagination{
    display: none;
  }
  /* contact footer */
  .contact__container,
  .footer__container{
    grid-template-columns: repeat(2,1fr);
  }

  /* footericon row */
  /* .footer__links{
    display: flex;
    flex-direction: row;
    gap: 2rem;
  } */
  
}
  
.reveal{
  opacity: 0;
  transform: translateY(100%);

  animation: slideUp linear  forwards;
  animation-timeline: view();
  animation-range: entry 20% cover 40%;
}
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media screen and (min-width:768px) {
    .container,
    .swiper{
      margin-left: auto;
      margin-right: auto;
    }

    body{
      margin: 0;
    }
    .section{
      padding: 6rem 0 2rem;
    }
    /* bigscreen everything left side and max 768px */
    .section__title,
    .section__featured,
    .section__subtitle{
      max-width: 768px;
      margin-left: auto;
      margin-right: auto;
      text-align: start;
    }
    /* skill + blog */
    .skill__description{  
      text-align: start;
    }
    

    /* project  2 2 */
    
    .swiper-wrapper{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 4rem;
      /* align-items: stretch; */
    }

    /* proj img make it squarish*/
    .project__content{
      max-width:fit-content;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border: none;
    }
    .project__data{
      border: none;
      /* border-top: 1px solid var(--text-color); */
      padding: 1rem;
    }
    .project__img {
      width: 100%;
      height: 220px;
      flex-shrink: 0;
      /* padding: 0;
      margin: 0; */
    }
    .project__img img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* checking in left side */
    


    .section__subtitle{
      margin-bottom: 4rem;
    }

    /* bcz no section subtitle in abt*/
    .about__data{
      margin-top: 2rem;
    }
    /* nav */
    .header{
      top: 0;
      bottom: initial;
    }
    .header,
    .main,
    .footer__container{
      padding: 0 1rem;
    }

    .nav{
      height: calc(var(--header-height) + 1.5rem);
      column-gap: 1rem;
    }
    .nav__icon,
    .nav__close,
    .nav__toggle{
      display: none;
    }
    .nav__list{
      display: flex;
      column-gap: 2rem;
    }

    .nav__menu{
      margin-left: auto;
    }
    .change-theme{
      margin-left: 1.5rem;
    }

    /* homesection */
    .home__container{
      row-gap:5rem ;
    }
    .home__content{
      padding-top: 5.5rem;
      column-gap: 2rem;
    }
    .home__blob{
      width: 270px;
    }
    .home__img{
      margin-bottom: 3rem;
    }
    /* about */
    .about__container{
      column-gap: 5rem;
    }
    .about__info{
      justify-content: space-between;
    }
    .contact__inputs{
      display: grid;
      grid-template-columns: repeat(2,1fr);
    }



    /* footer */

    /* .footer__container{ noneedbczdonewithfooterlinkandsocial
      display: flex;
      justify-content: space-between;
    } */

    /* noborder in  laptop */
    .footer{
      border: none;
    }
    .footer__bg{
      background-color:rgba(174, 136, 212, 0.312) ;
      padding: 3rem 0  3.5rem;
    }
    .footer__links{
      flex-direction: row;
      column-gap: 2rem;
    }
    .footer__socials{
      justify-self: flex-end;
    }

    .footer__copy{
      margin-top: 4rem;
    }


}


/* For large devices */
@media screen and (min-width:1024px) {
  .header,
  .main,
  .footer__container{
    padding: 0;
  }
  .home__blob{
    width: 320px;
  }
  .home__social{
    transform: translateX(-6rem);
  }

  /* proj */
  /* .swiper{
    border: 1px solid rgb(0, 0, 0);
  } */
  /* gap more */
  .swiper-wrapper{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap:7rem;
  }

  /* wide */
  .contact__form{
    width: 430px;
  }


  .nav__logo{
    font-size: var(--h3-font-size);
  }






}