/* ========================================
   PREMIUM FLOATING NAVIGATION
   Ultra Modern Golden Theme
======================================== */

:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4E4C1;
    --gold-dark: #B8941E;
    --dark-bg: #0A0A0A;
    --dark-card: #1A1A1A;
    --text-light: #E0E0E0;
    --nav-width: 95%;
    --nav-width-scroll: 90%;
    --nav-height: 85px;
    --nav-height-scroll: 70px;
    --nav-border-radius: 25px;
    --nav-border-radius-scroll: 20px;
}

/* ========================================
   FLOATING NAVIGATION BASE
======================================== */
.premium-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--nav-width);
    max-width: 1400px;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--nav-border-radius);
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(212, 175, 55, 0.08);
}

/* Scrolled State - کوچک‌تر و فشرده‌تر */
.premium-nav.scrolled {
    top: 15px;
    width: var(--nav-width-scroll);
    height: var(--nav-height-scroll);
    background: rgba(10, 10, 10, 0.95);
    border-radius: var(--nav-border-radius-scroll);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4),
                0 0 100px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.25);
}

.nav-container {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.premium-nav.scrolled .nav-container {
    padding: 0 35px;
}

/* ========================================
   LOGO SECTION
======================================== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s ease;
}
.nav-logo .logo{
    display: flex;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
}

.premium-nav.scrolled .logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.logo-icon i {
    font-size: 26px;
    color: var(--dark-bg);
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    transition: all 0.4s ease;
}

.premium-nav.scrolled .logo-icon i {
    font-size: 22px;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.premium-nav.scrolled .logo-text {
    font-size: 21px;
}

/* ========================================
   DESKTOP MENU
======================================== */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.premium-nav.scrolled .nav-link {
    padding: 10px 18px;
    font-size: 14px;
    gap: 8px;
}

.nav-link i {
    font-size: 17px;
    transition: all 0.3s ease;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.premium-nav.scrolled .nav-link i {
    font-size: 15px;
}

/* Golden Glow Effect */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
                transparent, 
                var(--gold-primary), 
                var(--gold-dark),
                transparent);
    transform: translateX(-50%);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 85%;
}

/* Hover & Active States */
.nav-link:hover {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.12);
}

.nav-link:hover i,
.nav-link.active i {
    transform: scale(1.15) rotate(-5deg);
}

/* ========================================
   CTA BUTTON
======================================== */
.nav-cta {
    display: flex;
    align-items: center;
    z-index: 10;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--dark-bg);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.premium-nav.scrolled .cta-btn {
    padding: 13px 26px;
    font-size: 14px;
    gap: 10px;
}

/* Shimmer Effect */
.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.55);
}

.cta-btn i {
    font-size: 15px;
    transition: transform 0.3s ease;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.premium-nav.scrolled .cta-btn i {
    font-size: 13px;
}

.cta-btn:hover i {
    transform: translateX(-6px);
}

/* ========================================
   MOBILE TOGGLE BUTTON
======================================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 36px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.toggle-line {
    width: 100%;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========================================
   MOBILE MENU
======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: linear-gradient(180deg, 
                rgba(26, 26, 26, 0.98) 0%, 
                rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-close {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.mobile-close:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link i {
    font-size: 21px;
    color: var(--gold-primary);
    width: 28px;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(212, 175, 55, 0.12);
    padding-right: 28px;
    color: var(--gold-primary);
}

.mobile-nav-link:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.mobile-cta {
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 19px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--dark-bg);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}

.mobile-cta-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.mobile-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.55);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1400px) {
    :root {
        --nav-width: 96%;
        --nav-width-scroll: 92%;
    }
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 30px;
    }

    .premium-nav.scrolled .nav-container {
        padding: 0 28px;
    }

    .desktop-menu {
        gap: 5px;
    }

    .nav-link {
        padding: 12px 18px;
        font-size: 14px;
        gap: 7px;
    }

    .premium-nav.scrolled .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    :root {
        --nav-width: 94%;
        --nav-width-scroll: 90%;
        --nav-height: 75px;
        --nav-height-scroll: 65px;
    }

    .desktop-menu,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 25px;
    }

    .premium-nav.scrolled .nav-container {
        padding: 0 22px;
    }

    .premium-nav {
        top: 15px;
    }

    .premium-nav.scrolled {
        top: 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-width: 92%;
        --nav-width-scroll: 88%;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-width: 90%;
        --nav-width-scroll: 88%;
        --nav-height: 70px;
        --nav-height-scroll: 60px;
        --nav-border-radius: 20px;
        --nav-border-radius-scroll: 18px;
    }

    .nav-container {
        padding: 0 18px;
    }

    .premium-nav.scrolled .nav-container {
        padding: 0 16px;
    }

    .logo-icon {
        width: 46px;
        height: 46px;
    }

    .logo-icon i {
        font-size: 22px;
    }

    .premium-nav.scrolled .logo-icon {
        width: 40px;
        height: 40px;
    }

    .premium-nav.scrolled .logo-icon i {
        font-size: 19px;
    }

    .logo-text {
        font-size: 20px;
    }

    .premium-nav.scrolled .logo-text {
        font-size: 18px;
    }

    .mobile-menu {
        max-width: 100%;
        padding: 20px;
    }

    .mobile-nav-link {
        font-size: 16px;
        padding: 16px 18px;
    }

    .mobile-toggle {
        width: 32px;
        height: 21px;
    }
}

/* ========================================
   EXTRA: HIDE NAV ON SCROLL DOWN
   (Optional - فعال نیست)
======================================== */
/*
.premium-nav.hide {
    transform: translateX(-50%) translateY(-150%);
}
*/
