211 lines
3.4 KiB
CSS
211 lines
3.4 KiB
CSS
.navbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1000;
|
|
background: transparent;
|
|
transition: all 0.3s ease;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.navbar.scrolled {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.navbar.scrolled {
|
|
background: rgba(15, 23, 42, 0.95);
|
|
}
|
|
}
|
|
|
|
.navContent {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
font-family: var(--font-display);
|
|
text-decoration: none;
|
|
color: var(--foreground);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.logo:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.logoIcon {
|
|
font-size: 2rem;
|
|
animation: float 3s ease-in-out infinite;
|
|
}
|
|
|
|
.logoText {
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.navLinks {
|
|
display: none;
|
|
gap: 2rem;
|
|
align-items: center;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.navLinks {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.navLink {
|
|
color: var(--foreground-secondary);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.navLink::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -5px;
|
|
left: 0;
|
|
width: 0;
|
|
height: 2px;
|
|
background: var(--gradient-primary);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.navLink:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.navLink:hover::after {
|
|
width: 100%;
|
|
}
|
|
|
|
.navActions {
|
|
display: none;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.navActions {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.loginBtn {
|
|
color: var(--foreground);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
padding: 0.5rem 1rem;
|
|
transition: all 0.3s ease;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.loginBtn:hover {
|
|
background: var(--background-secondary);
|
|
}
|
|
|
|
.mobileMenuBtn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.mobileMenuBtn {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.hamburger {
|
|
position: relative;
|
|
width: 24px;
|
|
height: 2px;
|
|
background: var(--foreground);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.hamburger::before,
|
|
.hamburger::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 24px;
|
|
height: 2px;
|
|
background: var(--foreground);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.hamburger::before {
|
|
top: -8px;
|
|
}
|
|
|
|
.hamburger::after {
|
|
bottom: -8px;
|
|
}
|
|
|
|
.hamburger.open {
|
|
background: transparent;
|
|
}
|
|
|
|
.hamburger.open::before {
|
|
top: 0;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.hamburger.open::after {
|
|
bottom: 0;
|
|
transform: rotate(-45deg);
|
|
}
|
|
|
|
.mobileMenu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
padding: 2rem 0;
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.mobileMenu {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.mobileNavLink {
|
|
color: var(--foreground);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
padding: 0.75rem 0;
|
|
transition: all 0.3s ease;
|
|
border-bottom: 1px solid var(--background-secondary);
|
|
}
|
|
|
|
.mobileNavLink:hover {
|
|
color: var(--primary);
|
|
padding-left: 1rem;
|
|
}
|
|
|
|
.mobileActions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
} |