/* =============================================================================
   AUDIO DESIGN STUDIOS - SHARED STYLES
   Common styles used across all pages
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&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;
  scroll-behavior: smooth;
}

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

/* =============================================================================
   2. COMMON LAYOUT SECTIONS
   ============================================================================= */

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

.section-alt {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1200px) {
  .section-alt {
    padding-bottom: 3rem;
    margin-bottom: 3rem;
  }
}

.centered-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Matrix Animation Section */
.matrix-section {
  min-height: 50vh;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  max-width: 100%;
  margin: 0;
  width: 100%;
}

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

/* Common matrix terminal masks */
.matrix-terminal {
  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 15%, black 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 15%, black 100%);
  mask-composite: intersect;
}

/* Banner Navigation Arrows */
.banner-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f4f4ff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  line-height: 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-nav-left {
  left: 2rem;
}

.banner-nav-right {
  right: 2rem;
}

.banner-nav-arrow:hover {
  transform: translateY(-50%) translateY(-2px);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 720px) {
  .banner-nav-arrow {
    top: 2rem;
    transform: none;
  }
  
  .banner-nav-arrow:hover {
    transform: translateY(-2px);
  }
  
  .banner-nav-left {
    left: 1rem;
  }
  
  .banner-nav-right {
    right: 1rem;
  }
}

@media (min-width: 1200px) {
  .banner-nav-arrow {
    font-size: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

.matrix-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin: 0;
  padding: 0;
}

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

/* Responsive matrix adjustments */
@media (max-width: 800px) {
  .matrix-section,
  .matrix-section .matrix-terminal {
    min-height: 50vh;
  }
}

/* =============================================================================
   3. COMMON IMAGE OPTIMIZATION
   ============================================================================= */

picture {
  display: contents;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lazy-img {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-img.loaded {
  opacity: 1;
}

/* Before/After Toggle & Player Controls */
.ba-toggle-section,
.ba-global-toggle-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

.ba-toggle-label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  width: 70px;
  justify-content: center;
  text-align: center;
}

.ba-toggle-label.inactive {
  opacity: 0.4;
}

.ba-toggle-before {
  color: #f4f4ff;
}

.ba-toggle-after {
  color: #d0d0d0;
}

.ba-toggle-switch {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 36px;
  flex-shrink: 0;
}

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

.ba-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(153, 102, 204, 0.2), rgba(153, 102, 204, 0.1));
  border: 2px solid rgba(153, 102, 204, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ba-toggle-slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 3px;
  top: 2px;
  background: linear-gradient(135deg, #f4f4ff, #e8e8ff);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ba-toggle-slider:hover {
  box-shadow: 0 3px 12px rgba(208, 208, 208, 0.3);
}

.ba-toggle-switch input:checked + .ba-toggle-slider {
  background: linear-gradient(135deg, rgba(208, 208, 208, 0.3), rgba(192, 192, 192, 0.2));
  border-color: rgba(208, 208, 208, 0.6);
}

.ba-toggle-switch input:checked + .ba-toggle-slider:before {
  transform: translateX(36px);
  background: linear-gradient(135deg, #d0d0d0, #c0c0c0);
}

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

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

.main-player-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, #c0c0c0, #d0d0d0, #b8b8b8);
  box-shadow: 0 0 8px rgba(208, 208, 208, 0.6);
  transition: width 0.1s linear;
}

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

.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: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.control-btn {
  background: linear-gradient(135deg, rgba(0, 80, 40, 0.25), rgba(0, 80, 40, 0.15));
  border: 1.5px solid rgba(0, 80, 40, 0.5);
  color: #5fba7d;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1;
  text-align: center;
  position: relative;
  will-change: transform;
}

/* Play icon - triangle pointing right */
.control-btn[aria-label*="Play"]::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 2px;
}

/* Pause icon - two vertical bars */
.control-btn.playing::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-4.5px);
  width: 3px;
  height: 14px;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor;
  border: none;
  margin-left: 0;
}

/* Previous/Back icon - two triangles pointing left */
.control-btn[aria-label*="beginning"]::before,
.control-btn[aria-label*="Back"]::before {
  content: '';
  width: 0;
  height: 0;
  border-right: 8px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.control-btn[aria-label*="beginning"]::after,
.control-btn[aria-label*="Back"]::after {
  content: '';
  width: 0;
  height: 0;
  border-right: 8px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: -2px;
}

/* Next/Forward icon - two triangles pointing right */
.control-btn[aria-label*="Next"]::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.control-btn[aria-label*="Next"]::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: -2px;
}

.control-btn:hover {
  background: linear-gradient(135deg, rgba(0, 80, 40, 0.35), rgba(0, 80, 40, 0.25));
  border-color: rgba(0, 80, 40, 0.7);
  box-shadow: 0 4px 12px rgba(0, 80, 40, 0.4);
  transform: translateY(-2px);
}

.control-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.control-btn:focus-visible {
  outline: 3px solid rgba(0, 80, 40, 0.6);
  outline-offset: 2px;
}

.control-btn-play {
  padding: 0.85rem 1.15rem;
  font-size: 1.25rem;
  min-width: 56px;
  min-height: 56px;
  background: linear-gradient(135deg, rgba(0, 80, 40, 0.35), rgba(0, 80, 40, 0.25));
  border-width: 2px;
  line-height: 1;
}


/* =============================================================================
   3. 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-family: 'Cinzel', Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: #f4f4ff;
  text-align: center;
  letter-spacing: 0.05em;
}

blockquote {
  margin: 0 0 1.5rem 0;
  padding: 1rem;
  border-left: 4px solid #d0d0d0;
  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: 3rem 4vw;
  background: rgba(25, 35, 28, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  z-index: 10;
  min-height: 80px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.8rem;
  color: #7ec98f;
  line-height: 1;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}







.nav a {
  text-decoration: none;
  color: #e8e8e8;
  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: #7ec98f;
  border-bottom-color: #7ec98f;
}

/* Special header link for A+B (hidden tracks) */
.nav a.special-link {
  color: #ff6b6b;
  font-weight: 600;
  border-bottom-color: transparent;
}

.nav a.special-link:hover,
.nav a.special-link:focus {
  color: #ff8787;
  border-bottom-color: #ff6b6b;
}


/* ---------- 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: 2rem 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));
  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: 1rem 4vw;
  text-align: center;
  font-size: 0.8rem;
  color: #cfcfd8;
  opacity: 0.85;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(12, 18, 14, 0.95);
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.site-footer p {
  margin: 0.4rem 0;
}

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

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

/* Special footer link for Off World Depot */
.footer-special-link {
  color: #7ec98f !important;
  font-weight: 600;
  text-decoration: underline;
}

.footer-special-link:hover {
  color: #9fe4b0 !important;
  opacity: 1 !important;
}

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


/* =============================================================================
   4. UI COMPONENTS - BUTTONS, FORMS, CARDS
   ============================================================================= */

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

.btn,
button {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, rgba(0, 80, 40, 0.25), rgba(0, 80, 40, 0.15));
  color: #5fba7d;
  border: 1.5px solid rgba(0, 80, 40, 0.5);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover,
button:hover {
  background: linear-gradient(135deg, rgba(0, 80, 40, 0.35), rgba(0, 80, 40, 0.25));
  border-color: rgba(0, 80, 40, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 80, 40, 0.4);
}

.btn:active,
button:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.btn:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 80, 40, 0.6);
  outline-offset: 2px;
}

.btn-block {
  width: 100%;
  padding: 1rem 1.75rem;
}

/* ---------- Contact Form ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #f4f4ff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(208, 208, 208, 0.5);
  outline: none;
}

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

/* ---------- Cards ---------- */

.card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  contain: layout style paint;
}

.card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(208, 208, 208, 0.3);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #f4f4ff;
}

.card p {
  font-size: 0.95rem;
  color: #cfcfd8;
  line-height: 1.6;
}


/* =============================================================================
   5. IMAGES & MEDIA
   ============================================================================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}


/* =============================================================================
   6. PLAY BUTTONS & AUDIO CONTROLS (Shared)
   ============================================================================= */

.play-btn {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  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);
}


/* =============================================================================
   7. RESPONSIVE DESIGN - TABLET BREAKPOINTS
   ============================================================================= */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    min-height: 50vh;
    padding: 2rem 2vw 8rem;
  }

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

  .site-header {
    padding: 0.75rem 4vw;
    min-height: 80px;
  }

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

  .nav {
    gap: 0.15rem;
  }

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

/* =============================================================================
   8. RESPONSIVE DESIGN - MOBILE BREAKPOINTS
   ============================================================================= */

@media (max-width: 720px) {
  .site-header {
    padding: 0.75rem 4vw;
    min-height: 80px;
  background: rgba(25, 35, 28, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  color: #e0e0e0;
}





















/* Light mode player and interactive elements */








/* Comprehensive text readability for light mode */











/* Player controls visibility in light mode */


/* Contact and footer content */




/* Portfolio page specific light mode fixes */






/* About page light mode fixes */





/* Portfolio page light mode - enhanced readability */















/* Portfolio VU meter section light mode */
















/* Portfolio page - darken cyan/teal colors for visibility in light mode */









/* Portfolio volume knob arc - darker in light mode */





/* =============================================================================
   8. RESPONSIVE DESIGN - MOBILE BREAKPOINTS
   ============================================================================= */

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

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

  .nav {
    gap: 0.15rem;
  }

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

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 80vh;
    padding: 2rem 4vw 8rem;
    text-align: center;
  }

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

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

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

  /* Mobile-optimized button styles */
  .control-btn {
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    min-width: 44px;
    min-height: 44px;
  }

  .control-btn-play {
    padding: 0.75rem 1rem;
    font-size: 1.15rem;
    min-width: 52px;
    min-height: 52px;
  }

  .playlist-player-controls {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  /* Mobile-optimized global buttons */
  .btn,
  button {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .btn-block {
    padding: 0.85rem 1.5rem;
  }
}

}
