* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
  font-family: 'Vazirmatn', Tahoma, sans-serif;

}



html {

    overflow-x: hidden;
}

.navigation-contain {
    width: 100%;

    background: #d6d4d2;
    padding: 8px 0;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;

}

.navigation-contain .logo-contain a {
    text-decoration: none;
}

.logo-img-menu {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 3px 3px 6px #d9d9d9, -3px -3px 6px #ffffff;
}

.navigation-contain .logo-contain {
    width: 20%;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-around;
}

.navigation-contain .center-nav {
    width: 60%;
}

.navigation-contain .center-nav .nav {

    width: 100%;
    height: 80px;
    padding: 1rem;
    border-radius: 50px;
    z-index: 100;
    animation: animate-nav 1s ease-in-out backwards;

}

.navigation-contain .search-contain {
    width: 20%;
}


@keyframes animate-nav {
    0% {
        visibility: hidden;
        opacity: 0;
    }

    100% {
        visibility: visible;
        opacity: 1;
    }
}

.nav-light {
    position: absolute;
    top: 0;
    right: 4em;
    background-color: #ffffffff;
    width: 4em;
    height: 0.4em;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    transition: 0.3s ease;
    margin-right: 20.2%;
}

.nav-light::before {
    content: "";
    width: 5.2em;
    height: 6em;
    position: absolute;
    top: 0.6em;

    background: linear-gradient(to bottom,
     rgba(255, 255, 255, 0.3) -50%, rgba(255, 255, 255, 0) 90%);
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0% 100%);

}

.nav .nav-list {
    display: flex;
    justify-content: space-around;
}

.nav .nav-list li {
    position: relative;
    display: flex;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;

}


.nav .nav-list li i {
    font-size: 1.5rem;
    color: #9C2D2D;
}


.nav .nav-list li.active i {
    color: #ffffffff;
    text-shadow: 0 0 15px var(--home-icon-color),
        0 0 30px var(--home-icon-color),
        0 0 45px var(--home-icon-color),
        0 0 60px var(--home-icon-color);
}

.nav .nav-list li.active .tooltip {
    color: #ffffffff;

}

.tooltip {
    position: absolute;
    left: 50%;
    bottom: -3.7rem;
    transform: translateX(-50%);
    color: #9C2D2D;
    border-radius: 0.4rem;
    padding: 1.1rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: 0.3s;
}




/* استایل برای حالت فیکس */
.navigation-contain.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 1000;
    animation: none !important;
    background: rgb(214, 212, 210 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(173, 255, 47, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.7s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* خروج آروم تر */
.navigation-contain:not(.fixed) {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    
}


/*body وقتی منو فیکس میشه */
body.has-fixed-nav {
    padding-top: 80px;
   
}

/* استایل‌های عمومی همبرگر منو */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #9C2D2D;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;

}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;

}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 55%;
    max-width: 400px;
    height: 100%;
    background: #F7F5F2;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
}


.mobile-nav.active {
    right: 0;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #9C2D2D;
    color: white;
}

.mobile-logo p {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.close-mobile-nav {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.close-mobile-nav:hover {
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-grow: 1;
}

.mobile-nav-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav-list li:hover {
    background: rgba(156, 45, 45, 0.1);
    transform: translateX(5px);
}

.mobile-nav-list li.active {
    background: rgba(156, 45, 45, 0.2);
    border-right: 4px solid #9C2D2D;
}

.mobile-nav-list li i {
    font-size: 2rem;
    color: #9C2D2D;
    width: 30px;
    text-align: center;
}

.mobile-nav-list li a {
    font-size: 1.6rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    flex-grow: 1;
}

.mobile-search {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.mobile-input-box {
    position: relative;
    width: 100%;
}

.mobile-input-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    background: white;
}

.mobile-input-box input:focus {
    border-color: #9C2D2D;
    outline: none;
}

.mobile-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9C2D2D;
    font-size: 1.6rem;
}

/* استایل اصلی بخش زبان کشویی */
.language-dropdown {
    position: relative;
    display: inline-block;
    z-index: 100;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    background-color: #d6d4d2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #555;
    font-weight: 500;
}

.language-toggle:hover {
    background-color: #f9f9f9;
    border-color: #9C2D2D;
    box-shadow: 0 4px 12px rgba(156, 45, 45, 0.1);
}

.language-toggle i.fa-globe {
    color: #9C2D2D;
    font-size: 18px;
}

.language-toggle span {
    font-size: 15px;
    color: #9C2D2D;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.language-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
    text-decoration: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(156, 45, 45, 0.08);
    padding-right: 22px;
}

.dropdown-item.active {
    background-color: rgba(156, 45, 45, 0.1);
    color: #9C2D2D;
    font-weight: 600;
}

.dropdown-item i {
    color: #9C2D2D;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.language-name {
    flex-grow: 1;
    font-size: 15px;
}

.language-code {
    color: #888;
    font-size: 13px;

}

/* برای نمایش در نوبار با فضای محدود */
.language-dropdown.compact .language-toggle {
    padding: 8px 14px;
}

.language-dropdown.compact .language-toggle span {
    font-size: 14px;
}

.language-dropdown.compact .dropdown-menu {
    width: 160px;
}

/* نسخه فقط ایکون (بدون متن LAN) */
.language-dropdown.icon-only .language-toggle span {
    display: none;
}

.language-dropdown.icon-only .language-toggle {
    padding: 10px 12px;
}

/* Media Queries برای نمایش همبرگر در موبایل */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .center-nav {
        display: none;
    }

    .navigation-contain .logo-contain {
        width: 50% !important;
    }

    .navigation-contain .search-contain {
        width: 50% !important;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }

    .input-box {
        display: none;
    }

    .navigation-contain {
        height: 60px !important;
        padding: 0 15px !important;
    }

    body.has-fixed-nav {
        padding-top: 60px !important;
    }

    .logo-img-menu {
        width: 55px;
        height: 55px;

    }

}

/* برای تبلت‌های کوچک */
@media (min-width: 769px) and (max-width: 992px) {
    .hamburger-btn {
        display: none;
    }

    .center-nav {
        display: block;
    }

 
}

/* Animation برای آیتم‌های منوی موبایل */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-list li {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
}

.mobile-nav-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-nav-list li:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-list li:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-list li:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-list li:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-nav-list li:nth-child(6) {
    animation-delay: 0.35s;
}

