/*=================== language switch style  =================*/

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #abb2bf;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
}

.lang-switch .lang-option {
    color: #abb2bf;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-switch .lang-option.active {
    color: #C778DD;
    font-weight: bold;
}

.lang-switch .lang-divider {
    color: #abb2bf;
}

.lang-switch:hover {
    border-color: #C778DD;
}

/* حالت فارسی: راست‌چین کردن صفحه */
body.lang-fa {
    direction: rtl;
    text-align: right;
}

body.lang-fa .fixed-social {
    left: auto;
    right: 30px;
}

@media (max-width: 900px) {
    .lang-switch {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}



/*=================== header style  =================*/
.menuBtn {
    display: none;
    flex-direction: column;
}

.main-header {
    padding: 25px 15%;
    background-color: #0B0D1A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 0 20px #23283B;
}

.main-header .logo-wrapper {
    display: flex;
    gap: 6px;
}

/* logo style */

.main-header .logo-main-header {
    height: 14px;
    margin-top: 0.3rem;
}

/* navigation list */

.main-header .nav-list {
    display: flex;
    gap: 1rem;
}

.main-header .nav-list .sharp-sine {
    color: #c778dd;
}

.main-header .nav-list .nav-link {
    padding: 0 0.5rem;
    color: #abb2bf;
    transition: all 0.3s;
    font-size: 1.1rem;
}


/* hover efect */

.main-header .nav-list .nav-link:hover {
    color: white;
}


/* frist childe of header style */

.main-header .nav-list .nav-link.activ {
    color: white;
}

.skils-title {
    width: 70%;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    margin-top: 140px;
}

.skils-title .title {
    display: flex;
    align-items: center;
    position: relative;
}

.skils-title .title .title-box-skils {
    font-size: 2rem;
}

.skils-title .title .title-box-skils .title-hilait {
    color: #c778dd;
}


@media (max-width:600px) {
    .skils-title .title::after {
        display: none;
    }
}



/*=================== footer style  =================*/

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: 0 auto;
    margin-top: 300px;
}

/* left section style */

.footer-container .left-section {
    font-size: 21px;
}

.footer-container .left-section .wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 15px;
}

.footer-container .left-section .title {
    color: #abb2bf;
}

/* right section style */

.footer-container .right-section {
    color: #abb2bf;
    align-items: end;
    font-size: 32px;
}

.footer-container .right-section .title-right {
    color: white;
    margin-bottom: 10px;
}

/* title last */

.title-last {
    text-align: center;
    color: #abb2bf;
    margin: 70px;
    font-size: 21px;
}


/*=================== particale style  =================*/

.particles-containr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, red, #ff6b81);
    border-radius: 50%;
    animation: floatParticles 15s infinite linear;
    opacity: 0.3;
}

@keyframes floatParticles {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}


header .menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

/* looading */
#page-loader {
    position: fixed;
    inset: 0;
    background-color: #0B0D1A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #23283B;
    border-top: 4px solid #C778DD;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loader-text {
    color: #ABB2BF;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#three-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#three-bg canvas {
    display: block;
}

/* ===================================================
   ریسپانسیو هدر و منو (common)
   =================================================== */

@media (max-width: 900px) {

    .main-header {
        padding: 2px 6%;
    }

    /* لیست نویگیشن پیش‌فرض قایم میشه */
    .main-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #0B0D1A;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    /* وقتی کلاس نعال با جاوااسکریپت اضافه بشه، منو میاد توی صفحه */
    .main-header nav.nav-active {
        right: 0;
    }

    .main-header .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem;
        gap: 1.5rem;
    }

    /* دکمه‌ی همبرگر نشون داده بشه */
    header .menu-toggle {
        display: flex;
    }

    header .menu-toggle .cloes-icon {
        display: none;
    }

    header .menu-toggle.active .fa-bars {
        display: none;
    }

    header .menu-toggle.active .cloes-icon {
        display: inline-block;
    }

    .mehrab-banner-contact {
        margin-top: 130px;
    }
}

/* ===================================================
   ریسپانسیو تیتر بخش‌ها (skils-title)
   =================================================== */

@media (max-width: 1024px) {
    .skils-title {
        width: 90%;
    }
}

/* ===================================================
   ریسپانسیو فوتر (common)
   =================================================== */

@media (max-width: 900px) {

    .footer-container {
        width: 90%;
        margin-top: 100px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 600px) {

    .footer-container {
        margin-top: 70px;
    }

    .footer-container .left-section,
    .footer-container .right-section {
        width: 100%;
        font-size: 18px;
    }

    .title-last {
        margin: 40px 0;
        font-size: 16px;
    }
}