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

html, body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #2c3e50;
  line-height: 1.6;
}

/* Make header fill entire viewport */
header#main-header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  background-color: #1a1a1a;
  color: white;
}

/* Top nav pinned to top */
.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 1.25rem;
  z-index: 1000;
}

/* Centered hero content */
.hero-content {
  flex: 1; /* fill remaining space below nav */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #c9a227;
}

.hero-content p {
  font-size: 1.125rem;
  color: #ddd;
}


/* SECTION */
section {
  width: 90%;
  max-width: 1200px;
  margin: 80px auto 20px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #c9a227;
  padding-bottom: 10px;
  margin-bottom: 40px; /* Add space below heading */
  color: #c9a227;
}

/* TOP NAV */
.top-nav {
  background-color: #1a1a1a;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 20px;
}

.top-nav .menu-toggle {
  font-size: 2em;
  color: white;
  cursor: pointer;
  display: none;
}

.top-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.top-nav .nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1em;
}

/* STICKY NAV */
.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1a1a1a;
  color: white;
  display: none;
  z-index: 1000;
  padding: 15px 20px;
  justify-content: space-between;
  align-items: center;
}

.sticky-nav.show {
  display: flex;
}

.sticky-nav .logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.sticky-nav .menu-toggle {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  display: none;
}

.sticky-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.sticky-nav .nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

/* SHARED DROPDOWN BEHAVIOR */
.nav-links {
  transition: all 0.3s ease;
}

/* The progress container (grey background) */
.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #1a1a1a;
  z-index: 1001;
}

.progress-bar {
  height: 100%;
  background: #c9a227;
  width: 0%;
  transition: width 0.25s ease-out;
}


/* TIMELINE */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: #c9a227;
}

.timeline a {
  color: #c9a227;
  text-decoration: none;
}

.timeline a:hover {
  text-decoration: underline;
}

/* Entry */
.entry {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.entry.left {
  left: 0;
  text-align: center;
}

.entry.right {
  left: 50%;
  text-align: center;
}

/* Triangle instead of dot */
.entry::before {
  content: '';
  position: absolute;
  top: 3em; /* aligns with h3 */
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

.entry.right::before {
  left: 0px;
  border-left-color: #c9a227;
}

.entry.left::before {
  right: 0px;
  border-right-color: #c9a227;
}

/* Entry content box */
.content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 6px;
}

.content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #c9a227
}

.content .date {
  font-size: 0.9rem;
  color: #888;
}

.content .location {
  font-style: italic;
  margin-bottom: 5px;
}

/* "What I Bring" list styling */
#value ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#value li {
  background-color: #fdfdfd;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 4px solid #c9a227;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: background-color 0.3s;
}

#value li:hover {
  background-color: #f9f9f9;
}

#value li strong {
  display: block;
  color: #2c3e50;
  margin-bottom: 5px;
}

/* publications*/
#publications {
  margin-top: 60px;
}

.publication-list {
  padding-left: 20px;
  line-height: 1.6;
}

.publication-list li {
  margin-bottom: 20px;
}

.publication-list em {
  font-style: italic;
}

.publication-list strong {
  font-weight: bold;
}

#publications p small {
  display: block;
  margin-top: 10px;
  color: #666;
  font-size: 0.9em;
}

.publication-list a {
  color: #c9a227;
  text-decoration: none;
}

.publication-list a:hover {
  text-decoration: underline;
}


/* CONTACT */
.contact {
  text-align: center;
  margin-top: 20px;
}

.contact figure {
  margin: 0 auto 20px;
}

.contact img {
  max-width: 180px;
  width: 100%;
  height: auto;
  border: 2px solid #c9a227;
  border-radius: 4px;
}

.contact-details p {
  margin: 10px 0;
  font-size: 1rem;
}

.contact-details a {
  color: #c9a227;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.two-line {
  display: none;
}

/* FOOTER */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #c9a227;
}

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

.footer-nav ul li a {
  color: #c9a227;
  text-decoration: none;
  font-size: 1rem;
}

.footer-nav ul li a:hover {
  color: #a88734;
  text-decoration: underline;
}

footer p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

/* SCROLL EFFECTS */
.hidden-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease-out;
}
.hidden-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE NAV (Shared) */
@media (max-width: 896px) {
  .top-nav .menu-toggle,
  .sticky-nav .menu-toggle {
    display: block;
  }

  .top-nav .nav-links,
  .sticky-nav .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    flex-direction: column;
    background-color: #1a1a1a;
    padding: 10px 20px;
    text-align: right;
  }

  .top-nav .nav-links.show,
  .sticky-nav .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }


  .timeline::after {
    left: 20px;
    transform: none;
  }

  .entry,
  .entry.left,
  .entry.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 60px;
    padding-right: 20px;
    margin-bottom: 40px;
  }

  .entry::before,
  .entry.left::before,
  .entry.right::before {
    left: 20px;
    right: auto;
    top: 2.8em;
    border: 8px solid transparent;
    border-left-color: #c9a227;
    border-right-color: transparent;
  }
  
  .two-line {
  display: block;
  }
  
  .single-line {
  display: none;
  }
}

@media print {
  .hidden-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .top-nav,
  .sticky-nav,
  footer,
  .menu-toggle,
  .nav-links {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  section {
    max-width: 100%;
    box-shadow: none;
    background: white;
    margin: 0 0 20px;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    color: black;
    page-break-after: avoid;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

}