/* -----------------------------------------------
   Base
----------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nav-height: 60px;
  --accent: #c8a96e;
  --white: #f5f5f5;
  --black: #0a0a0a;
  --overlay: rgba(0, 0, 0, 0.52);
  --font: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
}

body {
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

/* -----------------------------------------------
   Navbar
----------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.88);
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--white);
}

.nav-brand-sanskrit {
  color: var(--white);
  font-family: serif;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  font-size: 1.1rem;
}

.nav-tabs {
  display: flex;
  gap: 0;
}

.tab-btn {
  background: none;
  border: none;
  color: rgba(245, 245, 245, 0.5);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 22px;
  transition: color 0.25s ease;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.tab-btn:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.tab-btn.active {
  color: var(--white);
  text-shadow: 0 0 18px rgba(200, 169, 110, 0.45);
}

.tab-btn.active::after {
  transform: scaleX(1);
  box-shadow: 0 0 6px rgba(200, 169, 110, 0.5);
}

@keyframes tab-enter {
  0%   { letter-spacing: 2px; opacity: 0.4; }
  55%  { letter-spacing: 6px; opacity: 1;   }
  100% { letter-spacing: 4px; opacity: 1;   }
}

.tab-btn.tab-entering {
  animation: tab-enter 0.45s ease forwards;
}

/* -----------------------------------------------
   Nav right — player + hamburger
----------------------------------------------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 245, 0.45);
  transition: color 0.2s ease;
}

.nav-social-link:hover {
  color: var(--white);
}

.nav-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-track {
  display: none;
}

.nav-play-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 245, 245, 0.55);
  background: transparent;
  color: var(--white);
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-play-btn:hover {
  background: rgba(245, 245, 245, 0.1);
  border-color: var(--white);
}

.nav-play-btn .icon-play {
  margin-left: 2px;
}

.nav-progress-wrap {
  width: 100px;
  height: 2px;
  background: rgba(245, 245, 245, 0.2);
  cursor: pointer;
  position: relative;
}

.nav-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.nav-time {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(245, 245, 245, 0.45);
  min-width: 28px;
  text-align: right;
}

/* Mobile menu toggle — hidden on desktop */
.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* -----------------------------------------------
   Mobile menu
----------------------------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 10, 10, 0.95);
  flex-direction: column;
  padding: 16px 0;
}

.mobile-menu .tab-btn {
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-size: 0.85rem;
}

.mobile-menu.open {
  display: flex;
}

/* -----------------------------------------------
   Panels
----------------------------------------------- */
main {
  position: relative;
}

.panel {
  position: relative;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Background photo */
.panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Gradient overlay — left-to-right on all panels */
.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.62) 48%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

/* Panel content — left-aligned across all panels */
.panel-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding-left: clamp(40px, 8vw, 120px);
  padding-right: 48%;
}

/* -----------------------------------------------
   Syllable display
----------------------------------------------- */
.syllable {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--white);
  text-transform: lowercase;
  -webkit-text-stroke: 1px rgba(245, 245, 245, 0.7);
  opacity: 0.9;
  user-select: none;
  margin-bottom: 0.4em;
}

.syllable-desc {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.90);
  margin-bottom: 2rem;
  max-width: 360px;
}

/* -----------------------------------------------
   Tha panel — mridangam note
----------------------------------------------- */
.mridangam-note {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.3px;
  color: rgba(245, 245, 245, 0.82);
  max-width: 420px;
  margin-bottom: 1rem;
  border-top: 1px solid var(--accent);
  padding-top: 2rem;
  margin-top: 1rem;
}

.hero-social {
  display: flex;
  gap: 16px;
  margin-top: 1.4rem;
}

.hero-social-link {
  color: rgba(245, 245, 245, 0.4);
  transition: color 0.2s ease;
  display: flex;
}

.hero-social-link:hover {
  color: rgba(245, 245, 245, 0.85);
}

.mridangam-intro {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: rgba(245, 245, 245, 0.5);
  max-width: 420px;
  margin-bottom: 2.4rem;
}

/* -----------------------------------------------
   Dhi panel — bio collapsed into hero
----------------------------------------------- */
#panel-dhi {
  height: auto;
  min-height: 100vh;
}

#panel-dhi .panel-bg {
  background-position: center top;
}

#panel-dhi::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.45));
  z-index: 2;
  pointer-events: none;
}


#panel-dhi .panel-content {
  justify-content: flex-start;
  padding-top: calc(var(--nav-height) + 160px);
  padding-bottom: 80px;
  padding-right: 55%;
}

.dhi-bio-block {
  width: 100%;
  margin-top: 1rem;
}

.dhi-bio-block::before {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.dhi-bio-block p {
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.4px;
  color: rgba(245, 245, 245, 0.85);
  margin-bottom: 1.5em;
}

.dhi-bio-block p:last-of-type {
  margin-bottom: 0;
}

.bio-link {
  color: rgba(245, 245, 245, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 169, 110, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bio-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.bio-spotify-link {
  border-bottom: 1px solid rgba(200, 169, 110, 0.45) !important;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bio-spotify-link:hover {
  border-bottom-color: var(--accent) !important;
}

/* -----------------------------------------------
   Bio social icons
----------------------------------------------- */
.bio-social {
  display: flex;
  gap: 28px;
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(200, 169, 110, 0.2);
}

.bio-social-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(245, 245, 245, 0.6);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.bio-social-link:hover {
  color: var(--accent);
}

/* -----------------------------------------------
   Email signup
----------------------------------------------- */
.tha-signup {
  position: absolute;
  bottom: 60px;
  left: clamp(40px, 8vw, 120px);
  z-index: 3;
}

.signup-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.signup-form {
  display: flex;
  gap: 0;
  max-width: 420px;
}

.signup-input {
  flex: 1;
  background: rgba(245, 245, 245, 0.06);
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-right: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  outline: none;
  transition: border-color 0.2s ease;
}

.signup-input::placeholder {
  color: rgba(245, 245, 245, 0.3);
}

.signup-input:focus {
  border-color: rgba(200, 169, 110, 0.5);
}

.signup-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--black);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.signup-btn:hover {
  background: transparent;
  color: var(--accent);
}

.signup-confirm {
  display: none;
  font-size: 0.78rem;
  color: rgba(245, 245, 245, 0.55);
  letter-spacing: 1px;
  margin-top: 0.6rem;
}

/* -----------------------------------------------
   Dhom / Nam panels — CTA content
----------------------------------------------- */
.panel-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2.4rem;
}

.cta-link {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.82);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
  align-self: flex-start;
}

.cta-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* -----------------------------------------------
   Responsive — mobile
----------------------------------------------- */
@media (max-width: 600px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-tabs {
    display: none;
  }

  .nav-menu-toggle {
    display: block;
  }

  .nav-progress-wrap,
  .nav-time {
    display: none;
  }

  .syllable-desc {
    letter-spacing: 2px;
    font-size: 0.75rem;
  }

  .mridangam-note {
    font-size: 0.88rem;
  }

  #panel-tha .panel-bg {
    background-size: 180%;
    background-position: 70% 20%;
  }

  #panel-dhom .panel-bg {
    background-size: 180%;
    background-position: 70% 80%;
  }

  #panel-nam .panel-bg {
    background-size: cover;
    background-position: center;
  }

  .panel-content {
    padding-left: 24px;
    padding-right: 24px;
    justify-content: flex-start;
    padding-top: 20vh;
  }

  .tha-signup {
    left: 24px;
    right: 24px;
    bottom: 40px;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-input {
    border-right: 1px solid rgba(245, 245, 245, 0.18);
    border-bottom: none;
  }

  .signup-btn {
    align-self: flex-start;
  }


  #panel-dhi .panel-content {
    padding-right: 24px;
  }

  #panel-dhom .panel-content {
    justify-content: flex-end;
    padding-bottom: 60px;
    padding-top: 0;
  }

  #panel-nam .panel-content {
    justify-content: flex-end;
    padding-bottom: 60px;
    padding-top: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  }
}
