/* ==========================================================
   HE'S ALIVE - MASTER STYLESHEET (INDEX & TRACKDETAIL)
   ========================================================== */

:root {
  /* Palette: midnight navy, royal blue, and warm metallic gold */
  --color-bg: #010736;
  --color-surface: #0D1C42;
  --color-surface-hover: #172B59;
  --color-text: #F7F8FF;
  --color-muted: rgba(235, 240, 255, 0.76);
  --color-gold: #D4AF37;
  --color-gold-hover: #F0CF68;
  --color-border: rgba(212, 175, 55, 0.28);
  --color-blue: #22396F;
  --gold: var(--color-gold);
  --radius-lg: 18px;
  --radius-sm: 10px;
  --transition-smooth: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- GLOBAL RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Tenor Sans', sans-serif, system-ui;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Particle Canvas */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(1, 7, 54, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--color-text);
  letter-spacing: 1px;
}

.nav-logo em {
  color: var(--color-gold);
  font-style: italic;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-smooth);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  gap: 1rem;
}

.mobile-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.1rem;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem 2rem;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-album {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.3);
  transform: scale(1.1);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(1,7,54,0.72), var(--color-bg));
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title em {
  color: var(--color-gold);
  font-style: italic;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 1.5rem auto;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero-byline {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}

.platforms-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.platforms-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.plat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.plat-link:hover {
  background: var(--color-gold);
  color: #010736;
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 4px;
  transition: var(--transition-smooth);
}

.hero-cta:hover {
  color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: pulseLine 2s infinite;
}

@keyframes pulseLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- ABOUT & PROCESS SECTIONS --- */
.about, .process {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

.section-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: rgba(212, 175, 55, 0.1);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.about-card-body h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.about-card-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-card-body p {
  color: var(--color-muted);
  line-height: 1.7;
}

.about-card-body blockquote {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-gold);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Timeline Process */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 2rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.1rem;
  z-index: 2;
}

.timeline-line {
  width: 2px;
  flex-grow: 1;
  background: var(--color-border);
  margin-top: 10px;
}

.timeline-line.last {
  display: none;
}

.timeline-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  flex-grow: 1;
  position: relative;
}

.timeline-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.timeline-body p {
  color: var(--color-muted);
  line-height: 1.7;
}

/* --- TRACKLIST & TRACK DETAIL LAYOUT --- */
.tracks {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.track-item {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  gap: 2rem;
  transition: var(--transition-smooth);
}

.track-item:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-gold);
  transform: translateX(6px);
}

.track-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--color-gold);
  min-width: 30px;
}

.track-info {
  flex: 1;
}

.track-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.track-artist {
  font-size: 0.9rem;
  color: var(--color-gold);
}

.track-desc {
  flex: 1.5;
  font-size: 0.95rem;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Track Detail View Grid */
.track-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.track-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-height: 75vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.track-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.track-box:hover {
  background: var(--color-surface-hover);
}

.track-box.active {
  background: var(--color-surface-hover);
  border-color: var(--color-gold);
}

.track-detail-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: opacity 0.3s ease;
}

.track-detail-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* --- GALLERY LOOPING STYLING --- */
.track-gallery {
  display: flex;
  width: 100%;
  height: 320px;
  gap: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-item {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid var(--color-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover {
  flex: 3;
}

.gallery-item:hover img {
  filter: brightness(1);
  transform: scale(1.03);
}

.no-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  border: 1px dashed var(--color-border);
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  font-style: italic;
}

.dt-artist {
  margin: 0.75rem 0 1.5rem 0;
  color: var(--color-gold);
  font-size: 1.05rem;
}

.dt-content {
  color: var(--color-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.dt-content p {
  margin-bottom: 1.25rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-cross {
  width: 30px;
  margin: 0 auto 1.5rem auto;
  color: var(--color-gold);
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-title em {
  color: var(--color-gold);
  font-style: italic;
}

.footer-sub {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background-color: var(--color-border);
  margin: 1.5rem auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 1px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .track-container {
    grid-template-columns: 1fr;
  }
  .track-sidebar {
    max-height: 350px;
  }
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .track-desc {
    display: none;
  }
}

@media (max-width: 768px) {
  .track-gallery {
    height: 200px;
    gap: 6px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
  .timeline-step {
    flex-direction: row;
    justify-content: flex-start;
  }
  .timeline-line {
    width: 40px;
    height: 2px;
  }
}

/* ==========================================================
   VISUAL POLISH — NAVY / ROYAL BLUE / GOLD
   ========================================================== */
body {
  background-image: radial-gradient(ellipse at 50% -18%, rgba(34, 57, 111, .42), transparent 58%);
  background-attachment: fixed;
}

::selection { background: var(--color-gold); color: var(--color-bg); }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 4px; }

nav {
  background: rgba(1, 7, 54, .86);
  border-bottom-color: rgba(212, 175, 55, .22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
nav.scrolled { background: rgba(1, 7, 54, .96); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -8px;
  height: 1px; background: var(--color-gold); transition: right .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.hero { isolation: isolate; }
.hero-veil {
  background: linear-gradient(180deg, rgba(1, 7, 54, .55) 0%, rgba(1, 7, 54, .78) 52%, var(--color-bg) 100%);
}
.hero-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(1,7,54,.45), transparent 50%, rgba(1,7,54,.4));
  pointer-events: none;
}
.hero-title { text-shadow: 0 8px 35px rgba(0,0,0,.22); }
.hero-divider { box-shadow: 0 0 18px rgba(212,175,55,.3); }
.hero-cta { transition: var(--transition-smooth); }
.hero-cta:hover { transform: translateY(-2px); }

.about-card, .timeline-body, .track-item, .track-sidebar, .track-detail-box {
  box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
}
.about-card, .timeline-body, .track-item, .track-sidebar, .track-detail-box {
  background: linear-gradient(145deg, rgba(13,28,66,.98), rgba(9,21,56,.98));
}
.about-card::before, .timeline-body::before {
  content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.45), transparent);
}
.about-card--featured { border-color: rgba(212,175,55,.48); }
.about-card-num { color: rgba(212,175,55,.15); }
.timeline-icon { box-shadow: 0 0 0 6px rgba(34,57,111,.22); }
.timeline-body { overflow: hidden; }

.track-item { position: relative; overflow: hidden; }
.track-item::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--color-gold); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s ease;
}
.track-item:hover::before { transform: scaleY(1); }
.track-item:hover { transform: translateY(-3px); border-color: rgba(212,175,55,.7); }
.track-info h3 { transition: color .25s ease; }
.track-item:hover .track-info h3 { color: var(--color-gold-hover); }
.track-box.active { background: rgba(34,57,111,.58); box-shadow: inset 3px 0 var(--color-gold); }
.track-detail-box h2 { line-height: 1.2; }
.gallery-item img { filter: brightness(.62) saturate(.82); }
.gallery-item:hover img { filter: brightness(.98) saturate(1); }

.footer { background: linear-gradient(180deg, var(--color-surface), #070F31); }
.footer-cross { filter: drop-shadow(0 0 12px rgba(212,175,55,.15)); }

.mobile-menu { background: rgba(13,28,66,.98); }
.mobile-menu a { padding: .45rem 0; border-bottom: 1px solid rgba(212,175,55,.12); }
.mobile-menu a:hover { color: var(--color-gold); }

@media (max-width: 768px) {
  .nav-inner { padding: 1rem 1.2rem; }
  .hero { padding: 7rem 1.25rem 4.5rem; }
  .hero-tagline { font-size: 1rem; }
  .platforms-icons { gap: .65rem; }
  .plat-link { padding: .58rem .9rem; }
  .about, .process, .tracks { padding: 4.5rem 1.2rem; }
  .section-header { margin-bottom: 2.5rem; }
  .about-card { padding: 1.6rem; }
  .timeline-item { flex-direction: row; gap: .9rem; }
  .timeline-step { flex-direction: column; }
  .timeline-line { width: 2px; height: auto; min-height: 30px; }
  .timeline-body { padding: 1.35rem; }
  .track-item { padding: 1.1rem 1rem; gap: 1rem; }
  .track-info h3 { font-size: 1.05rem; }
  .track-container { gap: 1.25rem; }
  .track-detail-box { padding: 1.2rem; }
  .track-detail-box h2 { font-size: 1.8rem; }
  .track-gallery { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
