/* ==========================================================================
   THWP — Super Modern Rock Band Website
   Dark, immersive, cinematic. Inspired by nirvana.com aesthetic.
   ========================================================================== */

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

:root {
  --black: #0a0a0a;
  --dark: #111;
  --dark2: #161616;
  --gray: #555;
  --light-gray: #999;
  --white: #f0f0f0;
  --accent: #e63946;
  --accent-glow: rgba(230, 57, 70, 0.3);
  --font-body: 'Space Grotesk', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  --ease: cubic-bezier(0.25, 0, 0.15, 1);
  --ease-out: cubic-bezier(0, 0, 0.15, 1);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--black);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 80px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
}

#navbar.scrolled .nav-logo {
  opacity: 1;
  pointer-events: auto;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: opacity 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.4s var(--ease);
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

.nav-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ---------- Menu Overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.menu-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.menu-link {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 80px);
  letter-spacing: 4px;
  color: var(--white);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}

.menu-overlay.open .menu-link {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.open .menu-link:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.open .menu-link:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay.open .menu-link:nth-child(3) { transition-delay: 0.2s; }
.menu-overlay.open .menu-link:nth-child(4) { transition-delay: 0.25s; }
.menu-overlay.open .menu-link:nth-child(5) { transition-delay: 0.3s; }
.menu-overlay.open .menu-link:nth-child(6) { transition-delay: 0.35s; }

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

.menu-overlay-socials {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 24px;
}

.menu-overlay-socials a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gray);
  transition: color 0.3s;
}

.menu-overlay-socials a:hover {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.7);
  transform: scale(1.1);
  animation: heroZoom 20s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -8vh;
}

.hero-title-wrap {
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 240px);
  letter-spacing: 20px;
  line-height: 0.9;
  color: var(--white);
  animation: titleReveal 1.2s var(--ease-out) 0.3s both;
}

.hero-logo {
  width: clamp(120px, 20vw, 250px);
  height: auto;
  animation: titleReveal 1.2s var(--ease-out) 0.3s both;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-top: 16px;
  animation: fadeUp 1s var(--ease-out) 0.8s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  animation: fadeUp 1s var(--ease-out) 1s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-hero {
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  transition: all 0.4s var(--ease);
}

.btn-hero:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-hero--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-hero--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s var(--ease-out) 1.4s both;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-gray);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(80px, 12vh, 160px) 0;
}

.section--dark {
  background: var(--dark);
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 48px;
}

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 140px);
  letter-spacing: 4px;
  line-height: 0.9;
  margin-bottom: 24px;
}

.body-text {
  font-size: 16px;
  color: var(--light-gray);
  max-width: 540px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.body-text em {
  color: var(--white);
  font-style: italic;
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About / Split Layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1) brightness(0.9);
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.split-image:hover img {
  filter: grayscale(0%) contrast(1.1) brightness(0.95);
  transform: scale(1.03);
}

.split-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 10, 0.7) 100%);
  pointer-events: none;
}

.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(230, 57, 70, 0.2);
  pointer-events: none;
}

/* ---------- Band Members ---------- */
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.band-member {
  text-align: center;
}

.band-member-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 20px;
}

.band-member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.band-member:hover .band-member-img img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.band-member-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--dark), transparent);
  pointer-events: none;
}

.band-member h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
}

.member-role {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  display: block;
}

/* ---------- Music / Releases ---------- */
.release-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding: 40px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.05);
}

.release-featured-art {
  overflow: hidden;
}

.release-featured-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.release-featured-art:hover img {
  transform: scale(1.03);
}

.release-tag {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.release-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.btn-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
  display: inline-block;
}

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

.releases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.release-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 24px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.release-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
  transform: translateY(-4px);
}

.release-art {
  overflow: hidden;
  margin-bottom: 20px;
}

.release-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.release-card:hover .release-art img {
  transform: scale(1.05);
}

.release-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.release-desc {
  font-size: 14px;
  color: var(--light-gray);
  margin-bottom: 12px;
}

.tracklist {
  list-style: none;
  counter-reset: track;
  margin-bottom: 16px;
}

.tracklist li {
  counter-increment: track;
  font-size: 13px;
  color: var(--light-gray);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.3s;
}

.tracklist li::before {
  content: counter(track, decimal-leading-zero) " ";
  color: var(--gray);
  font-size: 11px;
  margin-right: 8px;
}

.tracklist li:hover {
  color: var(--white);
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-cta {
  text-align: center;
}

/* ---------- Gallery ---------- */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ---------- Contact ---------- */
.contact-container {
  text-align: center;
  max-width: 800px;
}

.email-display {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: 2px;
  color: var(--white);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  margin: 32px 0 48px;
  transition: color 0.3s;
}

.email-display:hover {
  color: var(--accent);
}

.socials-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.socials-row a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-gray);
  position: relative;
  transition: color 0.3s;
}

.socials-row a:hover {
  color: var(--accent);
}

.socials-row a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.socials-row a:hover::after {
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--light-gray);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .releases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .band-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .release-featured {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-image img {
    height: 350px;
  }

  .releases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero {
    width: 200px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .band-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }

  .gallery-item {
    aspect-ratio: 4/3;
  }

  .socials-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}
