/* ====== GLOBAL ====== */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: #f7f9fc;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== HEADER ====== */
header {
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  margin-right: 10px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.navbar ul li a.active,
.navbar ul li a:hover {
  color: #007bff;
}

/* ====== MENU BURGER ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  cursor: pointer;
}

.menu-toggle span {
  background-color: #ffffff;
  height: 3px;
  width: 25px;
  margin: 3px 0;
  transition: 0.3s;
}

/* ====== USERNAME PAGE ====== */
.username-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007bff, #00b894);
  padding: 40px 20px;
}

.username-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  text-align: center;
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.6s ease-in-out;
}

.username-card h2 {
  color: #2d3436;
  margin-bottom: 10px;
}

.username-card p {
  color: #636e72;
  font-size: 14px;
  margin-bottom: 25px;
}

.username-card input {
  width: 100%;
  padding: 12px;
  border: 2px solid #dfe6e9;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.3s;
}

.username-card input:focus {
  border-color: #007bff;
}

.username-card button {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.username-card button:hover {
  background: #0056b3;
}

/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 15px 0;
  background: #222;
  color: #fff;
  font-size: 14px;
  margin-top: auto;
}

/* ====== ANIMATION ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======== MOBILE ======== */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 220px;
    background-color: #0D4A7A;
    height: calc(100vh - 60px);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  .navbar.active {
    right: 0;
  }

  .navbar ul {
    flex-direction: column;
    gap: 20px;
  }

  .navbar ul li a {
    color: #fff;
    font-size: 18px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 1em;
  }
}

/* ======== SMALL SCREENS ======== */
@media (max-width: 600px) {
  header {
    flex-direction: row;
    justify-content: space-between;
  }
}
