/* ==========================================================================
   K.D MUSIC — Nocturnal Duality
   ========================================================================== */

:root {
  --void: #060609;
  --asphalt: #0d0e15;
  --ice: #00d2ff;
  --crimson: #ff0055;
  --club: #a855f7;
}

* { scroll-behavior: smooth; }

html, body {
  background-color: var(--void);
  overflow-x: hidden;
}

::selection {
  background: var(--ice);
  color: #000;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--ice), var(--crimson)); border-radius: 10px; }

/* ---------- Chrome / metallic text ---------- */
.chrome-text {
  background: linear-gradient(100deg, #8a8d98 0%, #ffffff 20%, #c9cdd6 35%, #70747f 50%, #ffffff 65%, #9a9eaa 80%, #ffffff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chromeShift 7s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.12));
}
@keyframes chromeShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Navbar ---------- */
.glass-nav {
  background: rgba(6, 6, 9, 0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.glass-nav.scrolled {
  background: rgba(6, 6, 9, 0.85);
  border-bottom-color: rgba(0, 210, 255, 0.12);
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.65);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--ice), var(--crimson));
  transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.lang-switch { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; }
.lang-btn {
  color: rgba(255,255,255,0.4);
  padding: 2px 4px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}
.lang-btn.active { color: var(--ice); font-weight: 600; }
.lang-btn:hover { color: #fff; }

.mobile-menu {
  position: fixed;
  top: 80px; left: 0; right: 0;
  height: 0;
  overflow: hidden;
  background: rgba(6,6,9,0.97);
  backdrop-filter: blur(20px);
  transition: height 0.35s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu.open { height: calc(100svh - 80px); overflow-y: auto; }

/* ---------- Buttons ---------- */
.btn-pulse {
  background: linear-gradient(135deg, #1db954, #0d8a3e);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.55);
  animation: pulseGreen 2.6s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-pulse:hover { transform: translateY(-2px); }
@keyframes pulseGreen {
  0%   { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(29, 185, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

.btn-crimson {
  background: linear-gradient(135deg, var(--crimson), #c2003f);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-crimson:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 0, 85, 0.55); }

.btn-glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--ice);
  transform: translateY(-2px);
}

.bounce-arrow { animation: bounceDown 1.6s infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Hero ---------- */
.hero-section { background: var(--void); }
.hero-bg { filter: brightness(0.55) saturate(1.1); }
.hero-fallback-bg {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0,210,255,0.18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255,0,85,0.18), transparent 55%),
    linear-gradient(180deg, var(--asphalt), var(--void));
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(6,6,9,0.55) 0%, rgba(6,6,9,0.55) 40%, rgba(6,6,9,0.92) 100%),
              linear-gradient(90deg, rgba(0,210,255,0.08), rgba(255,0,85,0.08));
}
.scroll-hint { animation: bounceDown 2s infinite; }

/* ---------- EP Section ---------- */
.ep-glow-bg {
  background: radial-gradient(circle at 15% 30%, rgba(0,210,255,0.08), transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(168,85,247,0.08), transparent 45%);
}

.ep-cover-wrap { filter: drop-shadow(0 25px 50px rgba(0,0,0,0.6)); }
.ep-badge {
  background: linear-gradient(135deg, var(--ice), #0a6e85);
  color: #04141a;
  box-shadow: 0 0 20px rgba(0,210,255,0.5);
}
.ep-cover-glow {
  background: var(--asphalt);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.ep-cover-glow:hover {
  box-shadow: 0 0 55px rgba(0,210,255,0.45), 0 0 100px rgba(0,210,255,0.15);
  transform: scale(1.015);
}
.ep-cover-fallback {
  display: none;
  background: radial-gradient(circle at 30% 20%, rgba(0,210,255,0.25), transparent 60%),
              linear-gradient(145deg, #0d1621, #060609);
}

.track-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.track-row:hover {
  background: rgba(0,210,255,0.06);
  border-color: rgba(0,210,255,0.25);
  transform: translateX(4px);
}
.track-num {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ice);
  font-weight: 600;
  font-size: 0.85rem;
  width: 1.5rem;
}
.track-info { flex: 1; display: flex; flex-direction: column; }
.track-title { font-weight: 500; color: #fff; font-size: 0.95rem; }
.track-meta { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.track-play {
  color: rgba(255,255,255,0.3);
  transition: color 0.25s ease;
}
.track-row:hover .track-play { color: var(--ice); }

/* ---------- Player ---------- */
.player-frame {
  background: linear-gradient(135deg, rgba(0,210,255,0.12), rgba(168,85,247,0.1));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 60px rgba(0,210,255,0.1);
}

/* ---------- Catalog tabs ---------- */
.tabs-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.tab-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.3rem;
  border-radius: 9999px;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--ice), var(--club));
  color: #06060a;
}
.tab-btn:not(.active):hover { color: #fff; }

/* ---------- Catalog cards ---------- */
.cat-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.1rem;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cat-card.hide { display: none; }
.cat-card:hover { transform: translateY(-6px); }
.cat-card-glow {
  position: absolute; inset: -40%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  filter: blur(40px);
}
.cat-card:hover .cat-card-glow { opacity: 0.35; }
.cat-us .cat-card-glow { background: radial-gradient(circle, var(--ice), transparent 65%); }
.cat-latino .cat-card-glow { background: radial-gradient(circle, var(--crimson), transparent 65%); }
.cat-us:hover { border-color: rgba(0,210,255,0.4); }
.cat-latino:hover { border-color: rgba(255,0,85,0.4); }

.cat-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.cat-us .cat-icon { color: var(--ice); }
.cat-latino .cat-icon { color: var(--crimson); }

.cat-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.9rem;
  position: relative; z-index: 1;
}
.tag-us { background: rgba(0,210,255,0.12); color: var(--ice); border: 1px solid rgba(0,210,255,0.3); }
.tag-latino { background: rgba(255,0,85,0.12); color: #ff5f8f; border: 1px solid rgba(255,0,85,0.3); }

.cat-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.4rem;
  position: relative; z-index: 1;
}
.cat-tracks {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 1.4rem;
  position: relative; z-index: 1;
}
.cat-links { display: flex; gap: 0.75rem; position: relative; z-index: 1; }
.cat-links a {
  width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  transition: all 0.25s ease;
}
.cat-links a:hover { background: #fff; color: #060609; transform: scale(1.1); }

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
}
.service-num {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
}
.service-icon { font-size: 1.8rem; margin-bottom: 1.25rem; }

/* ---------- Footer ---------- */
.footer-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,210,255,0.08), transparent 60%);
}
.social-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.social-icon:hover {
  color: #fff;
  border-color: var(--ice);
  box-shadow: 0 0 20px rgba(0,210,255,0.35);
  transform: translateY(-3px);
}

/* ---------- Logo fallback ---------- */
.logo-wrap { position: relative; display: inline-flex; }
.logo-fallback {
  background: linear-gradient(135deg, var(--ice), var(--club));
  color: #06060a;
  display: none;
}
.logo-fallback.show { display: flex; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc ---------- */
@media (max-width: 480px) {
  .chrome-text { filter: none; }
}
