/* === Reset and base styles === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #f7fafc;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: #22223b;
  background: linear-gradient(135deg, #e0edff 0%, #f5f5fa 100%);
  min-height: 100vh;
}
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #163564;
}
h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; text-align: center; }

a { color: #284ea6; text-decoration: none; }
a:hover { text-decoration: underline; }

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 4px 0 #e0eaf7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 2rem;
}
.main-nav {
  display: flex;
  gap: 1.2rem;
}
.main-nav a {
  font-weight: 500;
  padding: 0.3em 0.6em;
  border-radius: 5px;
  transition: background .15s, color .15s;
}
.main-nav a:hover {
  background: #e0edff;
  color: #09245c;
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  padding: 2em 1em;
  background: linear-gradient(135deg, #d9ecff 0%, #f7fafc 100%);
  box-shadow: 0 4px 24px 0 #e7edf2;
}
.hero-img-wrap {
  flex: 1 1 230px;
  display: flex;
  justify-content: center;
}
.einstein-photo {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 1.5rem;
  border: 4px solid #fff;
  box-shadow: 0 7px 28px 0 #bfcdf4;
  background: #fff;
}
.hero-text-wrap {
  flex: 2 1 300px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.hero-text-wrap h2 {
  color: #183073;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.hero-text-wrap p {
  font-size: 1.07rem;
  color: #35436b;
  margin-bottom: 1.4em;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  padding: 0.7em 1.7em;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 #c7d3e2;
  border: none;
  outline: none;
  transition: background 0.17s, color 0.17s;
  cursor: pointer;
  display: inline-block;
}
.btn-primary {
  background: #193f7f;
  color: #fff;
}
.btn-primary:hover {
  background: #09245c;
}
.btn-secondary {
  background: #fff;
  color: #193f7f;
  border: 1.7px solid #193f7f;
}
.btn-secondary:hover {
  background: #e6eefc;
}

/* --- Sections Spacing --- */
section {
  margin: 0;
  padding: 3rem 1em;
  width: 100%;
}
@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;
  }
  .hero-section {
    flex-direction: column;
    gap: 1.3rem;
    padding: 1.5em 0.5em 2em 0.5em;
  }
  .hero-img-wrap,
  .hero-text-wrap {
    width: 100%;
    max-width: 100%;
  }
  .main-nav {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  section {
    padding: 2rem 0.4em;
  }
}

/* --- Facts Section & Cards --- */
.facts-section {
  max-width: 1000px;
  margin: 0 auto;
}
.facts-section h3 {
  margin-bottom: 1.8rem;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.7rem;
}
.fact-card {
  background: #fff;
  border-radius: 1.1em;
  box-shadow: 0 2px 8px 0 #e5ecf5;
  padding: 1.1em 1em;
  font-family: 'Inter', system-ui, sans-serif;
  border: 1px solid #dce3ed;
  transition: box-shadow .18s, transform .18s;
  font-size: 1.05rem;
}
.fact-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.84em;
  font-weight: 700;
  color: #8ca9d1;
  margin-bottom: 0.3em;
}
.fact-card:hover {
  box-shadow: 0 7px 28px #c1d8f7;
  transform: scale(1.035) translateY(-3px);
}

/* --- Quotes Section --- */
.quotes-section {
  background: linear-gradient(to bottom, #fff 80%, #e0edff);
  padding-bottom: 3.3rem;
}
.quotes-section h3 {
  margin-bottom: 1.7em;
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2em;
  max-width: 1200px;
  margin: 0 auto;
}
blockquote {
  background: #fff;
  border-left: 4px solid #2a6cbc;
  border-radius: 0.7em;
  box-shadow: 0 1px 7px 0 #dae2f0;
  padding: 1.2em 1.2em 1.5em 1.2em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: #244a73;
  font-size: 1.1rem;
  transition: box-shadow .15s;
}
blockquote span {
  display: block;
  color: #254eb2;
  font-size: 0.94rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  text-align: right;
  margin-top: 1em;
}
blockquote:hover {
  box-shadow: 0 6px 26px #b5c9ea;
}

/* --- Timeline Section --- */
.timeline-section {
  max-width: 900px;
  margin: 0 auto;
}
.timeline-section h3 {
  margin-bottom: 1.3em;
}
.timeline-list {
  border-left: 3px solid #75a2e4;
  padding-left: 1.3em;
  list-style: none;
  margin: 0;
}
.timeline-list li {
  margin-bottom: 2.2em;
  position: relative;
  padding-left: 1.1em;
  color: #374980;
  font-size: 1rem;
}
.timeline-list li span {
  position: absolute;
  left: -2.5em;
  top: -0.25em;
  background: #2b69b2;
  color: #fff;
  border-radius: 50%;
  width: 2em;
  height: 2em;
  font-size: 1.15em;
  text-align: center;
  line-height: 2em;
  font-weight: bold;
  box-shadow: 0 2px 8px #c1d8f7;
  border: 2px solid #fff;
}
.timeline-list li:last-child { margin-bottom: 0; }

/* --- Fun Facts --- */
.funfacts-section {
  background: linear-gradient(to top, #e0edff 65%, #fff 100%);
  padding-bottom: 3.5rem;
  max-width: 100vw;
}
.funfacts-section h3 {
  margin-bottom: 1.2em;
}
.funfacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
  gap: 1.15em;
  max-width: 1000px;
  margin: 0 auto;
}
.funfacts-grid div {
  background: #fff;
  border-radius: 1.1em;
  font-size: 1.05rem;
  color: #2773ad;
  box-shadow: 0 2px 8px 0 #e5ecf5;
  padding: 1em 1.1em;
  display: flex;
  align-items: flex-start;
  transition: box-shadow .18s, transform .18s;
}
.funfacts-grid div:hover {
  box-shadow: 0 8px 28px #a6c8eb;
  transform: scale(1.03);
}

/* --- Footer --- */
.main-footer {
  text-align: center;
  color: #678;
  font-size: 1.05rem;
  margin-top: 3em;
  padding: 2.5em 0;
}
.footer-highlight {
  color: #2562ba;
  font-weight: bold;
}
.main-footer a {
  color: #2562ba;
  text-decoration: underline;
}
.main-footer a:hover {
  color: #183073;
}

/* === End of style.css === */