/* Navbar Styles */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0) 100%);
    border-bottom: none;
    padding: 0;
    box-shadow: none;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    gap: 30px;
}

/* Navigation Links */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex: 0;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 18px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    color: #888888;
    border-bottom-color: transparent;
    background-color: transparent;
}

.nav-link.active {
    color: #ff0000;
    border-bottom-color: transparent;
}

.nav-item:last-child .nav-link {
    padding-right: 0;
}

/* Divider */
.navbar-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
    flex-shrink: 0;
}

/* Social Media Links */
.navbar-social {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.nav-social-item {
    margin: 0;
    padding: 0;
}

.navbar-follow-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-color);
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-color);
    transition: color 0.3s ease;
    border-radius: 4px;
    padding: 0;
}

.nav-social-link:hover {
    color: #ff0000;
    background-color: transparent;
    transform: none;
}

.mobile-menu .nav-social-link:hover {
    color: #ff0000;
}

.social-icon {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hamburger Menu */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    z-index: 1002;
    position: fixed;
    top: 17px;
    right: 20px;
}

/* Animation Keyframes */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: absolute;
}

.hamburger-line:nth-child(1) {
    top: 8px;
}

.hamburger-line:nth-child(2) {
    top: 16px;
}

.hamburger-line:nth-child(3) {
    top: 24px;
}

.navbar-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 16px;
}

.navbar-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 16px;
}

.navbar-hamburger:hover .hamburger-line {
    background-color: #ff0000;
}

.navbar-hamburger.active .hamburger-line {
    background-color: #ff0000;
}

/* Mobile Menu */
.mobile-menu {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 0;
    gap: 0;
    z-index: 1001;
    max-height: 100vh;
    height: 100vh;
    overflow-y: hidden;
    width: 100%;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.active {
    display: flex !important;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
}

.mobile-menu .navbar-nav {
    width: 100%;
    flex-direction: column;
    gap: 0;
    display: flex;
    flex-wrap: nowrap;
    z-index: 1001;
    padding-top: 70px;
    flex: 1;
    align-items: center;
    text-align: center;
}

.mobile-menu .nav-item {
    width: 100%;
    display: flex;
    flex: 1;
}

.mobile-menu .nav-link {
    height: auto;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    flex: 1;
    animation: slideUpFadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.mobile-menu .nav-item:nth-child(1) .nav-link {
    animation-delay: 0.05s;
}

.mobile-menu .nav-item:nth-child(2) .nav-link {
    animation-delay: 0.1s;
}

.mobile-menu .nav-item:nth-child(3) .nav-link {
    animation-delay: 0.15s;
}

.mobile-menu .nav-item:nth-child(4) .nav-link {
    animation-delay: 0.2s;
}

.mobile-menu .nav-item:nth-child(5) .nav-link {
    animation-delay: 0.25s;
}

.mobile-menu .nav-item:nth-child(6) .nav-link {
    animation-delay: 0.3s;
}

.mobile-menu .nav-link:hover {
    color: var(--accent-color);
}

.mobile-menu .nav-link:last-child {
    border-bottom: none;
    padding-right: 20px;
}

.mobile-menu .navbar-divider {
    width: calc(100% - 40px);
    height: 1px;
    margin: 15px 20px;
    z-index: 1001;
}

.mobile-menu .navbar-social {
    width: 100%;
    flex-wrap: wrap;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    gap: 12px;
    z-index: 1001;
    display: flex;
    flex-direction: row;
    align-items: center;
    animation: slideUpFadeIn 0.5s ease-out 0.35s forwards;
    opacity: 0;
}

.mobile-menu .navbar-follow-label {
    width: 100%;
    margin: 0;
    padding: 0 0 15px 0;
    border-bottom: none;
    z-index: 1001;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu .navbar-social::before {
    content: '';
    display: none;
}

/* Social icons container - flex row for horizontal layout */
.mobile-menu .navbar-social .nav-social-item {
    display: flex;
}

.mobile-menu .navbar-social .nav-social-item:first-child {
    flex-basis: 100%;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar-container {
        gap: 20px;
        padding: 0 15px;
        justify-content: center;
    }

    .nav-link {
        padding: 0 12px;
        font-size: 12px;
    }

    .navbar-divider {
        height: 35px;
        margin: 0 8px;
    }

    .navbar-social {
        gap: 8px;
    }

    .nav-social-link {
        width: 32px;
        height: 32px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .navbar-hamburger {
        display: flex;
        order: 1000;
        margin-left: auto;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-divider {
        display: none;
    }

    .navbar-social {
        display: none;
    }

    .navbar-container {
        justify-content: flex-start;
        gap: 0;
    }

    .mobile-menu .nav-link {
        padding: 28px 24px;
        font-size: 18px;
    }

    .mobile-menu .navbar-follow-label {
        padding: 20px 20px 15px 20px;
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .mobile-menu .navbar-social {
        padding: 20px;
        gap: 12px;
    }

    .nav-social-link {
        width: 36px;
        height: 36px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 70px;
    }

    .navbar-hamburger {
        display: flex;
    }

    .nav-link {
        padding: 0;
        font-size: 12px;
    }

    .mobile-menu .nav-link {
        padding: 20px 20px;
        font-size: 16px;
    }

    .mobile-menu .navbar-follow-label {
        padding: 15px 20px 10px 20px;
        font-size: 14px;
    }

    .nav-social-link {
        width: 32px;
        height: 32px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }

    .navbar-follow-label {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .navbar {
        display: none;
    }
}
