 /*
    =====================================================================
                    Docs & License: https://walid.ly
                    (c) 2024 Developer Walid Fahig
    =====================================================================
                                 CSS Arabic
    */

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     text-decoration: none;
     border: none;
     outline: none;
     scroll-behavior: smooth;
     font-family: 'Cairo', sans-serif;
     direction: rtl;
 }

 :root {
     --bg-color: #0B192C;
     --second-bg-color: #445069;
     --text-color: #D1E8FF;
     --main-color: #D4AF37;
 }

 html {
     font-size: 62.5%;
     overflow-x: hidden;
 }

 body {
     background: var(--bg-color);
     color: var(--text-color);
 }
 
 #pre-loader {
     background-color: var(--bg-color);
     height: 100%;
     width: 100%;
     position: fixed;
     z-index: 1;
     margin-top: 0px;
     top: 0px;
     left: 0px;
     bottom: 0px;
     overflow: hidden !important;
     right: 0px;
     z-index: 999999;
 }

 #pre-loader img {
     text-align: center;
     left: 0;
     position: absolute;
     right: 0;
     top: 50%;
     transform: translateY(-50%);
     -webkit-transform: translateY(-50%);
     -o-transform: translateY(-50%);
     -ms-transform: translateY(-50%);
     -moz-transform: translateY(-50%);
     z-index: 99;
     margin: 0 auto;
 }

 section {
     min-height: 100vh;
     padding: 10rem 9% 2rem;
 }

 .header {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     padding: 2rem 9%;
     background: var(--bg-color);
     display: flex;
     justify-content: space-between;
     align-items: center;
     z-index: 100;
 }

 .header.sticky {
     border-bottom: .1rem solid rgba(0, 0, 0, .2);
 }

 .logo {
     cursor: pointer;
     margin: 0px;
     padding: 0px;
     color: var(--text-color);
 }

 .navbar a {
     font-size: 1.7rem;
     color: var(--text-color);
     margin-left: 4rem;
     transition: .3s;
 }

 .navbar a:hover,
 .navbar a.active {
     color: var(--main-color);
 }

 .icons-menu-lang {
     display: flex;
     align-items: center;
 }

 #menu-icon {
     font-size: 3.6rem;
     color: var(--text-color);
     display: none;
 }

 /* -------------- icon lang -------------- */
 .language-btn {
     cursor: pointer;
     background-color: var(--bg-color);
     border: none;
     display: inline-flex;
     align-items: center;
     font-size: 1.75rem;
     transition: background-color 0.3s ease;
 }

 .language-switcher {
     color: var(--text-color);
 }

 .language-switcher img {
     vertical-align: middle;
     width: 20px;
     height: 20px;
 }

 .language-switcher:hover {
     cursor: pointer;
     color: var(--main-color);
 }

 /* -------------- icon lang -------------- */

 .home {
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .home-content {
     flex: 1;
 }

 .home-img img {
     display: block;
     width: 32vw;
     margin-left: 10rem;
 }

 .home-content h3 {
     font-size: 3.0rem;
     font-weight: 650;
 }

 .home-content h3:nth-of-type(2) {
     margin-bottom: 2rem;
 }

 span {
     color: var(--main-color);
 }

 .home-content h1 {
     font-size: 5.6rem;
     font-weight: 700;
     line-height: 1.3;
     color: var(--main-color);
 }

 .home-content p {
     font-size: 1.6rem;
     margin-top: 2rem;
     padding-left: 20px;
 }

 .social-media a {
     display: inline-flex;
     justify-content: center;
     align-items: center;
     width: 4rem;
     height: 4rem;
     background: transparent;
     border: .2rem solid var(--main-color);
     border-radius: 50%;
     font-size: 2rem;
     color: var(--main-color);
     margin: 2rem 1.5rem 2rem 0;
     transition: .5s ease;
 }

 .social-media a:hover {
     background: var(--main-color);
     color: var(--second-bg-color);
     box-shadow: 0 0 1rem var(--main-color);
 }

 .btn {
     display: inline-block;
     padding: 1rem 2.8rem;
     margin: 2px;
     background: var(--second-bg-color);
     border-radius: 4rem;
     /* box-shadow: 0 0 1rem var(--main-color); */
     font-size: 1.6rem;
     color: var(--text-color);
     letter-spacing: .1rem;
     font-weight: 600;
     transition: .5s ease;
 }

 .btn:hover {
     box-shadow: 0 0 1rem var(--main-color);
 }

 .about {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 2rem;
     background: var(--second-bg-color);
 }

 .about-img img {
     width: 32vw;
 }

 .heading {
     text-align: center;
     font-size: 3.5rem;
 }

 .about-content h2 {
     text-align: right;
     line-height: 1.2;
 }

 .about-content h3 {
     font-size: 3.3rem;
     color: var(--text-color);
     margin-top: 3px;
 }

 .about-content p {
     font-size: 1.6rem;
     margin: 0.5rem 0 3rem;
     text-align: justify;
     text-justify: inter-word;
     font-weight: bold;
 }

 .education {
     padding: 100px 15px;
 }

 .education h2 {
     margin-bottom: 5rem;
 }

 .timeline-items {
     max-width: 1200px;
     margin: auto;
     display: flex;
     flex-wrap: wrap;
     position: relative;
 }

 .timeline-items::before {
     content: "";
     position: absolute;
     width: 5px;
     height: 100%;
     background-color: var(--main-color);
     left: calc(50% - 1px);
 }

 .timeline-item {
     margin-bottom: 40px;
     width: 100%;
     position: relative;
 }

 .timeline-item:last-child {
     margin-bottom: 0;
 }

 .timeline-item:nth-child(odd) {
     padding-left: calc(50% + 30px);
     text-align: left;
 }

 .timeline-item:nth-child(even) {
     padding-right: calc(50% + 30px);
 }

 .timeline-dot {
     height: 21px;
     width: 21px;
     background-color: var(--main-color);
     box-shadow: 0 0 25px var(--main-color),
         0 0 50px var(--main-color);
     position: absolute;
     left: calc(50% - 8px);
     border-radius: 50%;
     top: 10px;
 }

 .timeline-date {
     font-size: 20px;
     font-weight: 800;
     color: var(--text-color);
     margin: 6px 0 15px;
 }

 .timeline-content {
     background-color: var(--bg-color);
     border: 3px solid var(--main-color);
     padding: 30px 50px;
     border-radius: 4rem;
     box-shadow: 0 0 10px var(--main-color);
     cursor: pointer;
     transition: 0.3s ease-in-out;
 }

 .timeline-content:hover {
     transform: scale(1.05);
     box-shadow: 0 0 25px var(--main-color);
 }

 .timeline-content h3 {
     font-size: 20px;
     color: var(--text-color);
     margin: 0 0 10px;
     font-weight: 500;
 }

 .timeline-content p {
     color: var(--text-color);
     font-size: 16px;
     font-weight: 300;
     line-height: 22px;
     text-align: right;
     text-align: right;
     text-justify: inter-word;
     font-weight: bold;
 }

 ::-webkit-scrollbar {
     width: 15px;
 }

 ::-webkit-scrollbar-thumb {
     background-color: var(--main-color);
 }

 ::-webkit-scrollbar-track {
     background-color: var(--bg-color);
     width: 50px;
 }

 .services {
     background: var(--second-bg-color);
 }

 .services h2 {
     margin-bottom: 5rem;
 }

 .services-container {
     display: flex;
     justify-content: center;
     align-items: center;
     flex-wrap: wrap;
     gap: 2rem;
 }

 .services-container .services-box {
     flex: 1 1 30rem;
     background: var(--bg-color);
     padding: 3rem 2rem 4rem;
     border-radius: 2rem;
     text-align: center;
     border: .2rem solid var(--bg-color);
     transition: .5s ease;
 }

 .services-container .services-box:hover {
     border-color: var(--main-color);
     transform: scale(1.02);
 }

 .services-box i {
     font-size: 7rem;
     color: var(--main-color);
 }

 .services-box h3 {
     font-size: 2.6rem;
 }

 .services-box p {
     font-size: 1.6rem;
     margin: 1rem 0 3rem;
     text-align: justify;
 }

 .portfolio h4 {
     margin-bottom: 4rem;
 }

 .portfolio-container {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     align-items: center;
     gap: 2.5rem;
 }

 .portfolio-container .portfolio-box {
     position: relative;
     border-radius: 2rem;
     box-shadow: 0 0 1rem var(--bg-color);
     overflow: hidden;
     display: flex;
 }

 .portfolio-box img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: .5s ease;
 }

 .portfolio-box:hover img {
     transform: scale(1.1);
 }

 .portfolio-box .portfolio-layer {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
     text-align: center;
     padding: 0 4rem;
     transform: translateY(100%);
     transition: .5s ease;
 }

 .portfolio-box:hover .portfolio-layer {
     transform: translateY(0);
 }

 .portfolio-layer h3 {
     font-size: 3rem;
 }

 .portfolio-layer p {
     font-size: 2.5rem;
     margin: .3rem 0 1rem;
     color: var(--text-color);
 }

 .portfolio-layer a {
     display: inline-flex;
     justify-content: center;
     align-items: center;
     width: 5rem;
     height: 5rem;
     background: var(--text-color);
     border-radius: 50%;
 }

 .portfolio-layer a i {
     font-size: 2rem;
     color: var(--second-bg-color);
 }

 .contact {
     display: grid;
     grid-template-columns: repeat(1, 1fr);
     align-items: center;
     gap: 1rem;
     text-align: center;
     background: var(--second-bg-color);
 }

 .contact-text h3 {
     color: var(--text-color);
     font-size: 4.6rem;
     font-weight: 700;
 }

 .contact-text p {
     color: var(--text-color);
     font-size: 20px;
     line-height: 30px;
     margin-bottom: 2rem;
 }

 .contact-list {
     margin-bottom: 3rem;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-wrap: wrap;
 }

 .contact-list li {
     margin-left: 15px;
     font-size: 18px;
     display: block;
 }

 .contact-list i {
     display: inline-block;
     color: var(--main-color);
     font-size: 20px;
     font-weight: 600;
     margin-right: 5px;
     transition: all .40s ease;
 }

 .contact-list li a:hover {
     transform: scale(1.01) translateY(-5px);
     color: var(--main-color);
 }

 .footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     padding: 2rem 9%;
 }

 .footer-text {
     font-size: 1.6rem;
     margin-bottom: 8px;
 }

 .footer-iconTop a {
     display: inline-flex;
     justify-content: center;
     align-items: center;
     padding: .8rem;
     background: var(--main-color);
     border-radius: .8rem;
     transition: .5s ease;
 }

 .footer-iconTop a:hover {
     box-shadow: 0 0 1rem var(--main-color);
 }

 .footer-iconTop a i {
     font-size: 2.4rem;
     color: var(--second-bg-color);
 }

 /* ------------------------------------------------------------------------------------------------------- */

 @media (max-width: 1200px) {
     html {
         font-size: 55%;
     }

     .home {
         text-align: center;
         display: block;
         flex-direction: column;
     }

     .home-content h3 {
         font-size: 2.6rem;
     }

     .home-content h1 {
         font-size: 5rem;
     }

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 32rem;
         width: 30vw;
         margin-top: 4rem;
     }

     .about {
         flex-direction: column-reverse;
     }

     .about img {
         width: 35vw;
         margin-top: 0rem;
     }

     .about-content h2 {
         text-align: center;
     }

     .about-content h3 {
         text-align: center;
     }

     .about-content p {
         text-align: center;
         text-align: justify;
         text-justify: inter-word;
         font-weight: bold;
     }
 }

 @media (max-width: 1070px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         object-fit: cover;
         margin-right: 31rem;
         width: 30vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 991px) {
     .header {
         padding: 2rem 3%;
     }

     section {
         padding: 10rem 3% 2rem;
     }

     .home {
         text-align: center;
         flex-direction: column;
         justify-content: space-between;
     }

     .home-content h3 {
         font-size: 2.6rem;
     }

     .home-content h1 {
         font-size: 5rem;
     }

     .home-img img {
         justify-content: center;
         align-items: center;
         object-fit: cover;
         margin-right: 35rem;
         width: 30vw;
         margin-top: 4rem;
     }

     .about {
         flex-direction: column-reverse;
     }

     .about img {
         width: 45vw;
         margin-top: 0rem;
     }

     .about-content h2 {
         text-align: center;
     }

     .about-content h3 {
         text-align: center;
     }

     .about-content p {
         text-align: center;
         text-align: justify;
         text-justify: inter-word;
         font-weight: bold;
     }

     .education {
         padding-bottom: 7rem;
     }

     .timeline-items::before {
         right: 7px;
     }

     .timeline-item:nth-child(odd) {
         padding-left: 0;
         text-align: right;
     }

     .timeline-item:nth-child(odd),
     .timeline-item:nth-child(even) {
         padding-right: 37px;
     }

     .timeline-dot {
         right: 0;
     }

     .services {
         padding-bottom: 7rem;
     }

     .portfolio {
         padding-bottom: 7rem;
     }

     .footer {
         padding: 2rem 3%;
     }

     .language-btn {
         margin-left: 4rem;
         margin-right: 4rem;
     }
 }

 @media (max-width: 955px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         object-fit: cover;
         margin-right: 33rem;
         width: 30vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 900px) {
     #menu-icon {
         display: block;
     }

     .logo {
         margin-right: 9rem;
     }

     .language-btn {
         margin-left: 2rem;
     }

     .navbar {
         position: absolute;
         top: 100%;
         left: 0;
         width: 100%;
         text-align: center;
         padding: 1rem 3%;
         background: var(--bg-color);
         border-top: .1rem solid rgba(0, 0, 0, .2);
         box-shadow: 0.5rem 1rem rgba(0, 0, 0, .2);
         display: none;
     }

     .navbar.active {
         display: block;
     }

     .navbar a {
         display: block;
         font-size: 2rem;
         margin: 3rem 0;
     }

     .home {
         text-align: center;
         flex-direction: column;
         justify-content: space-between;
     }

     .home-content h3 {
         font-size: 2.6rem;
     }

     .home-content h1 {
         font-size: 5rem;
     }

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 29rem;
         width: 35vw;
         margin-top: 4rem;
     }

     .about {
         flex-direction: column-reverse;
     }

     .about img {
         width: 45vw;
         margin-top: 0rem;
     }

     .about-content h2 {
         text-align: center;
     }

     .about-content h3 {
         text-align: center;
     }

     .about-content p {
         text-align: center;
         text-align: justify;
         text-justify: inter-word;
         font-weight: bold;
     }

     .education h2 {
         margin-bottom: 3rem;
     }

     .services h2 {
         margin-bottom: 3rem;
     }

     .portfolio h4 {
         margin-bottom: 3rem;
     }

     .portfolio-container {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 @media (max-width: 835px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         object-fit: cover;
         margin-right: 27rem;
         width: 35vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 790px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         object-fit: cover;
         margin-right: 23rem;
         width: 38vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 720px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         object-fit: cover;
         margin-right: 22rem;
         width: 38vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 695px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         object-fit: cover;
         margin-right: 20rem;
         width: 40vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 630px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         object-fit: cover;
         margin-right: 18rem;
         width: 43vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 617px) {
     .portfolio-container {
         grid-template-columns: 1fr;
     }

     .home {
         text-align: center;
         flex-direction: column;
         justify-content: space-between;
     }

     .home-content h3 {
         font-size: 2.6rem;
     }

     .home-content h1 {
         font-size: 5rem;
     }

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 16rem;
         width: 45vw;
         margin-top: 4rem;
     }

     .about {
         flex-direction: column-reverse;
     }

     .about img {
         width: 45vw;
         margin-top: 0rem;
     }

     .about-content h2 {
         text-align: center;
     }

     .about-content h3 {
         text-align: center;
         text-align: justify;
         text-justify: inter-word;
         font-weight: bold;
     }

     .about-content p {
         text-align: center;
     }

     .education h2 {
         margin-bottom: 3rem;
     }

     .services h2 {
         margin-bottom: 3rem;
     }

     .portfolio h4 {
         margin-bottom: 3rem;
     }

     .portfolio-container {
         grid-template-columns: repeat(1, 1fr);
     }
 }

 @media (max-width: 570px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 14rem;
         width: 47vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 520px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 12rem;
         width: 47vw;
         margin-top: 4rem;
     }

 }

 @media (max-width: 470px) {

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 10rem;
         width: 50vw;
         margin-top: 4rem;
     }

     .about img {
         width: 65vw;
         margin-top: 0rem;
     }

 }

 @media (max-width: 450px) {
    #menu-icon {
        display: block;
    }

    .logo {
        margin-right: 0rem;
    }

    .language-btn {
        inline-size: auto;
    }
    
     html {
         font-size: 50%;
     }

     .contact form .input-box input {
         width: 100%;
     }

     .home {
         text-align: center;
         flex-direction: column;
         justify-content: space-between;
     }

     .home-content h3 {
         font-size: 2.6rem;
     }

     .home-content h1 {
         font-size: 5rem;
     }

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 10rem;
         width: 55vw;
         margin-top: 4rem;
     }

     .about {
         flex-direction: column-reverse;
     }

     .about img {
         width: 65vw;
         margin-top: 0rem;
     }

     .about-content h2 {
         text-align: center;
     }

     .about-content h3 {
         text-align: center;
     }

     .about-content p {
         text-align: center;
         text-align: justify;
         text-justify: inter-word;
         font-weight: bold;
     }

     .education h2 {
         margin-bottom: 3rem;
     }

     .services h2 {
         margin-bottom: 3rem;
     }

     .portfolio h4 {
         margin-bottom: 3rem;
     }

     .portfolio-container {
         grid-template-columns: repeat(1, 1fr);
     }

     .contact-text p {
         color: var(--text-color);
         font-size: 20px;
         line-height: 30px;
         margin-bottom: 2rem;
         text-align: center;
         text-justify: inter-word;
     }

     .contact-list {
         margin-bottom: 3rem;
         display: block;
         justify-content: center;
         align-items: center;
         flex-wrap: wrap;
     }

     .contact-list li {
         margin-left: 15px;
         font-size: 18px;
         display: block;
     }
 }


 @media (max-width: 410px) {
    #menu-icon {
        display: block;
    }

    .logo {
        margin-right: 0rem;
    }

    .language-btn {
        inline-size: auto;
    }

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 8rem;
         width: 58vw;
         margin-top: 4rem;
     }

     .about img {
         width: 65vw;
         margin-top: 0rem;
     }

 }

 @media (max-width: 390px) {
     #menu-icon {
         display: block;
     }

     .logo {
         margin-right: 0rem;
     }

     .language-btn {
         inline-size: auto;
     }

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-right: 8rem;
         width: 58vw;
         margin-top: 4rem;
     }

     .about img {
         width: 65vw;
         margin-top: 0rem;
     }

 }

 @media (max-width: 280px) {
     #menu-icon {
         display: block;
     }

     .logo {
         margin-right: 0rem;
     }

     .language-btn {
         inline-size: auto;
     }

     .about img {
         width: 65vw;
         margin-top: 0rem;
     }

 }


 @media (max-width: 365px) {

     #menu-icon {
         display: block;
     }

     .logo {
         margin-right: 0rem;
     }

     .language-btn {
         inline-size: auto;
     }

     .home {
         text-align: center;
         flex-direction: column;
         justify-content: space-between;
     }

     .home-content h3 {
         font-size: 2.6rem;
     }

     .home-content h1 {
         font-size: 5rem;
     }

     .home-img img {
         justify-content: space-between;
         align-items: center;
         display: block;
         margin-right: 5rem;
         width: 65vw;
         margin-top: 4rem;
     }

     .about {
         flex-direction: column-reverse;
     }

     .about img {
         width: 65vw;
         margin-top: 0rem;
     }

     .about-content h2 {
         text-align: center;
     }

     .about-content h3 {
         text-align: center;
     }

     .about-content p {
         text-align: center;
         text-align: justify;
         text-justify: inter-word;
         font-weight: bold;
     }

     .education h2 {
         margin-bottom: 3rem;
     }

     .services h2 {
         margin-bottom: 3rem;
     }

     .portfolio h4 {
         margin-bottom: 3rem;
     }

     .portfolio-container {
         grid-template-columns: repeat(1, 1fr);
     }

     .contact-text p {
         color: var(--text-color);
         font-size: 20px;
         line-height: 30px;
         margin-bottom: 2rem;
         text-align: center;
         text-justify: inter-word;
     }

     .contact-list {
         margin-bottom: 3rem;
         display: block;
         justify-content: center;
         align-items: center;
         flex-wrap: wrap;
     }

     .contact-list li {
         margin-left: 15px;
         font-size: 18px;
         display: block;
     }

     .footer {
         flex-direction: column-reverse;
     }

     .footer p {
         text-align: center;
         margin-top: 2rem;
     }
 }

 @media (max-width: 340px) {

     #menu-icon {
         display: block;
     }

     .logo {
         margin-right: 0rem;
     }

     .language-btn {
         inline-size: auto;
     }

     .about img {
         width: 65vw;
         margin-top: 0rem;
     }
 }

 @media (max-width:317px) {

     #menu-icon {
         display: block;
     }

     .logo {
         margin-right: 0rem;
     }

     .language-btn {
         inline-size: auto;
     }

     .home-img img {
         justify-content: center;
         align-items: center;
         display: block;
         margin-left: 3rem;
         width: 73vw;
         margin-top: 4rem;
     }

     .about img {
         width: 65vw;
         margin-top: 0rem;
     }

 }