html {
    font-size: 16px;
    color: #333;
    
}
body{
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f0f0;
}
ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}
@media screen and (min-width: 800px){
    .container {
        width: 70%;
        margin: 0 auto;
    }
}


/* Nav */

header h1 {
    display: none;
}

.topnav {
    position: relative;
    overflow: hidden;
}

.topnav #navLinks{
    display: none;
}

.topnav a {
    color: #333;
    background: #f0f0f0;
    font-size: 17px;
    font-weight: 700;
    display: block;
    border-top: 1px solid #f0f0f0;
    transition: all .3s;
    text-align: center;
    padding: 22px 0 22px 0;
    
}

.topnav a.icon {
    color: #333;
    display: block;
    position: absolute;
    right: 0;
    top: 25px;
    font-size: 25px;
   }
   #navLinks a {
    border-bottom: 1px solid #f0f0f0;
}
#navLinks a:hover {
    color: #0E76BC;
    border-bottom: 1px solid #0E76BC ;
    
}
.logo {
    background-color: #f0f0f0;
    text-align: left; 
    height: auto;
    
}
.logo img {
    background-color: #f0f0f0;
    width: auto;
    height: 70px;
}



 /* Slide */

 .slideshow-container {
    position: relative;
  }

  .slides {
      height: 200px;
      display: none;
      
  }
.slides img{
    height: 100%;
    width: 100%;  
    object-fit: cover;
}
  .prev, .next {
      cursor: pointer;
      position: absolute;
      top: 50%;
      width: auto;
      margin-top: -22px;
      padding: 16px;
      color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
  }
  .next {
      right: 0;
      border-radius: 3px 0 0 3px;
  }
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }

  .text {
    color: white;
    font-size: 22px;
    padding: 12px 20px;
    position: absolute;
    bottom: 45px;
    right: 45px;
    text-align: center;
    background-color: rgba(0,0,0,0.6);
  }

  .numbertext {
    color: #f2f2f2;
    font-size: 16px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }

  .dot {
      position: relative;
      bottom: 20px;
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
  .active, .dot:hover {
    background-color: #0E76BC;
  }

  .fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }



/* about section */
.about {
    padding: 10px 10px 50px 10px;
    margin-top: -10px;
    border-bottom: 2px solid #0E76BC;
}
.about h1 {
    font-size: 36px;
    color: #222;
}
.about p {
    font-size: 18px;
    line-height: 1.3;
}

/* projects section */

.projects h2 {
    text-align: center;
    font-size: 30px;
}
.projects{
    width: 100%;
       
}
.card {
    position: relative;
    margin-bottom: 20px;
}
.card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.card .content {
    text-align: center;
    position: absolute;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    color: white;
    padding: 10px;
}
.card a {
    transition: all .3s;
}
.card a:hover {
    opacity: .8;
}

/* Text Section */

#text-section {
    
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 50px;
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    
}
#text-section p {
    position: absolute;
    text-align: center;
    font-size: 32px;
    z-index: 2;
}
#text-section div {
   
    position: absolute;
    width: 100%;
    height: 100%;
    color: white;
    background-image: url(images/pexels-kawser-hamid-176342.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 -700px;
    opacity: .6;
}



/* Footer */

footer {
    background-color: #222;
    color: #f2f2f2;
    margin-top: 60px;
    
}
.footer-container h3{
    font-size: 20px;
}

.footer-container {
    width: 70%;
    margin: 0 auto;
    padding: 30px 0;
}
.footer-container img{
 width: 200px;  
 height: auto; 
}

.adress {
    margin: 30px 0;;
}

.contact { 
    margin: 0 auto;
}


/* Pop-Up */

.pop-up-container {
    opacity: 0;
    transition: .3s ease-in-out;
    display: flex;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 5;
    background-color: rgba(0,0,0,0.6);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pop-up {
    width: 80%;
    display: inline-block;
    z-index: 5;
}

.pop-up-header {
    width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #0E76BC;
    height: 2rem;
    display: flex;
    flex-direction: column;
}
.pop-up-image {
    width: 100%;
    display: block;
    height: auto;
}
.pop-up-image-container {
    width: 100%;
}

.pop-up-content {
    width: 100%;
    background-color: #f2f2f2;
    color: #222;
    padding: 1.2rem; 
    text-align: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    
}
.pop-up-link {
    transition: .3s ease-in-out;
}
.pop-up-link:link, .pop-up-link:visited {
    background-color: #0E76BC;
    color: white;
    padding: .3rem .5rem;
    text-align: center;
    display: inline-block;
    border-radius: 4px;
  }
  
  .pop-up-link:hover, .pop-up-link:active {
    background-color: #0e4c75;
  }

.pop-up-content p {
    margin: 0;
}

.pop-up-close {
    cursor: pointer;
    display: inline-block;
    width: 2rem;
    height: 100%;
    background-color: #0E76BC;
    text-align: center;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ease-in-out;
    font-size: 1.2rem;
}
.pop-up-close:hover {
    color: #0E76BC;
    background-color: #021a2b;
}

  @media screen and (min-width: 600px) {
    .topnav #navLinks {
         display: grid;
         grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
         border-top: 1px solid #333;
     }
     #navLinks a {
        border-bottom: 1px solid #f0f0f0;
    }
    
     .topnav a.icon {
         display: none;
     }
     
     .topnav a{
         border: none;
     } 
     .slides {
        height: 500px; 
    }
    .slideshow-container {
        margin-top: 12px;
      }
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header h1 {
        font-size: 32px;
        display: block;
    }
    .logo{
        height: auto;
        background-color: white;
        
    }
    .logo img{
        display: inline;
        padding: 20px;
        width: auto;
        height: 200px;
    }
    .card img {
        height: 300px;
    }
    .cards-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;    
    }
    .adress {
        margin: 0;
    }
    .footer-container{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }
    .pop-up {
        width: 70%;
        
    }

 }

 @media screen and (min-width: 1200px) {
    .cards-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px 15px;    
    }
    .pop-up {
        width: 40%;
        
    }
 }