:root {
    --main-color: #D477F7;
    --text-color: rgb(33 42 65 / 75%);
}
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}
html {
    scroll-behavior: smooth;
}



.contain {
    width: 1000px;
    max-width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .contain {
        text-align: center;
        padding: 25px 15px;
    }
}

.hideEle {
    display: inline-block;
}


/* Hero Style  */
.hero {
    position: relative;
    height: 650px;
}
.hero::after {
    content:'';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero nav:not(.sidebar) {
    width: 100%;
    position: absolute;
    left: 0; 
    top: 0;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.hero nav i {
    font-size: 26px;
    color: #fafafa;
    cursor: pointer;
} 
.hero .sidebar {
    position: fixed;
    right: 0;
    top: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    z-index: 9999;
    min-height: 100vw;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    width: 50%;
}

@media (max-width: 766px) {
    .hero .sidebar {
        width: 100%;
    }
}
.hero .sidebar i {
    font-size: 40px;
    color: var(--text-color);
    padding: 10px;
    transition: .5s;
}

.hero .sidebar i:hover {
    transform: rotate(120deg);
}
.hero nav img {
    width: 70px;
    height: 70px;
    margin: 10px 0;
}
.hero nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}
.hero .sidebar ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
@media (max-width: 780px) {
    .hero nav .hideEle {
        display: none;
    }
}

@media (min-width: 780px) {
    .hero nav:not(.sidebar)  i {
        display: none;
    }
}
.hero nav ul li a {
    margin: 0 15px;
    text-decoration: none;
    font-size: 20px;
    color: var(--main-color);
    font-weight: bold;
    transition: .5s;
    position: relative;
}
.hero .sidebar ul li {
    width: 100%;
}
.hero .sidebar ul li a  {
    margin: 0 0 20px 0;
    display: inline-block;
    color: var(--text-color);
    width: 100%;
    padding: 10px;
}
.hero .sidebar ul li a:hover,
.hero .sidebar ul li a.active {
    background-color: var(--main-color);
}

.hero nav:not(.sidebar) ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    height: 2px;
    width: 0%;
    transition: .5s;
    background-color: var(--main-color);
}
.hero nav ul li  a:hover::after,
.hero nav ul li a.active::after {
    width: 80%;
}

.hero h2 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: .5s;
    color: #eee;
    font-size: 7vw;
}
@media (min-width: 900px) {
    .hero h2 {
        font-size: 5vw;
    }
}
@media (min-width: 899) {
    .hero h2 {
        font-size: 7vw;
    }
}
.hero h2:hover {
    -webkit-text-stroke: 1px #fff; 
    color: transparent;
}
.hero .back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}
.hero .back-video::after {
    content: ''; 
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.5);
}
@media (min-aspect-ratio: 16/9) {
    .hero .back-video {
        width: 100%;
        height: auto;
    }
}
@media (max-aspect-ratio: 16/9) {
    .hero .back-video {
        width: auto;
        height: 100%;
    }
}
/* End Hero Style  */

/* Our Message Style  */
.our-message {
    padding: 20px 0;
}
.our-message.second {
    position: relative;
    padding: 0 0 80px 0;
}
.our-message.second::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eee;
    height: 5px;
    width: 20%;
}
.our-message .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 767px) {
    .our-message .container {
        flex-direction: column;
    }
}
.our-message .container img {
    width: 400px;
    height: 400px;
    max-width: 100%;
}

@media (max-width: 767px) {
    .our-message .container img {
        width: 300px;
        height: 300px;
    }
}

.our-message .container .content {
    padding: 20px;
    direction: rtl;
}
.our-message .container i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--main-color);
}
.our-message .container .content h3 {
    font-size: 25px;
    margin: 10px 0;
}
.our-message .container .content p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 18px;
    color: var(--text-color);
}
/* End Message Style  */

/* Features Style  */
.features {
    padding: 40px 0;
    background-color: #fafafa;
}
.features .container {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* توزيع العناصر على 4 أعمدة */
  }

  
  @media (max-width: 768px) {
    .features .container {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .features .container {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }

.features .container i {
    font-size: 40px;
    color: var(--main-color);
    margin-bottom: 10px;
    width: 70px;
    height: 70px;
    background-color: #dddddd4c;
    border-radius: 50%;
    padding: 10px;
}
.features .container .content {
    margin-top: 10px;
}
.features .container .content h2 {
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: capitalize;
}
.features .container .content p {
    line-height: 1.5;
    color: var(--text-color);
}
.features .container .content p:first-of-type {
    margin-bottom: 10px;
}
/* End Features Style  */
/* About-us Style  */
.about-us {
    padding: 80px 0;
}
.about-us .contain {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 867px) {
    .about-us .contain {
        flex-direction:column-reverse;

    }
    .about-us img {
        display: none;
    }
}
.about-us img{
    width: 500px;
    max-width: 100%;
}

.about-us .content {
    background-color:rgb(180,158,255);
    padding: 20px;
    border-radius: 5px;
}
.about-us .content h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.about-us .content p:first-of-type {
    position: relative;
    margin-bottom: 30px;
}
.about-us .content p:first-of-type::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0%;
    background-color: #000;
    height: 1px;
    width: 20%;

}
.about-us .content p {
    font-size: 18px;
    line-height: 1.5;
    color: rgb(2, 2, 56);
    direction: rtl;
}

/* End About-us Style  */
/* Footer Style  */
.footer {
    margin-top: 80px;
    padding: 20px;
    background-color: #7B5BDF;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
}
@media(max-width: 600px) {
    .footer {
        align-items: center;
    }
}
.footer .sec2 h3 {
    margin: 10px 0;
}
.footer .sec2 ul {
    list-style: none;
}

.footer .sec2 ul li a {
    padding-bottom: 10px;
    color: var(--text-color);
    display: inline-block;
    transition: .5s;
}

.footer .sec2 ul li a:hover {
    transform: translateX(10px);
    color: #000;
}

.footer .sec1 img {
    width: 70px;
    height: 70px;
}
.footer .sec1 p {
    color: var(--text-color);
    width: 400px;
    margin-bottom: 15px;
    line-height: 1.5;
}

@media(max-width: 600px) {
    .footer .sec1 p, 
    .footer .sec1 img {
        display: none;
    }
}

.footer .sec1 i {
    font-size: 25px;
    margin: 0 10px;
    cursor: pointer;
    transition: .5s;
    color: #000;
}
.footer .sec1 i:hover {
    transform: scale(1.2);
}
/* End Footer Style  */