/* === General Page Setup === */

body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: #c4d4e0;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* === Navigation Bar === */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000000;
  z-index: 10;
  padding: 0px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center the nav by splitting left/center/right */
nav ul {
  list-style: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0 50px; /* desktop horizontal padding */
  position: relative;
}

/* Make sure WORKS is perfectly centered */
nav li:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav a {
  text-decoration: none;
  color: #c4d4e0;
  font-weight: normal;
  font-size: 40px;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #FF0000;
}

/* === Space below fixed navigation bar === */
body {
  padding-top: 70px; /* adjust to nav height */
}

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

/* === Main Image on Home Page === */

.main-image {
  width: 100%;
  height: auto;
  margin-top: 0;
  display: block;
}

/* === ABOUT PAGE (NEW LAYOUT) === */

/* Hero image section */
.about-hero {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-top: 0;
}

.about-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(90%);
}

/* Bio text section */
.about-content {
  background-color: #000000;
  padding: 0px 100px;
  display: flex;
  justify-content: center;
}

.bio-container {
  max-width: 2000px;
  text-align: justify;
}

.bio-container h1 {
  font-weight: 500;
  font-size: 2.2em;
  margin-bottom: 0.2em;
  color: #222;
}

.bio-container h2 {
  font-weight: 300;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 2em;
  color: #444;
}

/* Two-column layout for text */
.bio-flex {
  display: flex;
  justify-content: space-between;
  gap: 100px;
  font-weight: normal;
  line-height: 1.8;
  color: #c4d4e0;
  font-size: 1em;
}

.bio-left,
.bio-right {
  flex: 1;
}

/* === WORKS PAGE === */

.works-grid {
  display: flex;
  width: 100%;
  height: 90vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.work-column {
  position: relative;
  flex: 1;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.4s ease;
  background-size: cover;
  background-position: center;
  filter: brightness(60%) grayscale(40%);
}

.work-column .overlay {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0);
  padding: 30px 50px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.work-column h2 {
  font-size: 1.8em;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.work-column:hover {
  filter: brightness(100%) grayscale(0%);
  transform: scale(1.02);
  z-index: 2;
}

.work-column:hover .overlay {
  background-color: rgba(0, 0, 0, 0);
}

.tonmeister {
  background-image: url("../assets/img/vinh-tran-score.webp");
}

.composer {
  background-image: url("../assets/img/vinh-tran-portrait.webp");
}

.collaborations {
  background-image: url("../assets/img/2strixure-performance.webp");
}

/* Fine-tune text positions on works.html */

.tonmeister .overlay {
  transform: translateY(-300px);
}

.composer .overlay {
  transform: translateY(-300px);
}

.collaborations .overlay {
  transform: translateY(-300px);
}

/* === COMPOSER WORKS PAGE === */

.works-intro {
  background-color: #000000;
  padding: 0px 0px 0px;
  text-align: center;
}

.works-intro .container {
  max-width: 800px;
  margin: 0 auto;
}

.works-intro h1 {
  font-weight: 500;
  font-size: 2.4em;
  color: #c4d4e0;
  margin-bottom: 0.2em;
}

.works-intro p {
  font-weight: 300;
  font-size: 1em;
  color: #c4d4e0;
  line-height: 1.6;
}

/* List of piece boxes */
.composer-list .container {
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

.piece-box {
  position: relative;
  display: block;
  width: 100vw;
  height: 700px;
  margin: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(70%) grayscale(20%);
}

.piece-box:hover {
  filter: brightness(100%) grayscale(0%);
  transform: scale(1.02);
}

.piece-box .piece-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: none;
  padding: 0;
  width: auto;
}

.piece-box .piece-overlay h2 {
  font-weight: 200;
  font-size: 4em;
  letter-spacing: 0.03em;
  margin: 0;
  color: #c4d4e0;
  transition: color 0.3s ease;
}

.piece-box:hover .piece-overlay h2 {
  color: #FF0000;
}

.piece-description pre {
  white-space: pre-wrap;
  font-family: inherit;
  color: #c4d4e0;
  font-size: 1em;
  line-height: 1.6;
  background: transparent;
  border: none;
  padding: 0 200px;
  text-align: justify;
}

.video-container {
  position: relative;
  width: 100vw;
  height: calc(100vh - 70px);
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.instagram-feed {
  margin-top: 60px;
  padding: 0 100px;
  text-align: center;
}

.instagram-feed h2 {
  color: #c4d4e0;
  font-weight: 400;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.instagram-media {
  margin: 20px auto;
  max-width: 400px;
}

/* === MOBILE RESPONSIVE ADDITIONS === */

/* Navigation responsiveness */
@media (max-width: 900px) {
  nav {
    padding: 10px 20px;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 0;
  }
  nav li:nth-child(2) {
    position: static;
    transform: none;
    margin: 10px 0;
  }
  nav a {
    font-size: 28px;
  }

  .works-grid {
    flex-direction: column;
    height: auto;
  }

  .work-column {
    height: 40vh;
  }

  .work-column h2 {
    font-size: 1.4em;
  }

  /* Fine-tune overlay adjustments */
  .composer .overlay {
    transform: translate(0, 20px);
  }
  .collaborations .overlay {
    transform: translateY(-40px);
  }

  .piece-box {
    height: 250px;
  }

  .piece-box .piece-overlay h2 {
    font-size: 1.5em;
  }

  .piece-description pre {
    padding: 0 20px;
    font-size: 0.95em;
  }

  .about-hero {
    height: 50vh;
  }
  .bio-flex {
    flex-direction: column;
    font-size: 0.95em;
    gap: 20px;
  }
  .bio-container {
    padding: 0 10px;
  }

  .instagram-feed {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }

  .instagram-post {
    flex: 0 0 400px;   /* fixed width for each post */
    max-width: 400px;
    margin: 0;
  }
}

@media (max-width: 600px) {
  nav a {
    font-size: 22px;
  }
  .piece-box {
    height: 200px;
  }
  .piece-box .piece-overlay h2 {
    font-size: 1.2em;
  }
  .piece-description pre {
    padding: 0 10px;
    font-size: 0.9em;
  }
}

.contact-section {
  display: flex;
  justify-content: center;  /* horizontal centering */
  align-items: center;      /* vertical centering in viewport */
  text-align: center;
  height: 80vh;             /* vertically center the box */
  padding: 0 20px;          /* responsive padding */
  color: #c4d4e0;           /* match site color */
}

.contact-box a {
  color: #FF0000;           /* accent color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-box a:hover {
  color: #ffffff;
}

.youtube-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  margin: 20px auto;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.piece-header {
  margin-bottom: 70px; /* optional: space after header section */
}

.piece-header .piece-title {
  margin: 0;
  font-size: 2.4em;   /* keep your size */
  line-height: 1.2;   /* reduces spacing inside the text block */
}

.piece-header .piece-meta {
  margin: 5px 0 0 0;  /* small top margin to bring it closer to the title */
  font-size: 1.2em;   /* adjust if needed */
  line-height: 1.3;
}
