/* ===== Global Reset & Base Styles ===== */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arsenica Antiqua', serif;
  background-image: url("images/realpweb.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: white;
}

h1,
h2 {
  text-align: center;
  margin-top: 16px;
  padding: 0;
}

p {
  font-size: 20px;
}

/* ===== Navigation Bar ===== */
nav {
  background: #5f033c;
  margin: 0;
  padding: 10px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

nav ul li a:hover {
  color: #4babb8;
  text-decoration: underline;
}

/* ===== Shared “Glass Card” Overlay Style ===== */
/* Any element in this list will get the same card layout */
body.home .info-card,
.member,
.techHero,
body.resources .resourcesIntro,
body.resources .resourcesList,
body.resources ul.resourcesList,
body.resources .video-section,
body.resources .video-container,
body.mlpage .mlIntro,
body.mlpage .mlSection,
body.mlpage .video-container,
body.teachable header,
body.teachable .video-container-teachable,
body.teachable .teachableIntro,
body.teachable .teachableInfo,
body.teachable .teachableASL {
  width: 85%;
  max-width: 1100px;
  margin: 16px auto;
  padding: 20px 22px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #fff;
  border: 2px solid #5f033c;
  border-radius: 12px;
  line-height: 1.6;
  box-sizing: border-box;
}

/* ===== Home Page ===== */

/* Intro card with extra overlay */
body.home .home-content {
  position: relative;
  max-width: 920px;
  margin: 72px auto 28px;
  padding: 24px 22px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  min-height: auto;
  text-decoration: none;
}

/* subtle dark overlay for readability*/
body.home .home-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
}

/* center text on top of overlay */
body.home .home-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

/* Info card uses shared glass-card styles already */
body.home .info-card {
  text-align: center;
}

/* Buttons row */
body.home .info-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* External link buttons */
body.home .ext-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  background: #5f033c;
  color: #fff;
  text-decoration: none;
  font-size: 25px;
  font-weight: bold;
}

/* Home page links (content only) */
body.home a {
  color: #fff;
  text-decoration: none;
}

body.home a:hover {
  color: #4babb8;
}

/* HERO IMAGE: center + shrink */
body.home .homeImage {
  display: block;
  margin: 20px auto;
  max-width: 900px;
  width: clamp(280px, 68vw, 900px);
}

body.home .homeImage img,
body.home img.homeImage {
  display: block;
  margin: 0 auto;
  width: auto !important;
  height: auto !important;
  max-width: min(90vw, 900px);
  max-height: 50vh;
  object-fit: contain;
  border-radius: 12px;
}

/* Optional: slightly smaller on very wide screens */
@media (min-width: 1200px) {
  body.home .homeImage {
    width: clamp(280px, 56vw, 820px);
  }

  body.home .homeImage img,
  body.home img.homeImage {
    max-height: 44vh;
  }
}

/* Space under nav only on Home page */
body.home nav {
  margin-bottom: 24px;
}

/* Horizontal rule */
hr {
  border: 2px solid #5f033c;
  border-top: 2px solid #5f033c;
  margin: 32px auto;
  width: 85%;
}

/* ===== About / Tech Hero Cards ===== */
.member,
.techHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member:hover,
.techHero:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, .15);
  transform: translateY(-2px);
  transition: all .3s ease;
}

/* Center the image in its box */
.member-photo,
.techHero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 320px;
}

/* Image itself */
.member-photo img,
.techHero-photo img {
  width: 100%;
  max-width: 300px;
  height: 320px;
  object-fit: cover;
  border: 3px solid #5f033c;
  border-radius: 8px;
  display: block;
}

/* Text area */
.member-text,
.techHero-text {
  flex: 1 1 400px;
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
  padding: 8px;
  color: white;
  font-weight: normal;
}

.member-text ul,
.techHero-text ul {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

.techHero a,
.member a {
  color: white;
  font-size: 20px;
  font-weight: normal;
}

.techHero a:hover,
.member a:hover {
  color: #b84b91;
  text-decoration: underline;
}

/* ===== Resources Page ===== */

/* Resources list as centered custom bullets */
body.resources ul.resourcesList {
  list-style: none;
  text-align: center;
}

body.resources ul.resourcesList li {
  font-size: 20px;
  margin: 8px 0;
}

body.resources ul.resourcesList li::before {
  content: "•";
  display: inline-block;
  margin-right: .5em;
}

body.resources ul.resourcesList a {
  color: #fff;
  text-decoration: none;
}

body.resources ul.resourcesList a:hover {
  color: #b84b91;
  text-decoration: underline;
}

/* Video caption on resources page */
body.resources .video-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #ddd;
}

/* Make resources video responsive */
body.resources .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.resources .video-container iframe,
body.resources .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* ===== Teachable Model Page ===== */
body.teachable header,
body.teachable .video-container-teachable,
body.teachable .teachableIntro,
body.teachable .teachableInfo,
body.teachable .teachableASL {
  font-size: 20px;
  text-align: center;
}

/* tighten gap between h1/h2 */
body.teachable header h1 {
  margin-bottom: 6px;
}

body.teachable header h2 {
  margin-top: 0;
}

/* Teachable links */
body.teachable a {
  color: #fff;
  text-decoration: underline;
}

body.teachable a:hover {
  color: #4babb8;
}

/* ASL image sizing */
body.teachable .teachableASL img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Center the video box */
body.teachable .video-container-teachable {
  display: flex;
  justify-content: center;
}

body.teachable .video-container-teachable video {
  max-width: 100%;
  height: auto;
  border: 2px solid #5f033c;
  border-radius: 8px;
}

/* ===== Machine Learning Page ===== */
body.mlpage {
  font-size: 20px;
  line-height: 1.6;
}

body.mlpage h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

body.mlpage h2 {
  font-size: 24px;
  margin-top: 12px;
  margin-bottom: 6px;
}

body.mlpage p,
body.mlpage li {
  font-size: 20px;
}

/* ML sections use shared card */
body.mlpage .mlIntro,
body.mlpage .mlSection,
body.mlpage .video-container {
  text-align: center;
}

/* ML video container */
body.mlpage .video-container {
  padding: 0;
}

body.mlpage .video-container video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ===== Buttons ===== */
.teachable-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #5f033c;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.teachable-btn:hover {
  background-color: #b84b91;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 860px) {

  h1,
  h2 {
    margin-top: 16px;
    padding: 0 12px;
  }

  p {
    font-size: 18px;
  }

  nav {
    padding: 12px;
  }

  nav ul {
    gap: 10px;
    flex-wrap: wrap;
  }

  nav ul li {
    margin: 6px 10px;
  }

  nav ul li a {
    display: inline-block;
    padding: 6px 8px;
  }

  .member,
  .techHero,
  body.resources .resourcesIntro,
  body.resources .resourcesList,
  body.resources ul.resourcesList,
  body.home .homeImage,
  hr {
    width: 94%;
    margin-left: auto;
    margin-right: auto;
  }

  .member,
  .techHero {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 16px;
  }

  .member-photo,
  .techHero-photo {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
  }

  .member-photo img,
  .techHero-photo img {
    max-width: 360px;
    height: auto;
    aspect-ratio: 3 / 3.2;
    object-fit: cover;
  }

  .member-text,
  .techHero-text {
    flex: 1 1 auto;
    font-size: 20px;
    line-height: 1.6;
    padding: 0 6px;
  }

  body.home .home-content {
    margin: 56px auto 20px;
    padding: 18px 16px;
    max-width: 94%;
  }

  body.home .info-card {
    margin: 16px auto 28px;
    padding: 16px 14px;
  }

  body.home .info-actions {
    gap: 8px;
  }

  body.home .ext-btn {
    padding: 10px 14px;
    font-size: 15px;
  }

  body.resources ul.resourcesList li {
    margin: 10px 0;
  }

  body.resources ul.resourcesList a {
    display: inline-block;
    padding: 6px 8px;
  }

  .member,
  .techHero,
  body.resources .resourcesIntro,
  body.resources .resourcesList,
  body.resources ul.resourcesList,
  body.home .info-card {
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
  }
}

@media (max-width: 600px) {

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  p {
    font-size: 17px;
  }

  nav ul {
    justify-content: center;
  }

  body.home .homeImage {
    width: 94%;
    margin: 14px auto;
  }

  .member,
  .techHero,
  body.resources .resourcesIntro,
  body.resources .resourcesList,
  body.resources ul.resourcesList {
    border-width: 1.5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .12);
  }

  hr {
    width: 94%;
    margin: 24px auto;
    border-width: 1.5px;
  }
}

@media (max-width: 420px) {

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  p,
  .member-text,
  .techHero-text {
    font-size: 16px;
  }

  nav ul li {
    margin: 4px 6px;
  }

  nav ul li a {
    padding: 6px 6px;
    font-weight: 600;
  }

  body.home .ext-btn {
    padding: 9px 12px;
    font-size: 14px;
  }

  .member-photo img,
  .techHero-photo img {
    max-width: 320px;
    max-height: 300px;
  }
}

/* ===== Accessibility Tweaks ===== */
@media (prefers-reduced-motion: reduce) {
  .member:hover,
  .techHero:hover {
    transform: none;
    transition: none;
  }
}

@media (prefers-contrast: more) {
  .member,
  .techHero,
  body.resources .resourcesIntro,
  body.resources .resourcesList,
  body.resources ul.resourcesList,
  body.home .info-card {
    background: rgba(0, 0, 0, 0.5);
    border-color: #a34783;
  }
}
