/* ========================
   1. Global Dark Theme
======================== */
body {
  background: #121212;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ========================
   2. Main content container
======================== */
main, body > article, body > section, body > div {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 1em;
}

/* ========================
   3. Homepage (NEW)
======================== */
.home-content {
  text-align: center;
}

.home-content h1 {
  margin-bottom: 0.3em;
}

/* ========================
   4. Headings and text (GLOBAL SPACING TWEAKS)
======================== */
h1, h2, h3 {
  text-align: left;
  margin-top: 1em;       /* tighter top spacing */
  margin-bottom: 0.4em;  /* tighter bottom spacing */
  line-height: 1.3;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }

p, li {
  text-align: left;
  margin: 0.6em 0;      /* slightly tighter spacing */
}

ul, ol {
  padding-left: 2em;
  margin: 0.6em 0;
}

blockquote {
  padding-left: 1em;
  border-left: 3px solid #38bdf8;
  margin: 1em 0;
  color: #ccc;
  font-style: italic;
}

pre, code {
  background: #1e1e1e;
  color: #e0e0e0;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  overflow-x: auto;
}

/* ========================
   5. Navigation
======================== */
nav {
  text-align: center;
  margin-bottom: 2em;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav li {
  display: flex;
  justify-content: center;
}

nav a {
  display: block;
  padding: 6px 12px;
  background: #2a2a2a;
  color: #38bdf8;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  background: #38bdf8;
  color: #121212;
}

/* ========================
   6. Images
======================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
  border-radius: 12px;
}

/* Hero Image (homepage circle) */
.hero-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  display: block;
  margin: 1.5em auto;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transition: transform 0.2s ease;
}

.hero-img:hover {
  transform: scale(1.05);
}

/* About page hero image - similar to homepage hero */
.about-hero {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  display: block;
  margin: 1.5em auto;
}

/* ========================
   7. Divider
======================== */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #38bdf8, transparent);
  margin: 3em 0;
  opacity: 0.8;
}

/* ========================
   8. Footer
======================== */
footer {
  text-align: center;
  margin-top: 3em;
  padding: 1em 0;
  border-top: 1px solid #333;
  color: #888;
}

/* ========================
   9. Tables
======================== */
.support-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.support-table th,
.support-table td {
  padding: 12px;
  border-bottom: 1px solid #333;
  text-align: left;
}

.support-table th {
  color: #38bdf8;
}

.support-table img {
  max-width: 150px;
  margin: 0;
  border-radius: 0 !important;
}

/* ========================
   10. Who Am I
======================== */
.whoami-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5em;
}

/* ========================
   11. Forms
======================== */
.form-container {
  width: 100%;
  max-width: 900px;
  margin: 2em 0;
}

.form-container iframe {
  width: 100%;
  min-height: 817px;
  border: 0;
  border-radius: 12px;
}

/* ========================
   12. Links
======================== */
a {
  color: deepskyblue;
  text-decoration: none;
}

a:hover {
  color: lightskyblue;
  text-decoration: underline;
}

/* ========================
   13. Responsive
======================== */
@media screen and (max-width: 768px) {
  main, body > article, body > section, body > div {
    padding: 1.5em 1em;
  }

  nav li {
    flex: 0 0 25%;
  }

  .support-table th,
  .support-table td {
    font-size: 0.9em;
  }

  .support-table img {
    max-width: 120px;
  }

  .form-container iframe {
    height: 900px;
  }
}

@media screen and (max-width: 480px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.3em; }
  h3 { font-size: 1.1em; }
  p, li { font-size: 0.95em; }
}

/* ========================
   14. Story Divider
======================== */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #38bdf8, transparent);
  margin: 3em 0;
  opacity: 0.8;
}
