Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added officialCode
Empty file.
71 changes: 50 additions & 21 deletions styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,58 @@ html {


/* =================== Navbar Styles Start Here ================== */
.navbar {
background-color: #ffffff;

}

.navbar-brand {
font-size: 2.1rem;
font-weight: 900;
color: #2563eb;
}

.navbar-brand:hover {
color: #2563eb;
}

.navbar-brand span {
color: #1e2c44;
}

.nav-item a {
color: #1e2c44;
font-size: 20px;

position: relative;
display: inline-block;
padding: 10px 18px;
margin: 0 8px;
font-weight: 500;
font-size: 20px;
color: #1e2c44;
background-color: transparent;
text-decoration: none;
border-radius: 8px;
transition: all 0.3s ease-in-out;
}

/* ============ Hover Effect ============ */
.nav-item a:hover {
color: #4c52f0;
background-color: #d1dbf1;
transform: scale(1.05);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: The transform: scale(1.05) may cause layout shift on hover. Consider using transform-origin or padding adjustments instead.

box-shadow: 0 8px 16px rgba(76, 82, 240, 0.25);
}

/* ============ Underline Animation ============ */
.nav-item a::after {
content: '';
position: absolute;
bottom: 4px;
left: 20%;
width: 0;
height: 2px;
background-color: #4c52f0;
transition: width 0.4s ease-in-out;
}

.nav-item a:hover::after {
width: 60%;
}

/* ============ Active Link Override ============ */
.nav-item a.active {
color: #1e2c44;
background-color: transparent;
font-weight: 500;
box-shadow: none;
}

.nav-item a.active:hover {
color: #4c52f0;
background-color: #d1dbf1;
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(76, 82, 240, 0.25);
}

/* ================== Navbar Styles End Here ================== */
Expand Down
Loading