/*
Blue Colours: #0B0F19, #161F33, #2060D0
Grey: #94A3B8
White: #E2E8F0
Orange Colours: #FF6B00
*/

/* Global safety net */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0B0F19;
    color: #E2E8F0;
    margin: 0;
    padding: 0;
    font-size: 16px;
    overflow-x: hidden;
}

header {
    background-color: #161F33;
    border: 2px solid #2060D0;
    color: #E2E8F0;
    text-align: center;
    display: grid;
    grid-template-columns: 20% 20% 20% 20%;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    font-size: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box
}

h1, h2, h3, header {
    font-family: 'Outfit', -apple-system, sans-serif;
}

h1 {
    color: #2060D0;
    text-align: center;
    margin-top: 20px;
}

h2 {
    color: #94A3B8;
    text-align: center;
    font-size: 18px;
    margin-top: 18px;
}

h3 {
    color: #94A3B8;
    text-align: left;
    margin-top: 16px;
    font-size: 16px;
}

h4 {
    color: #94A3B8;
    text-align: left;
    margin-top: 4px;
    font-size: 12px;
}

p {
    text-align: left;
    font-size: 14px;
}
img {
    display: block;
    margin: 20px auto;
    width: 200px;
    border-radius: 10px;
}
a {
    display: inline;
    color: #E2E8F0;
    text-decoration: none;
}
a:hover {
    color: #FF6B00;
}

em {
  color: #FF6B00;
  font-style: normal;
}

.main {
      /* Set the cosmic void background color as the base layer */
  background-color: #0B0F19;
  
  /* Layer the Cold Blue and Thermal Orange as soft, overlapping glows */
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 50%, rgba(32, 96, 208, 0.15) 0%, transparent 60%);

  display: grid;
  grid-template-columns: auto;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.main section {
  padding: 5px 10px 20px 10px;
  font-size: 10px;
  text-align: left;
  box-sizing: border-box;
}

footer {
  margin-top: 40px;
  padding: 20px 10px 10px 15px;
  border-top: 1px solid #2060D0; /* use rgba(0,0,0,0.08) on light pages */
  font-size: 0.875rem;
  color: #94A3B8;
  background-color: #161F33;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-left {
  display: block;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: block;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: #E2E8F0; /* use #475569 on light pages */
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #FF6B00; /* matches your timeline accent */
}

.back-to-top {
  padding-left: 12px;
  padding-right: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

header, main, footer {
  width: 100%;
}

/* Make images responsive on small screens */
img {
  max-width: 100%;
  height: auto;
}


/* Mobile adjustments (screens smaller than 600px) */
@media screen and (max-width: 600px) {
  /* Switch header from rigid 20% columns to flexible wrapping */
  header {
    display: flexbox;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px;
    font-size: 16px;
  }

  /* Stack footer items cleanly on mobile */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

main, section {
  min-width: 0;
  max-width: 100%;
}