/* Header and navigation styles */ header { width: 100%; background: rgba(33, 37, 41, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: fixed; top: 0; left: 0; z-index: 1000; padding: 0.5rem 0; } .header-content { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; position: relative; } /* Logo */ .logo { color: white; font-size: 1.5rem; font-weight: bold; text-decoration: none; padding: 0.5rem 0; } .logo:hover { text-decoration: none; opacity: 0.9; } /* Navigation */ .nav-wrapper { display: flex; align-items: center; height: 100%; } /* Menu toggle button */ .menu-toggle { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; display: none; /* Hidden by default, shown on mobile */ } /* Navigation list */ .nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 1rem; align-items: center; } .nav-item { margin: 0; } .nav-link { color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; transition: background-color 0.2s, color 0.2s; display: block; } .nav-link:hover, .nav-link:focus { background: rgba(255, 255, 255, 0.1); text-decoration: none; color: #fff; } /* Active navigation item */ .nav-link.active { background: rgba(255, 255, 255, 0.2); font-weight: 500; } /* Mobile menu */ @media (max-width: 767px) { .menu-toggle { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; z-index: 1001; } .nav-wrapper { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: rgba(33, 37, 41, 0.98); padding: 5rem 1.5rem 2rem; transition: right 0.3s ease-in-out; z-index: 1000; overflow-y: auto; display: block; } .nav-wrapper.active { right: 0; } .nav-list { display: flex; flex-direction: column; gap: 0.5rem; padding: 0; } .nav-item { width: 100%; } .nav-link { display: block; padding: 0.75rem 1rem; border-radius: 4px; } .nav-link:hover, .nav-link:focus { background: rgba(255, 255, 255, 0.15); } }