@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");
:root {
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/

    --first-color:#ff004f ;
    --first-color-alt: #000000;
    --title-color: hsl(0, 0%, 100%);
    --text-color: hsl(0, 0%, 100%);
    --white-color: hsl(0, 0%, 100%);
    --body-color: hsla(0, 0%, 8%, 0.719);
  
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
  
    /*========== Font weight ==========*/
     --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700; 
  
    /*========== z index ==========*/
    --z-normal: 1;
    --z-modal: 1000;
  }
  
  /* ========== Responsive typography ========== */
  @media screen and (min-width: 1150px) {
    :root {
      --h1-font-size: 2.25rem;
      --h2-font-size: 1.5rem;
      --h3-font-size: 1.25rem;
      --normal-font-size: 1rem;
    }
  }
  
  /*=============== BASE ===============*/
  
  body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
  }


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

*{
    /* background-color: #ff004f; */
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background: #ffffff;
    color: #fff;
    /* color: #ff004f; */
}

.container{
    padding: 10px 10%;
}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    font-family: gilroy;
}
#portfolio{
    padding: 50px 0;
}
.work-list{
    /* display: grid;
    grid-template-columns: repeat(auto-fit,minmax(400px,1fr));
    grid-gap: 40px; */
    display: flex;
    justify-content: space-between;
    align-items: self-start;
    flex-wrap: wrap;
    margin-top: 50px;
    /* background-color: aliceblue; */
}
.work{
    /* height: 40%; */
    height: 300px;
    height: 40%;
    width: 32%;
    width: 47%;
    margin-bottom: 50px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ffffffa6;
    /* filter: brightness(0.7); */
}
.work img{
    height: 100%;
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6),#ff004f);
    border-radius: 10px;
    position: absolute;
    left:0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 25px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
    margin-top: 90px;
    background-color: #000000;
}
.btn:hover{
    background: #ffffff;
    color: #000;
    border: 1px solid black;
}




.modal {

    position: fixed;
    inset: 0;
    background-color: hsla(5, 90%, 4%, .2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(24px);
    display: grid;
    place-items: center;
    padding: 1rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: var(--z-modal);
    transition: opacity .4s, visibility .4s;
  }
  
  .modal__card {
    border-radius: 10px;
    height: 68%;
    width: 50%;
    position: relative;
    background-color: var(--body-color);
    padding: 3rem 1.25rem 2rem;
    display: grid;
    row-gap: 1.5rem;
    text-align: center;
    transform: rotateX(90deg);
    transition: transform .6s;
  }
  
  .modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
  }
  
  .modal__img {
    width: 50%;
    justify-self: center;
    filter: drop-shadow(0 8px 16px hsla(5, 90%, 4%, .2));
  }
  
  .modal__name {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    margin-bottom: .5rem;
  }
  
  .modal__info {
    margin-bottom: 1rem;
    padding: 1rem;
    margin-left: 5%;
    margin-right: 5%;
    color: #d4d4d4a9;
  }
  
  .modal__price {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    font: small-caps bold 27px/1 sans-serif;
  }
  
.model-card-main{
  display: flex;
  justify-content: center;
  align-items: center;
}

  .modal__buttons {
    display: flex;
    gap: .5rem;
    width: 50%;
  }
  
  .modal__button {
    flex-grow: 1;
    outline: none;
    border: none;
    background-color: var(--first-color);
    padding-block: 1rem;
    color: var(--white-color);
    font: var(--font-semi-bold) var(--normal-font-size) var(--body-font);
    cursor: pointer;
    transition: background-color .4s;
  }
  
  .modal__button:hover {
    background-color: rgba(255, 255, 255, 0.767);
    color: #ff004f;
  }
  
  .modal__button-ghost {
    background-color: var(--body-color);
    color: var(--title-color);
    border: 3px solid var(--first-color);
  }
  
  .modal__button-ghost:hover {
    background-color: rgba(255, 255, 255, 0.747);
    color: black;
  }
  
  /* Active modal */
  .active-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: initial;
  }
  
  .active-modal .modal__card {
    transform: rotateX(0);
  }


  @media only screen and (max-width: 1100px) {
.work{
  height: 300px;
  width: 48.5%;
  margin-bottom: 40px;
}
.container{
  padding: 10px 5%;
}

.layer{
  font-size: 15px;
}
.layer h3{
font-weight: 500;
margin-bottom: 10px;
}
.layer a{
margin-top: 10px;
font-size: 15px;
width: 40px;
height: 40px;
line-height: 40px;
}

.modal__card {
  border-radius: 10px;
  height: 62%;
  width: 95%;
  position: relative;
  background-color: var(--body-color);
  padding: 1rem 1.25rem 2rem;
  display: grid;
  row-gap: .5rem;
  text-align: center;
  transform: rotateX(90deg);
  transition: transform .6s;
} 




  }
  @media only screen and (max-width: 700px) {
    .work{
      height: 200px;
      width: 100%;
      margin-bottom: 30px;
    }
    .container{
      padding: 10px 5%;
    }
    .layer{
      font-size: 12px;
  }
  .layer h3{
    font-weight: 500;
    margin-bottom: 10px;
}
.layer a{
  margin-top: 10px;
  font-size: 15px;
  width: 40px;
  height: 40px;
  line-height: 40px;
}

.modal__card {
  border-radius: 10px;
  height: 68%;
  width: 95%;
  position: relative;
  background-color: var(--body-color);
  padding: 2rem 1.25rem 2rem;
  display: grid;
  row-gap: .5rem;
  text-align: center;
  transform: rotateX(90deg);
  transition: transform .6s;
} 

.modal__img {
  width: 80%;
  justify-self: center;
  filter: drop-shadow(0 8px 16px hsla(5, 90%, 4%, .2));
}

.modal__buttons {
  display: flex;
  gap: .5rem;
  width: 100%;
}


}

@media only screen and (max-width: 450px) {

  .modal__card {
    border-radius: 10px;
    height: 75%;
    width: 95%;
    position: relative;
    background-color: var(--body-color);
    padding: 1rem 1.25rem 2rem;
    display: grid;
    row-gap: .2rem;
    text-align: center;
    transform: rotateX(90deg);
    transition: transform .6s;
  } 

  .modal__img {
    width: 90%;
  }

  .modal__name {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    margin-bottom: .2rem;
  }
  
  .modal__info {
    margin-bottom: 1rem;
    font-size: 13px;
    color: #d4d4d4a9;
    margin-left: 0%;
    margin-right: 0%;
  }
  
  .modal__price {
    font-size: 17px;
    color: var(--first-color);
  }
  
.modal__buttons {
  display: flex;
  gap: .5rem;
  width: 100%;
}

}


.back-btn{
  position: fixed;
  top: 4%;
  left: 5%;
  z-index: 1000;
  text-decoration: none;
  background-color: #0000000c;
  border: 0.15rem solid black;
  height: 30px;
  width: 30px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}
.back-btn i{
  font-size: 20px;
  color: #000000;
  border-radius: 100%;
}
.back-btn:hover {
  transform: rotateZ(360deg) scale(1.2);
}


video{
  right: 0;
  /* left: 0; */
  bottom: 0;
  z-index: -10;
  opacity: normal;
  position: fixed;

}
@media (min-aspect-ratio: 16/9){
  video{
      width: 100%;
      height: auto;
  
  }
}
@media (max-aspect-ratio: 16/9){
  video{
      width: auto;
      height: 100%;
  
  }
} 


@media only screen and (max-width: 600px) {
  @media (min-aspect-ratio: 16/9){
    video{
        width: 100%;
        height: 100vh;
    
    }
  }
}