*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
background-color: #ffffff;
overflow-x: hidden;
}
main{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
  gap: 50px;
  padding: 20px;
  background: linear-gradient(rgba(255, 255, 255, 0.621), white), url(m4.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  padding-block: 150px;
  padding-top: 150px;
}
main h1{
  color: rgb(27, 27, 27);
  font-size: 60px;
  text-align: center;
  margin-top: 80px;
  font-family: KacstTitle;
  font-weight: 500;
}

@font-face {
  font-family: "KacstTitle";
  src: url("../../Fonts/KacstTitle.ttf");
}

@font-face {
  font-family: "segoeui";
  src:url("../../Fonts/segoeui.ttf");
}
svg{
    width: 25px;
}
:root{
  --color-1: #0f1016;
  --text-color: #f0f0f0;
  --accent-color: #006aff;
}
nav{
  background-color: var(--color-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 1000;
  top: 0;
  color: white;
  padding: 10px 20px;
  text-align: center;
  width: 100%;
  overflow: hidden;
  font-family:"KacstTitle" ;


}



.logo img{
  width: 250px;
  max-width: 100%;
  mix-blend-mode: lighten;
}

.links-container{
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}
nav a{
  height: 100%;
  margin-inline: 30px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: 0.2s;
  color: white;
  padding-block: 20px;
  border-bottom: 2px solid rgba(255, 0, 0, 0);
}

nav a:hover{
  border-bottom: 2px solid var(--accent-color);
  padding-block: 10px;

}
nav .home-link{
  margin-right: auto;
}
nav svg{
  fill: var(--text-color);
}
#sidebar-active{
  display: none;
}
.open-sidebar-button, .close-sidebar-button{
  display: none;
}
@media(max-width: 696px){
  .links-container{
    flex-direction: column;
    align-items: flex-start;

    position: fixed;
    top: 0;
    right: -100rem;
    z-index: 10;
    width: 300px;

    background-color: var(--color-1);
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
    transition: 1s cubic-bezier(0,.7,0,1) ;
  }
  nav a{
    box-sizing: border-box;
    height: auto;
    width: 100%;
    padding: 20px 30px;
    justify-content: flex-start;
  }
  .open-sidebar-button, .close-sidebar-button{
    padding: 20px;
    display: block;
  }
  #sidebar-active:checked ~ .links-container{
    right: 0;
  }
  #sidebar-active:checked ~ #overlay{
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
  }
}

.grid-gallery {
  width: 100%;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  grid-gap: 10px;
  overflow: hidden;
  
}

.grid-gallery .grid-item {
  position: relative;
  background-color: #efefef;
  overflow: hidden;
}

.grid-gallery .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.grid-gallery .grid-item:hover img {
  transform: scale(1.1);
}

.grid-gallery .grid-item a {
  cursor: zoom-in;
}

.grid-gallery .grid-item:nth-child(3n - 2) {
  grid-column: span 2;
  grid-row: span 2;
}

/* Let's make it responsive */
@media (max-width: 768px) {
  .grid-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
  }

  .grid-gallery .grid-item:nth-child(3n - 2) {
    grid-column: unset;
    grid-row: unset;
  }
}




/* footer */
.footer .container{
	max-width: 2000px;
}
.row{
	display: flex;
	flex-wrap: wrap;
}
.footer .container ul{
	list-style: none;
}
.footer{
	background-color: #1b1b1b;
    padding: 70px 0;
}
.footer-col{
   width: 25%;
   padding: 0 15px;
}
.footer-col h4{
	font-size: 18px;
	color: #ffffff;
	text-transform: capitalize;
	margin-bottom: 35px;
	font-weight: 500;
	position: relative;
}
.footer-col h4::before{
	content: '';
	position: absolute;
	left:0;
	bottom: -10px;
	background-color: #006aff;
	height: 2px;
	box-sizing: border-box;
	width: 50px;
}
.footer-col ul li:not(:last-child){
	margin-bottom: 10px;
}
.footer-col ul li a{
	font-size: 16px;
	text-transform: capitalize;
	color: #ffffff;
	text-decoration: none;
	font-weight: 300;
	color: #bbbbbb;
	display: block;
	transition: all 0.3s ease;
}
.footer-col ul li a:hover{
	color: #ffffff;
	padding-left: 8px;
}
.footer-col .social-links a{
	display: inline-block;
	height: 40px;
	width: 40px;
	background-color: rgba(255,255,255,0.2);
	margin:0 10px 10px 0;
	text-align: center;
	line-height: 40px;
	border-radius: 50%;
	color: #ffffff;
	transition: all 0.5s ease;
}
.footer-col .social-links a:hover{
	color: #24262b;
	background-color: #ffffff;
}

/*responsive*/
@media(max-width: 767px){
  .footer-col{
    width: 50%;
    margin-bottom: 30px;
}
}
@media(max-width: 574px){
  .footer-col{
    width: 100%;
}
}


main h1{
   font-family:KacstTitle ;
   font-weight: 500;
   font-size: 60px;
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
   color: rgb(0, 98, 209);
}
main p{
  font-size: 30px;
  font-family:"segoeui";
  width: 750px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align:  justify;
  direction: rtl;
  max-width: 100%;
  padding-inline: 30px;
}

main img{
  width: 200px;
  mix-blend-mode: multiply;
}

@media (max-width: 730px) {
  main h1 {
    font-size: 50px;
  }
  main p{
    width: 600px;
    font-size: 28px;
  }
}
@media (max-width: 636px) {
  main h1 {
    font-size: 40px;
  }
  p{
    width: 450px;
    font-size: 25px;
  }
}


@media (max-width: 490px) {
  main h1 {
    font-size: 35px;
  }
  p{
    width: 390px;
    font-size: 25px;
  }
  img{
    width: 150px;
  }
}

@media (max-width: 425px) {
  main h1 {
    font-size: 40px;
  }
  p{
    width: 360px;
    font-size: 25px;
  }
  img{
    width: 100px;
  }
}


@media (max-width: 390px) {
  main h1 {
    font-size: 40px;
  }
  p{
    width: 330px;
    font-size: 20px;
  }
  img{
    width: 100px;
  }
}


@media (max-width: 365px) {
  main h1 {
    font-size: 35px;
  }
  p{
    width: 300px;
    font-size: 18px;
  }
  img{
    width: 100px;
  }
}

@media (max-width: 333px) {
  main h1 {
    font-size: 35px;
  }
  p{
    width: 250px;
    font-size: 18px;
  }
  img{
    width: 100px;
  }
}

@media (max-width: 241px) {
  main h1 {
    font-size: 35px;
  }
  p{
    width: 200px;
    font-size: 18px;
  }
  img{
    width: 100px;
  }
}

@media (max-width: 200px) {
  main h1 {
    font-size: 35px;
  }
  p{
    width: 180px;
    font-size: 18px;
  }
  img{
    width: 100px;
  }
}


.footer .container{
	max-width: 1200px;
	margin:auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.footer{
	background-color: #1b1b1b;
    padding: 70px 0;
}


.footerNav a{
  color: white;
  text-decoration: none;
  font-family: KacstTitle;
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 20px;

}
.footerNav{
  color: white;
  text-decoration: none;
  font-family: KacstTitle;
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 10px;

}
 .mobile a{
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-family:KacstTitle ;
}