* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Kufi Arabic", sans-serif;
    direction: rtl;
}
html, body {
background: #000000;
color: white;

}

.link-photo {
    display: none;
}
/* HEADER */

header {
    text-align: center;
    background-color: black;
    display: flex;
    justify-content: space-between;
    padding: 5px 10px 0 10px;
}
.logo {
    font-size: 28px;
    color: rgb(255, 244, 235);
    cursor: default;
}

.gold {
    color: rgb(225, 170, 71);
}

ol {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 10px;
}
li {
    display: flex;
    align-items: center;
}

.side-header {
    text-align: right;
}

.side-header p {
    font-size: 15px;
}

.icon {
    width: 31px;
    height: 31px;
}

/* HERO BANNER */

.welcome {
    background-image: url("photos/Banner.png");
    background-position: center 25%;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 500px;
    margin: auto;
    display: flex;
    justify-content: left;
    align-items: center;
    z-index: -1; 
}

.hero-container {
    width: 670px;
    text-align: right;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    
}

.hero-title {
    text-shadow: 3px 2px 5px black;
    font-size: 52px;
    font-weight: 600;
    text-align: center;
    align-self: flex-start;
    transform: translateY(-25px); /* moves it up to 20px */

}

.hero-text-button {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-text {
    font-size: 24px;
    width: 470px;
}

.link {
    margin: auto;
}
.book-service-button,
.send-service {
    background-color: rgb(225, 170, 71);
    color: black;
    align-items: center;
    font-weight: 600;
    width: 255px;
    height: 45px;
    font-size: 16px;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    align-items: center;
    position: relative;
    margin: auto;
}
.book-service-button:active,
.send-service:active {
    background-color: rgb(243, 185, 77);
}
.book-service-button img {
    position: relative;
    top: 5px;
    width: 20px;
}

.platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow-x: hidden;
}
.platforms::-webkit-scrollbar {
    display: none;
}

.platform-icons {
    display: flex;
    animation: spin 32s infinite linear;
}

.platform-icons img{
    width: 200px;
    flex: 0 0 5rem;
    padding-right: 16px;
}

@keyframes spin {
    from {transform: translate(0);}
    to {transform: translate(-100%);}
}

/* SERVICES */

.services-container {
    width: 100%;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    gap: 22px;
}

.our-services,
.book-service-title,
.our-location-title {
    margin: auto;
    font-size: 47px;
    border-bottom: 5px solid rgb(243, 185, 77);
    display: inline-block; /* to make the width as same as the text */
    line-height: 1; /* to make the border close to the text */
    align-self: flex-start;
}

.services {
    margin: auto;
    padding: 10px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    gap: 25px;
    align-items: center;
}

.service {
    width: 100%;
    height: 199px;
    background-color: rgb(32, 32, 32);
    margin: auto;
    cursor: pointer;
    transition: all 0.2s ease-in;
    
}
.service:hover {
    outline: 3px solid rgb(243, 185, 77);
}
.service img {
    width: 100px;
}
.service p {
    font-size: 14px;
    width: 100%;
}

/* BOOK A SERVICE: INDEX PAGE */

.book-a-service,
.our-location {
    margin: auto;
    margin-top: 35px;
    text-align: center;
    background-color: rgb(32, 32, 32);
    width: 91.5%;
    height: auto;
    border-radius: 12px;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.book-service-title {
    border: none;
}

.textboxes {
    margin: auto;
    display: grid;
    grid-template-columns: auto;
    justify-content: center;
    gap: 10px;
}
.name-service-container {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.name-box,
.select-service,
textarea {
    width: 300px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    color: white;
    padding-right: 5px;
}
option {
   background-color: rgb(32, 32, 32);
    color: white;
}
textarea {
    margin: auto;
    resize: none;
    height: 200px;
    width: 100%;
    
}


.send-service img {
    position: relative;
    top: 5px;
    left: 3px;
    width: 20px;
}

/* OUR LOCATION */

.our-location-title {
    line-height: 1.25;
}

.location-container {
    margin: auto;
    padding-bottom: 25px;
    display: flex;
    justify-content: space-between;
    gap: 65px;
    align-items: center;
}

.our-socials {
    text-align: right;
    margin: auto;
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location {
    width: 670px;
    height: 270px;
}

.location-text-container,
.phone-number-container,
.work-time-container,
.social-container {
    display: flex;
    text-align: center;
    justify-content: space-around;
}

.location-text,
.phone-number,
.work-time {
    white-space: normal;  /* or remove 'nowrap' */
  word-wrap: break-word;
}


.location-text-container img,
.phone-number-container img,
.work-time-container img,
.social-container img {
    width: 45px;   
}

.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.2s ease-in;
}

/* SERVICE INFO */

.service-info-container {
    background-color: rgb(32, 32, 32);
    width: 91.5%;
    height: 425px;
    text-align: right;
    line-height: 1.5;
}

.back-button,
.home-button {
    text-align: center;
    width: 75px;
    font-size: 17px;
    font-weight: 500;
    margin-top: 5px;
    margin-right: 10px;
    background-color: rgb(225, 170, 71);
    color: black;
    border-radius: 25px;
    border: none;
    cursor: pointer;
}

.service-title-info-container {
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    
}


.service-info {
    white-space: pre-line;
    text-align: right;
    
}

/* BOOK A SERVICE PAGE */

.home-button {
    margin-top: 0;
    text-decoration: none;
}

/* FOOTER */

footer {
    margin-top: 15px;
    text-align: center;
}

footer p {
    font-size: 20px;
}

@media (max-width: 1034px) {
  .hero-container {
    width: 470px;
   }
   .hero-title {
    font-size: 40px;
   }


  .services {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    }
  .service {
    width: 210px;
  }
  .service h3 {
    font-size: 14px;
  }

  .image-title-text-container {
    left: 0;
  }
  

  .location-container {
    gap: 20px;
  }
}

@media (max-width: 850px) {
    .hero-container {
    width: 400px;
   }
   .hero-title {
    font-size: 39px;
   }
   .hero-text {
    width: 100%;
    font-size: 20px;
    padding-right: 30px;
   }

    .services {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }
  .service {
    width: 210px;
    height: 220px;
  }
  .service h3 {
    font-size: 14px;
  }

  .image-title-text-container {
    left: 0;
  }

  .location-container {
    gap: 20px;
  }
  .our-location {
    width: 96%;
  }
  .location {
    width: 470px;
  }
}

@media (max-width: 480px) {
    header {
        width: 100%;
        justify-content: center;
        display: none;
    }
    .hero-container {
        margin: auto;
    }
    .hero-text {
    padding-right: 0;
   }

    ol {
        display: none;
    }

    .welcome {
        background-image: url("photos/Banner-blur.png");
        height: 300px;
    }

    .hero-container {
        text-align: center;
    }

    .hero-title {
        font-size: 31px;
        text-align: center;
        align-self: normal;
        transform: translateY(-35px);
    }

    .hero-text {
        font-size: 20px;
        width: 100%;
        text-align: center;
    }

    .services {
        width: 100%;
        grid-template-columns: repeat(2, auto);
    }
    .service {
        width: 170px;
    }
    .service img {
        width: 75px;
        height: 85px;
    }
    .service h3 {
        font-size: 13px;
    }
    .service p {
        font-size: 13px;
        
    }


    .textboxes {
        align-items: center;
        margin: auto;
        text-align: center;
    }

    .service-info-container {
        height: auto;
    }

    .name-service-container {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        margin: auto;
    }

    .image-title-text-container {
        left: 0;
    }

    .service-title-info-container {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 10px;
    }

    .service-info {
        font-size: 14px;
        width: 75%;
    }

    .our-location {
        flex-direction: column;
        height: auto;
    }

    .location-container {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .our-socials {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 55px;
        width: 100%;
    }

    .location-text-container,
    .phone-number-container,
    .work-time-container {
        display: block;
    }

    .location-text,
    .phone-number,
    .work-time {
        font-size: 15px;
        white-space: normal;
        word-wrap: break-word;
    }

    .location {
        height: auto;
        width: 310px;
    }

    footer p {
        font-size: 14px;
    }
}