:root {
  --caltech-orange: #ff6c0c;
  --caltech-dark: #1a1a1a;
  --caltech-gray: #f7f7f7;
  --text-color: #333;
  --max-width: 1100px;
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
  --radius: 12px;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background-color: white;
  margin: 0;
}

/* Navbar */
.navbar {
  background-color: var(--caltech-dark) !important;
  box-shadow: var(--shadow);
}
.navbar-brand, .navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
}
.navbar-nav .nav-link:hover {
  color: var(--caltech-orange) !important;
}

.btn-main {
  background-color: var(--caltech-orange);
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin: 0.5rem;
}
.btn-main:hover {
  background-color: #e55e0b;
}
.btn-secondary {
  border: 2px solid var(--caltech-orange);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin: 0.5rem;
}
.btn-secondary:hover {
  background-color: var(--caltech-orange);
}

/* Intro */
.intro-section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-color);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 3rem auto 5rem auto;
  padding: 0 1.5rem;
}
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.card h3 {
  color: var(--caltech-dark);
  margin-bottom: 0.5rem;
  font-size: 2em;
}
.card p {
  font-size: 1.3em;
}
.btn-link {
  color: var(--caltech-orange);
  font-weight: 600;
  text-decoration: none;
}
.btn-link:hover {
  text-decoration: underline;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url("brain_atlas.png") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 8rem 5rem 6rem 5rem;
  height: 400px; /* Controls banner thickness */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

body {
  overflow-x: hidden;
  margin: 0;
}

/* ===== HERO SECTION ===== */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 40vh; /* 60% of the viewport */
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
              url("brain_atlas.png") center/cover no-repeat;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn-main, .btn-secondary {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-main {
  background-color: #ff6c0c;
  color: white;
}
.btn-main:hover {
  background-color: #e55e0b;
}

.btn-secondary {
  border: 2px solid #ff6c0c;
  color: #ff6c0c;
}
.btn-secondary:hover {
  background-color: #ff6c0c;
  color: white;
}

/* ===== INTRO BLURB (FULL-WIDTH GRAY BOX) ===== */
.intro-blurb {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 40vh; /* fills the rest of the window below the hero */
  background: #f8f8f8;                 /* solid light gray */
  text-align: center;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.intro-blurb p {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.6;
}

body {
  overflow-x: hidden; /* prevents horizontal scroll */
}

/* ===== RAINBOW GRADIENT SITE TITLE ===== */
.navbar-title {
  background: linear-gradient(90deg, #ff6c0c, #ffd56b, #00bfa5, #6e8efb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 2em;
  background-size: 300%;
  animation: gradientShift 8s ease infinite;
}

/* subtle animated gradient movement */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== ABOUT CONTENT ===== */
.about-content {
  text-align: center;
  max-width: 850px;
  margin: 3rem auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.about-section p {
  font-size: 2rem;

}

/* ===== TEAM SECTION ===== */
.team-section {
  text-align: center;
  background: #f8f8f8;
  padding: 4rem 1.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.team-section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2rem;
}

/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== TEAM CARD ===== */
.team-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;   /* centers content horizontally */
  text-align: center;    /* centers text and inline content */
  height: 100%;
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Headings & text inside card */
.team-card h3,
div.team-card > h3,
.team-grid .team-card h3 {
  text-align: center !important;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--caltech-dark);
  display: block;
}

.team-card p {
  margin: 0.5rem 0;
  line-height: 1.5;
  color: var(--text-color);
  max-width: 90%;
}

/* Contact section pinned to bottom */
.team-contact {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid #eee;
  width: 100%; /* ensures divider spans full width */
}

.team-contact a {
  text-decoration: none;
}

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

.team-card h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--caltech-orange);
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

.team-card .anchorjs-link {
  display: none !important;
}

/* ===== CONTACT CONTENT ===== */
.contact-content {
  text-align: center;
  max-width: 800px;
  margin: 3rem auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

/* ===== CONTACT INFO BLOCK ===== */
.contact-info {
  background: var(--caltech-gray);
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  text-align: center;
  padding: 1rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--caltech-dark);
}

.contact-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.contact-info a {
  color: var(--caltech-orange);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* ===== CONTACT DETAILS ===== */
.contact-dark {
  background: var(--caltech-dark);
  color: var(--caltech-gray);
  padding: 2rem 10.5rem 1.5rem 10.5rem;
}

.contact-dark p {
  font-size: 1.1em;
}

.contact-dark a {
  font-weight: 600;
  text-decoration: none;
}
.contact-dark a:hover {
  text-decoration: underline;
}
.contact-dark h3 {
  color: var(--caltech-orange);
  margin-bottom: 1.5rem;
}

/* ===== Footer ===== */

/* Quarto footer layout fix */
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;  /* ⬅️ aligns bottom edges */
  background: var(--caltech-dark);
  color: #ccc;
  padding: 1.5rem 2rem;
  width: 100%;
  flex-wrap: wrap; /* ensures it doesn't break on smaller screens */
}

.page-footer a {
  color: var(--caltech-orange);
  text-decoration: none;
}
.page-footer a:hover {
  text-decoration: underline;
}

.footer-left img,
.footer-logo {
  height: 70px;
  width: auto;
  display: block;
}

.footer-right {
  text-align: right;
  line-height: 1.4;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* ensures text hugs bottom */
}
