/* ========================
  Global Reset & Base Styles
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #e6f7ff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================
  Layout
=========================== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  text-align: center;
  width: 100%;
}

main#Home,
main#Info {
  background: #e6f7ff;
}

main#Publications {
  align-items: flex-start;
  padding: 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

main#Publications h1,
main#Info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

main#Info h1 {
  color: #263844;
}

main#Info p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #333;
  max-width: 600px;
}

/* ========================
  Publications: Filters & Papers
=========================== */
#filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#filters button {
  background-color: #fff;
  border: 2px solid #095d96;
  color: #095d96;
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#filters button:hover,
#filters button.active {
  background-color: #095d96;
  color: #fff;
}

#paper-list {
  width: 100%;
  max-width: 900px;
}

.paper {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.paper h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.paper h3 a {
  color: #095d96;
  text-decoration: none;
  font-weight: bold;
}

.paper p {
  font-size: 1rem;
  color: #333;
}

/* ========================
  People Page Styling
=========================== */
#People {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#People h1 {
  font-size: 2.5rem;
  color: #263844;
  margin-bottom: 2rem;
}

/* ========================
  Filter Buttons
=========================== */
#people-filters {
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

#people-filters button {
  background-color: #fff;
  border: 2px solid #095d96;
  color: #095d96;
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

#people-filters button:hover,
#people-filters button.active {
  background-color: #095d96;
  color: #fff;
}

/* ========================
  People Sections
=========================== */
.people-section {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 3rem;
  text-align: center;
}

.people-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #263844;
}

/* ========================
  People Grid
=========================== */
.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* ========================
  Person Card
=========================== */
.person-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1rem;
  width: 220px;
  text-align: center;
}

.person-card:hover {
  transform: translateY(-5px);
}

.person-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.person-card h3 {
  margin: 0.5rem 0;
  color: #263844;
}

.person-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.person-card a {
  color: #095d96;
  text-decoration: none;
  font-weight: 600;
}

.person-card a:hover {
  text-decoration: underline;
}

/* ========================
  Featured Person Ring
=========================== */

/* Base: add wrapper so ring can sit outside the image */
.person-card img {
  position: relative;
  z-index: 1;
}

/* Gold ring */
.person-card.featured-gold img {
  box-shadow:
    0 0 0 4px #fff,      /* white separation */
    0 0 0 8px #d4af37;   /* gold ring */
  border-radius: 50%;
}

/* Yellow ring */
.person-card.featured-yellow img {
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 8px #f5c31a;
  border-radius: 50%;
}

/* Rainbow animated ring */
.person-card.featured-rainbow img {
  border-radius: 50%;
  padding: 4px; /* create space for the ring */
  background: conic-gradient(from 0deg, #ff6b6b, #ffd93d, #6bffb8, #6bb4ff, #d36bff, #ff6b6b);
  animation: spin 6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ========================
  Info Page Styling
=========================== */
#Info section.card {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  max-width: 500px;
  width: 100%;
  height: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#Info h2 {
  font-size: 1.75rem;
  color: #263844;
  margin-bottom: 0.5rem;
}

#Info form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

#Info input[type="email"] {
  padding: 0.75rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

#Info input[type="submit"] {
  background-color: #173142;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#Info input[type="submit"]:hover {
  background-color: #2b4e66;
}

#contact {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ========================
  Contact Styling
=========================== */
#contact {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#contact h2 {
  font-size: 1.75rem;
  color: #263844;
  margin-bottom: 1rem;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact label {
  font-weight: 600;
  color: #444;
  text-align: left;
}

#contact input[type="email"],
#contact input[type="text"],
#contact textarea {
  padding: 0.75rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}


#contact textarea {
  min-height: 120px;
}

#contact .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#contact .checkbox-group label {
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
}

#contact .checkbox-group input[type="checkbox"] {
  display: none;
}

#contact .checkbox-group input[type="checkbox"]:checked + span {
  background-color: #173142;
  color: white;
  border-color: #173142;
}

#contact button {
  background-color: #173142;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contact button:hover {
  background-color: #2b4e66;
}

/* ========================
  Typography
=========================== */
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.paper h3 a {
  color: #095d96; /* changes text color for publications titles */
  font-size: 1.2rem;
  text-decoration: none;
}

.paper p {
  margin: 0.5rem 0;
}

/* ========================
  Ascii Box
=========================== */
.ascii-box {
  overflow: auto;
  background: #eee;
  padding: 1rem;
  font-size: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 2rem;
  max-width: 700px;
}

/* ========================
  Nav Bar
=========================== */
nav {
  background: #173142; /* changes the top bar background color */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

nav a {
  color: rgb(163, 184, 163); /* changes the top bar text color */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

nav a:hover { /* changes the top bar text color when cursor hovers */
  color: #ffffff;
}

/* ========================
  Footer
=========================== */
footer {
  background: #263844; /* changes the footer background color */
  color: #ccc; /* changes the footer text color */
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ========================
  Mobile Responsiveness
=========================== */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
  }

  nav a {
    font-size: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .ascii-box {
    font-family: monospace;
    font-size: 1.2vw;
    line-height: 1.2;
    background: #eee;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 2rem;
    width: 100%;
    overflow-x: hidden;
    white-space: pre;
  }

  main {
    padding: 1rem 0.5rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}