/* ================= RESET ================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================= BODY ================= */

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #eef2f7, #f8fafc);
  color: #1f2937;
  min-height: 100vh;
}

/* ================= CONTAINER ================= */

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 25px;
}

/* ================= HEADINGS ================= */

h1 {
  text-align: center;
  font-weight: 700;
}

.subtitle {
  text-align: center;
  color: #6b7280;
}

/* ================= NAVBAR (GLASS STYLE) ================= */

.navbar {
  position: sticky;
  top: 12px;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;

  margin: 12px auto;
  padding: 12px 22px;

  width: fit-content;
  max-width: 90%;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* LINKS */

.navbar a {
  position: relative;

  text-decoration: none;
  color: #374151;
  font-weight: 600;
  font-size: 14px;

  padding: 8px 14px;
  border-radius: 999px;

  transition: all 0.25s ease;
}

/* HOVER */

.navbar a:hover {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
  transform: translateY(-1px);
}

/* UNDERLINE EFFECT */

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 20%;
  right: 20%;

  height: 2px;
  background: #16a34a;

  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.navbar a:hover::after {
  transform: scaleX(1);
}

/* ================= MOBILE RESPONSIVENESS ================= */

@media (max-width: 600px) {
  .container {
    margin: 10px auto;
    padding: 15px 12px;
  }

  h1 {
    font-size: 20px;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    width: 100%;
    border-radius: 16px;
    padding: 10px;
  }

  .navbar a {
    flex: 1 1 45%;
    text-align: center;
    font-size: 13px;
    padding: 8px;
  }
}
