@import url("https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap");

:root {
  --bg-overlay: rgba(0, 0, 0, 0.45);
  --topbar-height: 64px;
}

/* ---------- Base ---------- */

html, body {
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IM Fell English SC', serif;
  color: white;
  padding-top: var(--topbar-height);
  background: #000;
}

/* ---------- Top Bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: 9999;

  background: #343E4A;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar__nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
}

.topbar__link {
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.topbar__link:hover {
  color: rgba(255, 255, 255, 1);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
}

/* ---------- Hero Section ---------- */

.hero {
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image:
    linear-gradient(var(--bg-overlay), var(--bg-overlay)),
    url("../assets/troy_3.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.hero__content {
  max-width: 900px;
  padding: 2rem;
}

h1 {
  font-size: 12rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.subtext {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.8;
}

/* ---------- Video Section ---------- */

/* offset for clicking "VIDEO" (requires id="video" in HTML) */
#video {
  scroll-margin-top: var(--topbar-height);
}

.video-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* Desktop: big as possible but stays 16:9 */
.video-wrapper {
  width: 100vw;                              /* fill full viewport width */
  max-width: none;                           /* remove cap */
  aspect-ratio: 16 / 9;
  height: calc(100vh - var(--topbar-height));/* fill available height */
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---------- Socials ---------- */

.socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.socials img {
  width: 50px;
  height: 50px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.socials img:hover {
  opacity: 1;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  :root { --topbar-height: 56px; }
  .topbar__nav { gap: 16px; padding: 0 16px; }
  .topbar__link { font-size: 11px; letter-spacing: 0.08em; }

  h1 {
    font-size: clamp(3.6rem, 10vw, 4.2rem);
    letter-spacing: 0.06em;      /* less spacing on small screens */
    line-height: 1.05;
    margin-bottom: 0.9rem;
  }

  .subtext {
    font-size: 0.85rem;
    letter-spacing: 0.04em;      /* less spacing */
    line-height: 1.5;
    max-width: 320px;            /* keeps it from stretching weirdly */
    margin: 0 auto;
  }

  .subtext span {
    display: block;
    margin-top: 4px;
    font-size: 0.75em;
    opacity: 0.9;
  }

  .video-section {
    min-height: auto;
  }

  .video-wrapper {
    width: min(90vw, 400px);
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
}

/* ---------- Discography ---------- */

.discography {
  padding: 80px 24px 120px;
  background: #000;
  text-align: center;
}

.discography__title {
  font-size: 2.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.discography__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 360px));
  justify-content: center;
  gap: 48px;
}

.album {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.75);
}

/* Mobile */
@media (max-width: 768px) {
  .discography {
    padding: 56px 16px 80px;
  }

  .discography__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .discography__title {
    font-size: 1.6rem;
  }
}

