/* ============================================================
   Key South — Dark Cinematic Redesign
   ============================================================ */

/* Design Tokens */
:root {
  --bg:           #0d0f1a;
  --bg-2:         #131620;
  --bg-card:      #1a1d2e;
  --accent:       #d4a843;
  --accent-hover: #e8c060;
  --text:         #f0f0f0;
  --text-muted:   #9ca3af;
  --border:       #2a2d3e;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:        70px;
  --max-w:        1200px;
  --section-py:   6rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; border: none; outline: none; background: none; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section commons */
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-2); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2.5rem;
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.navbar.scrolled,
.navbar.menu-open {
  background: rgba(13, 15, 26, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.55rem 1.35rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/Best-Epic-Music-Tracks.avif') center / cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13, 15, 26, 0.97) 0%,
    rgba(13, 15, 26, 0.88) 40%,
    rgba(13, 15, 26, 0.55) 70%,
    rgba(13, 15, 26, 0.2) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}

/* Waveform decoration */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}
.hero-wave svg { display: block; width: 100%; }
.wave-path-1 { animation: wave-drift 10s ease-in-out infinite alternate; }
.wave-path-2 { animation: wave-drift 14s ease-in-out infinite alternate-reverse; }
@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-20px); }
}


/* ============================================================
   MUSIC PLAYER
   ============================================================ */
#music { background: var(--bg); }

.music-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.now-playing-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
}
.now-playing-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}
.now-playing-label {
  font-weight: 600;
  color: var(--accent);
}
#playlist-name { color: var(--text); font-weight: 500; }

.iframe-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
#disco-playlist {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

.spinner-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 26, 0.85);
  z-index: 10;
  align-items: center;
  justify-content: center;
}
.spinner-overlay.active { display: flex; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Playlist pills */
.playlist-pills-wrap { position: sticky; top: calc(var(--nav-h) + 1rem); }

.playlist-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: left;
  width: 100%;
}
.pill-btn:hover,
.pill-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 168, 67, 0.07);
}
.pill-arrow {
  font-size: 0.55rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.pill-btn:hover .pill-arrow,
.pill-btn.active .pill-arrow { opacity: 1; }


/* ============================================================
   SYNC CREDITS
   ============================================================ */
#credits { background: var(--bg-2); }

.credits-intro {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 0.5rem;
}
.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.credit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.credit-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.08);
}
.credit-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212, 168, 67, 0.12);
  border-radius: 100px;
  padding: 0.22rem 0.7rem;
  margin-bottom: 0.85rem;
}
.credit-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.credit-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.about-glow {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 68%);
  pointer-events: none;
}
.about-image {
  width: 300px; height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--accent);
  box-shadow: 0 0 50px rgba(212, 168, 67, 0.12);
  position: relative;
  z-index: 1;
}

.about-text .section-heading { margin-bottom: 1.25rem; }
.about-bio {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }
.social-link svg { width: 15px; height: 15px; fill: currentColor; }


/* ============================================================
   PHOODLE
   ============================================================ */
#play { background: var(--bg-2); }

.phoodle-wrap { text-align: center; }
.phoodle-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.phoodle-frame {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.phoodle-frame iframe { display: block; }


/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-select option { background: var(--bg-card); }
.form-textarea { resize: vertical; min-height: 140px; }

.form-submit {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
  width: 100%;
}
.form-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-top: 1rem;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(212,168,67,0.1);
  color: var(--accent);
  border: 1px solid rgba(212,168,67,0.3);
}
.form-feedback.error {
  display: block;
  background: rgba(229,57,70,0.1);
  color: #e53946;
  border: 1px solid rgba(229,57,70,0.3);
}

/* Contact info sidebar */
.contact-info {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.contact-info-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}
.contact-info-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: rgba(212,168,67,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.contact-info-icon svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.contact-info-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.contact-social-links {
  display: flex;
  gap: 0.65rem;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-logo {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-socials {
  display: flex;
  gap: 0.65rem;
}
.footer-social {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.55;
}


/* ============================================================
   RESPONSIVE — Tablet (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {
  :root { --section-py: 4.5rem; }

  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--bg);
    padding: 3rem 2rem;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start;
    z-index: 99;
  }
  .nav-links.open .nav-link { font-size: 1.1rem; letter-spacing: 0.15em; }
  .nav-links.open .nav-cta { font-size: 0.9rem; padding: 0.75rem 2rem; }

  /* Music */
  .music-grid { grid-template-columns: 1fr; }
  .playlist-pills-wrap { position: static; }
  .playlist-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .pill-btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 110px;
    justify-content: center;
  }
  .pill-arrow { display: none; }

  /* Credits */
  .credits-grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .about-image-wrap { justify-content: center; }
  .social-links { justify-content: center; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; order: -1; }

  /* Footer */
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-socials { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 3.5rem; }

  .hero-heading { font-size: 2.6rem; }
  .credits-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤ 479px)
   ============================================================ */
@media (max-width: 479px) {
  .container { padding: 0 1.25rem; }
  .hero-heading { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .about-image { width: 240px; height: 240px; }
  .about-glow { width: 280px; height: 280px; }
}
