.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    background-color: var(--bg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-weight: bold;
    font-size: 24px;
    margin-right: 40px;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.terminal-prompt {
    color: #4ade80;
    font-weight: bold;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
    font-size: 18px;
}

.terminal-text {
    color: var(--text);
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background-color: var(--text);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.theme-toggle:hover {
    background: var(--bgSoft);
    opacity: 1;
}

.theme-toggle .sun {
    display: none;
}

.theme-toggle .moon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun {
    display: block;
}

[data-theme="light"] .theme-toggle .moon {
    display: none;
}

.links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
}


.hamburger {
    display: none;
    font-size: 24px;
    background: var(--bgSoft);
    border: 1px solid var(--textSoft);
    color: var(--text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hamburger:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: scale(1.05);
}

/* Close button for mobile menu */
.close-menu {
    display: none;
    position: fixed;
    top: 32px;
    right: 32px;
    background: var(--bgSoft);
    border: 1px solid var(--textSoft);
    font-size: 32px;
    color: var(--text);
    cursor: pointer;
    z-index: 1101;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-menu:hover {
    background: var(--text);
    color: var(--bg);
    transform: rotate(90deg) scale(1.1);
    border-color: var(--text);
}

@media (max-width: 768px) {
    .links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 120px 40px 40px 40px;
        z-index: 1000;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        gap: 32px;
        opacity: 0;
        animation: fadeIn 0.3s ease forwards;
    }
    
    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }
    
    .links a {
        font-size: 28px;
        font-weight: 500;
        padding: 12px 24px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(222, 228, 235, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .links a:hover::before {
        left: 100%;
    }
    
    .links a:hover {
        background-color: var(--bgSoft);
        transform: translateX(8px);
        color: var(--text);
    }
    
    .links .theme-toggle {
        margin-top: 16px;
    }
    
    .links.show {
        display: flex;
    }
    
    .links.show .close-menu {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
}