/*
 * Stylesheet for James J. Kee single‑page site
 *
 * This file defines a dark, modern palette with subtle section
 * differentiation.  Content sections alternate slightly different
 * shades of black/grey to delineate the page without obvious
 * borders.  Typography uses system fonts for fast loading.  The
 * navigation bar is sticky and collapses on smaller screens.  A
 * custom carousel fills the viewport and uses a fade transition.
 */

/* CSS Reset / base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #e5e5e7;
  background-color: #080808;
  scroll-behavior: smooth;
}
a { color: #bbb; text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
h2 { font-size: 1.8rem; }

/* Center all section headings */
.section h2 {
  text-align: center;
}
em { font-style: italic; }

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, padding 0.3s ease;
}
.navbar .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.navbar-toggler {
  display: none;
  font-size: 1.4rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}
.navbar-menu li a,
.navbar-menu li button {
  color: #e5e5e7;
  font-size: 0.9rem;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar-menu li button.language-button {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  font-weight: 600;
}
.navbar-menu li a:hover,
.navbar-menu li button:hover {
  color: #fff;
}
/* Navbar shrink on scroll */
.navbar-shrink {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 6px 20px;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .navbar-toggler {
    display: block;
  }
  .navbar-menu {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    display: none;
  }
  .navbar-menu.open {
    display: flex;
  }
  .navbar-menu li {
    margin-bottom: 8px;
  }
  .navbar-menu li:last-child {
    margin-bottom: 0;
  }
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor the hero image to the top so important details like the face
     remain visible when the image is cropped to fill the viewport. */
  object-position: top center;
  display: block;
}
.hero-quote {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  color: #f5f5f5;
}
.hero-quote cite {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #b0b0b0;
  font-style: normal;
}

/* General section styling */
.section {
  padding: 60px 0;
  position: relative;
}
.section:nth-of-type(odd) {
  background-color: #0b0b0c;
}
.section:nth-of-type(even) {
  background-color: #111113;
}

/* Option22: ink & brushstrokes divider */
/*
 * Remove the decorative brushstroke transition between sections.  In earlier
 * iterations of this site a pseudo‐element on each section created a
 * rotated gradient that blurred outside the viewport.  This element was
 * responsible for horizontal scrolling on mobile devices and has been
 * completely disabled here.  Should a cached stylesheet reintroduce
 * it, the override below forces it to disappear.
 */
.section::before {
  display: none !important;
  content: none !important;
}

/* Neon glow headings sit atop the brushstroke line */
.section h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(209,176,107,0.8), 0 0 12px rgba(209,176,107,0.6);
}

/* Biography with portrait background */
.section-bio {
  background-image: url("../img/intro-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #ddd;
}
.section-bio::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}
.section-bio .container {
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Biography */
.bio-wrapper {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
}
.bio-wrapper p {
  margin-bottom: 1.2rem;
}

/* Repertoire */
.repertoire-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.repertoire-table th,
.repertoire-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.repertoire-table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  background-color: #141416;
}
.repertoire-table tr:nth-child(odd) td {
  background-color: rgba(255, 255, 255, 0.03);
}
/* Footnote for role list */
.small {
  font-size: 0.75rem;
  color: #999;
  margin-top: 8px;
}
.role-marker {
  color: #d1b06b;
  font-weight: bold;
}

/* Media section */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 20px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.my-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 70vh;
  max-height: 700px;
  margin: 0 auto;
}
.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.carousel-image.active {
  opacity: 1;
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  z-index: 5;
}
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }
.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.carousel-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}
.carousel-indicators .indicator.active {
  background: #d1b06b;
}

/* Discography */
.disc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}
.disc-item {
  flex: 1 1 260px;
  max-width: 320px;
  text-align: center;
}
.album-cover {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.disc-item p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #ccc;
}

/* Social buttons */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #e5e5e7;
  font-size: 0.85rem;
  transition: background 0.3s ease, border 0.3s ease;
}
.social-btn svg {
  width: 16px;
  height: 16px;
  fill: #d1b06b;
}
.social-btn img {
  width: 16px;
  height: 16px;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Make the Twitter icon much larger */
.social-buttons .social-btn:nth-child(1) svg {
  width: 28px;
  height: 28px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  background-color: #0b0b0c;
  color: #888;
}

/* Visibility helpers */
.german,
.english {
  /* hide at start, JS will override */
}

/*
 * Responsive image display
 *
 * On narrow screens, show entire carousel images instead of cropping so that
 * photographs scale within the available width while maintaining their
 * aspect ratio. On larger screens the images will continue to fill the
 * carousel container via object-fit: cover.
 */
@media (max-width: 768px) {
  .my-carousel .carousel-image {
    object-fit: contain;
  }
}

/* ----------------------------------------------------------------------
 * Section background customisations and accessibility
 *
 * To enhance visual interest, each major section receives its own
 * parallax‑style background image.  These images are fixed on
 * desktop for a subtle parallax effect and fall back to scrolling
 * backgrounds on narrow screens.  A dark overlay ensures that
 * foreground text remains legible regardless of the underlying photo.
 */

/* Biography: anchor the portrait to the right on large screens so the subject
   is always visible.  The image scales to fill the viewport and stays
   fixed during scroll. */
.section-bio {
  background-image: url("../img/intro-bg.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: right 10% center;
}

/* On smaller screens the image centers at the top and scrolls with the
   content so that the subject is not cut off or excessively scaled. */
@media (max-width: 1024px) {
  .section-bio {
    background-position: center top;
    background-attachment: scroll;
  }
}

/* Generic setup for other sections with images: position relative so
   overlays can be placed, assign default parallax properties and a
   dark overlay for legibility. */
.section-rep,
.section-media,
.section-disc {
  position: relative;
  color: #e5e5e7;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.section-rep::after,
.section-media::after,
.section-disc::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.section-rep .container,
.section-media .container,
.section-disc .container {
  position: relative;
  z-index: 1;
}

/* Assign specific photos to each section */
.section-rep {
  background-image: url("../img/rob_0222.1920x0_1620x1080.jpg");
}
.section-media {
  background-image: url("../img/rob_8545_1620x1080.jpg");
}
.section-disc {
  background-image: url("../img/a.jpg");
}

/* Contact: solid black background with no image */
.section-contact {
  background: #000 !important;
  background-image: none !important;
  position: relative;
  color: #e5e5e7;
}
.section-contact::after {
  display: none;
}
.section-contact .container {
  position: relative;
  z-index: 1;
}

/* Repertoire: force all text to white and lighten borders.  Remove
   alternating row shading to improve contrast on photo backgrounds. */
#repertoire,
#repertoire * {
  color: #ffffff !important;
}
#repertoire .repertoire-table th,
#repertoire .repertoire-table td {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background-color: transparent !important;
}
#repertoire .repertoire-table tr:nth-child(odd) td {
  background-color: transparent !important;
}