:root{
    --links-bar-arrow:scaleY(4);
    --s-bar-red:#d20000;
    --s-bar-gray:#979797;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {text-decoration: none;}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-attachment: fixed;
    margin: 0;
    background: linear-gradient(180deg, #060701 40%, #464646);}

.lang-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 300;
}

.lang-switcher select {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.lang-switcher select:hover,
.lang-switcher select:focus-visible {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.lang-switcher select option {
    background: #787878;
    color: #fff;
}

@media (max-width: 900px) {
    .lang-switcher {
        top: 8px;
        right: 8px;
    }

    .lang-switcher select {
        font-size: 12px;
        padding: 6px 24px 6px 10px;
    }
}


/* Screen-reader-only text: keeps content accessible without changing the visual design */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Visible focus outline for keyboard users */
a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 3px solid #e0d0a7;
    outline-offset: 2px;
}


/* links-bar */

.links-bar{
    position: absolute;
    flex-direction: row;
    gap: 1%;  
    transition: 0.4s;
    transform-origin: top;
    animation-name: links-bar;
    animation-duration: 0.5s; 
}

.links-bar div{
    width: 140px;
    margin-top: -13%;
    border-radius: 3px;
    transition: 0.5s;  
    font-size: 22px;
    text-align: center; 
    z-index: 99;
}

.links-bar div:hover{
    background:  #ffffff5f;   
}


.links-bar div a {
    color: #ffffff;
    display: block;
    height: 100%;
    width: 100%;
    line-height: 1.8; /* adjust for vertical centering */
}




/* side-bar */

body .hidden-bar{
    position: fixed;
    width: 8%;
    height: 95%;
    z-index: 100;
}

body .hidden-bar:hover .bar,
body .hidden-bar:focus-within .bar{
    transform: scaleX(1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.825);
}

body .hidden-bar:hover::after,
body .hidden-bar:focus-within::after{
    transform:translateX(-13px) scaleY(1.2);
    color: #47626500;
}

.hidden-bar::after{
    content: "";
    background-image: url(../option-lines.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed;
    width: 50px;
    height: 50px;
    z-index: 200;
    transition: 0.5s;
    margin-left: -35px;
    top: 15px;
}

.bar{
    display: flex;
    align-items: center;
    position: fixed;
    background: var(--s-bar-gray);
    width: 10%;
    height: 110%;
    flex-direction: column;
    transition: 0.5s;
    transform: translateX(-140px);
    padding-top: 130px;
    gap: 7px;
    z-index: 99;
}

.bar div{
    color: #f9f8ff;
    background: #ffffff;
    width: 80%;
    height: 50px;
    border-radius: 5px;
    transition: 0.5s;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.825) inset;
    transform: translateX(-100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar div:hover{ scale: 1.05;}

.hidden-bar:hover .bar div,
.hidden-bar:focus-within .bar div{transform: translateX(5%);}

.bar div a{
    height: 99%;
    width: 99%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}


/* welcome */

.Welcome-custom{
    background: linear-gradient(to bottom, #ffffff0f, #02020200);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 160px;
}

.Welcome{
    background-image: url(../habbal.png);
    background-size: 100%;
    width: 130px;
    height: 100px;
    margin: 0;
    margin-right: 81%;
    margin-top: -4%;
    background-position: center;
    background-repeat: no-repeat;
    /* position: relative;
    top: 160px;
    right: -160px; */
}


.search {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    position: relative;
    width: 100%;
    min-height: 200px;
    bottom: 940px;
}

.search-bar {
    position: absolute;
    width: 75%;
    height: 105px;
    /* background:
    linear-gradient(45deg, #24c77b00 38%, var(--s-bar-red) 71%) no-repeat left top / 30.33% 100%,
    linear-gradient(45deg, var(--s-bar-red) 67%, var(--s-bar-red) 66%) no-repeat center top / 40.34% 100%,
    linear-gradient(45deg, var(--s-bar-red) 35%, transparent 65%) no-repeat right top / 33.33% 100%, #ffffff00; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -245px;
    border: none;
    padding: 10px;
}

.search-bar::before {
    content: "";
    position: absolute;
    width: 90vw;
    height: 120px;
    /* background: linear-gradient(45deg, #24c77b00 38%, var(--s-bar-gray) 71%) no-repeat left top / 30.33% 100%,
                linear-gradient(45deg, var(--s-bar-gray) 67%, var(--s-bar-gray) 66%) no-repeat center top / 40.34% 100%,
                linear-gradient(45deg, var(--s-bar-gray) 35%, transparent 74%) no-repeat right top / 33.33% 100%, #ffffff00; */
    z-index: -1;
    margin-top: 50px;
}

.search-bar button {
    background: #ffffff5e;
    border: none;
    color: white;
    padding: 12px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    margin: 3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar button:hover {
    background: #ffffff8e;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
}

.price-input {
    color: #ffffff;
    width: 100px;
    min-width: 80px;
}
.price-input::placeholder {
    color: #ffffff97; /* Your desired color */
    opacity: 1; /* Needed for Firefox */
}
.price-input::-webkit-inner-spin-button,
.price-input::-webkit-outer-spin-button {
    opacity: 1;
}

.price-separator {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.menu {
    width: 13%;
    min-width: 120px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    border-top: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-left: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.menu option {
    background: #787878;
    color: #fff;
    padding: 8px;
}


.menu option:disabled {
    color: #999;
    font-style: italic;
}



.ling a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    /* box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.825); */
}
.ser a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}
.dee a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.ling a::after {
    background-color: #dadada99;
    background-image: url('../ling_logo.webp');
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.825);
}

.dee a::after {
    background-color: #dadada99;
    background-image: url('../dee_logo.png');
}

.ser a::after {
    background-color: #dadada99;
    background-image: url('../ser_logo.jpg');
}

.dis-j-a a:hover::after {
    opacity: 0;
}



.linglong:hover{background:  linear-gradient(to right, #43ea29, #1a84db);}
.deestone:hover{background:  linear-gradient(to right, #ff2a00, #e6661c);}
.servis:hover{background:  linear-gradient(to right, red, #e6e6e6);}


.brands{
    display: flex;
    background: rgba(0, 0, 0, 0);
    height: 30%;
    width: 90%;
    flex-direction: row;
    transition: 0.5s;
    gap: 60px;
    z-index: 99;
    justify-content: space-between;
    position: absolute;
    top: 1222px;
}

.brands div{
    color: #f9f8ff00;
    background: #ffffff00;
    width: 80%;
    height: 100px;
    border-radius: 10px;
    transition: 0.5s;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.825);
    display: flex;
    transform-origin: top;
}
.brands .ling{box-shadow: 0px 0px 15px rgba(0, 93, 243, 0.825);}
.brands .dee{box-shadow: 0px 0px 15px rgba(212, 14, 0, 0.825);}
.brands .ser{box-shadow: 0px 0px 15px rgb(255, 33, 33);}

.brands div:hover {
    transform: scaleX(1.1);
    height: 300px;
    transform-origin: top; /* ✅ Scales from the bottom */
}
.brands div a{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    filter: blur(0.01px);
    transition: 0.3s;
}

.brands div a:hover{filter: blur(0px);}

.ling, .dee, .ser {transition: transform 0.3s ease;}

.ling img, .dee img, .ser img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
    overflow: hidden;
    border-radius: 10px;

}

.brands:hover .ling,
.brands:hover .dee,
.brands:hover .ser {
    width:40%;
}

.brands .ling:hover,
.brands .dee:hover,
.brands .ser:hover {
    width:80%;
}
/* .products-lable{background-color: beige;} */
.products-lable-1{
    font-size: 50px;
    font-weight: bold;
    color: #e5e3e3;
    width: 80%;
    height: 90px;
    text-align: center;
    position: relative;
    bottom: 580px;
}



.wheel-container {
    position: relative;
    width: 800px;
    max-width: 100%;
    height: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15%;
    border-radius: 20%;
}

.x{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 750px;
    height: 750px;
    max-width: 100%;
}
.wheel-image {
    background-image: url(../../main/wheel.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 450px;
    height: 450px;
    display: block;
    z-index: 7;
    position: relative;
}
.wheel-image::after{
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 310px;
    height: 10px;
    background-color: #00000045;
    box-shadow: 0 0 20px rgb(0 0 0 / 65%);
    border-radius: 50%;
    z-index: 8;
}


.link {
    position: absolute;
    top: 46%;
    left: 42.5%;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform-origin: center;
    z-index: 6;
    transform: rotate(180deg);
    background: #720f0000;
}

.link a{
    transform: rotate(90deg);
    color: #fff;
    font-size: 17px;
    width: 120px;
    height: 75px;
    background: var(--s-bar-red);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    transition: transform 0.8s ease;
}

.link a:hover,
.link a:focus-visible{
    box-shadow: 0px 0px 10px rgb(168, 0, 0);
}

.link-1 { transform: rotate(270deg) translateX(300px); scale: 0.01; opacity: 0; }
.link-2 { transform: rotate(342deg) translateX(300px); scale: 0.01; opacity: 0; }
.link-3 { transform: rotate(51deg) translateX(300px); scale: 0.01; opacity: 0; }
.link-4 { transform: rotate(126deg) translateX(300px); scale: 0.01; opacity: 0; }
.link-5 { transform: rotate(200deg) translateX(300px); scale: 0.01; opacity: 0; }

.link-1, .link-2, .link-3, .link-4, .link-5 {
    transition: transform 0.8s ease, scale 0.8s ease, opacity 0.8s ease;
}

.wheel-container:hover .link-1,
.wheel-container:focus-within .link-1 { transform: rotate(270deg) translateX(350px); scale: 1; opacity: 1; z-index: 6; }
.wheel-container:hover .link-2,
.wheel-container:focus-within .link-2 { transform: rotate(342deg) translateX(350px); scale: 1; opacity: 1; z-index: 6; }
.wheel-container:hover .link-3,
.wheel-container:focus-within .link-3 { transform: rotate(51deg) translateX(350px); scale: 1; opacity: 1; z-index: 6; }
.wheel-container:hover .link-4,
.wheel-container:focus-within .link-4 { transform: rotate(126deg) translateX(350px); scale: 1; opacity: 1; z-index: 6; }
.wheel-container:hover .link-5,
.wheel-container:focus-within .link-5 { transform: rotate(200deg) translateX(350px); scale: 1; opacity: 1; z-index: 6; }

.wheel-container:hover .link,
.wheel-container:focus-within .link{ opacity: 1; }


@keyframes wheel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.parts-lubes-servis {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    /* margin-top: 100px; */
    margin-bottom: 140px;
}

.parts, .lubes {
    flex-direction: row;
    gap: 10px;
    position: relative; /* Important for absolute positioning of pseudo-element */
    overflow: hidden;
    border-radius: 20px;
}

.parts a, .lubes a{
    color: var(--s-bar-red);
    width: 700px;
    max-width: 90vw;
    height: 400px;
    background: #ffffff00;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    transition: transform 1.5s ease;
    font-size: 34px;
}

.parts a:hover, .lubes a:hover{
    transform: scale(1.05);
}

.parts img, .lubes img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
    overflow: hidden;
    border-radius: 20px;
    display: block; 
}

/* Default (English) - Parts */
.parts::after {
    content: "";
    background-image: url(../parts_label.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    width: 250px;
    height: 250px;
    top: -260px; 
    left: 10px; 
    z-index: 200;
    transition: top 0.5s ease;
}
.parts:hover::after {top: -25px;}

/* Default (English) - Lube */
.lubes::after {
    content: "";
    background-image: url(../lube_label.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    width: 250px;
    height: 250px;
    top: 160px; 
    left: 700px; 
    z-index: 200;
    transition: left 0.5s ease;
}
.lubes:hover::after {left: 450px;}

/* Arabic - Parts */
html[lang="ar"] .parts::after {
    background-image: url(../parts_label_ar.png);
}
html[lang="ar"] .parts:hover::after {
    top: -25px;
}

/* Arabic - Lube */
html[lang="ar"] .lubes::after {
    background-image: url(../lube_label_ar.png);
}
html[lang="ar"] .lubes:hover::after {
    left: 450px;
}

/* Turkish - Parts */
html[lang="tr"] .parts::after {
    background-image: url(../parts_label_tr.png);
}
html[lang="tr"] .parts:hover::after {
    top: -25px;
}

/* Turkish - Lube */
html[lang="tr"] .lubes::after {
    background-image: url(../lube_label_tr.png);
}
html[lang="tr"] .lubes:hover::after {
    left: 450px;
}

.footer {
    bottom: 0;
    width: 100%;
    background-color: #5b5b5b00;
    color: #fff;
    padding: 10px 0;
    z-index: 100;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
}

.footer-content a {color: #fff;}


.footer-links {
    display: flex;
    justify-content: space-between;
    width: 90%;
}


.contact-us ,.media, .products, .services{
    display: flex;
    flex-direction: column;
    margin-left: 10%;
}
.contact-us div,.media div, .products div, .services div{margin-bottom: 10px;}


.dis-j-a{
    display: flex;
    justify-content: center;
    align-items: center;
}

ul , ol{list-style: none; }


.copyright{display: flex; justify-content: center;}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}


/* Responsive breakpoints — the original had none, so the layout broke below ~900px */
@media (max-width: 900px) {
    .wheel-container {
        width: 90vw;
        height: 90vw;
        margin-top: 25%;
    }

    .x {
        width: 85vw;
        height: 85vw;
    }

    .wheel-image {
        width: 45vw;
        height: 45vw;
    }

    .search-bar {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .menu {
        width: 70%;
    }

    .links-bar {
        position: static;
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .Welcome-custom {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
    }

    .Welcome {
        margin-right: 0;
    }

    .parts a, .lubes a {
        width: 90vw;
        height: 250px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-lable-1 {
        font-size: 28px;
    }

    .nav-btn {
        font-size: 16px;
        padding: 6px 10px;
    }
}
@media (max-width: 1360px) {
   .slideshow {
        width: 90%;
    }
}


/* parts page  */

/* glass */

/* links  */

/* img */

/* footer */
