* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 80px; 
}

.brand-logo {
  display: flex;
  align-items: center;
  flex: 1;
}

.brand-logo img {
  height: 40px;
  width: auto;
  max-height: 100%;
}

header {
    background-color: #000;
      transition: background-color 0.3s ease;
  padding: 1rem 2rem;
  position: fixed; /* ✅ Stays on top */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  font-weight: bold;
  text-transform: uppercase;
}


.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  min-height: 60px; /* Prevent layout shift */
}

.nav-center{
    background-color: inherit; 
  transition: all 0.3s ease-in-out;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-family: "Lato", serif;
  font-weight: 700;
  font-style: normal;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #53C0F0;
}

.register-btn {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.register-btn a {
  text-align: center;
  color: #333;
  background-color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff; /* ✅ White icon */
  background: none;
  border: none;
  position: absolute;
  right: -0.9rem;
  top: -0.3rem;
  z-index: 110;
}

/* Responsive */
@media (max-width: 768px) {
  
  .navbar {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .brand-logo,
  .nav-center,
  .register-btn {
    flex: none; 
  }

  .navbar > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .navbar > * + * {
    margin-top: 1rem;
  }

  .nav-center {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.75);
  padding-bottom: 1rem;
  padding-top: 2rem;
  position: fixed;      
  top: 70px;  
  left: 0;
  right: 0;
  width: 100vw;          
  z-index: 99;
}


  .nav-center.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;    
    margin-left: 0;     
    margin-right: 0;   
    max-width: 300px;   
    text-align: center;
  }

  .nav-links li {
    width: 100%;
    font-weight: bolder;
    text-transform: uppercase;
  }

  .nav-links a {
    color: #fff;
    width: 100%;
    display: block;
  }

  .register-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .register-btn a {
    background-color: #fff;
    color: #333;
    border: 1px solid #fff;
  }

  .menu-toggle {
    display: block;
  }

  .action-text:hover {
    color: #53C0F0;
  }
}
