/* ==========================================================================
   1. Fonts & CSS Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
  --bg-color: #000000;
  --card-bg: #1a1d24;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --accent: #6366f1;
  --link-color: #b0bcf8;
  --link-hover: #f0f3ff;
  --link-active: #ceebcc;
  --border-color: #27272a;
}

/* ==========================================================================
   2. Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  box-shadow: 0 1px 0 var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-main);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a.active {
  color: var(--link-active);
  font-weight: bold;
}

/* ==========================================================================
   4. Main Content Area
   ========================================================================== */
main {
  flex: 1; /* Pushes the footer to the bottom */
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem; /* 6rem top padding clears fixed header */
}

section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

section p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  background-color: var(--bg-color);
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  font-weight: 500;
}


/* ==========================================================================
   6. Responsive Layout (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
  }

  header h1 {
    font-size: 2rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  main {
    /* Increases top padding to prevent the taller, stacked mobile navbar from overlapping content */
    padding: 7.5rem 1.25rem 2.5rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  section p {
    font-size: 1rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 0.75rem;
  }

  header h1 {
    font-size: 1.75rem;
  }
}