/* Logo image in nav */
.logo-image img {
  height: 50px;
  object-fit: contain;
}

* {
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

/* Base font reset */
body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  color: #4E2A84;
}

input, textarea, button {
  font-family: 'Inter', sans-serif;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #4E2A84;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}



 /*
 Navbar tweak to align image + links 
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
*/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  background-color: #fdfdfd;
  color: #222;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4E2A84;
}


/* Reset + fonts */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #222;
  background-color: #fff;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  color: #4E2A84;
}

 /*Navbar 
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Ensures the logo doesn't stretch nav height */
.logo-image img {
  height: 50px;
  width: auto;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

/* Hover underline */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #4E2A84;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}


/* Hero section */
.hero {
  background: #4E2A84;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
}

.hero-logo {
  width: 150px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin: 0.5rem 0;
  color: white; /* override purple */
}


.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1rem auto 2rem auto;  /* ← Increase bottom margin here */
}

.cta-button {
  background-color: white;
  color: #4E2A84;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 2rem;
  display: inline-block;
}

.cta-button:hover {
  background-color: #eee;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(78, 42, 132, 0.4);
}

/* Mission section */
.mission {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.mission h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mission p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* rr */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f4f4f4;
  color: #868686;
  font-size: 0.9rem;
}

/* Project gallery styles */
.project-gallery {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.project-gallery h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #4E2A84;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 900px; /* stops layout from ever fitting 3+ */
  margin: 0 auto;
  padding: 0 1rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.project-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(78, 42, 132, 0.75);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
  text-align: center;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover .overlay {
  opacity: 1;
}

/* Project detail page */
.project-detail {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
}

.project-hero img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: 2px solid #4E2A84; /* Northwestern Purple */
}

.project-text h1 {
  font-family: 'Playfair Display', serif;
  color: #4E2A84;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #333;
}

.project-text h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  color: #4E2A84;
}

.project-text ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.project-text ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Team page styles */
.team-page {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.team-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #4E2A84;
  margin-bottom: 2rem;
}

.team-section {
  margin-bottom: 4rem;
}

.team-section h2 {
  font-size: 1.8rem;
  color: #4E2A84;
  margin-bottom: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: #ddd;
  background-image: url(''); /* Replace with actual URLs later */
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.member-card h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1.1rem;
  color: #222;
}

.member-card p {
  font-size: 0.95rem;
  color: #666;
}

/* Force 3-column grid for PMs */
.team-grid-pm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

/* Prevent collapse on small screens */
@media (max-width: 768px) {
  .team-grid-pm {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .team-grid-pm .member-card {
    flex: 0 0 auto;
    width: 200px;
  }
}

/* General members grid (centered three columns) */
/* GENERAL MEMBERS - default desktop layout */
/* GENERAL MEMBERS GRID – Desktop */
.general-members-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.general-members-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.general-members-grid li {
  margin: 6px 0;
  font-family: 'Inter', sans-serif;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  .general-members-grid {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .general-members-grid ul {
    display: contents;      /* Combine all <ul>s into a flat list visually */
  }

  .general-members-grid li {
    margin: 4px 0;
  }
}


.contact-section {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.contact-section h1 {
  color: #4E2A84;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

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

.contact-form button:hover {
  background-color: #3c1f6f;
}

.calendar-section {
  padding: 4rem 2rem;
  text-align: center;
}

.calendar-section h1 {
  font-family: 'Playfair Display', serif;
  color: #4E2A84;
  margin-bottom: 1rem;
}

.calendar-embed {
  max-width: 900px;
  margin: 2rem auto;
}

/* Hover effect */
.profile-pic:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(78, 42, 132, 0.5));
  transition: all 0.3s ease;
}

/* Bio popup styling */
#bio-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 1000;
}

#bio-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: none;
  z-index: 1001;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

#bio-popup h2 {
  margin-top: 0;
  color: #4E2A84;
}

#bio-popup p {
  margin: 0.5rem 0;
}

#close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background-color: #eee;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

#close-btn:hover {
  background-color: #ccc;
}

.profile-pic {
  cursor: pointer;
}

#bio-role {
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  color: #000000;
}

.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 0 1rem;
  position: relative; /* ← ensures child effects don’t overflow unpredictably */
}

main {
  padding-top: 6rem;  /* Adjust based on your navbar's height */
}


.project-gallery {
  padding-top: 6rem; /* ensure content isn’t hidden under navbar */
}

.team-page {
  padding-top: 6rem; /* ensure content isn’t hidden under navbar */
}

.calendar-section {
  padding-top: 6rem; /* ensure content isn’t hidden under navbar */
}

.contact-section {
  padding-top: 3rem; /* ensure content isn’t hidden under navbar */
}

.hero-content {
  padding-top: -1rem; /* ensure content isn’t hidden under navbar */
  color: white
}

.project-hero {
  padding-top: 6rem; /* ensure content isn’t hidden under navbar */
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #4E2A84;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Desktop nav stays visible on wide screens */
.nav-desktop {
  display: block;
}



/* Responsive behavior */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-mobile.show {
    display: block;
    animation: fadeIn 0.3s ease;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  background-color: #f4f4f4; /* your gray */
  padding: 2rem 1rem;
  font-family: 'Inter', sans-serif;
  text-align: center;
  color: #333;
}

.footer-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-icons a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid black;
  border-radius: 999px;
  background-color: #f4f4f4; /* same as footer background */
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-icons a:hover {
  background-color: black;
  color: white;
}

.bio-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.bio-icons a i {
  font-size: 1.4rem;
  color: #222;
  transition: color 0.3s ease;
}

.bio-icons a:hover i {
  color: #4E2A84;
}

.project-gallery {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.project-gallery h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #4E2A84;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 0 1rem;
}

.project-card {
  position: relative;
  text-align: center;
}

.project-card a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  will-change: transform;  /* ← helps smooth hover + scroll */
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  will-change: transform;
}

.project-card .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(78, 42, 132, 0.75);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
  text-align: center;
}

.project-card a:hover img {
  transform: scale(1.05);
  will-change: transform;
}

.project-card a:hover .overlay {
  opacity: 1;
}

.project-label {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #222;
}

.project-card .overlay {
  z-index: 1;
}

#bio-content {
  text-align: center;
  padding: 2rem;
}

.profile-popup-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.hero-section {
  position: relative;
  color: white;
  padding: 140px 20px 100px;
  text-align: center;
  overflow: hidden; /* Ensure background doesn't spill */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('images/nu-arch1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.7);
  z-index: -1; /* Push behind the text */
}



.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: clamp(2rem, 6vw, 4.5rem); /* min 2rem, preferred 6vw, max 4.5rem */
  font-family: 'Playfair Display', serif; /* or your chosen font */
  margin-bottom: 20px;
  color: white;
}

.hero-section p {
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.7rem);
  margin-top: 1rem;
  font-weight: 400; /* or 500 if you want it a little bolder */
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4); /* optional for contrast */
}
/* Mobile menu hidden by default */
.nav-mobile {
  display: none;
  flex-direction: column;
  right: 0;
  /*background-color: #1e1e2f;  match your navbar color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 0.3s ease-out;
  position: absolute;
  top: 82px; /* push below navbar (adjust if needed) */
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
}

.nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Stack each nav item with no spacing, full width */
.nav-mobile li {
  height: 60px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  border-radius: 0; /* no rounded corners */
  width: 100%;
  margin: 0; /* no spacing between boxes */
  border-bottom: 1px solid #ddd; /* optional divider */
}

/* Full width link inside box */
.nav-mobile a {
  color: #4b2e83; /* NU purple */
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.nav-mobile li:hover {
  background-color: #4b2e83;
}

.nav-mobile li:hover a {
  color: white;
}
/* Optional: Slide-down animation */
@keyframes fadeInDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tap-instruction {
  text-align: center;
  font-size: 1.05rem; /* slightly bigger */
  color: #000000;
  margin-top: -10px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-style: italic;
}

.return-wrap {
  text-align: center;
  margin: 40px 0 20px;
}

.return-link {
  display: inline-block;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid #4E2A84;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #4E2A84;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.return-link:hover {
  background-color: #4E2A84;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(78,42,132,0.25);
}

.return-link:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(78,42,132,0.18);
}

.mission .mission-points {
  margin: 0 0 1rem 0;
  padding: 0;
  list-style: none;
}
.mission .mission-points li {
  margin: 0.4rem 0;
  line-height: 1.4;
}

.join-button-container {
  text-align: center;
  margin-top: 20px;
}

.join-button {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background-color: #4E2A84; /* Northwestern purple */
  border: 2px solid #4E2A84;
  border-radius: 50px; /* Fully rounded look */
  transition: all 0.3s ease;
}

.join-button:hover {
  background-color: white;
  color: #4E2A84;
}
/* Scroll container */
.footer-logos-scroller {
  overflow-x: auto;                 /* enable horizontal scroll */
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 12px;
  scrollbar-width: thin;            /* Firefox */
  scrollbar-color: rgba(0,0,0,.25) transparent;
}

/* Optional: slimmer scrollbar for WebKit */
.footer-logos-scroller::-webkit-scrollbar { height: 6px; }
.footer-logos-scroller::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.25);
  border-radius: 3px;
}

/* The rail that holds logos */
.footer-logos-rail {
  display: inline-flex;             /* shrink-to-fit so it can be centered */
  gap: 24px;
  flex-wrap: nowrap;                /* single row */
  margin: 0 auto;                   /* center when it fits */
  scroll-snap-type: x proximity;    /* nice mobile snapping */
}

/* Each logo link */
.footer-logos-rail a {
  flex: 0 0 auto;                   /* prevent shrinking */
  scroll-snap-align: center;
  text-decoration: none;
}

/* Logo images */
.footer-logos-rail img {
  height: 50px;                     /* adjust as needed */
  max-width: 160px;
  object-fit: contain;
  transition: transform .2s ease;
}

.footer-logos-rail img:hover {
  transform: scale(1.06);
}

.footer-heading {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: #171717; /* NU purple */
  margin-bottom: 1rem;
  font-weight: 600;
}






