:root {
  /* Font Family Options (easily switchable) */
  --primary-font: 'Cormorant Garamond', 'Forum', 'Libre Caslon Display', Georgia, serif;
  --secondary-font: 'Forum', 'Cormorant Garamond', Georgia, serif;
  --accent-font: 'Libre Caslon Display', 'Forum', serif;

  /* Ink Color Theme */
  --ink-color: #2b363c;
  --ink-sub-color: rgba(43, 54, 60, 0.76);

  /* Text Color Theme (Darker, independent from ink) */
  --text-main-color: #151a1d;
  --text-sub-color: rgba(21, 26, 29, 0.85);
}

.dark-theme {
  --ink-color: #F4F1EA;
  --ink-sub-color: rgba(244, 241, 234, 0.76);
  --text-main-color: #F4F1EA;
  --text-sub-color: rgba(244, 241, 234, 0.85);
}

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

body,
html {
  width: 100%;
  height: 100%;
  background-color: #F4F1EA;
  overflow: hidden;
}

body.dark-theme {
  background-color: #111619;
}

#bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/paperTexture.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.dark-theme #bg-texture {
  filter: invert(0.85) brightness(0.4) hue-rotate(180deg);
}

.hero-container {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
}

.hero-title {
  font-family: var(--primary-font);
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: capitalize;
  color: var(--text-main-color);
  margin-bottom: 0.65rem;
  line-height: 1.15;
  white-space: nowrap;
  position: relative;
}

/* ==========================================================================
   READABILITY HALO EFFECTS
   These soft, paper-colored glowing halos wash out ink passing behind the text.
   To control the effect:
   - Change `width` and `height` to control how far the halo spreads.
   - Adjust the `rgba` opacity values (the last number, e.g. 0.95 or 0.8) in 
     the `radial-gradient` to control how strongly it washes out the ink.
   ========================================================================== */

/* Main Title Halo */
.hero-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  /* Spread width of the halo */
  height: 180%;
  /* Spread height of the halo */

  /* The gradient fades from 95% opacity at the core, to 0% at the edges */
  background: radial-gradient(ellipse at center, rgba(244, 241, 234, 0.95) 0%, rgba(244, 241, 234, 0.7) 40%, rgba(244, 241, 234, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-subtitle {
  font-family: var(--secondary-font);
  font-size: clamp(0.9rem, 1.7vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--text-sub-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85em;
  white-space: nowrap;
  position: relative;
}

/* Subtitle Halo */
.hero-subtitle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 300%;
  background: radial-gradient(ellipse at center, rgba(244, 241, 234, 0.95) 0%, rgba(244, 241, 234, 0.8) 40%, rgba(244, 241, 234, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-subtitle .dot {
  font-size: 0.75em;
  opacity: 0.85;
  display: inline-block;
  line-height: 1;
}

/* ==========================================================================
   NAVIGATION BUTTONS
   ========================================================================== */

.nav-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  /* Let clicks pass through container */
}

.nav-btn {
  position: absolute;
  font-family: var(--accent-font);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  /* Larger font size */
  font-weight: 700;
  /* Bolder text */
  letter-spacing: 0.2em;
  /* Control the spacing between letters here */
  text-transform: capitalize;
  color: var(--text-main-color);
  text-decoration: none;
  pointer-events: auto;
  /* Enable clicks on the buttons */

  /* Soft floating shadow to give depth against the paper (increased opacity to be visible over halo) */
  text-shadow: 0px 8px 12px rgba(21, 26, 29, 0.45), 0px 3px 5px rgba(21, 26, 29, 0.35);

  /* Use CSS variables for hover offsets, updated by JS */
  --hover-x: 0px;
  --hover-y: 0px;
  transform: translate3d(var(--hover-x), var(--hover-y), 0);
  will-change: transform;
  /* Force GPU sub-pixel rendering for buttery smoothness */

  /* Use modern CSS scale property to transition size without interfering with transform */
  scale: 1;
  transition: opacity 0.2s ease, scale 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn.center-btn {
  transform: translate3d(calc(-50% + var(--hover-x)), var(--hover-y), 0);
}

.nav-btn:hover {
  opacity: 0.9;
  scale: 1.35;
  /* Tactile instant growth */

  /* Shadow grows, drops lower, and blurs more as the button "lifts" */
  text-shadow: 0px 18px 24px rgba(21, 26, 29, 0.35), 0px 6px 12px rgba(21, 26, 29, 0.25);
}

/* Nav Button Halo */
.nav-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160%;
  height: 250%;
  background: radial-gradient(ellipse at center, rgba(244, 241, 234, 0.95) 0%, rgba(244, 241, 234, 0.6) 40%, rgba(244, 241, 234, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

#node-canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* ==========================================================================
   ENTER OVERLAY
   ========================================================================== */

#enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F4F1EA;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.skip-enter #enter-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#enter-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/paperTexture.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

#enter-btn {
  font-family: var(--primary-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: capitalize;
  color: var(--text-main-color);
  background: transparent;
  border: none;
  cursor: pointer;
  scale: 1;
  transition: opacity 0.2s ease, scale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-shadow: 0px 8px 12px rgba(21, 26, 29, 0.3);
  padding: 2rem 4rem;
}

#enter-btn:hover {
  scale: 1.15;
  text-shadow: 0px 18px 24px rgba(21, 26, 29, 0.25);
  opacity: 0.9;
}

#enter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 250%;
  background: radial-gradient(ellipse at center, rgba(244, 241, 234, 0.8) 0%, rgba(244, 241, 234, 0.4) 40%, rgba(244, 241, 234, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ==========================================================================
   SUBPAGE LAYOUT
   ========================================================================== */

.page-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  z-index: 100;
  pointer-events: none;
}

.back-btn {
  font-family: var(--accent-font);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main-color);
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.back-btn:hover {
  opacity: 0.6;
}

.page-content-wrapper {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1300px;
  z-index: 10;
  pointer-events: auto;
  /* Allow text selection and scrolling */
  max-height: 80vh;
  overflow-y: auto;
  padding-bottom: 4rem;
}

/* Hide scrollbar for a cleaner look */
.page-content-wrapper::-webkit-scrollbar {
  display: none;
}

.page-content-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.page-title {
  font-family: var(--primary-font);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-main-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.page-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 250%;
  background: radial-gradient(ellipse at center, rgba(244, 241, 234, 0.95) 0%, rgba(244, 241, 234, 0.7) 40%, rgba(244, 241, 234, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.page-body {
  z-index: 2;
  font-family: var(--secondary-font);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.8;
  font-weight: 50 0;
  color: var(--text-main-color);
  position: relative;
  padding: 2rem 3rem;
  text-align: justify;
  flex: 1;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

#about-bg-image {
  position: fixed;
  top: 15%;
  left: 5%;
  height: 85vh;
  width: 42vw;
  max-width: 750px;
  object-fit: cover;
  object-position: center bottom;
  z-index: 1;
  opacity: 0.95;
  border-radius: 6px;
}

.about-image-placeholder {
  display: none;
}

@media (min-width: 768px) {
  .about-image-placeholder {
    display: block;
    flex: 0 0 42%;
    max-width: 550px;
  }
}

.page-body::before {
  content: '';
  position: absolute;
  top: -5%;
  left: 0;
  width: 110%;
  height: 110%;
  background: linear-gradient(to right, rgba(244, 241, 234, 0) 0%, rgba(244, 241, 234, 0.95) 10%, rgba(244, 241, 234, 0.95) 100%);
  z-index: -1;
  pointer-events: none;
}

.page-body p {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SUBPAGE INK WASH
   A subtle semi-transparent layer to make the ink less intense on content pages
   ========================================================================== */
.ink-wash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111619;
  opacity: 0.25;
  z-index: 3;
  pointer-events: none;
}

.dark-theme #enter-overlay {
  background-color: #111619;
}

.dark-theme #enter-overlay::before {
  filter: invert(0.85) brightness(0.4) hue-rotate(180deg);
}

.dark-theme #enter-btn::before {
  background: radial-gradient(ellipse at center, rgba(17, 22, 25, 0.8) 0%, rgba(17, 22, 25, 0.4) 40%, rgba(17, 22, 25, 0) 70%);
}

.dark-theme .nav-btn::before {
  background: radial-gradient(ellipse at center, rgba(17, 22, 25, 0.95) 0%, rgba(17, 22, 25, 0.6) 40%, rgba(17, 22, 25, 0) 70%);
}

.dark-theme .page-title::before {
  background: radial-gradient(ellipse at center, rgba(17, 22, 25, 0.95) 0%, rgba(17, 22, 25, 0.7) 40%, rgba(17, 22, 25, 0) 70%);
}

.dark-theme .page-body::before {
  background: linear-gradient(to right, rgba(17, 22, 25, 0) 0%, rgba(17, 22, 25, 0.95) 10%, rgba(17, 22, 25, 0.95) 100%);
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

#contact-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/contactPicture.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--secondary-font);
  font-size: 1.5rem;
  color: var(--text-main-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  text-shadow: 1px 1px 5px rgba(17, 22, 25, 0.9);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.3);
  font-family: var(--primary-font);
  font-size: 1.2rem;
  color: var(--text-main-color);
  padding: 0.8rem 0;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
  text-shadow: 1px 1px 5px rgba(17, 22, 25, 0.9);
  box-shadow: 0 4px 4px -4px rgba(17, 22, 25, 0.5);
  /* subtle shadow for border */
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: rgba(244, 241, 234, 0.9);
}

.form-submit {
  text-align: center;
  margin-top: 1rem;
}

.submit-btn {
  font-family: var(--accent-font);
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--text-main-color);
  background: transparent;
  border: none;
  cursor: pointer;
  letter-spacing: 0.15em;
  text-transform: capitalize;
  transition: opacity 0.3s ease, scale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-shadow: 1px 1px 5px rgba(17, 22, 25, 0.9);
}

.submit-btn:hover {
  opacity: 0.7;
  scale: 1.1;
}

.contact-page-body::before {
  display: none !important;
}

.contact-page-body .page-title {
  text-shadow: 1px 1px 5px rgba(17, 22, 25, 0.9);
}

.contact-page-body .page-title::before {
  display: none !important;
}

/* ==========================================================================
   DISCOGRAPHY PAGE
   ========================================================================== */

.discography-page-body::before {
  display: none !important;
}

/* ==========================================================================
   HERO ALBUM SECTION
   ========================================================================== */
.hero-album {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 1.5rem auto 4rem;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.hero-info .disc-title {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.hero-link {
  margin-top: 1rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.hero-link:hover {
  border-bottom-color: var(--text-main-color);
}

.hero-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 0;
  width: 100%;
}

.hero-embed-wrapper {
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: center;
}

.hero-embed-wrapper iframe {
  width: 100% !important;
  max-width: 100%;
}

.features-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  margin: 4rem auto 1rem;
  max-width: 1100px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.15);
  padding-bottom: 1rem;
}

.discography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 0;
  width: 100%;
  max-width: 1100px; 
  margin: 1.5rem auto 3rem;
}

.disc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: transparent;
  border-bottom: 1px solid rgba(244, 241, 234, 0.15);
  border-right: 1px solid rgba(244, 241, 234, 0.15);
  padding: 3rem 2.5rem; 
}

.disc-card > * {
  transition: transform 0.25s ease;
}

@media (min-width: 950px) {
  .disc-card:nth-child(even) {
    border-right: none;
  }
}

.disc-card:hover > * {
  transform: translateY(-4px);
}

.disc-media {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  background: #111619;
}

.disc-media iframe {
  width: 100%;
  display: block;
  border: 0;
}

.disc-cover-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.disc-card:hover .disc-cover-img {
  opacity: 0.95;
}

.disc-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.disc-artist {
  font-family: var(--secondary-font);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub-color);
  opacity: 0.85;
}

.disc-title {
  font-family: var(--primary-font);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-main-color);
  line-height: 1.25;
}

.disc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
}

.disc-year {
  font-family: var(--accent-font);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text-sub-color);
  opacity: 0.75;
}

.disc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--accent-font);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(244, 241, 234, 0.4);
  transition: all 0.2s ease;
}

.disc-link:hover {
  text-decoration-color: rgba(244, 241, 234, 1);
  opacity: 0.85;
  transform: translateX(3px);
}


/* --- Projects Page --- */
.side-bg {
  position: fixed;
  top: 15%;
  height: 80vh;
  width: max(0px, calc(50vw - 600px));
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  z-index: 1; /* Above #bg-texture because it comes after in HTML */
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 25%, black 65%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, black 25%, black 65%, transparent 100%);
}

.left-bg {
  left: 0;
  background-image: url('assets/images/projectsPic1.webp');
}

.right-bg {
  right: 0;
  background-image: url('assets/images/projectsPic2.webp');
}

.projects-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 5rem;
  position: relative; /* Ensure it stays above the canvas */
  z-index: 10;
}

.projects-header {
  margin-bottom: 4rem;
  text-align: center;
}

.projects-intro {
  font-family: var(--accent-font);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--text-sub-color);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* Tabs System */
.tabs-container {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.4);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-sub-color);
  font-family: var(--accent-font);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.75rem 2rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  /* Unselected - no fill */
  background-color: transparent; 
}

/* Vertical line separator */
.tab-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 1px;
  background-color: rgba(244, 241, 234, 0.4);
}

/* Hover state - 40% opacity gray */
.tab-btn:hover {
  background-color: rgba(128, 128, 128, 0.4);
  color: var(--text-main-color);
}

/* Selected state - 100% opacity light gray creme */
.tab-btn.active {
  background-color: rgba(244, 241, 234, 1);
  color: var(--bg-color); /* contrast text color */
  font-weight: 600;
  transition: none;
}

.tab-content {
  animation: fadeIn 0.5s ease;
}

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

.expand-btn {
  background: none;
  border: none;
  color: var(--text-main-color);
  font-family: var(--accent-font);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(244, 241, 234, 0.4);
  cursor: pointer;
  padding: 0;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.expand-btn:hover {
  text-decoration-color: rgba(244, 241, 234, 1);
  opacity: 0.85;
}

.project-item.flex-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.project-text-column {
  flex: 1 1 55%;
}

.project-media-column {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(244, 241, 234, 0.1);
}

margin-top: 0.2rem;
}

.disc-year {
  font-family: var(--accent-font);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text-sub-color);
  opacity: 0.75;
}

.disc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--accent-font);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(244, 241, 234, 0.4);
  transition: all 0.2s ease;
}

.disc-link:hover {
  text-decoration-color: rgba(244, 241, 234, 1);
  opacity: 0.85;
  transform: translateX(3px);
}


/* --- Projects Page --- */
.side-bg {
  position: fixed;
  top: 15%;
  height: 80vh;
  width: max(0px, calc(50vw - 600px));
  background-size: cover;
  background-position: center;
  opacity: 0.75;
  z-index: 1; /* Above #bg-texture because it comes after in HTML */
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 25%, black 65%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, black 25%, black 65%, transparent 100%);
}

.left-bg {
  left: 0;
  background-image: url('assets/images/projectsPic1.webp');
}

.right-bg {
  right: 0;
  background-image: url('assets/images/projectsPic2.webp');
}

.projects-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 5rem;
  position: relative; /* Ensure it stays above the canvas */
  z-index: 10;
}

.projects-header {
  margin-bottom: 4rem;
  text-align: center;
}

.projects-intro {
  font-family: var(--accent-font);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--text-sub-color);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* Tabs System */
.tabs-container {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.4);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-sub-color);
  font-family: var(--accent-font);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.75rem 2rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  /* Unselected - no fill */
  background-color: transparent; 
}

/* Vertical line separator */
.tab-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 1px;
  background-color: rgba(244, 241, 234, 0.4);
}

/* Hover state - 40% opacity gray */
.tab-btn:hover {
  background-color: rgba(128, 128, 128, 0.4);
  color: var(--text-main-color);
}

/* Selected state - 100% opacity light gray creme */
.tab-btn.active {
  background-color: rgba(244, 241, 234, 1);
  color: var(--bg-color); /* contrast text color */
  font-weight: 600;
  transition: none;
}

.tab-content {
  animation: fadeIn 0.5s ease;
}

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

.expand-btn {
  background: none;
  border: none;
  color: var(--text-main-color);
  font-family: var(--accent-font);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(244, 241, 234, 0.4);
  cursor: pointer;
  padding: 0;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.expand-btn:hover {
  text-decoration-color: rgba(244, 241, 234, 1);
  opacity: 0.85;
}

.project-item.flex-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.project-text-column {
  flex: 1 1 55%;
}

.project-media-column {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(244, 241, 234, 0.1);
}

#sextet-project {
  position: relative;
  margin: 0;
  padding: 2.5rem 0;
  background: linear-gradient(rgba(18, 18, 18, 0.65), rgba(18, 18, 18, 0.85)), url('assets/images/sextet_projects_BG.webp') center/cover;
}

/* Social Links */
.social-links-container {
  display: flex;
  gap: 2.5rem;
  margin-top: 5rem;
  justify-content: center;
}

.social-icon {
  color: #9E2200;
  font-size: 2.5rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icon:hover {
  filter: brightness(1.25);
  transform: translateY(-3px);
}