:root {
    --primary: #9f6eff;
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(3, 3, 3, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 1rem 2rem;
    background: rgba(3, 3, 3, 0.9);
    box-shadow: 0 4px 30px rgba(110, 49, 255, 0.15);
    border-bottom: 1px solid rgba(110, 49, 255, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    height: 32px;
    filter: brightness(0) invert(1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: logoSpin 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover {
    transform: scale(1.1) rotate(360deg);
}

.company-name {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: fadeInBlur 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-shadow: 0 0 15px var(--primary);
    opacity: 0;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
    opacity: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover::after {
    opacity: 1;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 6px;
    color: #5865F2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.discord-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: #5865F2;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.discord-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.discord-btn:hover {
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
    border-color: transparent;
}

.discord-btn svg {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-btn:hover svg {
    transform: scale(1.2) rotate(-5deg);
}

@keyframes navLinkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nav-links a.clicked {
    animation: navLinkPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes logoSpin {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}