nav {
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 2rem;
  padding-left: 2rem;
  height: 40px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(270deg, #263f51, #532251, #502222, #2f5c2d); /* dark red wipe effect */
background-size: 400% 400%; /* allows motion */
animation: wipeGradient 3s ease-in-out infinite;
}

/* Smooth wiping animation */
@keyframes wipeGradient {
0% {
background-position: 100% 50%;
}
50% {
background-position: 0% 50%;
}
100% {
background-position: 100% 50%;
}
}
.logo img {
height: 44px;
margin-top: 10px;

cursor:  pointer;
animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes pulseLogo {
0% {
transform: scale(1);
filter: brightness(1);
}
50% {
transform: scale(1.3);
filter: brightness(1.2);
}
100% {
transform: scale(1);
filter: brightness(1);
}
}

.nav-links {
  display: flex;
  gap: 4.7rem;
  font-size: 12px;
}
.nav-links a {
  color: white;
  font-weight: 900;
  transition: color 0.3s ease font-size 0.3s ease;
}
/* Hover color change */
.nav-links a:hover {
font-size: 15px; 
color: goldenrod; /* change this to your preferred highlight color */
}

/* Animated underline */
.nav-links a::after {
content: '';
position: absolute;
left: 50%;
bottom: 0;
width: 0%;
height: 1px;
background: linear-gradient(to right, #ffff22, goldenrod); /* animated progress bar */
transition: width 0.4s ease-in-out;
transform: translateX(-50%);
}

/* On hover, animate the underline */
.nav-links a:hover::after {
width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
}
.mobile-menu a {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ffffff;
  color: white;
  font-size: 12px;
  transition: color 0.3s ease font-size 0.3s ease;
  text-transform: uppercase;
}
/* Hover color change */
.mobile-menu a:hover {
font-size: 14px; 
color: goldenrod; /* change this to your preferred highlight color */
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem;
  position: fixed;         /* Makes it stay in place */
  text-align: center;
  align-items: center;
width: 100%;
padding-bottom: 160px;
z-index: 998;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
background: rgba(30, 30, 47, 0.8); /* Dark color with 80% opacity */

}

.mobile-menu p {
font-size: 1rem;
font-weight: bold;
text-transform: uppercase;
padding-top: 200px;
display: flex;
gap: 10px;
background: linear-gradient(90deg, #0095ff, #ff02f7, #ff0000, #0dff00);
background-size: 400%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: textGradientMove 4s linear infinite;
}

/* Animate the moving gradient */
@keyframes textGradientMove {
0% { background-position: 100% 50%; }
50% { background-position: 0% 50%; }
100% { background-position: 100% 50%; }
}



@media (max-width: 426px) {
  nav {
    height: 40px;
  }

  .logo img {
    height: 43px;
    margin-bottom: -2px;
    margin-top: 6px;
    }

.nav-links {
display: none;
}
.hamburger {
display: flex;
}
}

@media (max-width: 768px) {
  .nav-links {display: none;}
  .hamburger {display: flex;}
  .mobile-menu.show {display: flex;}
}