/* Font import Newsreader & Manrope */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap");

/* Variables */
:root {
  --color-primary: #0f1a1a;
  --color-background: #0b0f12;
  --color-text-primary: #dbe4e8;
  --color-text-secondary: #5f6f77;
  --color-accent: #8fa3ad;
}

/* Minimal reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: Manrope, sans-serif;
  line-height: 1.6;
  background-color: var(--color-primary);
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Newsreader, serif;
}

/* =====================================================
                 SITE HEADER / NAVIGATION
   ===================================================== */

/* Navbar */
.site-navigation {
  display: flex;
  position: absolute;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  z-index: 999;
}

/* Logo/brand */
.logo {
  font-family: Newsreader, serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.07rem;
  text-decoration: none;
  color: var(--color-text-primary);
}

/* Nav menu */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* Menu items */
.site-navigation ul a {
  text-decoration: none;
  color: var(--color-text-primary);
  letter-spacing: 0.07rem;
  transition: border 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.3rem;
}

/* Currently active menu item */
.active-link {
  font-weight: bold;
}

.site-navigation ul a:hover {
  border-bottom-color: var(--color-text-primary);
}

/* Hamburger icon */
.hamburger {
  display: none;
  color: var(--color-text-primary);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.2);
}

/* Hamburger transition effect via JS */
.hamburger.active {
  transform: rotate(90deg);
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

/* Mobile overlay transition effect via JS */
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
                  HERO / VIDEO SECTION
   ===================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 750px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(images/adrien-brunat-uEYRpUe1B1s-unsplash.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0) 70%
  );
}

.hero-title {
  font-size: 2rem;
  width: 80%;
  font-weight: 400;
  color: var(--color-text-primary);
  text-align: center;
  border-bottom: 2px solid var(--color-text-primary);
  margin: 0 auto;
}

.hero-video-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60%;
  max-width: 60%;
  gap: 1rem;
}

.hero-video-box video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid var(--color-text-secondary);
}
/* =====================================================
                       MUSIC PLAYER
   ===================================================== */
/* Progress bar */
#progress {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #444;
  cursor: pointer;
}

#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
}
#progress::-moz-range-thumb {
  width: 0;
  height: 0;
  border: none;
}

#progress::-ms-thumb {
  width: 0;
  height: 0;
  border: none;
}
/* Music player box */
.music-player-box {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  background-color: var(--color-background);
  color: var(--color-text-primary);
}

/* Music player bar */
.music-player-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 2rem;
}

.track-info-box {
  display: flex;
  justify-self: start;
  gap: 1rem;
}

.track-info {
  align-self: center;
}

.music-player-box img {
  max-width: 80px;
  max-height: 80px;
}

.title {
  font-size: 1.5rem;
  font-family: Newsreader, serif;
  font-weight: 500;
  line-height: 1;
}

.artist {
  color: var(--color-text-secondary);
  font-weight: 300;
  text-transform: uppercase;
}

.controls {
  justify-self: center;
  display: flex;
  gap: 1rem;
}

.volume-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.music-player-box button {
  background: none;
  border: none;
  cursor: pointer;
}

.music-player-box i {
  color: var(--color-text-primary);
  font-size: 1.5rem;
}

/* =====================================================
                          FOOTER
   ===================================================== */
.footer {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
}

.footer-top {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-brand-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer nav ul {
  flex-direction: column;
}

.footer li a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: border 0.3s ease;
  border-bottom: 2px solid transparent;
}

.footer nav a {
  transition: border 0.3s ease;
  border-bottom: 2px solid transparent;
  transition: border 0.3s ease;
}

.footer nav a:hover {
  border-bottom-color: var(--color-text-primary);
}

.footer i {
  color: var(--color-text-primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.footer i:hover {
  transform: scale(1.2);
}

.footer-bottom {
  width: 100%;
  background-color: var(--color-primary);
  padding: 1rem 2rem;
}

/* =====================================================
                        RESPONSIVE
   ===================================================== */
/* Large screens over 1921px */
@media (min-width: 1921px) {
  .hero {
    height: 85vh;
  }
}

/* Extra breakpoint */
@media (min-width: 1300px) {
  .hero-video-box {
    width: 45vw;
    max-width: 45vw;
  }
}

/* Tablet up to 1024px*/
@media (max-width: 1024px) {
  /* Hamburger menu */
  .hamburger {
    display: flex;
    z-index: 1000;
  }

  /* Mobile menu */
  .nav-menu {
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 2rem;
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition:
      opacity 0.3s ease,
      top 0.3s ease;
  }

  /* Mobile menu toggle via JS & effects */
  .nav-menu.active {
    top: 150px;
    opacity: 1;
    pointer-events: all;
  }

  .hero-video-box {
    width: 80vw;
    max-width: 80vw;
  }
}

/* Mobile up to 767px*/
@media (max-width: 767px) {
  .site-navigation {
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
    font-weight: 400;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-video-box {
    width: 100%;
    max-width: 100%;
  }

  .footer-top {
    grid-template-columns: auto;
  }

  .footer nav ul {
    flex-direction: row;
  }
}

/* Mobile small up to 359px */
@media (max-width: 359px) {
  .music-icons ul {
    flex-direction: column;
    gap: 1rem;
  }
  .music-icons li {
    font-size: 1.5rem;
  }
  .hero {
    height: 500px;
  }
}
