﻿:root {
    --neon-green: #74e4de;
    --neon-glow: 0 0 10px #74e4de, 0 0 20px rgba(0, 255, 65, 0.4);
    --bg-color: #050505;
    --card-bg: rgba(0, 20, 5, 0.7);
    --text-color: #e0e0e0;
    --border-color: #0f3f1a;
    --grid-color: rgba(255, 255, 255, 0.02);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(116, 228, 222, 0.03) 0%, transparent 50%),
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px;
    pointer-events: none;
    z-index: -1;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    overflow: visible !important;
}

.nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 5rem;
    position: relative;
    overflow: visible;
}

.logo {
    font-size: 1.875rem;
    font-weight: bold;
    color: #74e4de;
    letter-spacing: 0.1em;
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.logo-pulse {
    display: inline-block;
    animation: pulse-header 1s infinite;
}

@keyframes pulse-header {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.nav-links {
    display: none;
    gap: 0.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #9ca3af;
    position: relative;
    overflow: visible !important;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
    }
}

.nav-link.dropdown-menu-active {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.nav-actived,
.nav-link:hover {
    color: #74e4de;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}

.nav-button {
    padding: 0.5rem 1.5rem;
    border: 1px solid #74e4de;
    color: #74e4de;
    font-size: 0.875rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    white-space: nowrap;
}

.nav-button:hover {
    background-color: #74e4de;
    color: #000000;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .dropdown-menu {
        left: auto;
        right: 0;
        transform: translateX(0);
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn.active {
    color: #74e4de;
    background-color: rgba(0, 255, 65, 0.15);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    z-index: 1000;
    overflow-y: auto;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-menu-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 1.125rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.mobile-menu-link:hover {
    color: #74e4de;
    background: rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.3);
    transform: translateX(8px);
}

.mobile-menu-link.active {
    color: #74e4de;
    background: rgba(0, 255, 65, 0.15);
    border-color: rgba(0, 255, 65, 0.4);
    border-left: 4px solid #74e4de;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #74e4de;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover::before {
    transform: scaleY(1);
}

.mobile-language-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 65, 0.25);
    border-radius: 12px;
    background: rgba(0, 255, 65, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mobile-language-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #74e4de, transparent);
    opacity: 0.5;
}

.language-selector-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #74e4de;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.language-selector-title i {
    font-size: 1.125rem;
    filter: drop-shadow(0 0 3px rgba(0, 255, 65, 0.5));
}

.mobile-language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.875rem;
}

.mobile-language-option {
    padding: 1rem 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #9ca3af;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mobile-language-option:hover {
    border-color: rgba(0, 255, 65, 0.5);
    color: #74e4de;
    background: rgba(0, 255, 65, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.2);
}

.mobile-language-option.active {
    background: rgba(0, 0, 0, 0.25);
    border-color: #74e4de;
    color: #74e4de;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mobile-language-option.active::before {
    content: '\2713';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: #74e4de;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 255, 65, 0.5);
}

.mobile-language-option::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-language-option:hover::after {
    opacity: 1;
}

.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin: 5rem 0 2rem;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #74e4de, #74e4de);
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #74e4de, #00ff66);
}

@media (max-width: 480px) {
    .mobile-menu {
        padding: 2rem 1rem 1.5rem;
    }

    .mobile-menu-link {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .mobile-language-container {
        padding: 1.25rem 1rem;
        margin-top: 1.5rem;
        border-radius: 10px;
    }

    .mobile-language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .mobile-language-option {
        padding: 0.875rem 0.5rem;
        font-size: 0.875rem;
        min-height: 48px;
    }
}

@media (max-width: 360px) {
    .mobile-language-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-link {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active .mobile-menu-link {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.mobile-menu.active .mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu.active .mobile-menu-link:nth-child(6) { animation-delay: 0.35s; }
.mobile-menu.active .mobile-menu-link:nth-child(7) { animation-delay: 0.4s; }
.mobile-menu.active .mobile-language-container { animation-delay: 0.5s; }

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.nav-item {
    list-style: none;
    margin: 10px 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    position: relative;
}

.nav-item a {
    text-decoration: none;
}

.nav-type-text {
    position: relative;
}

.dropdown-menu-active {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-top: 2px solid #74e4de;
    width: 220px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    padding: 0.5rem 0;
    z-index: 1002;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 65, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: dropdownAppear 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 4px;
    overflow: visible;
}

.dropdown-menu.show {
    display: block;
}

@keyframes dropdownAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.dropdown-menu .nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu .nav-item a {
    display: block;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    border-left: 2px solid transparent;
}

.dropdown-menu .nav-item a:hover {
    color: #74e4de;
    background-color: rgba(0, 255, 65, 0.05);
    border-left: 2px solid #74e4de;
    padding-left: 1.25rem;
}

.dropdown-menu .nav-item a:active {
    background-color: rgba(0, 255, 65, 0.1);
}

.dropdown-menu .nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 65, 0.2), transparent);
}

.dropdown-menu .nav-item a::before {
    content: '>';
    position: absolute;
    left: 0.5rem;
    color: #74e4de;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.dropdown-menu .nav-item a:hover::before {
    opacity: 1;
}

.dropdown-menu-active {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu-active:hover {
    color: #74e4de;
}

.dropdown-menu-active .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.25rem;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.dropdown-menu-active:hover .caret {
    color: #74e4de;
}

.dropdown-menu-active.show .caret {
    transform: rotate(180deg);
    color: #74e4de;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #74e4de, transparent);
    opacity: 0.5;
}

.dropdown-menu {
    scrollbar-width: thin;
    scrollbar-color: #74e4de #0a0a0a;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #74e4de;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #74e4de;
}

.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-menu .nav-item.active a {
    color: #74e4de;
    background-color: rgba(0, 255, 65, 0.05);
    border-left: 2px solid #74e4de;
    padding-left: 1.25rem;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
        z-index: 1003;
    }

    .dropdown-menu-active {
        padding: 0.5rem;
    }
}
