/* ========================= styles.css ========================= */

:root {
  --purple: #4b2e83;
  --byu-blue: #002e5d;
  --utah-red: #cc0000;
  --bg: #eef2f7;
  --text: #1f2937;
  --muted: #5f6b7a;
  --white: #ffffff;
  --soft-border: #d9e2ec;
  --card-shadow: 0 10px 25px rgba(31, 41, 55, 0.10);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f7f9fc, #e8eef7);
  color: var(--text);
  line-height: 1.6;
}

/* --- Header & Theming --- */

header {
  background: var(--purple);
  color: var(--white);
  padding: 1.6rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.16);
}

header.byu {
  background: var(--byu-blue);
}

header.utah {
  background: var(--utah-red);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  gap: 1rem;
}

.site-title h1 {
  font-size: 2rem;
  letter-spacing: 0.5px;
}

.site-title p {
  font-size: 1rem;
  opacity: 0.9;
}

/* --- Navigation --- */

nav { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap;
}

.tab-group {
  position: relative;
}

.tab-button {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* --- Dropdowns --- */

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 190px;
  margin-top: 10px;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  z-index: 100;
}

.dropdown.show { 
  display: block; 
}

.dropdown button {
  display: block;
  width: 100%;
  border: none;
  padding: 0.85rem 1rem;
  text-align: left;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
}

.dropdown button:hover { 
  background: #eef2f7; 
}

/* --- Main Content --- */

main { 
  max-width: 1100px; 
  margin: 2rem auto; 
  padding: 1rem; 
}

.hero,
.portfolio-section {
  background: rgba(255,255,255,0.9);
  padding: 2.5rem;
  border-radius: 26px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--soft-border);
}

.hero h2,
.portfolio-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.hero p,
.portfolio-section p {
  color: var(--muted);
}

/* --- Portfolio Sections --- */

.portfolio-section { 
  display: none; 
}

.portfolio-section.active { 
  display: block; 
}

.portfolio-section > h3,
.portfolio-section > h1 {
  margin: 2rem 0 1rem;
  text-align: center;
}

/* --- Project Bubble Cards --- */

.project-card {
  background: var(--white);
  padding: 1.4rem;
  margin: 2rem auto 0;
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--soft-border);
  text-align: center;
  max-width: 950px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.16);
}

.project-card img {
  width: 100%;
  display: block;
  border-radius: 22px;
  margin-bottom: 1.25rem;
}

.project-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.project-card p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
}

/* --- Two Images Side-by-Side --- */

.image-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.image-row img {
  width: 50%;
  object-fit: contain;
}

/* --- Image + Video Row --- */

.media-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.media-row img,
.media-row iframe {
  width: 50%;
  border-radius: 22px;
}

.media-row iframe {
  height: 315px;
  border: none;
}

/* --- Featured Random Project --- */

#featured-project {
  margin-top: 2rem;
}

#featured-project .project-card {
  max-width: 520px;
  padding: 1rem;
  border-radius: 28px;
  overflow: hidden;
}

#featured-project .project-card img {
  height: 260px;
  object-fit: cover;
}

#featured-project .project-card .tab-button {
  display: inline-block;
  margin-top: 1rem;
  background: var(--purple);
  color: var(--white);
  text-align: center;
}

#featured-project .project-card .tab-button:hover {
  background: #3b2468;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  nav {
    justify-content: center;
  }

  .dropdown {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero,
  .portfolio-section {
    padding: 1.5rem;
  }

  .image-row,
  .media-row {
    flex-direction: column;
  }

  .image-row img,
  .media-row img,
  .media-row iframe {
    width: 100%;
  }

  .media-row iframe {
    height: 260px;
  }
}
