/* Base layout */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  display: block;
  position: relative;
  overflow-y: auto;
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  color: #F9E9CC;
}


/* Background */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../Assets/Images/background.png') no-repeat center center fixed;
  background-size: cover;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* no dark overlay */
  z-index: -1;
}

/* Container */

.container {
  width: 100%;
  max-width: 900px;
  padding: 0 20px 100px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 2s forwards;
  color: #ffffff;
  margin: 0 auto;
}

/* Logo */

.logo-link {
  display: inline-block;
}

.logo-link,
.nav-menu {
  position: relative;
  z-index: 3;
}

.logo {
  width: 75%;
  max-width: 450px;
  margin: 0 auto 20px;
  display: block;
  opacity: 0;
  animation: fadeIn 3s forwards ease-in-out; /* slower fade for logo */
}

/* Keyframes */

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}


/* Navigation */

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-link {
  background: rgba(0, 0, 0, 0.4);
  color: #F9E9CC;
  font-weight: 700;
  text-shadow: 1px 1px 0 #6B4A2B;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.3s ease,
    transform 0.1s ease;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(0, 255, 200, 0.649);
  color: #F9E9CC;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.30);
  text-shadow: 2px 2px 0 #6B4A2B;
}

/* Headings */

h1,
h2,
h3 {
  font-weight: 700;
  color: #F9E9CC;
  text-shadow: 2px 2px 0 #6B4A2B;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* Page content wrapper (SPA) */

.page-wrapper {
  margin-top: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #F9E9CC;
  border-radius: 16px;
  padding: 25px 20px;
  box-sizing: border-box;
  border: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out; /* fade-out */
}

.page-wrapper.visible {
  opacity: 1;
  transition: opacity 1.8s ease-in-out; /* slower fade-in */
}

.page-wrapper h1 {
  text-shadow: 2px 2px 0 #6B4A2B;
}

.page-wrapper p {
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 0 16px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 2s forwards 1.5s;
  z-index: 1;
  color: #F9E9CC;
}

.instagram-icon,
.youtube-icon {
  width: 40px;
  height: 40px;
  margin: 0 8px;
}

/* Inline link */

.inline-link {
  color: #F9E9CC;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.inline-link:hover {
  color: #cccccc;
}

/* Contact form layout */

.contact-form {
  max-width: 720px;
  margin: 0 auto 10px;
  text-align: left;
}

.contact-row {
  margin-bottom: 1.4em;
}

.contact-row--two {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-row--two .contact-field {
  flex: 1 1 0;
}

.contact-field {
  width: 100%;
}

.contact-label {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.95rem;
  font-weight: 600;
  color: #F9E9CC;
  text-shadow: 2px 2px 0 #6B4A2B;
}

/* Inputs */

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(249, 233, 204, 0.7);
  background: transparent;
  color: #F9E9CC;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: #F9E9CC;
  box-shadow: 0 0 0 2px rgba(0, 255, 200, 0.35);
}

/* Dropdown select */

.contact-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}

/* Message box */

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Helper text */

.contact-help {
  margin-top: 0.4em;
  font-size: 0.85rem;
  color: rgba(249, 233, 204, 0.8);
}

.contact-help-inline {
  display: block;
  font-size: 0.8rem;
  color: rgba(249, 233, 204, 0.85);
}

/* Checkbox */

.contact-row--checkbox {
  text-align: left;
}

.contact-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.contact-checkbox-input {
  margin-top: 3px;
}

.contact-checkbox-text {
  font-size: 0.95rem;
  color: #F9E9CC;
}

/* Submit button */

.contact-submit {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #F9E9CC;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-shadow: 2px 2px 0 #6B4A2B;
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.3);
  transition:
    background 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.contact-submit:hover {
  background: rgba(0, 255, 200, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.45);
}

/* Note at the bottom */

.contact-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(249, 233, 204, 0.85);
}

/* Contact form responsive */

@media (max-width: 600px) {
  .contact-form {
    text-align: left;
  }

  .contact-row--two {
    flex-direction: column;
  }
}

/* Form status */

.form-status {
  opacity: 0;
  animation: fadeIn 1s forwards ease-in-out;
  font-size: 1rem;
  text-shadow: 2px 2px 0 #6B4A2B;
}

/* --- Mixing & Mastering page --- */

.mixing-hero {
  padding: 10px 0 20px;
  margin-bottom: 10px;
}

.mixing-hero h1 {
  margin-bottom: 0.5rem;
}

.mixing-hero p {
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
  line-height: 1.6;
}

.mixing-hero .hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.hero-pill {
  border: 1px solid rgba(249, 233, 204, 0.6);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.hero-links a {
  color: #F9E9CC;
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 233, 204, 0.7);
  padding-bottom: 0.1rem;
}

.hero-links a:hover {
  color: #ffffff;
}

/* === Location page hero image === */

.hero-image {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border: none;
}

/* Sections & layout for Mixing & Mastering */

.mixing-section {
  padding: 10px 0 5px;
  max-width: 900px;
  margin: 3rem auto;  /* even vertical spacing between engineers */
}

.mixing-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Mixing internal sub-page tabs (engineer switcher) === */

.mixing-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1.5rem auto 0.8rem;
}

.mixing-tab {
  background: #F9E9CC; /* cream background */
  color: #000; /* black text */
  font-weight: 700;
  text-shadow: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid rgba(249, 233, 204, 0.8);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.3s ease,
    transform 0.1s ease,
    border 0.2s ease;
}

/* Hover / focus */
.mixing-tab:hover {
  background: rgba(0, 255, 200, 0.7);
  color: #F9E9CC;
  border: 1px solid transparent; /* remove cream border on hover */
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.45);
}

/* Active (selected engineer) */
.mixing-tab.active {
  background: rgba(0, 255, 200, 0.35);
  color: #F9E9CC;
  border: 1px solid transparent; /* remove border when active */
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.5);
  transform: translateY(-1px);
}

/* === Engineer sub-pages fade behaviour === */

.mixing-panel {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.6s ease-in-out,
    transform 0.6s ease-in-out,
    max-height 0.6s ease-in-out;
}

.mixing-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  max-height: 2000px; /* large enough for content */
  transform: translateY(0);
}

/* Consistent "Coming Soon..." text styling */

.track-group p {
  margin: 0.5rem 0;
  color: #F9E9CC;
  opacity: 0.85;
  text-align: center;
}

/* Engineer cards */

.engineer-card {
  border: 1px solid rgba(249, 233, 204, 0.9);
  border-radius: 16px;
  background: #000;
  padding: 1.25rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.5rem;
  text-align: center;
}

.engineer-name {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.8rem;
  color: #F9E9CC;
  text-shadow: 2px 2px 0 #6B4A2B;
}

/* Photo & caption inside the card */

.engineer-photo img {
  width: 100%;
  max-width: clamp(180px, 35vw, 320px);
  border-radius: 12px;
  margin: 0 auto;
  display: block;
  height: auto;
}

.engineer-caption {
  font-size: 0.9rem;
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
  color: #F9E9CC;
  opacity: 0.8;
  text-transform: none;
  text-align: center;
  line-height: 1.5;
}

/* Portfolio heading */

.audio-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
  border-top: 1px solid rgba(249, 233, 204, 0.22);
  padding-top: 0.7rem;
  text-align: center;
  color: #F9E9CC;
}

/* Track grouping */

.track-group {
  border: none;
  padding-top: 0.4rem;
}

/* Track rows */

.track-row {
  padding: 0.35rem 0 0.45rem;
  text-align: left;
}

.track-row + .track-row {
  border-top: 1px solid rgba(249, 233, 204, 0.22);
  margin-top: 0.3rem;
  padding-top: 0.5rem;
}

.track-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.track-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F9E9CC;
}

.track-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

/* Coming soon placeholder */

.coming-soon {
  color: rgba(249, 233, 204, 0.8);
  font-style: italic;
  padding: 1rem 0;
}

/* === Custom audio player (replaces native controls) === */

/* Hide the native audio UI; we control playback via JS + custom elements */
.track-audio {
  display: none;
}

/* Custom controls container */
.track-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

/* Play/pause button */
.track-btn.play-pause {
  background: transparent;
  border: none;
  color: #F9E9CC;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  text-shadow: 2px 2px 0 #6B4A2B;
  transition:
    color 0.15s ease,
    transform 0.1s ease,
    text-shadow 0.15s ease;
}

.track-btn.play-pause:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 255, 200, 0.6);
}

.track-btn.play-pause:active {
  transform: scale(0.92);
}

/* Timeline bar */
.track-timeline {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(249, 233, 204, 0.18);
  cursor: pointer;
  overflow: hidden;
}

.track-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 200, 0.9),
    rgba(0, 200, 255, 0.9)
  );
  box-shadow: 0 0 6px rgba(0, 255, 200, 0.6);
}

/* Time text */
.track-time {
  font-size: 0.8rem;
  opacity: 0.85;
  min-width: 80px;
  text-align: right;
}

/* Spacer at bottom so content clears fixed footer */

.page-footer-spacer {
  height: 40px;
}

/* Global responsive tweaks */

@media (max-width: 600px) {
  .nav-link {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  .page-wrapper {
    padding: 20px;
  }

  .page-wrapper h1 {
    font-size: 1.5rem;
  }

  .page-wrapper p {
    margin-bottom: 2em;
    line-height: 1.6;
  }
}

/* === Soft Jelly Jiggle Animation === */

/* === Subtle, Slower Jelly Animation with Organic Feel === */

@keyframes buttonJelly {
  0%   { transform: scale(1) rotate(var(--jiggle-rot, 0deg)); }
  10%  { transform: scale(calc(1 - var(--jiggle-intensity, 0.04)), calc(1 + var(--jiggle-intensity, 0.04))) rotate(calc(var(--jiggle-rot, 0deg) * -1)); }
  25%  { transform: scale(calc(1 + var(--jiggle-intensity, 0.04)), calc(1 - var(--jiggle-intensity, 0.04))) rotate(var(--jiggle-rot, 0deg)); }
  45%  { transform: scale(calc(1 - var(--jiggle-intensity, 0.02)), calc(1 + var(--jiggle-intensity, 0.02))) rotate(calc(var(--jiggle-rot, 0deg) * -0.5)); }
  70%  { transform: scale(calc(1 + var(--jiggle-intensity, 0.01)), calc(1 - var(--jiggle-intensity, 0.01))) rotate(calc(var(--jiggle-rot, 0deg) * 0.3)); }
  100% { transform: scale(1) rotate(0deg); }
}

.jiggle {
  animation: buttonJelly 0.9s cubic-bezier(0.25, 1, 0.5, 1.25);
  transform-origin: center;
}

/* ----- Content stage anchors landing & page-content under the header ----- */
.content-stage {
  position: relative;
  margin: 16px auto 0;       /* space below logo/nav */
  max-width: 900px;
  display: grid;             /* overlay children without absolute positioning */
  grid-auto-rows: auto;
  padding-bottom: calc(var(--footer-height) + var(--footer-clearance));
  z-index: 2;                /* above footer */
}

.content-stage > #landing,
.content-stage > #page-content {
  grid-area: 1 / 1;          /* stack both panels in the same grid cell */
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.content-stage > #landing.visible,
.content-stage > #page-content.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure wrapper has height while one panel is hidden */
.content-stage {
  min-height: 200px;          /* grows with active panel content */
}

/* === Custom Cursor === */

/* This changes the cursor for the whole site */
body {
  cursor: url('../Assets/Images/ghostcursor.svg') 16 16, auto;
}

/* Optionally: use a different cursor for links and buttons */
a,
button,
.nav-link,
.mixing-tab {
  cursor: url('../Assets/Images/ghostcursorglow.svg') 16 16, pointer;
}

body:active,
a:active,
button:active,
.nav-link:active,
.mixing-tab:active,
.logo-link:active {
  cursor: url('../Assets/Images/ghostcursorclick.svg') 16 16, auto;
}


html, body {
  overflow-y: auto;
}

/* Maintain minimum viewport coverage under the header */
.page-wrapper {
  min-height: auto;
  padding-bottom: 0; /* footer clearance handled by .content-stage padding */
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  overflow: visible; /* prevent clipping within wrapper */
}

/* --- Ensure content clears the fixed footer globally --- */
:root {
  --footer-height: 64px;      /* adjust if footer size changes */
  --footer-clearance: 16px;   /* extra breathing room */
}

.content-stage {
  padding-bottom: calc(var(--footer-height) + var(--footer-clearance));
}

@media (max-width: 600px) {
  :root {
    --footer-height: 72px;    /* slightly taller tap target on mobile */
  }
}

/* === Solo Portfolio Mode (no site chrome) === */
.solo-mode .nav-menu,
.solo-mode .logo-link,
.solo-mode .footer {
  display: none !important;
}

/* Ensure the content starts near the top when chrome is hidden */
.solo-mode :root,
.solo-mode html,
.solo-mode body {
  --header-offset: 12px !important;
}

/* Track credits / roles */
.track-role {
  text-align: right;
  font-size: 1rem;
  color: #F9E9CC;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .track-role {
    text-align: left;       /* Prevents crowding on mobile */
    font-size: 0.9rem;      /* Slightly smaller for better fit */
    margin-top: 4px;        /* Adds a little breathing room under title */
  }
}

@media (max-width: 480px) {
  .track-role {
    font-size: 0.85rem;     /* Further shrink for very small devices */
  }
}
/* Floating hover preview image that follows the cursor */
#hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;            /* adjust size as desired */
  height: auto;
  pointer-events: none;    /* do not block clicks */
  opacity: 0;              /* hidden by default */
  transform: translate(12px, 12px); /* offset from cursor */
  transition: opacity 0.2s ease;
  z-index: 9999;           /* above everything */
}