/* -------------------------------------------------- */
/* FONTS */
/* -------------------------------------------------- */
@font-face {
  font-family: "ACES04";
  src: url(../fonts/ACES04.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ACES07";
  src: url(../fonts/ACES07_Regular.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------- */
:root {
  --primary: #31302A;
  --secondary: rgb(188, 185, 167);
  --text: #31302A;
  --bg: var(--secondary);
}

/* -------------------------------------------------- */
/* GLOBAL */
/* -------------------------------------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: "ACES07";
  background: var(--bg);
  color: var(--primary);
  text-align: justify;
  font-size: 1.2rem;
  line-height: 1.6rem;
}

h1, h2 {
  font-family: "ACES04";
  color: var(--primary);
  letter-spacing: 0.4rem;
}

section {
  padding: 0 1.5rem;
}

.diamond-divider {
  position: relative;
  text-align: center;         /* center the diamond */
  margin: 30px 0;             /* vertical spacing */
}

.diamond-divider::before,
.diamond-divider::after {
  content: "";
  display: inline-block;
  width: 40%;
  height: 2px;                /* thickness of the line */
  background-color: var(--primary);     /* line color */
  vertical-align: middle;
  margin: 0 10px;             /* space around the diamond */
}

.center-diamond {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--primary);     /* same as line color */
  transform: rotate(45deg);   /* rotate square into diamond */
  vertical-align: middle;
}

/* -------------------------------------------------- */
/* HEADER / NAV */
/* -------------------------------------------------- */
header {
  position: relative;       /* make header a positioning context */
  z-index: 1000;
  background: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

#languageSwitcher {
  display: flex;        /* arrange children side by side */
  gap: 6px;             /* space between flags */
  align-items: center;
  transition: opacity 0.5s ease;
}
.lang-btn img {
  width: 18px;
  height: 12px;
}

.lang-btn.active {
  border: 2px solid rgba(188, 185, 167, 0.85); 
  opacity: 1;
}

.lang-btn {
  background: transparent;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile nav menu */
#mobileNav {
  display: none;            /* hidden by default */
  position: absolute;       /* position relative to header */
  top: 100%;                /* place just below header */
  left: 0;
  width: 100%;
  background: #57554b;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 999;
}
#mobileNav.open {
  display: flex;
}

/* Make sure links are block for stacking */
#mobileNav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--secondary);
  text-decoration: none;
}

.logo {
  font-family: "ACES04";
  font-size: 2rem;
  letter-spacing: 0.3rem;
  flex-shrink: 0; /* prevent shrinking */
  z-index: 1001;  /* above nav if necessary */
  color: var(--secondary);
}

.hamburger {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  width: 2.5rem;
  text-align: center;
}

/* -------------------------------------------------- */
/* MUSIC ACCORDION */
/* -------------------------------------------------- */
.category-body {
  padding-left: 10px;
  padding-right: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
}

.category-body.open {
  max-height: 1000px;
  padding-top: 1rem;
  display: block;
}

.category-header {
  width: calc(100% - 20px);
  margin: 10px;
  padding: 10px;
  background-color: #31302A;
  color: rgb(188, 185, 167);
  font-family: "ACES04";
  font-size: 20px;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-header .arrow {
  transition: transform 0.2s ease;
}

.category-header.open .arrow {
  transform: rotate(90deg);
}

.track-block {
  border-bottom: none; 
}

.track-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.track-header {
  width: 100%;
  background: none;
  border: none;

  text-align: left;
  font-family: "ACES04";
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #31302A;
  cursor: pointer;
}

.track-header .arrow {
  transition: transform 0.3s ease;
}

.track-header.open .arrow {
  transform: rotate(90deg);
}

.track-body,
.notes-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
  display: flex;
  flex-direction: column;
}

.track-body.open,
.notes-panel.open {
  max-height: 1000px;
  padding-top: 1rem;
}

/* Notes wrapper to connect button + panel */
.notes-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* left-align everything */
  gap: 0.2rem;               /* small gap between button and panel */
}

/* Notes panel */
.notes-panel {
  display: inline-block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.3s ease;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--primary); /* underline only as wide as content */
  text-align: left;
}

/* Notes button */
.notes-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  border-bottom: 1px solid var(--primary); /* underline as wide as text */
  color: var(--primary);
  padding: 0.3rem 0.5rem;
  font-family: "ACES04";
  letter-spacing: 0.5em;
  cursor: pointer;
}

.notes-btn .arrow {
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.2s ease;
}

.notes-btn.open .arrow {
  transform: rotate(90deg);
}

/* CUSTOM PLAYER */
.custom-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 10px;
}

.custom-player input[type="range"] {
  height: 6px;
  margin: 0;
  padding: 0;
}

.seekBar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--primary);
  cursor: pointer;
}

.seekBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  background: var(--primary);
  transform: rotate(45deg);
  border-radius: 0;
}

.seekBar::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: var(--primary);
  transform: rotate(45deg);
  border-radius: 0;
  border: none;
}

.playBtn, .pauseBtn {
  background: transparent;
  margin-top: 4px;
}

.time-container {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  line-height: 1;
}

.time {
  width: 50px;
  text-align: right;
}

.separator {
  flex-shrink: 0;
}

.remaining-time {
  text-align: left;
  flex-shrink: 0;
}

.track-header.active-track {
  background-color: rgba(49,48,42,0.1); /* subtle highlight for mobile */
}

/* ---------- CAROUSEL CONTAINER ---------- */

.projects-carousel {
  position: relative; /* make arrows absolute relative to this */
}

/* Arrow buttons */
.arrow {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0;
}

.projects-viewport {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.project-slide {
  display: none;          /* hide all by default */
  width: 100%;
}

.project-slide.active {
  display: block;         /* show only active slide */
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  max-width: 70%; 
  margin: 0 auto;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

.project-description {
  padding-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.4; 
  max-width: 70%;
  margin: auto;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.project-indicators {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.video-shell {
  position: relative;
}

/* Arrows */
.projects-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  background: url('../images/projects_arrow.webp') no-repeat center center;
  background-size: contain;
  border: none;
  cursor: pointer;
}

.projects-arrow.left {
  background: url('../images/projects_arrow.webp') no-repeat center center;
  background-size: contain;
  border: none;
  color: transparent;
  font-size: 0;
  padding: 0;
  transform: translateY(-50%) rotate(180deg);
  left: -50px;
}

.projects-arrow.right {
  background: url('../images/projects_arrow.webp') no-repeat center center;
  background-size: contain;
  border: none;
  color: transparent;
  font-size: 0;
  padding: 0;
  right: -50px;
  transform: translateY(-50%);
}

.diamond {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: rgba(0, 0, 0, 0.3);
}

.diamond.active {
  background: var(--primary);
}

@media (max-width: 360px) {
  .projects-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .project-description {
    font-size: 0.85rem;
  }
}

.about-photo {
  width: 100%;
  max-width: 350px;
  margin-bottom: 1rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  border: 2px solid #5f5d4b;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid var(--primary);
  font-family: "ACES07";
}

button {
  padding: 0.8rem;
  border: none;
  background: var(--primary);
  color: var(--secondary);
  font-family: "ACES04";
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--primary);
  color: var(--secondary);
}

.hidden-div {
  display: none;
}

.submitBtn {
  font-size: 1em;
  letter-spacing: 0.5rem;
  margin: 0 0 20px;
}

.copyright {
  color:rgba(188, 185, 167, 0.85);
  font-family: monospace;
}