@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;
  
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color:#029AE0;
    --first-color-alt:#00141D;
    --label-color:hsl(0, 100%, 32%);
    --label-color-alt:hsl(0, 94%, 25%);
    --white-color: #fff;
    
  
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: 'Noto Kufi Arabic', sans-serif;
    --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;
    --h1-font-size: 1.8rem;
    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
  
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
  }
  
  @media screen and (min-width: 968px) {
    :root {
      --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 {
    /* background:linear-gradient(19deg,#e2f5fc,#c4ecff,#fbfeff,#c4ecff ,#fbfeff,#c4ecff); */
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-image: url('../img/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    /* background-attachment: fixed; */
    backdrop-filter: blur(50px);
    
  }
  
  h1, h2, h3 {
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
  }
  
  ul {
    list-style: none;
  }
  
  a {
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    height: 100%;
  }
  
  /*=============== REUSABLE CSS CLASSES ===============*/
  .container {
    max-width: 1024px;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
  }
  
  .grid {
    display: grid;
  }
  
  .section {
    padding: 4.5rem 0 2rem;
  }
  
  .section__title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
  }
  
  .main {
    overflow: hidden;
  }

  /* ======= projects ======= */
  .projects__section{
    position: relative;
    overflow: hidden;
  }
   
  .projects{
    row-gap: 4rem;
  }

  .project__card{
    position: relative;
    border-radius: 0 0 0 4rem;
    box-shadow: 0px 2px 8px hsl(0deg 0% 0% / 20%),
                -1px 1px 2px hsl(0deg 0% 0% / 20%)
  }

  .label{
    position: absolute;
    top: 1rem;
    left: -2.75rem;
    background-size: cover;
    width: 50%;
    z-index: 1;
   
  }
  .label::after{
    content: 'قريباً';
    position: absolute;
    top: 3.5rem;
    left: 3.5rem;
    width: 3rem;
    color: var(--white-color);
    
  }

  .project__name{
    position: absolute;
    top: 0;
    right: 1rem;
    color: var(--white-color);
    text-shadow: 0 2px 4px var(--first-color-alt);
    font-size: var(--h1-font-size);
    z-index: 1;

  }
 
  .project__img{
    border-radius: 0 0 0 4rem;
    object-fit: cover;
    cursor: pointer;
    transition:  all .5s ;
  }
  
  .project__img:hover{
    filter:brightness(85%);
  }

  .project__location{
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--white-color);
    background-color: var(--first-color);
    padding: 0.3rem 1.5rem;
    width: 100%;
    border-radius: 0 4rem 0 4rem;
    font-size: var(--h2-font-size);
    font-weight: var(--font-medium);
    z-index: 1;
  }
  /* For small devices */
  @media screen and (max-width : 320px){
    .label{
      left: -32px;
    }

    .label::after {
      top: 2.3rem;
      left: 1.5rem;
      font-size: .8rem;
    } 

    .project__location{
      font-size: .9rem;
    }

    .project__name{
      font-size: 1.25rem;
    }
  }
  

  /* For medium devices */
@media screen and (max-width : 576px) {
    .projects{
        justify-content: center;
        gap: 3rem;
    }
    
    .label{
      left: -51px;
    }

    .label::after{
      top: 3.7rem;
      left: 4rem;
      font-size: 1rem;
    }
}

@media screen and (min-width : 577px) {
  .projects{
    justify-content: center;
    gap: 3rem;
  }

  .label{
    left: -51px;
  }

  .label::after{
    top: 4rem;
    left: 4rem;
    font-size: 1rem;
  }
}

@media screen and (min-width : 991px) {
  .container{
    margin-left: auto;
    margin-right: auto;
  }
   
  .projects{
    grid-template-columns: repeat(2, max-content);
    row-gap: 6rem;
    justify-content: space-around;
  }
  
   
}