/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(93, 54%, 54%);
  --first-color-alt: hsl(93, 50%, 48%);
  --first-color-light: hsl(93, 58%, 66%);
  --title-color: hsl(228, 8%, 98%);
  --text-color: hsl(228, 8%, 70%);
  --white-color: hsl(228, 8%, 98%);
  --black-color: hsl(228, 6%, 4%);
  --body-color: hsl(228, 6%, 8%);
  --container-color: hsl(228, 6%, 12%);
  --shadow-img: 0 0 48px hsla(93, 54%, 54%, .4);
  --gradient-card: linear-gradient(180deg,
                                hsla(93, 8%, 8%),
                                hsla(93, 40%, 30%));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --biggest-font-size: 2.25rem;
  --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: 4.25rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  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 {
  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 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: 1rem;
}

.main {
  overflow: hidden;
}

/*=============== 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,
 .nav__close,
 .nav__toggle,
 .nav__actions {
   display: flex;
   color: var(--title-color);
   cursor: pointer;

 }

 .nav__logo {
   font-weight: var(--font-semi-bold);
   column-gap: .25rem;
   align-items: center;

 }

 .nav__logo i{
  color: var(--first-color);
  font-size: 1.25rem;
  font-weight: initial;
 }

 .nav__actions{
  font-size: 1.25rem;
  column-gap: .5rem;
  align-items: center;
 }
 
/* Navigation for mobile devices */

@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(223, 24%, 6%, .2%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 80%;
    height: 100%;
    padding: 6rem 3rem 0;
    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: 1.15rem;
    right: 1.5rem;
    font-size: 1.25rem;
  }
  
/* Show menu */

.show-menu{
  right: 0;
}
/* Add blur header */
.blur-header::after{
  content: '';
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(228, 24%, 6%, .2%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px) ;
  top: 0;
  left: 0;
  z-index: -1;

}

/* Active link */

.active-link{
  color: var(--first-color);
}


/*=============== HOME ===============*/

.home__container{
  padding-top: 2.5rem;
  row-gap: 2rem;
}

.home__img{
  width: 270px;
  filter: drop-shadow(--shadow-img);
  justify-self: center;
}

.home__data{
  text-align: center;
}

.home__title{

  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.home__title span{
  color: var(--first-color);
}

.home__description{
  margin-bottom: 3rem;
}

.home__buttons{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}






/*=============== BUTTON ===============*/

.button {
  background-color: var(--white-color);
  color: var(--black-color);
  font-weight: var(--font-bold);
  padding: .5rem 1.5rem .5rem .5rem;
  border-radius: 4rem;
  display: inline-flex;
  align-items: center;
  column-gap: .75rem;
  margin-bottom: 2rem;
}

.button span {
  background-color: var(--first-color);
  padding: .5rem;
  font-size: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .4s;
}

.button:hover span{
  transform: translateX(.15rem) rotate(90deg);
}

.button__link{
  color: var(--white-color);
  font-weight: var(--font-bold);
  text-decoration: underline;
  transition: color .4s;
  white-space: nowrap;
  
}

.button__link:hover{
  color: var(--first-color);
}

/*=============== BUTTON2 ===============*/

.button2 {
  background-color: var(--white-color);
  color: var(--black-color);
  font-weight: var(--font-bold);
  padding: .5rem 1.5rem .5rem .5rem;
  border-radius: 4rem;
  display: inline-flex;
  align-items: center;
  column-gap: .75rem;
  margin-bottom: 2rem;
}

.button2 span {
  background-color: var(--first-color);
  padding: .5rem;
  font-size: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .4s;
}

.button2:hover {

  transform: scale(1.1);
  transition: transform 0.3s ease;
  filter: drop-shadow(--shadow-img);
  background-color: hsl(0, 0%, 55%);
}

.button2__link {
  color: var(--white-color);
  font-weight: var(--font-bold);
  text-decoration: underline;
  transition: color .4s;
  white-space: nowrap;

}

.button2__link:hover {
  color: var(--first-color);
}

/*=============== NEWS ===============*/

.new__data{
  text-align: center;
}

.new__container{
  row-gap: 7.5rem;
}

.new__content{
  row-gap: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.new__text,
.new__card {
  flex: 1;
  max-width: 45%;
  /* Adjust as needed */
}

.new__card{
  position: relative;
  width: 200px;
  background: var(--gradient-card);
  padding: 9rem .75rem 1.5rem .75rem;
  border: 2px solid var(--first-color-light);
  border-radius: 1.5rem;
}

.new__img{
  position: absolute;
  top: -10rem;
  left: 0;
  /* width: 40rem; */
  /* height: 20rem; */
  right: 0;
  margin: 0 auto;
  transition: transform .4s;

}

.new__title {
  font-size: var(--h2-font-size);
  text-align: center;
}

.new__card:nth-child(odd) {
  rotate: -5deg;
}

.new__card:nth-child(even) {
  justify-self: flex-end;
  rotate: 5deg;
}

.new__card .new__img {
  transform: translateY(5rem);
}




/*=============== ABOUT US ===============*/

.care__title {
  text-align: left;
  margin-bottom: 1rem;
}

.about__wrapper {
  text-align: center;
}



/*=============== SHOP ===============*/

.shop__container{

  padding-top: 6.5rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 6.5rem 1.5rem;
}


.shop__card{
  position: relative;
  background: var(--gradient-card);
  padding: 5.75rem .75rem 1.25rem .75rem;
  border: 2px solid var(--first-color-light);
  border-radius: 1rem;
}

.shop__img{
  position: absolute;
  top: -4.5rem;
  left: 0;
  right: 0;
  width: 130px;
  margin: 0 auto;
  transition: transform .4s;
}

.shop__card_title_and_price{
  text-align: center;

}

.shop__title{
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .5rem;
}

.shop__price{
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  text-align: center;
}

.shop__card:hover .shop__img{
  transform: translateY(-.5rem);
}

/*=============== GLOWY CARDS ===============*/

/* .glowy-hover-container *,
.glowy-hover-container *::after,
.glowy-hover-container *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.glowy-hover-container {
  height: 100%;
  min-height: 100vh;
}

.glowy-hover-container body {
  display: grid;
  place-items: center;
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
  background-color: #100034;
  color: #ddd;
}

.glowy-hover-container ul {
  list-style: none;
}

.glowy-hover-container main {
  max-width: 75rem;
  padding: 3em 1.5em;
} */

.card__collection {
  display: flex;
  padding-left: 3.5em;
  padding-right: 3.5em;
  justify-content: center;
}



.cards {
  position: relative;
}

.cards__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em;
}

.card {
  --flow-space: 0.5em;
  --hsl: var(--hue), var(--saturation), var(--lightness);
  flex: 1 1 14rem;
  padding: 1.5em 2em;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-items: start;
  gap: 1.25em;
  color: #eceff1;
  background-color: #2b2b2b;
  border: 1px solid #eceff133;
  border-radius: 15px;
}

.card:nth-child(1) {
  --hue: 165;
  --saturation: 82.26%;
  --lightness: 51.37%;
}

.card:nth-child(2) {
  --hue: 219;
    --saturation: 95.9%;
    --lightness: 61.76%;
}



.card:nth-child(3) {
  --hue: 338.69;
  --saturation: 100%;
  --lightness: 48.04%;
}

.card:nth-child(4) {
  --hue: 291.34;
  --saturation: 95.9%;
  --lightness: 61.76%;
}

.card:nth-child(5) {
  --hue: 45;
  --saturation: 100%;
  --lightness: 55%;
}

.card__bullets {
  line-height: 1.4;
}

.card__bullets li::before {
  display: inline-block;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='16' title='check' fill='%23dddddd'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z' /%3E%3C/svg%3E");
  transform: translatey(0.25ch);
  margin-right: 1ch;
}

.card__heading {
  font-size: 1.05em;
  font-weight: 600;
}

.card__price {
  font-size: 1.75em;
  font-weight: 700;
}

.flow > * + * {
  margin-top: var(--flow-space, 1.25em);
}

.cta {
  display: block;
  align-self: end;
  margin: 1em 0 0.5em 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #0d0d0d;
  padding: 0.7em;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  opacity: var(--opacity, 0);
  -webkit-mask: radial-gradient(
    25rem 25rem at var(--x) var(--y),
    #000 1%,
    transparent 50%
  );
  mask: radial-gradient(
    25rem 25rem at var(--x) var(--y),
    #000 1%,
    transparent 50%
  );
  transition: 400ms mask ease;
  will-change: mask;
}

.overlay .card {
  background-color: hsla(var(--hsl), 0.15);
  border-color: hsla(var(--hsl), 1);
  box-shadow: 0 0 0 1px inset hsl(var(--hsl));
}

.overlay .cta {
  display: block;
  grid-row: -1;
  width: 100%;
  background-color: hsl(var(--hsl));
  box-shadow: 0 0 0 1px hsl(var(--hsl));
}

:not(.overlay) > .card {
  transition: 400ms background ease;
  will-change: background;
}

:not(.overlay) > .card:hover {
  --lightness: 95%;
  background: hsla(var(--hsl), 0.1);
}


/*=============== CARE ===============*/

.care__container{
  padding-top: 2rem;
  row-gap: 2rem;
}

.care__img{
  width: 270px;
  filter: drop-shadow(var(--shadow-img));
  justify-self: center;
}

.care__list{
  display: grid;
  row-gap: 1rem;
}

.care__item{
  display: flex;
  column-gap: .5rem;
  align-items: flex-start;
}

.care__item i{
  font-size: 1.5rem;
  color: var(--first-color);
}


/*=============== CONTACT ===============*/

.contact__container{
  padding-top: 2rem;
  row-gap: 2rem;
}

.contact__img{
  width: 270px;
  filter: drop-shadow(--shadow-img);
  justify-self: center;

}

.contact__content{
  display: grid;
  row-gap: 2rem;
  text-align: center;

}

.contact__title{
  font-size: var(--h2-font-size);
  margin-bottom: .5rem;
}


.contact__social{
  display: flex;
  justify-content: center;
  column-gap: .75rem;
}

.contact__social a{
  color: var(--first-color);
  font-size: 1.5rem;
}

.contact__social a:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}


.contact__info{
  font-style: normal;
}



/*=============== FOOTER ===============*/

.footer{
  padding-block: 4rem 2rem;
}

.footer__container{
  row-gap: 4rem;
}

.footer__logo{
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .75rem;
}

.footer__logo i{
  color: var(--first-color);
  font-size: 1.5rem;
  font-weight: initial;
}

.footer__content{
  grid-template-columns: repeat(2, max-content);
  gap: 4rem 3rem;

}

.footer__title{
  font-size: var(--normal-font-size);
  margin-bottom: 1rem;
}

.footer__links{
  display: grid;
  row-gap: .75rem;
}

.footer__link{
  color: var(--text-color);
  transition: color .4s;
}

.footer__social{
  display: flex;
  column-gap: .75rem;
}

.footer__social-link{
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color .4s;
}

.footer__link:hover,
.footer__social-link:hover{
  color: var(--first-color);
}
.footer__copy{
  display: block;
  margin-top: 6rem;
  text-align: center;
  font-size: var(--small-font-size);
}

/*=============== SCROLL BAR ===============*/

::-webkit-scrollbar{
  width: .6rem;
  background-color: hsl(228, 4%, 15%);
}

::-webkit-scrollbar-thumb{
  background-color: hsl(228, 4%, 25%);
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(228, 4%, 35%);
}


/*=============== SCROLL UP ===============*/

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  color: var(--title-color);
  box-shadow: 0 12px 24px hsla(228, 48%, 4%, 0.5), 0 0 8px rgba(255, 255, 255, 0.3);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
  border-radius: 8px;
}

.scrollup:hover{
  transform: translateY(-.5rem);
}


/* Show Scroll Up */

.show-scroll{
  bottom: 3rem;
}
/*=============== BREAKPOINTS ===============*/

/* For small devices */

@media screen and (max-width: 320px){
  .container{
    margin-inline: 1rem;
  }

  .home__title{
    font-size: 2rem;
  }

  .home__button{
    flex-direction: column;
    row-gap: 1.5rem;
  }

  .button__link{
    padding-left: 0;
  }

  
  .shop__container{
    grid-template-columns: 160px;
    justify-content: center;
  }

  .footer__content{
    grid-template-columns: max-content;
  }


}





/* For medium devices */

@media screen and (min-width: 576px){

  .home__container,
  .new__container,
  .care__container{
    grid-template-columns: 400px;
    justify-content: center;

  }

  .shop__container{
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
  }

  .footer__content{
    grid-template-columns: repeat(3, max-content);
  }
  
}

@media screen and (min-width: 768px){

  .nav__menu{
    width: 50%;
  }

  /* .new__content{

    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    flex-direction: column;
    text-align: center;
  }

  .new__text,
  .new__card {
    max-width: 100%;
    margin-bottom: 2rem;

  }

  .new__car:nth-child(even){

    transform: translateY(10rem);
  }

  .new__img {
     max-width: none;
  } */

  .shop__container{
    grid-template-columns: repeat(3, 160px);
  }

  .footer__container{
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }


  
}

@media screen and (max-width: 375px) {
  .new__container {
    display: flex;
    flex-direction: column;
  }

  .new__card {
    order: 1;
    /* Change the order to 1 to move the image to the top */
    margin-bottom: 20px;
    /* Add some spacing between the image and the text */
  }
}



/* For large devices */

@media screen and (min-width: 1150px){
  
  .container{
    margin-inline: auto;
  }

  .section{
    padding-block: 7rem 2rem;
  }

  .section__title{
    margin-bottom: 1.5rem;
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close{
    display: none;
  }

  .nav__logo i{
    font-size: 1.5rem;
  }

  .nav__menu{
    width: initial;
  }

  .nav__list{
    flex-direction: row;
    column-gap: 3.5rem;
  }

  .nav__actions{
    font-size: 1.5rem;
    column-gap: 1rem;
  }

  .home__container{
    grid-template-columns: 480px 535px;
    align-self: center;
    column-gap: 4rem;
    padding-top: 4rem;
  }

  .home__img{
    width: 480px;
  }

  .home__data{
    text-align: initial;
  }

  .home__description{
    margin-bottom: 4.5rem;
  }

  .button{
    margin-bottom: 0rem;
  }

  .home__buttons{
    flex-direction: row;
    justify-content: initial;
    column-gap: 1.5rem;
  }

  .new__container{
    grid-template-columns: 412px 490px;
    align-items: center;
    column-gap: 7.5rem;
  }

  .new__data,
  .new__data .section__title{
    text-align: initial;
  }

  .new__content{
    row-gap: 8.5rem;
  }

  .new__title{
    font-size: var(--h3-font-size);
  }

  .shop__container{
    grid-template-columns: repeat(3, 240px);
    gap: 8.5rem 4rem;
    padding-top: 7.5rem;
  }
  .shop__card{
    padding: 10.5rem 1.5rem 2rem;
    border-radius: 1.5rem;
  }

  .shop__img{
    width: 210px;
    top: -5.5rem;
  }

  .shop__title{
    font-size: var(--h3-font-size);
  }

  .shop__price{
    font-size: var(--h2-font-size);
  }

  .care__container{
    grid-template-columns: 480px 385px;
    align-items: center;
    column-gap: 8rem;
    padding-top: 3rem;

  }

  .care__img{
    width: 480px;
  }

  .care__list{
    row-gap: 1.5rem;
  }

  .contact__container{
    grid-template-columns: 280px 480px;
    justify-content: center;
    align-items: center;
    column-gap: 8rem;
    padding-block: 3rem;
  }

  .contact__content{
    order: -1;
    text-align: initial;
    row-gap: 2.5rem;
  }

  .contact__social{
    justify-content: initial;
  }

  .contact__img{
    width: 480px;
  }

  .footer__logo{
    margin-right: 1.5rem;
  }

  .footer__logo i{
    font-size: 2rem;
  }

  .footer__content{
    column-gap: 5.5rem;
  }

  .footer__title{
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }

  .footer__social{
    column-gap: 1rem;
  }

  .footer__copy{
    margin-top: 7.5rem;
  }

  .scrollup{
    right: 3rem;
  }



}
