:root { --navbar-bg-color: white; --navbar-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); --brand-font-size: 1.5rem; --brand-color: #333; --link-font-size: 1rem; --link-color: #333; --hover-link-color: #6c63ff; } /* Navbar Styling */ .navbar { position: sticky; top: 0; /* Stick to the top */ z-index: 1000; /* Ensures the navbar stays above other elements */ display: grid; grid-template-columns: auto 1fr auto; align-items: center; background-color: var(--navbar-bg-color); padding: 10px 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); width: 100%; max-width: 96%; border-radius: 8px; } .navbar-brand { font-size: var(--brand-font-size); font-weight: bold; color: var(--brand-color); } .navbar-links { display: grid; grid-template-columns: repeat(4, auto); gap: 20px; list-style: none; justify-self: end; } .navbar-links a { text-decoration: none; color: var(--link-color); font-size: var(--link-font-size); transition: color 0.3s ease; } .navbar-links a:hover { color: var(--hover-link-color); }