/* =====================================================
   JOSEPH CHANG PORTFOLIO - DARK & CLEAN AESTHETIC
   ===================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary-dark: #0f0f0f;
  --secondary-dark: #1a1a1a;
  --accent-color: #e8d5b7;
  --text-light: #e0e0e0;
  --text-muted: #999;
  --border-color: #333;
  --hover-color: #d4af37;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =====================================================
   NAVIGATION & HEADER
   ===================================================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 2rem;
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: 2px;
}

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--hover-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--hover-color);
}

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

/* =====================================================
   DROPDOWN NAVIGATION
   ===================================================== */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 220px;
  background-color: rgba(20, 20, 20, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  list-style: none;
  display: none;
  flex-direction: column;
  z-index: 1100;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text-light);
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: rgba(232, 213, 183, 0.08);
  color: var(--hover-color);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
  margin-top: 170px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/images/joseph_front.jpg') center 15%/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-publications {
background-image: url(../assets/images/smtams_2025.png);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}

.hero-elements-of-adventure {
background-image: url(../assets/images/elements_of_adventure.jpg);
}

.hero-critical-beats {
  background-image: url(../assets/images/criticalbeats_profile.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 0;
  aspect-ratio: 16/9;
  padding-top: 120px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 213, 183, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Adjust 0.3 to change filter darkness */
  z-index: 1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-30px); }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.hero-image-below {
  width: min(1100px, 100%);
  height: 380px;
  margin: 2rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: var(--primary-dark) center/cover no-repeat;
  background-image: url('assets/images/joseph_chang_about.png');
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .hero-image-below {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .hero-image-below {
    height: 180px;
  }
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
  animation: fadeInDown 1s ease;
}

.hero-subtitle,
.hero-meta {
  color: rgba(255, 255, 255, 0.82);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-meta {
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.btn {
  padding: 12px 32px;
  border: 2px solid var(--accent-color);
  background-color: transparent;
  color: var(--accent-color);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 1px;
}

.photo-credit {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 2;
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 213, 183, 0.2);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--hover-color);
  border-color: var(--hover-color);
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   MAIN CONTENT SECTIONS
   ===================================================== */

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent-color);
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--hover-color);
}

/* =====================================================
   GALLERY / PORTFOLIO GRID
   ===================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--secondary-dark);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  text-align: center;
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* =====================================================
   ABOUT / BIO SECTION
   ===================================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-text h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.bio-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.bio-highlights {
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight-icon {
  color: var(--hover-color);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.highlight-text h4 {
  font-family: 'Cinzel', serif;
  color: var(--accent-color);
  margin-bottom: 0.3rem;
}

.highlight-text p {
  margin: 0;
}

.about-image {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 3/4;
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-full{
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  aspect-ratio: 16/9;
  background-color: var(--secondary-dark);
  overflow: hidden;
  margin-bottom: 3rem;
}

.about-image-full img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-content--stacked {
grid-template-columns: 1fr; 
}

/* =====================================================
   PROJECT SHOWCASE
   ===================================================== */

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
}

.education-content .publication-grid {
  margin-bottom: 0;
}

.education-image-card {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.education-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .education-layout {
    grid-template-columns: 1fr;
  }

  .education-image-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

.project-showcase {
  background-color: var(--secondary-dark);
  padding: 3rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.project-showcase h3 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.project-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
}

.project-meta-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-meta-value {
  color: var(--text-light);
}

.project-description {
  margin-bottom: 2rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-features.project-features-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-features.project-features-vertical .feature-card {
  border-left: none;
  border-top: 1px solid var(--border-color);
  padding: 1rem 0 0 0;
}

.project-features.project-features-vertical .feature-card:first-child {
  border-top: none;
  padding-top: 0;
}

.feature-card {
  border-left: 3px solid var(--hover-color);
  padding-left: 1rem;
}

.feature-card h4 {
  font-family: 'Cinzel', serif;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.experience-list li {
  border-left: 3px solid var(--hover-color);
  background-color: rgba(232, 213, 183, 0.05);
  padding: 1rem 1.25rem;
}

.experience-list li h4 {
  font-family: 'Cinzel', serif;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.experience-list li p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.media-item {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--primary-dark);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =====================================================
   OVERVIEW + IMAGE LAYOUT
   ===================================================== */

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.overview-image-card {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  overflow: hidden;
  aspect-ratio: 3/4;          /* adjust to match your photo — use 16/9 if landscape */
  max-height: 600px;
}

.overview-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* swap to 'contain' if you don't want any cropping */
}

@media (max-width: 900px) {
  .overview-layout {
    grid-template-columns: 1fr;
  }

  .overview-image-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* =====================================================
   AUDIO PLAYER
   ===================================================== */

.audio-section {
  margin: 3rem 0;
}

.audio-list {
  display: grid;
  gap: 1rem;
}

.audio-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.audio-item:hover {
  background-color: rgba(232, 213, 183, 0.05);
}

.audio-player {
  flex: 1;
}

audio {
  width: 100%;
  background: transparent;
  outline: none;
}

audio::-webkit-media-controls-panel {
  background-color: var(--primary-dark);
}

.audio-title {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.audio-duration {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =====================================================
   BLOG / NEWS SECTION
   ===================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--hover-color);
}

.blog-image {
  width: 100%;
  height: 450px;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.blog-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-family: 'Cinzel', serif;
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-link {
  color: var(--hover-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.blog-link:hover {
  color: var(--accent-color);
}

/* =====================================================
   CONTACT FORM
   ===================================================== */

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
}

label {
  font-family: 'Cinzel', serif;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--hover-color);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  padding: 12px;
  background-color: var(--accent-color);
  color: var(--primary-dark);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.form-submit:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 213, 183, 0.2);
}

/* =====================================================
   SOCIAL LINKS
   ===================================================== */

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-dark);
  border: 2px solid var(--border-color);
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  border-color: var(--hover-color);
  color: var(--hover-color);
  background-color: rgba(232, 213, 183, 0.1);
  transform: translateY(-3px);
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
  background-color: var(--secondary-dark);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--hover-color);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* =====================================================
   MODAL / LIGHTBOX
   ===================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img,
.modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--accent-color);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--hover-color);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 200px;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .modal-close {
    right: 20px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  section {
    padding: 3rem 0;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .social-links {
    gap: 1rem;
  }

  input,
  textarea {
    font-size: 16px;
  }
}

/* =====================================================
   MUSICIANS SECTION
   ===================================================== */

.musicians-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.musician-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;   /* bio gets a bit more space than photo */
  gap: 2.5rem;
  align-items: center;
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.musician-card:hover {
  border-color: var(--hover-color);
}

.musician-info {
  display: flex;
  flex-direction: column;
}

.musician-name {
  font-family: 'Cinzel', serif;
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.musician-role {
  color: var(--hover-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.musician-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.musician-photo {
  width: 100%;
  aspect-ratio: 4/3;          /* adjust to match your actual photos */
  overflow: hidden;
  background-color: var(--primary-dark);
}

.musician-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* swap to 'contain' if you don't want any cropping */
}

@media (max-width: 768px) {
  .musician-card {
    grid-template-columns: 1fr;   /* stack photo below bio on smaller screens */
  }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent-color);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =====================================================
   YOUTUBE VIDEOS SECTION
   ===================================================== */

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.youtube-item {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.youtube-item .video-frame {
  width: 100%;
  aspect-ratio: 16/9;
}

.youtube-item .video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.youtube-item .video-title {
  padding: 1rem 1.25rem;
  font-family: 'Cinzel', serif;
  color: var(--accent-color);
  font-size: 1.05rem;
}

/* =====================================================
   MOBILE NAVIGATION (portrait phones)
   ===================================================== */
@media (max-width: 768px) and (orientation: portrait) {
  
  header {
    padding: 0.75rem 1rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  /* Turn each nav item into a compact button */
  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .nav-links a::after {
    display: none; /* remove the underline hover effect, looks odd on buttons */
  }

  /* Dropdown: stop it floating as an absolute overlay, push it to flow inline as buttons too */
  .dropdown {
    order: 1; /* keeps "Elements of Adventure" toggle in its normal spot */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-menu {
    position: static;       /* no longer floats over content */
    flex-direction: row;    /* lay submenu items out like buttons too */
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.5rem 0 0 0;
    order: 100;              /* forces it to the very end, i.e. bottom of the menu */
  }

  .dropdown-menu li a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
  }
}

