/* =============================================================================
   AUDIO DESIGN STUDIOS - STYLESHEET
   ============================================================================= */

/* TABLE OF CONTENTS
   1. Base Styles & Reset
   2. Typography
   3. Layout Components (Header, Navigation, Hero, Footer)
   4. Page-Specific Layouts (Home, Portfolio, Music)
   5. Matrix Animations (Vertical, Word List, Horizontal)
   6. Audio Player Components
   7. UI Components (Buttons, Forms, Cards)
   8. Images & Media
   9. Responsive Design
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =============================================================================
   1. BASE STYLES & RESET
   ============================================================================= */

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f0f0f;
  color: #f4f4ff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

a:focus,
button:focus {
  outline: 3px solid rgba(229, 229, 229, 0.12);
  outline-offset: 3px;
}


/* =============================================================================
   2. TYPOGRAPHY
   ============================================================================= */

.hero h1,
.contact-wrapper h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #f4f4ff;
}

.hero p,
.contact-wrapper p {
  max-width: 560px;
  margin-bottom: 1.5rem;
  color: #f4f8ff;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.section h2,
.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: #f4f4ff;
  text-align: center;
}

blockquote {
  margin: 0 0 1.5rem 0;
  padding: 1rem;
  border-left: 4px solid #31c49f;
  background: rgba(120, 154, 186, 0.04);
  color: #f4f4ff;
  border-radius: 6px;
}

blockquote p,
blockquote footer {
  letter-spacing: 0.1rem;
  font-style: italic;
  font-family: "Sans Serif", serif;
  font-size: 1rem;
}

blockquote p {
  margin: 0;
  font-weight: 100;
}

blockquote footer {
  margin-top: 1rem;
  color: #f4f4ff;
  font-weight: 600;
}


/* =============================================================================
   3. LAYOUT COMPONENTS
   ============================================================================= */

/* ---------- Header & Navigation ---------- */

.site-header {
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4vw;
  background: rgba(25, 172, 91, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  z-index: 10;
  min-height: 80px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: #cbcb83;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  text-decoration: none;
  color: #f4f4ff;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: #cbcb83;
  border-bottom-color: #cbcb83;
}


/* ---------- Hero Sections ---------- */

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4rem);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(25, 172, 91, 0.25), rgba(6, 6, 19, 0.85));
  mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInHero 0.6s ease-out forwards;
}

@keyframes fadeInHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 100%;
}


/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 5vw;
  text-align: center;
  font-size: 0.9rem;
  color: #cfcfd8;
  opacity: 0.85;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.site-footer h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #ffffff;
}

.site-footer a {
  color: #cfcfd8;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-copy {
  margin-top: 1rem;
  opacity: 0.75;
  font-size: 0.85rem;
}


/* =============================================================================
   4. PAGE-SPECIFIC LAYOUTS
   ============================================================================= */

/* ---------- Home Page ---------- */

/* Matrix Animation Section (No Hero Background) */
.matrix-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.matrix-link:hover {
  opacity: 0.85;
}

.matrix-section {
  min-height: 60vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.matrix-section .matrix-terminal {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  position: absolute;
  top: 0;
  left: 0;
}

/* Highlights 3-Column Hero Section */
.hero-highlights-3col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2rem 2rem;
}

.hero-left-highlights {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-center-highlights {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.hero-center-highlights h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero-center-highlights p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.hero-right-highlights {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-tracks-highlights {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-tracks-highlights .playlist {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.album-cover-centered,
.headshot-wrapper-portrait {
  width: 240px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.album-cover-centered img,
.headshot-wrapper-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Before & After Mixing/Mastering Section */

.ba-single-player {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.ba-track-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f4f4ff;
  text-align: center;
  margin-bottom: 1rem;
}

.ba-toggle-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.ba-toggle-label {
  font-size: 1.2rem;
  color: #f4f4ff;
  font-weight: 500;
  opacity: 0.6;
  transition: opacity 0.3s ease, font-weight 0.3s ease;
}

.ba-toggle-before { 
  text-align: right;
  opacity: 1;
  font-weight: 600;
}

.ba-toggle-after { text-align: left; }

.ba-toggle-switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 40px;
}

.ba-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ba-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s ease;
  border-radius: 40px;
}

.ba-toggle-slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 4px;
  bottom: 4px;
  background: linear-gradient(135deg, #f4f4ff, #cbcb83);
  transition: all 0.4s ease;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ba-toggle-switch input:checked + .ba-toggle-slider {
  background: rgba(49, 196, 159, 0.25);
  border-color: rgba(49, 196, 159, 0.6);
}

.ba-toggle-switch input:checked + .ba-toggle-slider:before {
  transform: translateX(40px);
  background: linear-gradient(135deg, #31c49f, #2dd4a0);
}

.ba-player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ba-play-btn {
  flex-shrink: 0;
}

.ba-progress-container {
  flex: 1;
}

.ba-progress-wrap {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  overflow: visible;
  width: 100%;
  display: block;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: height 0.15s ease;
}

.ba-progress-wrap:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  height: 16px;
}

.ba-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #2dd4a0, #31c49f, #24b886);
  border-radius: 7px 0 0 7px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(49, 196, 159, 0.6);
}

.ba-scrubber {
  position: absolute;
  left: 0;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, #2dd4a0, #31c49f);
  box-shadow: 0 0 8px rgba(49, 196, 159, 0.8), 0 0 4px rgba(49, 196, 159, 0.6);
  pointer-events: none;
  transition: left 0.1s linear;
  border-radius: 1px;
}

/* Before & After Playlist Section */
.before-after-playlist-section {
  padding: 4rem 5vw;
  max-width: 1600px;
  margin: 0 auto;
}



.ba-playlist-card {
  max-width: 1600px;
  margin: 2rem auto 0;
  padding: 2rem;
}

.ba-global-toggle-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  margin-bottom: 1.5rem;
}



/* Contact Section - Centered */
.contact-section {
  padding: 3rem 5vw;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}


/* ---------- Portfolio Page (3-Column Layout) ---------- */

.hero-center-portfolio {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.hero-center-portfolio .album-cover {
  width: 200px;
  height: 200px;
}

.hero-center-portfolio .highlights-banner {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-right-portfolio {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlights-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.highlights-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* ---------- Music Page (Centered Single Column) ---------- */

.hero-music {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-left-music {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  max-width: 600px;
}

.hero-right-music {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  max-height: 500px;
}

.hero-right-music picture,
.hero-right-music img {
  max-height: 500px;
  object-fit: cover;
}


/* =============================================================================
   5. MATRIX ANIMATIONS
   ============================================================================= */

/* ---------- Vertical Fall Animation (Home Page - Green) ---------- */

.matrix-terminal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: 
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: 
    linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
}

.matrix-column {
  position: absolute;
  top: -20%;
  font-size: 18px;
  line-height: 2;
  color: #08ce18;
  text-shadow: 0 0 12px rgba(8, 206, 24, 0.9),
               0 0 24px rgba(8, 206, 24, 0.6),
               0 0 36px rgba(8, 206, 24, 0.3);
  white-space: pre;
  font-family: 'Courier New', monospace;
  letter-spacing: 50px;
  animation: matrixFall 10s linear infinite;
  will-change: transform, opacity;
}

@keyframes matrixFall {
  0% {
    top: -20%;
    opacity: 0;
    transform: translateY(0) scale(0.9);
  }
  5% {
    opacity: 0.2;
    transform: translateY(0) scale(0.95);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  75% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  85% {
    opacity: 0.6;
    transform: translateY(0) scale(0.98);
  }
  95% {
    opacity: 0.2;
    transform: translateY(0) scale(0.95);
  }
  100% {
    top: 120%;
    opacity: 0;
    transform: translateY(0) scale(0.9);
  }
}


/* ---------- Word List Animation (Portfolio Page - Red) ---------- */

.matrix-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-height: 100%;
  overflow: hidden;
  padding: 1rem;
}

.matrix-word {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #ff4444;
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.8),
               0 0 20px rgba(255, 68, 68, 0.4);
  letter-spacing: 3px;
  text-align: center;
  opacity: 0;
  animation: wordPulse 6s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes wordPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}


/* ---------- Horizontal Flow Animation (Music Page - Gold) ---------- */

.matrix-terminal-music {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: 
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: 
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-composite: intersect;
}

.matrix-row-music {
  position: absolute;
  right: -20%;
  font-size: 18px;
  line-height: 2;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.9),
               0 0 24px rgba(255, 215, 0, 0.6),
               0 0 36px rgba(255, 215, 0, 0.3);
  white-space: pre;
  font-family: 'Courier New', monospace;
  letter-spacing: 8px;
  animation: matrixFlowHorizontal 10s linear infinite;
  will-change: transform, opacity;
}

@keyframes matrixFlowHorizontal {
  0% {
    right: -20%;
    opacity: 0;
    transform: translateX(0) scale(0.9);
  }
  5% {
    opacity: 0.2;
    transform: translateX(0) scale(0.95);
  }
  15% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  75% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  85% {
    opacity: 0.6;
    transform: translateX(0) scale(0.98);
  }
  95% {
    opacity: 0.2;
    transform: translateX(0) scale(0.95);
  }
  100% {
    right: 120%;
    opacity: 0;
    transform: translateX(0) scale(0.9);
  }
}



/* =============================================================================
   6. AUDIO PLAYER COMPONENTS
   ============================================================================= */

/* ---------- Highlights Player ---------- */

.playlist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.track-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.track-number {
  font-weight: 600;
  color: #cbcb83;
  font-size: 1.1rem;
  flex: 0 0 auto;
  min-width: 24px;
  text-align: center;
  margin-top: 0.25rem;
}

.track-title {
  font-weight: 600;
  color: #f4f4ff;
  font-size: 0.95rem;
  flex: 1 1 auto;
  text-align: left;
}

.play-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbcb83;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  transition: background 0.2s, transform 0.2s;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.play-btn:focus {
  outline: 3px solid rgba(229, 229, 229, 0.12);
}

.play-btn:active {
  transform: scale(0.95);
}

/* ---------- Album Art ---------- */

.album-cover,
.album-cover-centered img,
.playlist-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ---------- Progress Bars & Scrubbers ---------- */

/* Highlights Progress Bar */
.highlight-progress-container {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 1rem;
}

.highlight-progress-wrap,
.main-player-progress {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: height 0.15s ease, background 0.15s ease;
  overflow: visible;
  width: 100%;
}

.highlight-progress-wrap {
  height: 12px;
  border-radius: 6px;
}

.main-player-progress {
  height: 16px;
  border-radius: 8px;
  margin: 1rem 0;
}

.highlight-progress-wrap:hover,
.main-player-progress:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
}

.highlight-progress-wrap:hover { height: 14px; }
.main-player-progress:hover { height: 18px; }

.highlight-progress-fill,
.main-player-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #2dd4a0, #31c49f, #24b886);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(49, 196, 159, 0.6);
}

.highlight-progress-fill { border-radius: 6px 0 0 6px; }
.main-player-progress-fill { border-radius: 8px 0 0 8px; }

.highlight-scrubber,
.main-player-scrubber {
  position: absolute;
  left: 0;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, #2dd4a0, #31c49f);
  box-shadow: 0 0 8px rgba(49, 196, 159, 0.8), 0 0 4px rgba(49, 196, 159, 0.6);
  pointer-events: none;
  transition: left 0.1s linear;
  border-radius: 1px;
}

/* Track Item Progress Bar */
.track-item-progress-wrap {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  overflow: visible;
  width: 100%;
  display: block;
  position: relative;
  cursor: pointer;
  margin: 10px 0 0 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: height 0.15s ease;
}

.track-item-progress-wrap:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  height: 12px;
}

.track-item-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #2dd4a0, #31c49f, #24b886);
  border-radius: 5px 0 0 5px;
  transition: width 30ms linear;
  box-shadow: 0 1px 3px rgba(49, 196, 159, 0.4);
}

.track-item-progress-wrap:hover .track-item-progress-fill {
  box-shadow: 0 1px 4px rgba(49, 196, 159, 0.6);
}

.track-item-scrubber {
  position: absolute;
  left: 0;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, #2dd4a0, #31c49f);
  box-shadow: 0 0 8px rgba(49, 196, 159, 0.8), 0 0 4px rgba(49, 196, 159, 0.6);
  pointer-events: none;
  transition: left 0.1s linear;
  border-radius: 1px;
}


/* ---------- Transport Controls ---------- */



.control-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbcb83;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn:focus {
  outline: 3px solid rgba(229, 229, 229, 0.12);
}

.control-btn-play {
  padding: 0.7rem 1rem;
  font-size: 1.3rem;
}


/* ---------- Main Playlist Players ---------- */

.playlists-section {
  padding: 4rem clamp(4vw, 8vw, 12vw);
}

.playlists-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.playlist-card,
.ba-single-player,
.ba-playlist-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.playlist-card h3 {
  font-size: 1.5rem;
  color: #f4f4ff;
  margin: 0;
}

.playlist-card-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.playlist-album-art {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.playlist-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.now-playing-info {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(244, 244, 255, 0.85);
  margin: 0.75rem 0 0.5rem 0;
  min-height: 1.5rem;
  padding: 0 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.playlist-player-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.playlist-scroll {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.playlist-scroll::-webkit-scrollbar {
  width: 6px;
}

.playlist-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.playlist-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.playlist-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}


/* ---------- Track Items ---------- */

.track-item {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  transition: background 0.18s, transform 0.18s;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.track-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.track-item-number {
  font-size: 0.75rem;
  color: #cbcb83;
  font-weight: 600;
}

.track-item-title {
  font-size: 0.85rem;
  color: #f4f4ff;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.track-item-play-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbcb83;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.track-item-play-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.track-item-play-btn:focus {
  outline: 3px solid rgba(229, 229, 229, 0.12);
}

.track-item-play-btn:active {
  transform: scale(0.95);
}

.track-item-time {
  font-size: 0.78rem;
  color: rgba(244, 244, 255, 0.78);
  white-space: nowrap;
  min-width: 72px;
  text-align: right;
  font-weight: 400;
  letter-spacing: 0.01em;
}


/* =============================================================================
   7. UI COMPONENTS
   ============================================================================= */

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(49, 196, 159, 0.4);
  color: #f4f4ff;
  background: rgba(15, 15, 15, 0.8);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.btn:hover {
  background: rgba(49, 196, 159, 0.15);
  border-color: #31c49f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 196, 159, 0.3);
}


/* ---------- Forms ---------- */

#contact a,
#contact a:visited {
  color: #31c49f;
  text-decoration: underline;
}

#contact a:hover,
#contact a:focus {
  color: #cbcb83;
}

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

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(238, 167, 167, 0.06);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  color: #08ce18;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(8, 206, 24, 0.3);
  outline: none;
}

.contact-form textarea {
  height: 140px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form button.btn {
  margin-top: 0.5rem;
  cursor: pointer;
}


/* ---------- Cards & Sections ---------- */

.section,
.before-after-section {
  padding: 4rem 5vw;
  max-width: 1600px;
  margin: 0 auto;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 0%, transparent 100%);
  padding-bottom: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 20px rgba(39, 71, 31, 0.6);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #31c49f;
}

/* Utility classes */
.centered-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn-block {
  display: block;
  width: 100%;
  max-width: 560px;
}


/* =============================================================================
   8. IMAGES & MEDIA
   ============================================================================= */

/* ---------- Headshots ---------- */

.headshot-wrapper {
  display: flex;
  justify-content: center;
}

.headshot {
  width: 70%;
  height: 100%;
  object-fit: cover;
  border-radius: 2%;
  box-shadow: 0 12px 30px rgba(99, 105, 135, 0.5);
}


/* ---------- Responsive Background Images ---------- */

.env-image {
  width: 100%;
  height: 620px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1600px;
  margin: 0 auto;
}

/* Home Page Background */
.env-home {
  background-image: url('../Photos/homepiano800.webp');
  background-position: center top;
}

@media (min-width: 720px) {
  .env-home {
    background-image: url('../Photos/homepiano1400.webp');
  }
}

@media (min-width: 1200px) {
  .env-home {
    background-image: url('../Photos/homepiano2000.webp');
  }
}

/* Portfolio Page Background */
.env-portfolio {
  background-image: url('Photos/bridgetoshinob800.webp');
  background-position: center;
  background-size: cover;
}

@media (min-width: 720px) {
  .env-portfolio {
    background-image: url('Photos/bridgetoshinob1400.webp');
  }
}

@media (min-width: 1200px) {
  .env-portfolio {
    background-image: url('Photos/bridgetoshinob2000.webp');
  }
}

/* About Page Background */
.env-about {
  background-image: url('../Photos/about800.webp');
}

@media (min-width: 720px) {
  .env-about {
    background-image: url('../Photos/about1400.webp');
  }
}

@media (min-width: 1200px) {
  .env-about {
    background-image: url('../Photos/about2000.webp');
  }
}

/* Music Page Background */
.env-music {
  background-image: url('../Photos/bridgetoshinob2_800.webp');
}

@media (min-width: 720px) {
  .env-music {
    background-image: url('../Photos/bridgetoshinob2_1400.webp');
  }
}

@media (min-width: 1200px) {
  .env-music {
    background-image: url('../Photos/bridgetoshinob2_2000.webp');
  }
}


/* =============================================================================
   9. RESPONSIVE DESIGN
   ============================================================================= */

/* ---------- Tablet Breakpoints ---------- */

@media (max-width: 800px) {
  .hero,
  .hero-highlights-3col,
  .hero-music {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-highlights-3col {
    grid-template-rows: auto;
  }

  .matrix-section,
  .matrix-section .matrix-terminal {
    min-height: 50vh;
  }

  .hero-left-highlights,
  .hero-center-highlights,
  .hero-center-portfolio,
  .hero-right-portfolio,
  .hero-right-highlights,
  .hero-left-music,
  .hero-right-music {
    max-width: 100%;
  }

  .album-cover-centered {
    width: 200px;
    height: 200px;
  }

  .headshot-wrapper-portrait {
    width: 200px;
    height: 200px;
  }

  .env-image {
    height: 300px;
  }

  .hero-tracks-highlights {
    padding: 0 1rem;
  }

  .ba-single-player {
    padding: 2rem 1.5rem;
  }

  .hero-right {
    max-width: 100%;
    justify-self: center;
    min-height: 450px;
    height: 450px;
    position: relative;
    width: 100%;
  }

  .matrix-terminal {
    width: 100%;
    height: 100%;
    min-height: 450px;
    position: relative;
    overflow: hidden;
  }

  .matrix-words {
    padding: 2rem 1rem;
  }
}

@media (min-width: 1100px) {
  .playlists-container {
    max-width: 1100px;
  }
}


/* ---------- Tablet/Medium Screen Breakpoints ---------- */

@media (max-width: 1024px) and (min-width: 721px) {
  .playlists-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 700px;
  }
  
  .playlist-card {
    width: 100%;
  }
}


/* ---------- Mobile Breakpoints ---------- */

@media (max-width: 720px) {
  .site-header {
    padding: 0.75rem 4vw;
    min-height: 80px;
  }

  .logo {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
  }

  .nav {
    gap: 0.15rem;
  }

  .nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.4rem;
  }

  .hero,
  .hero-highlights-3col {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 80vh;
    padding: 2rem 4vw 3rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .matrix-section,
  .matrix-section .matrix-terminal {
    min-height: 400px;
  }

  .album-cover-centered {
    width: 180px;
    height: 180px;
  }

  .headshot-wrapper-portrait {
    width: 180px;
    height: 180px;
  }

  .hero-tracks-highlights .playlist {
    max-width: 100%;
  }

  .highlight-progress-container {
    min-width: 0;
    padding: 0 0.5rem;
  }

  .ba-single-player {
    padding: 2rem 1rem;
  }

  .ba-toggle-container {
    flex-direction: column;
    gap: 1rem;
  }

  .ba-toggle-label {
    font-size: 1rem;
  }

  .contact-wrapper h1 {
    font-size: 1.8rem;
  }

  .hero-right {
    order: 2;
    min-height: 500px;
    height: 500px;
    position: relative;
    width: 100%;
  }

  .matrix-terminal {
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
  }

  .hero-right-music,
  .hero-right-portfolio {
    max-height: 200px;
    height: 200px;
  }

  .playlists-container {
    grid-template-columns: 1fr;
  }

  .playlist-scroll {
    max-height: 400px;
  }

  .section,
  .before-after-section,
  .playlists-section {
    padding: 2rem 4vw;
  }

  .contact-section {
    padding: 2rem 4vw;
  }

  .ba-playlist-card,
  .playlist-card {
    padding: 1.25rem 0.75rem;
  }

  .ba-global-toggle-section {
    gap: 0.75rem;
  }

  .env-image {
    height: 250px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .playlist-card-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .playlist-album-art {
    width: 120px;
    height: 120px;
  }

  .playlist-card h3 {
    font-size: 1.25rem;
  }
}

