/* --- BASE COLORS --- */
body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 40px;
  background-color: #f7f7f7;
  color: #3C3C3C;
}

header {
  background-color: #2E3440;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

/* --- NAVIGATION --- */
nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

nav a:hover {
  color: #88C0D0; /* light teal hover */
  text-decoration: underline;
}

a:visited {
  color: inherit;
  text-decoration: none;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav li {
    display: inline;
    margin: 0 10px;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #f5f5f5;
    color: #333;
    margin-top: 20px;
    margin-top: 20px;
}

/* Hero Section for Main Landing Page*/

.about-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0px;
}

.landing-title {
  text-align: center;
  font-size: 2rem;
}

.hero {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-container {
  display: flex;
  align-items: flex-start;   /* Ensures top alignment */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 0px;     
  padding-bottom: 0px;  
}

.hero-image-container {
  flex-shrink: 0;          /* Prevents image from shrinking */
}

.hero-image {
  width: 280px;
  height: auto;
  border-radius: 5px;
  display: block;
}

/* --- ABOUT PAGE ONLY --- */
.about-page .hero-container {
  display: flex !important;         /* Force flex layout */
  align-items: flex-start;          /* Align image + text at the top */
  justify-content: center;
  gap: 40px;                        /* Space between image and text */
  text-align: left;                 /* Align text to the left */
  flex-wrap: wrap;                  /* Allow stacking on smaller screens */
  margin-top: 20px;                 /* Optional: spacing under "About" title */
}

.about-page .hero-image-container {
  flex-shrink: 0;                   /* Prevent image from shrinking */
}

.about-page .hero-image {
  width: 280px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.about-page .bio {
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.about-page .bio p {
  margin-bottom: 1.2rem;
}

/* --- RESPONSIVE MOBILE STYLING --- */
@media (max-width: 768px) {
  .about-page .hero-container {
    flex-direction: column;         /* Stack image and text */
    align-items: center;            /* Center both */
    text-align: left;               /* Keep text readable */
    gap: 20px;
  }

  .about-page .hero-image {
    width: 80%;
    max-width: 320px;
  }

  .about-page .bio {
    max-width: 100%;
    padding: 0 10px;
  }
}

.bio {
  margin-top: 0;             /* Ensures it starts at top */
  text-align: center;
  margin-bottom: 0;             /* Ensures it starts at top */
}

.bio h2 {
    margin: 10px 0;
    font-size: 1.8rem;
}

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

.bio-links ul {
  list-style: disc;             /* shows bullets */
  display: flex;                /* places items side by side */
  justify-content: center;      /* centers the row */
  align-items: center;
  gap: 2rem;                    /* space between bullets */
  padding: 0;
  margin: 1rem 0;
}

.bio-links li {
  list-style-position: inside;
}

.bio-links a {
  text-decoration: underline;
  color: #333;
  font-weight: 500;
}

.bio-links a:hover {
  text-decoration: underline;
}

/* --- Override global .bio for ABOUT PAGE only --- */
.about-page .bio {
  text-align: left !important;
}

/* Subpage Content Styling */
.subpage {
    display: flex;
    justify-content: center;  /* Horizontally center the content */
    align-items: center;      /* Vertically center the content */
    flex-direction: column;   /* Stack text vertically */
    text-align: center;       /* Center text inside the content */
    padding: 10px;       /* Space around the content */
    margin: 0 auto;           /* Center the whole block */
    margin-bottom: 0;           /* Center the whole block */
    max-width: 800px;         /* Limit the width for readability */
}

.subpage h3 {
    font-size: 2rem;
    margin-bottom: 0px;
}

.subpage p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 0px;
}

/* Project Tile Styling */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;           /* controls full grid width */
    margin: 2rem auto;           /* auto = horizontally center */
    padding: 0 1rem;             /* small horizontal padding on mobile */
}
  
.card {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
}
  
.card:hover {
    transform: translateY(-5px);
}
  
.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}
  
.card h3 {
    font-size: 1rem;
    margin: 10px 0 5px;
}
  
.card .tags {
    font-size: 0.85rem;
    color: #666;
}

/* Project Page Styling */

.project-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.project-image {
  display: block !important;
  width: 350px;          
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;           /* auto = horizontally center */
  border-radius: 8px;
  object-fit: cover;     /* Optional: trims to fill the width evenly */
}

.project-meta {
  text-align: left;
  margin-top: 30px;
}

.project-meta p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.project-block p {
  margin-bottom: 1.4rem;   /* Add more vertical spacing */
  line-height: 1.7;        /* Optional: increase line spacing for readability */
}

.image-credit {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: -10px;
  margin-bottom: 20px;
}
.image-credit a {
  color: #666;
  text-decoration: underline;
}

.tag {
  display: inline-block;
  background-color: #eee;
  color: #333;
  padding: 5px 10px;
  margin: 4px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* Publication Styling */

.pub-card {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pub-card:hover {
  transform: translateY(-3px); 
  border-color: #666; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pub-list {
  max-width: 600px;   /* Narrower than full display */
  margin: 20px auto;  /* Centering */
  padding: 0 1rem;
}

.pub-type {
  display: none;
}

/* .pub-type {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #e6ff64;
  color: #333;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
} */

.pub-meta h4 {
  font-size: 1.05rem;
  margin: 6px 0 4px 0; /* Less card spacing */
}

.pub-meta p {
  font-size: 0.9rem;
  color: #555;
  margin: 2px 0; /* Less vertical space */
}

.pub-venue {
  color: #555;
  font-weight: 500;
  font-style: italic;
  display: inline-block;
  margin-top: 4px;
}

.pub-venue h4 a:hover {
  color: black;
  text-decoration: underline;
}

address {
  font-style: normal;
  text-align: left;
  line-height: 1.6;
  margin-top: 10px;
}

/* Static Formatting of Grid and Main Page */

/* Reduce vertical spacing below the "About" title */
.about-page .about-title {
  margin-bottom: 0.5rem;  /* was probably ~1.5–2rem before */
}

/* Reduce extra top margin on the hero container */
.about-page .hero-container {
  margin-top: 0 !important; /* remove any inherited top margin */
  padding-top: 0 !important; /* ensure no padding adds space */
}

/* Project Page styling */
.project-detail a {
  color: #000;               /* black links */
  text-decoration: underline;
  font-weight: 500;
}

.project-detail a:visited {
  color: #000;               /* keep black after visiting */
}

.project-detail a:hover,
.project-detail a:focus {
  color: #000;               /* no color change on hover */
  text-decoration: underline; /* consistent underline */
}

/* Optional: make the overall About section tighter */
.about-page .hero {
  padding-top: 20px;  /* less top padding overall */
  padding-bottom: 20px;
}

.gallery a {
  color: #000;                /* black links */
  text-decoration: underline; /* optional, for consistency */
  font-weight: 500;
}

.gallery a:visited {
  color: #000;                /* stay black even after clicking */
  text-decoration: underline;
}

.subpage .teams-image {
  text-align: center;       /* center the image */
  margin-top: 1.5rem;         /* space above and below */
}

.subpage .teams-image img {
  width: 80%;               /* 40% smaller than before (since 100% → 60%) */
  max-width: 600px;         /* prevent it from getting too large */
  height: auto;
}

.subpage ul {
  list-style-position: inside;  /* bring bullets inside the text block */
  text-align: left;             /* left-align the text */
  padding-left: 0;              /* remove extra indent from default ul */
  margin-left: 0;               /* fully align to left edge */
}

/* Media page set up of externally embedded Videos */

.video-container {
  position: relative;
  width: 50%;              /* video takes up 60% of the page width */
  aspect-ratio: 16 / 9;    /* modern way to keep correct proportions */
  margin: 1rem auto 2rem auto;       /* centers the video horizontally */
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #000;        /* fallback before video loads */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;             /* fills the container */
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .video-container {
    width: 90%;  /* more room on phones */
  }
}

.thumbnail-image {
  text-align: center;
  margin: 1rem auto 2rem auto;  /* spacing above and below */
}

.thumbnail-image img {
  width: 50%;                  /* match video width */
  max-width: 835px;            /* prevents it from getting too large */
  height: auto;                /* keep proportions */
  border-radius: 8px;          /* optional: soft rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* subtle shadow to match the video */
}

/* Social Media link set up, horizontal row */

.social-links {
  display: flex;                 /* puts them in a row */
  justify-content: center;       /* centers the whole row */
  align-items: center;
  gap: 1.5rem;                   /* space between icons */
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;          /* ensures icons scale evenly */
  align-items: center;
  justify-content: center;
  width: 36px;                   /* controls icon box size */
  height: 36px;
}

.social-links img {
  width: 100%;                   /* makes all icons the same size */
  height: 100%;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: brightness(0);         /* makes all icons black */
}

.social-links img:hover {
  transform: scale(1.15);
  opacity: 1;
  filter: brightness(0.3) sepia(1) hue-rotate(190deg) saturate(300%) brightness(1.1);
}