:root {
  --main-color: #6b0842;
  --section-padding: 40px;
  --transition: all 0.3s ease;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: cairo;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* main-title  */
.main-title, .main-title-white {
    width: 100%;
    cursor: pointer;
    color: var(--main-color);
}
.main-title-white{
  color: #ffffff;
}

.main-title h2 , .main-title-white h2{
    font-size: 2.6rem;
    text-transform: uppercase;
    border: 4px solid var(--main-color);
    width: fit-content;
    margin: auto;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.main-title-white h2{
  border: 4px solid white;
}

.main-title h2::before,
.main-title h2::after,
.main-title-white h2::before,
.main-title-white h2:after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--main-color);
    transition: all .4s;
}

.main-title-white h2::before,
.main-title-white h2:after{
  background-color: #fff;
}

.main-title h2::after , 
.main-title-white h2::after{
    left: calc(100% + 18px);
}

.main-title h2:hover,
.main-title-white h2:hover {
    color: white;
    transform: scale(1.1);
}
.main-title-white h2:hover{
  color: var(--main-color);
}

.main-title h2:hover::before ,
.main-title-white h2:hover::before {
    left: 0;
    top: 0;
    transform: translateY(0);
    width: 50%;
    height: 100%;
    border-radius: 0px;
    z-index: -1;
}

.main-title h2:hover::after,
.main-title-white h2:hover::after {
    left: 50%;
    top: 0;
    transform: translateY(0);
    width: 50%;
    height: 100%;
    border-radius: 0px;
    z-index: -1;
}

@media (max-width : 400px){
  .main-title h2 , .main-title-white h2{
    font-size: 2rem;
    padding: 6px;
  }
}

/* navbar  */
.nav-link {
  font-weight: bold;
  color: var(--main-color) !important;
  transition: var(--transition);
  padding: 8px 12px !important;
  margin: 5px;
  border-radius: 7px;
}

.nav-link.active,
.nav-link:hover {
  background-color: var(--main-color);
  color: white !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem #6b084273;
}

/* home  */
#home {
  height: 100vh;
  background-image: url(../image/home.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

#home .container {
  height: 100%;
}

.home-title ,
#home .container p ,
#home .container .content div{
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition);
  animation: visible .6s linear .6s forwards;
}

#home .container p{
  animation-delay: .9s;
}

#home .container .content div{
  animation-delay: 1.2s;
}
@media (max-width: 767px) {
  #home {
    background-position: center;
  }
}

/* about */
#about{
  padding: var(--section-padding) 15px;
}

.about-img-box{
  position: relative;
}

.about-img-box::before{
    content: "";
    height: calc(100% + 40px);
    width: 200px;
    position: absolute;
    right: -130px;
    top: -20px;
    background-color: var(--main-color);
    border-radius: 12px;
    z-index: -1;
}

/* stats  */
#stats {
  background-image: url(../image/p3.jpg);
  padding: var(--section-padding);
  background-size: cover;
  min-height: 80vh;
  position: relative;
}

#stats .box{
  border-radius: 12px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: var(--transition);
}

#stats .box::before{
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background-color: #6b08428c;
  border-radius: 12px;
  transition: var(--transition);
  z-index: 999;
}

#stats .box:hover{
  transform: scale(1.04);
}
#stats .box:hover::before{
  width: 100%;
}
.overlay{
  width: 100%;
  height: 100%;
  background-color: #6b08428c;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
}

/* serve  */
#serve {
  padding: var(--section-padding) 15px;
  background-color: var(--main-color);
}
#serve .serve-box{
  border-radius: 8px;
  box-shadow: 2px 2px 6px #00000047;
  cursor: pointer;
  transition: var(--transition);
}

#serve .serve-box img:hover{
    transform:scale(1.02);
}
#serve .serve-box .img-box{
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
}

#serve .serve-box .img-box img{
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

#serve .serve-box .text p{
   display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#serve .serve-box .text li{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* booking */
#booking {
    display: flex;
    min-height: calc(100vh - 90px);
}

#booking .img {    
    width: 50%;
    background-image: url(../image/p1.jpg);
    animation: change 5s ease 2s infinite alternate;
    transition: all .5s ease;
    background-repeat: no-repeat;
    background-size: cover;
}

@keyframes change {
    100% {
        background-image: url(../image/p2.jpg);
    }
}
#booking .img div{
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: #b50876a2;
    padding-top: 160px;
}
#booking .img div h2{
    font-size: 40px ;
    font-weight: bold;
    color: white;
    padding: 15px;
}
#booking .img div p{
    color: white;
    width: 90%;
    margin: auto;
}
#booking .booking-form {
    padding: var(--section-padding) 15px;
    width: 50%;
    text-align: center;
}
#booking .booking-form h2{
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
}
#booking .booking-form input{
    width: 90%;
    padding: 8px;
    font-size:22px;
    background-color: #dfdfdf;
    outline: none;
    border: none;    
    margin: 8px 0;
    border-radius: 9px;
}
#booking .booking-form select{
    width: 40%;
    padding: 12px;
    font-size: 22px;
    background-color: #dfdfdf;
    outline: none;
    border: none;    
    margin: 8px 5px;
    border-radius: 10px;
}

@media (max-width:767px){
    #booking {
        flex-direction: column;
    }
    #booking .booking-form {
        width: 100%;
    }
    #booking .img{
        width: 100%;
        height: 500px;        
    }
    #booking .img div{
      padding-top: 80px;
    }
    #booking .img div h2{
      font-size: 32px;
    }   
}
/* footer  */
#footer li a{
  color: white !important;
}
/* animation  */
@keyframes visible {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
