:root {
  /* Cinematic Color Palette */
  --bg-deep: #000000;
  --bg-purple: #2b1b42;
  --bg-panel: #181124;
  
  /* Accents & Text */
  --accent-blue: #5ba4e5;
  --accent-hover: #7ebbf4;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  
  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --panel-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 12px 32px rgba(0,0,0,0.6);
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-ui: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background: linear-gradient(135deg, var(--bg-purple) 0%, var(--bg-deep) 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
svg { fill: currentColor; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
.section-title { font-size: 2.5rem; margin-bottom: 2rem; color: var(--text-main); }
.text-accent { color: var(--accent-blue); }
.text-accent:hover { color: var(--accent-hover); }

/* ── Layout & Sidebar ── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  border-right: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  
  /* Restored Vignette Settings */
  background-color: #181124;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.6) 100%), linear-gradient(to bottom, #1d142b 0%, #08050c 100%);
  box-shadow: inset -8px 0 20px rgba(0, 0, 0, 0.4);
}

.sidebar-header { display: flex; flex-direction: column; }
.sidebar-name { font-family: var(--font-display); font-size: 2rem; display: block; margin-bottom: 0.5rem; margin-left: -0.1em; }
.sidebar-subtitle { font-size: 0.85rem; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 3rem 0; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-main); padding: 0.5rem; cursor: pointer; }
.mobile-toggle svg { width: 32px; height: 32px; }

/* Vertically Centered & Right-Aligned Sidebar Navigation */
.sidebar-nav { 
  margin: auto 0; 
  display: flex; 
  flex-direction: column; 
  gap: 2.5rem; 
  width: 100%;
}
.nav-link { 
  position: relative;
  width: 100%;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.4rem; 
  font-weight: 400;
  color: var(--text-muted); 
  letter-spacing: 0.02em; 
  padding-bottom: 8px; 
}
.nav-link:hover, .nav-link.active { color: var(--accent-blue); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--bg-purple) 0%, var(--accent-blue) 100%);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.content-wrapper { margin-left: 300px; flex: 1; }

/* ── Sections ── */
.section-padding { padding: 6rem 3rem; display: flex; align-items: center; }
.section-inner { max-width: 1100px; width: 100%; margin: 0 auto; }

/* Hero */
.section-hero { height: 100vh; position: relative; display: flex; align-items: center; padding: 0 3rem; }

/* FIXED BACKGROUND: Creates the parallax scrolling effect */
.hero-bg {
  position: absolute; 
  inset: 0; 
  z-index: -1;
  background-color: #4b49a2;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%), url('../assets/studio-hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: normal, multiply;
  background-attachment: fixed;
}

.hero-content h1 { 
  font-size: clamp(4rem, 8vw, 7rem); 
  font-weight: 700;
  line-height: 1.1; 
  margin-bottom: 1.5rem; 
  margin-left: -5px; 
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin-left: -0.1em;
}
.hero-credentials { 
  color: var(--accent-blue); 
  font-size: clamp(1rem, 2vw, 1.5rem); 
  font-weight: 400; 
  letter-spacing: 0.15em; 
  text-transform: uppercase; 
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-credentials .sep { color: var(--text-muted); margin: 0 0.75rem; }

/* ── Panels (Premium App Look) ── */
.audio-panel, .video-panel, .about-panel, .contact-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

/* ── Audio Player ── */
.player-main { padding: 2rem; border-bottom: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 1.5rem; }
.now-playing h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.now-playing p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.player-controls { display: flex; align-items: center; gap: 1.5rem; }
.controls-primary { display: flex; align-items: center; gap: 1.5rem; }

#play-pause-btn { 
  background: var(--accent-blue); color: var(--bg-deep); border: none; 
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer; 
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.1s ease, background 0.2s ease;
  flex-shrink: 0;
}
#play-pause-btn:hover { background: var(--accent-hover); transform: scale(1.05); }
#play-pause-btn svg { width: 24px; height: 24px; fill: currentcolor; }

.progress-container { flex: 1; display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* WAVEFORM STYLES */
.waveform-wrapper {
  flex: 1;
  height: 40px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}
#waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.waveform-hover-line {
  position: absolute; top: 0; bottom: 0; width: 1px; background: var(--accent-blue);
  pointer-events: none; display: none; z-index: 5;
}
.waveform-hover-time {
  position: absolute; top: -30px; background: var(--bg-panel); border: 1px solid var(--border-subtle);
  color: var(--text-main); font-size: 0.75rem; padding: 4px 8px; border-radius: 4px;
  pointer-events: none; display: none; transform: translateX(-50%); white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3); z-index: 5;
}

/* Vertical Volume */
.volume-control { display: flex; align-items: center; position: relative; color: var(--text-muted); cursor: pointer; }
.volume-slider-container {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 8px;
  width: 32px; height: 110px; 
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 10;
}

.volume-slider-container::after {
  content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 30px; background: transparent;
}
.volume-control:hover .volume-slider-container { display: flex; }

#volume-slider { 
  appearance: none; width: 90px; height: 4px; 
  transform: rotate(-90deg); transform-origin: center; cursor: pointer; margin: 0; border-radius: 2px;
  --vol-pct: 100%;
  background: linear-gradient(to right, var(--accent-blue) var(--vol-pct), rgba(255,255,255,0.2) var(--vol-pct));
}
#volume-slider::-webkit-slider-runnable-track { background: transparent; height: 4px; border-radius: 2px; }
#volume-slider::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; background: var(--accent-blue); border-radius: 50%; margin-top: -4px; box-shadow: 0 0 4px rgba(0,0,0,0.5); }
#volume-slider::-moz-range-track { background: transparent; height: 4px; border-radius: 2px; }
#volume-slider::-moz-range-thumb { width: 12px; height: 12px; background: var(--accent-blue); border-radius: 50%; border: none; box-shadow: 0 0 4px rgba(0,0,0,0.5); }

/* Tracklist */
.tracklist { display: flex; flex-direction: column; max-height: 250px; overflow-y: auto; }
.track-item { 
  padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; 
  cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.2s; 
}
.track-item:hover { background: rgba(255,255,255,0.05); }
.track-item.active { background: rgba(91, 164, 229, 0.1); border-left: 3px solid var(--accent-blue); padding-left: calc(2rem - 3px); }
.track-item-title { font-weight: 500; font-size: 1rem; color: var(--text-main); }
.track-item-genre { font-size: 0.8rem; color: var(--text-muted); }

/* ── Video Gallery ── */
.carousel-container { position: relative; aspect-ratio: 16/9; background: #000; display: flex; align-items: center; overflow: hidden; }
.video-wrapper { position: relative; width: 100%; height: 100%; }

.video-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.video-slide.active {
  opacity: 1; pointer-events: auto; z-index: 2;
}
.video-slide iframe { 
  width: 100%; height: 100%; border: none; 
}

.carousel-btn { 
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  background: rgba(24, 17, 36, 0.8); border: 1px solid var(--border-subtle); color: var(--text-main);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.1s;
}
.carousel-btn:hover { background: var(--accent-blue); color: var(--bg-deep); }
.carousel-btn:active { transform: translateY(-50%) scale(0.95); }
#carousel-prev { left: 1rem; }
#carousel-next { right: 1rem; }
.carousel-btn svg { width: 24px; height: 24px; }

.video-info { padding: 1.5rem 2rem; border-top: 1px solid var(--border-subtle); }
.video-info h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.video-info p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ── About (Editorial Float Layout) ── */
.about-panel { 
  display: block; 
  padding: 3rem; 
}
.about-panel::after {
  content: "";
  display: table;
  clear: both;
}
.about-photo { 
  float: right; 
  width: 40%; 
  max-width: 320px; 
  aspect-ratio: 3 / 4; 
  object-fit: cover; 
  object-position: center top; 
  border-radius: 8px;
  margin: 0 0 1rem 2rem; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.about-text { 
  display: block;
  color: rgba(255,255,255,0.85); 
  line-height: 1.7; 
}
/* New Bio Lead Styling */
.bio-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-blue);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.about-text p {
  margin-bottom: 1.25rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}

/* ── Contact ── */
.contact-panel { display: grid; grid-template-columns: 1fr; }
@media(min-width: 800px) { .contact-panel { grid-template-columns: 1fr 1.2fr; } }
.contact-info { padding: 3rem; background: rgba(0,0,0,0.2); }
.contact-info h3 { font-size: 2rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.location-tag { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-blue) !important; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-links a { display: flex; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; }
.social-links a:hover { background: var(--accent-blue); color: var(--bg-deep); transform: translateY(-3px); }
.social-links svg { width: 20px; height: 20px; }

.contact-form { padding: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group textarea { 
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-subtle); border-radius: 8px; 
  padding: 1rem; color: var(--text-main); font-family: var(--font-ui); transition: border-color 0.2s;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-blue); }
.submit-btn { 
  background: var(--accent-blue); color: var(--bg-deep); border: none; border-radius: 8px;
  padding: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 0.5rem;
}
.submit-btn:hover { background: var(--accent-hover); }

.site-footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.85rem; }

/* ── Responsive Refinements (Mobile/Tablet) ── */
@media (max-width: 1024px) {
  .sidebar { 
    width: 100%; height: auto; position: fixed; 
    top: 0; left: 0; bottom: auto; 
    padding: 1rem 1.5rem; border-right: none; border-bottom: 1px solid var(--border-subtle); 
    flex-direction: column; align-items: stretch; 
    box-shadow: inset 0 -8px 20px rgba(0, 0, 0, 0.4); 
  }
  .sidebar-header { display: flex; justify-content: space-between; align-items: center; flex-direction: row; width: 100%; }
  .sidebar-subtitle { margin: 0; }
  .mobile-toggle { display: block; }
  
  .sidebar-nav { display: none; flex-direction: column; margin: 1.5rem 0 0 0; gap: 1.5rem; }
  .sidebar.nav-open .sidebar-nav { display: flex; }
  
  .nav-link { text-align: left; }
  .nav-link::after { right: auto; left: 0; background: linear-gradient(to left, var(--bg-purple) 0%, var(--accent-blue) 100%); }
  
  .content-wrapper { margin-left: 0; padding-top: 80px; }
  .section-hero { height: calc(100vh - 80px); }
}

@media (max-width: 768px) {
  .section-padding { padding: 4rem 1.5rem; }
  
  .player-controls { flex-wrap: wrap; justify-content: space-between; }
  #play-pause-btn { order: 1; }
  .volume-control { order: 2; }
  .progress-container { order: 3; flex: 0 0 100%; width: 100%; }
  .volume-slider-container { left: auto; right: -10px; transform: none; }
  
  .player-main, .track-item, .video-info, .about-text, .contact-info, .contact-form { padding: 1.5rem; }
  
  /* Mobile Bio Override: Stacks image neatly as a square on top of the text */
  .about-panel { padding: 1.5rem; }
  .about-photo { 
    float: none; 
    width: 100%; 
    max-width: 100%; 
    aspect-ratio: 1 / 1; 
    margin: 0 0 1.5rem 0; 
  }
  .bio-lead { font-size: 1.15rem; }
}