.navbar {
height: var(--nav-height);
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(15, 17, 23, 0.85);
backdrop-filter: blur(12px);
z-index: 1000;
border-bottom: 1px solid #30363d;
}
.navbar .container {
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
max-width: 100%;
padding: 0 clamp(2rem, 5vw, 4rem);
}
.logo {
display: flex;
align-items: center;
gap: 0.8rem;
font-family: var(--font-heading);
font-weight: 700;
font-size: 1.25rem;
letter-spacing: -0.01em;
color: var(--text-main);
z-index: 1001;
}
.logo img {
height: 28px;
width: auto;
}
.nav-content {
display: flex;
align-items: center;
gap: 2.5rem;
}
.links {
display: flex;
gap: 2rem;
align-items: center;
font-size: 0.9rem;
font-weight: 500;
color: var(--text-muted);
}
.links a {
position: relative;
padding: 0.5rem 0;
}
.links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: var(--primary);
transition: width 0.2s ease;
}
.links a:hover {
color: var(--text-main);
}
.links a:hover::after {
width: 100%;
}
.mobile-toggle {
display: none;
flex-direction: column;
gap: 6px;
background: none;
border: none;
cursor: pointer;
z-index: 1001;
}
.bar {
width: 24px;
height: 2px;
background-color: var(--text-main);
transition: all 0.3s ease;
}
.navbar.mobile-menu-open .nav-content {
transform: translateY(0);
opacity: 1;
pointer-events: auto;
}
.navbar.mobile-menu-open .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.navbar.mobile-menu-open .bar:nth-child(2) {
opacity: 0;
}
.navbar.mobile-menu-open .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
@media (max-width: 768px) {
.mobile-toggle {
display: flex;
}
.nav-content {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: var(--bg-main);
flex-direction: column;
justify-content: center;
padding: 2rem;
transform: translateY(-100%);
opacity: 0;
transition: all 0.3s ease-in-out;
pointer-events: none;
}
.links {
flex-direction: column;
font-size: 1.25rem;
margin-bottom: 2rem;
}
}