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

body {
  padding-top: env(safe-area-inset-top);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
}

/* CONTAINER */
.container {
  max-width: 900px;
  margin: auto;
  padding: 0 20px;
}

/* NAVBAR */
.navbar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0; /* Make navbar stick to top */
  z-index: 1000; /* Ensure navbar is above other content */
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 16px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap; /* Allow links to wrap on smaller screens */
  justify-content: flex-end; /* Align links to the right */
}

.nav-links a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
}

.nav-links a:hover {
  color: #2563eb;
}

.unstyled-link {
  text-decoration: none;
  color: inherit;
}

.project-link:hover {
  text-decoration: underline;
}

/* HERO */
.hero {
  padding: 80px 0 50px;
  text-align: center;
  background: #ffffff;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero-subtext {
  max-width: 600px;
  margin: auto;
  color: #6b7280;
}

/* SECTIONS */
.section {
  padding: 60px 0;
}

.section.alt {
  background: #ffffff;
}

.section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* BUTTON */
.button {
  display: inline-block;
  padding: 10px 18px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

.button:hover {
  background: #1d4ed8;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 25px 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* MEDIA QUERIES & RESPONSIVE DESIGN */

/* large desktop */
@media (min-width: 1280px) {
  .navbar .container {
    max-width: 1200px;
    padding: 0 32px;
  }

  .logo {
    font-size: 1.7rem;
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* tablet and down */
@media (max-width: 1024px) {
  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 1.05rem;
  }
}

/* phones and down */
@media (max-width: 640px) {
  .nav-content {
    flex-wrap: wrap;
    padding: 10px 10px;
    gap: 10px;
  }

  .logo {
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: normal;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align links to the left on smaller screens */
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}

/* very small phones */
@media (max-width: 400px) {
  .nav-content {
    padding: 8px 8px;
    gap: 8px;
  }

  .logo {
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}
