:root{
    --small:4px;
    --medium:8px;
    --large:16px;
    --xlarge:24px;
    --xxlarge:32px;
    --xxxlarge:64px;
    --main-text-color:#F14902;
    --sec-text-color:#FFBD4B;
    --third-text-color:#FFBD8D;
    --app-color-1:#F14902;
    --app-color-2:#FFBD8D;
    --app-color-3:#93ABE1;
    --app-color-4:#FFE7D5;
    --hero-icon-size:96px;
    --hero-icon-size-mobile:64px;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: cairo;
    direction: rtl;
    margin: 0;
    background: #151515;
    scroll-behavior: smooth;

}
#menuTrigger{
    position: absolute;
    top:700px;
}
a{
    text-decoration: none;
}
a:visited{
    color: var(--app-color-2);
}
p,li{
    word-spacing: 4px;
}
.main-container{
    background: #151515;
    color:white;
    max-width: 2000px;
    margin: 0 auto;
}
.header{
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
    gap:24px;
    background: black;
    align-items: center;
    top:-120px;
    transition: top 0.2s;
    a{
        color:var(--app-color-4);
    }
}
.show-menu{
    top:0;
    padding: 16px;
}
.menu-logo{
    display: flex;
    align-items: center;
    gap:8px;
}
.header-logo{
    width: 32px;
}
.header-logo-text{
    font-size: 1.3em;
}
.nav-menu{
    display: flex;
    align-items: center;
    gap:16px;
    padding: 16px;
}
.menu-icon{
    width: 32px;
}
.menu-text{
    font-size: 1.2em;
}
.head-menu-link{
    display: flex;
    align-items: center;
    gap:4px;
}
.display-flex{
    display: flex;
}
.flex-grow-1{
    flex:1;
    min-width: 0;
}
.flex-col{
    flex-direction: column !important;
}
.flex-col-rev{
    flex-direction: column-reverse !important;
}
.align-items-center{
    align-items: center;
}
.justify-content-center{
    justify-content: center;
}
.align-right{
    text-align: right !important;
}
.overflow-hidden{
    overflow: hidden;
}

.hero-logo svg{
    width: 200px; 
    height: 200px;
   

}
.text-links{
    gap:24px;
    a{
        color:var(--app-color-4);
        font-size: 1.3em;
    }
}
.hero-section{
    height: 100vh;
    max-height: 1000px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 64px;
    gap:var(--xlarge);
    h1{
        margin:0;
        font-size: 4em;
    }
    h2{
        margin:0;
        font-size: 2em;
    }
    div,h2,h1{
        z-index: 1;
    }
}

.main-sections-icons{
    display: flex;
    gap:96px;
    justify-content: center;
 
    
}
.main-link{
    color:white;
    transition: transform 0.2s, scale 0.2s;
   
}
.main-link:hover    {
    scale: 1.3;
}

.main-link-icon{
    width: var(--hero-icon-size);
}
.section-icon{
    width: var(--hero-icon-size);
}
.hero-txt-link{
    transform: translateY(-100px);
    opacity: 0;
}
.link-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    color:var(--sec-text-color);
    font-size: 1.5em;
    font-weight: 700;
}
.hero-image{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top:0;
    opacity: 0.5;
    
}

.main-page-section{
    position: relative;
    display: flex;
    gap:var(--xxxlarge);
    align-items: center;
    padding-block: 64px;
    padding-inline: 128px;
}
.reversed-section{
    flex-direction: row-reverse;
}
.section-details{
    flex:1;
    min-width: 0;
}
.section-header{
    display: flex;
    align-items: center;
    gap:var(--large);
}
.section-title{
    font-size: 3em;
    color:var(--app-color-1);
    font-weight: 700;
    margin: 0;
}
.details-summary{
    font-size: 1.5em;
    color:var(--app-color-2);
    font-weight: 600;


}

.section-image{
    img{
        width: 600px;
        height: 400px;
        object-fit: cover;
        border-radius: 32px;
        overflow: hidden;
    }
    .back-img{
        position: absolute;
        opacity: 0.1;
        top: -80px;
        left: 0;
        width: 800px;
        height: auto;
    }
}
.read-more{
    color:var(--app-color-3);
    font-size: 1.5em;
    text-align: left;
    display: none;

}

.strong-text{
    color:var(--app-color-1);
}
.strong-text-2{
    color:var(--app-color-2);
}
.back-img-cont{
    flex-grow:0.5
}

.social-media-section{
    justify-content: center;
    flex-direction: column;
    padding-block: 128px;
}
.social-media-icon{
    display: block;
    width: 100px;
}
.social-links{
    display: flex;
    align-items: center;
    justify-content: space-around;
    align-self: stretch;
    
}
.services{
    margin-top: 32px;
}
.services-back{
    background-image: linear-gradient(to bottom, rgba(0,0,0,.6),rgba(0,0,0,.6)), url(./assets/car-parts.jpg);
    background-size: cover;
    background-attachment: fixed;
    
}

.footer{
    border-top: 1px solid white;
    padding: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 1.2em;
}
.footer-logo{
    width: 32px;
}
.mobile-menu{
    display: none;
    position: relative;
}
.mobile-menu-btn{
    border: none;
    background: transparent;
    width: 50px;
    height: 50px;
    align-items: center;
    padding: 4px;
    img{
        width: 100%;
        height: 100%;
    }
}
.mobile-menu-links{
    display: flex;
    flex-direction: column;
    gap:32px;
    position: absolute;
    transition: transform 0.2s;
    transform: scale(0);
    transform-origin: top right;
    min-width: 300px;
    padding: 24px;
    background: black;
    .head-menu-link{
        padding: 4px;
        gap:8px;
    }
    .menu-icon{
        width: 42px;
        height: 42px;
    }
    
}
.mobile-menu-links-vis{
    transform: scale(1);
}
.logo-svg-cont{
    overflow: hidden;
}
.main-link-item{
    display:flex;
    flex-direction: column;
    align-items: center;
}
.contact-info{
    align-self: stretch;
    h3{
        color:var(--app-color-2);
    }
}
.map-cont{
    align-self: stretch;
    iframe{
        width: 100%;
        height: 400px;
    }
}
/*------------- Media Queries --------------*/
@media(max-width:1350px){
    .main-page-section{
        padding-inline: 64px;
    }
    .section-image{
        img{
            width: 500px;
            height: 300px;
            object-fit: cover;
            border-radius: 32px;
            overflow: hidden;
        }
    }
}

@media(max-width:1150px){
    
    .main-page-section{
        flex-direction: column-reverse;
    }
    .section-image{
        img{
            width: calc(100vw - 64px);
            height: 300px;
            object-fit: cover;
            border-radius: 32px;
            overflow: hidden;
        }
    }
    .social-media-section{
        flex-direction: column;
    }
    .two-col{
        flex-direction: column;
    }
    .desktop-menu{
        display: none;
    }
    .mobile-menu{
        display: block;
    }
    .header{
        justify-content: flex-start;
    }
    .social-links{
        flex-wrap: wrap;
    gap: 16px;
    }
    .main-sections-icons{
        flex-wrap: wrap;
    }
}

@media(max-width:900px){
    .hero-logo svg{
        width: 100px; 
        height: 100px;
    }
    .main-link-icon{
        width: var(--hero-icon-size-mobile);
    }
    .hero-section{
        height: auto;
        max-height: none;
    }
    .main-sections-icons{
        gap:60px;
    }
    .hero-section {
        h1 {
            margin: 0;
            font-size: 3em;
        }
    }
}

@media (max-width:720px){
    .section-title{
        font-size: 1.5em;
    }
    .section-icon {
        width: var(--hero-icon-size-mobile);
    }
    .details-summary {
        font-size: 1.3em;
    }
    .section-image{
        img{
            height: 150px;
            object-fit: cover;
            border-radius: 16px;
            overflow: hidden;
        }
    }
    .main-page-section{
        padding-block: 32px;
        padding-inline: 32px;
    }
    .hero-section {
        padding: 32px;
        padding-top: 64px;
    }
    .social-media-icon{
        width: 64px;
    }
}
/*------------- Animation section ----------*/
@keyframes slideIn {
    from{
        transform: translateY(-100px) ;
        opacity: 0;
    }
    to{
        transform: translateY(0px) ;
        opacity: 1;

    }
}
@keyframes slide{
    from{
        transform: translateY(0px) ;
    }
    to{
        transform: translateY(-40px) ;

    }
}
@keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }

@keyframes slideFromRight {
    from{
        transform: translateX(100px) ;
        opacity: 0;
    }
    to{
        transform: translateX(0px) ;
        opacity: 1;

    }
}
@keyframes slideFromLeft {
    from{
        transform: translateX(-100px) ;
        opacity: 0;
    }
    to{
        transform: translateX(0px) ;
        opacity: 1;

    }
}

.animate-hero{
    .hero-logo{
        animation: slideIn;
        animation-duration: 0.5s;
        
    }
    h2,h1{
        animation: slideIn;
        animation-duration: 0.5s;
    }
    .main-link{
        animation: slideIn;
        animation-duration: 0.5s;
        animation-delay: 0.3s;
        animation-fill-mode: both;
    }
} 
.logo-svg-cont{
    animation: slide;
    animation-duration: 3s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-fill-mode: both;

}

.logo-path-1{
    --total-length:606.75;
    --looping-length:200;
    stroke-linecap: round;
    stroke: white;
    stroke-width: 1;

    stroke-dasharray: var(--looping-length), calc(var(--total-length) - var(--looping-length));
    stroke-dashoffset: var(--total-length);
    animation: draw 12s linear;
    animation-iteration-count: infinite;
   
  }

  
.logo-path-2{
    --total-length:225.03;
    --looping-length:100;
    stroke-linecap: round;
    stroke: rgba(255, 255, 255, 0.452);
    stroke-width: 1;

    stroke-dasharray: var(--looping-length), calc(var(--total-length) - var(--looping-length));
    stroke-dashoffset: var(--total-length);
    animation: draw 8s linear;
    animation-iteration-count: infinite;
   
  }
.main-page-section{
    overflow: hidden;
    .section-header{
        transform: translateX(100px) ;
        opacity: 0;
    }
    .section-details-info{
        transform: translateX(100px) ;
        opacity: 0;
    }
    .section-image{
        transform: translateX(-100px) ;
        opacity: 0;
    }
}
.social-media-icon{
    transform: translateY(-100px) ;
    opacity: 0;
}
.animate-section{
    .section-header{
        animation: slideFromRight;
        animation-duration: 0.5s;
        animation-fill-mode: both;
    }
    .section-details-info{
        animation: slideFromRight;
        animation-duration: 0.5s;
        animation-delay: 0.4s;
        animation-fill-mode: both;
    }
    .section-image{
        animation: slideFromLeft;
        animation-duration: 0.5s;
        animation-delay: 0.6s;
        animation-fill-mode: both;
    }
    .social-media-icon{
        animation: slideIn;
        animation-duration: 0.5s;
        animation-fill-mode: both;
    }
  }