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

/* === BASE STYLES === */
html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === HEADER === */
header {
  background-color: #003087;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding-left: 0;
  margin: 0;
}

nav ul li a {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

nav ul li a:hover,
nav ul li a.active {
  text-decoration: underline;
}

nav ul li a.active {
  border-bottom: 2px solid #ff8c00;
  font-weight: 700;
}

/* === DARK MODE TOGGLE === */
.dark-toggle {
  background: none;
  border: 1px solid white;
  color: white;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 1rem;
}

/* === HERO SECTION === */
.hero {
  text-align: center;
  background-color: #e9f1fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero-logo {
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Aegis Seal sizing */
.hero-seal {
  max-width: 300px;
  height: auto;
}

.hero h2 {
  font-size: 2rem;
  color: #003087;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: #444;
}

/* === PAGE SECTIONS === */
.about-page h2,
.about-page h3 {
  color: #003087;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-page section {
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 2.5rem;
}

.about-page ul {
  list-style-type: disc;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.about-page ul li {
  margin-bottom: 0.5rem;
}

/* === FOOTER === */
footer {
  background-color: #003087;
  color: white;
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

footer a {
  color: #ff8c00;
}

footer a:hover {
  text-decoration: underline;
}

/* === DARK MODE === */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode a {
  color: #66ccff;
}

body.dark-mode header {
  background-color: #1f1f1f;
}

body.dark-mode nav ul li a {
  color: #e0e0e0;
}

body.dark-mode .hero {
  background: var(--dark-surface);
  color: var(--dark-text);
}

body.dark-mode .card {
  background: var(--dark-surface);
  color: var(--dark-text);
}

body.dark-mode .hero,
body.dark-mode .overview,
body.dark-mode .key-findings,
body.dark-mode .about-page section {
  background-color: #1e1e1e;
  border-color: #444;
  border-radius: 6px;
}

body.dark-mode footer {
  background-color: #1f1f1f;
  color: #ccc;
}

/* === CARD STYLES === */
.card-title {
  color: var(--blue);
  font-weight: 600;
}

.card:hover {
  transform: translateY(-2px);
  transition: 0.2s;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero-logo {
    max-width: 120px;
  }

  main {
    padding: 1.5rem;
  }
}