/* #region html  */
html{
  scroll-behavior: smooth;
}
/* #endregion */
/* #region body  */
body {
  margin: 0;
  font-family: "Inter", serif;
  color: #292929;
  font-size: 16px;
  line-height: 140%;
}
/* #endregion */
/* #region header  */
.header {
  display: flex;
  flex-direction: column;
  justify-content:  space-between;
  padding: 32px 20px;
  height: 100vh;
  box-sizing: border-box;
  background-image: url(images/header-bg.png);
  background-size: cover;
}

@media (width >= 720px ) {
  .header {
    padding: 64px 72px;
  }
} 

@media (width >= 1200px ) {
  .header {
    background-image:url(images/header-mobile.png) ;
    background-position: top center;
    padding: 64px 120px;
  }
} 

.header__top {
  display: flex;
  justify-content: space-between;
}

.header__title {
  margin-top: 40px;
  margin-bottom: 0;
  font-size: 48px;
  line-height: 100%;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -1.5px;
}
/* #endregion */
/* #region entry animations */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-down {
  animation: fadeDown 0.8s ease both;
}
.anim-fade-up {
  animation: fadeUp 0.9s ease both;
}
.anim-delay-1 {
  animation-delay: 0.2s;
}
/* #endregion */
/* #region burger button */
.burger-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
/* #endregion */
/* #region menu */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  transform: translateX(-100%);
  transition: transform 500ms;

  box-sizing: border-box;
  height: 100vh;
  padding: 64px 120px;
  background: #e5e5e5;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

.menu--open {
  transform: translateX(0%);
}

.menu__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 64px;
}
/* #endregion */
/* #region close button */
.close-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
/* #endregion */
/* #region nav */
.nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nav__link {
  color: #292929;
  text-decoration: none;
  font-weight: bold;
  font-size: 22px;
  line-height: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: opacity 250ms, letter-spacing 250ms;
}

.nav__link:hover {
  opacity: 0.5;
  letter-spacing: 4px;
}
/* #endregion */
/* #region sound-wave */
.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  margin-top: auto;
  padding-bottom: 0;
}

.sound-wave__bar {
  flex: 1;
  background: #292929;
  border-radius: 3px;
  animation: soundBar 1.4s ease-in-out infinite alternate;
  transform-origin: bottom;
  min-height: 6px;
}

.sound-wave__bar:nth-child(1)  { animation-duration: 1.1s; animation-delay: 0s;    }
.sound-wave__bar:nth-child(2)  { animation-duration: 0.9s; animation-delay: 0.1s;  }
.sound-wave__bar:nth-child(3)  { animation-duration: 1.3s; animation-delay: 0.2s;  }
.sound-wave__bar:nth-child(4)  { animation-duration: 0.8s; animation-delay: 0.05s; }
.sound-wave__bar:nth-child(5)  { animation-duration: 1.5s; animation-delay: 0.3s;  }
.sound-wave__bar:nth-child(6)  { animation-duration: 1.0s; animation-delay: 0.15s; }
.sound-wave__bar:nth-child(7)  { animation-duration: 0.7s; animation-delay: 0.25s; }
.sound-wave__bar:nth-child(8)  { animation-duration: 1.2s; animation-delay: 0.4s;  }
.sound-wave__bar:nth-child(9)  { animation-duration: 0.95s; animation-delay: 0.1s; }
.sound-wave__bar:nth-child(10) { animation-duration: 1.4s; animation-delay: 0.35s; }
.sound-wave__bar:nth-child(11) { animation-duration: 0.85s; animation-delay: 0.2s; }
.sound-wave__bar:nth-child(12) { animation-duration: 1.1s; animation-delay: 0.0s;  }
.sound-wave__bar:nth-child(13) { animation-duration: 0.75s; animation-delay: 0.45s;}
.sound-wave__bar:nth-child(14) { animation-duration: 1.3s; animation-delay: 0.05s; }
.sound-wave__bar:nth-child(15) { animation-duration: 1.0s; animation-delay: 0.3s;  }
.sound-wave__bar:nth-child(16) { animation-duration: 0.9s; animation-delay: 0.15s; }
.sound-wave__bar:nth-child(17) { animation-duration: 1.5s; animation-delay: 0.25s; }
.sound-wave__bar:nth-child(18) { animation-duration: 0.8s; animation-delay: 0.4s;  }
.sound-wave__bar:nth-child(19) { animation-duration: 1.2s; animation-delay: 0.1s;  }
.sound-wave__bar:nth-child(20) { animation-duration: 1.0s; animation-delay: 0.35s; }

@keyframes soundBar {
  0%   { height: 6px;  }
  25%  { height: 40px; }
  50%  { height: 20px; }
  75%  { height: 60px; }
  100% { height: 30px; }
}
/* #endregion */
/* #region headphones carousel */
.headphones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 100vh;
  padding: 80px 120px;
  box-sizing: border-box;
  overflow: hidden;
  background: #1c1c1e;
  color: #fff;
  transition: color 600ms ease;
}

.headphones__bg {
  position: absolute;
  inset: 0;
  background: #1c1c1e;
  transition: background 700ms ease;
  z-index: 0;
}

.headphones__left {
  position: relative;
  z-index: 1;
  flex: 0 0 42%;
  max-width: 420px;
}

.headphones__label {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.5;
}

.headphones__title {
  margin: 0 0 20px;
  font-size: 52px;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: -1.5px;
}

.headphones__desc {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 160%;
  opacity: 0.65;
  max-width: 340px;
}

.headphones__price {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.headphones__colors {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

.headphones__color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 250ms, transform 250ms;
  outline: none;
}

.headphones__color--active {
  border-color: currentColor;
  transform: scale(1.2);
}

.headphones__cta {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
  font-family: "Inter", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 40px;
  transition: background 300ms, color 300ms, transform 200ms;
}

.headphones__cta:hover {
  background: currentColor;
  color: #1c1c1e;
  transform: translateY(-2px);
}

.headphones__right {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.headphones__carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
}

.headphones__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.88) translateX(40px);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: none;
}

.headphones__slide--active {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

.headphones__img {
  width: 100%;
  max-width: 460px;
  object-fit: contain;
  filter: drop-shadow(0 48px 96px rgba(0,0,0,0.6));
}

@keyframes floatImg {
  0%   { transform: translateY(0px) rotate(-1deg); }
  50%  { transform: translateY(-18px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}

.headphones__img--float {
  animation: floatImg 5s ease-in-out infinite;
}

.headphones__img--tint-sand {
  filter: drop-shadow(0 48px 96px rgba(0,0,0,0.4)) sepia(40%) saturate(0.8) brightness(1.05);
}

.headphones__img--tint-green {
  filter: drop-shadow(0 48px 96px rgba(0,0,0,0.5)) hue-rotate(60deg) saturate(0.7) brightness(0.9);
}

.headphones__dots {
  display: flex;
  gap: 10px;
}

.headphones__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 300ms, transform 300ms;
  padding: 0;
}

.headphones__dot--active {
  background: currentColor;
  transform: scale(1.4);
}

@media (max-width: 900px) {
  .headphones {
    flex-direction: column;
    padding: 60px 20px 40px;
    text-align: center;
  }

  .headphones__left {
    max-width: 100%;
    flex: none;
  }

  .headphones__colors {
    justify-content: center;
  }

  .headphones__right {
    width: 100%;
  }

  .headphones__carousel {
    max-width: 320px;
  }
}
/* #endregion */
/* #region main  */
.main {
  padding: 120px;
  background-color: white;
}
/* #endregion */
/* #region scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
/* #endregion */
/* #region recommended  */
.recommended {
  margin-bottom: 120px;
}

.recommended__title {
  margin-top: 0;
  margin-bottom: 64px;
  font-size: 48px;
  line-height: 100%;
  font-weight: bold;
  text-align: center;
  letter-spacing: -1.5px;
}

.recommended__products {
  display: flex;
  justify-content: center;
  gap: 24px;
}

/* #region product  */
.product {
  flex-basis: 324px;
  transition: transform 400ms ease, box-shadow 400ms ease;
  cursor: default;
}

.product__photo{
  width: 100%;
  margin-bottom: 32px;
  transition: transform 400ms ease;
}

.product:hover .product__photo {
  transform: scale(1.04);
}

.product__title {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 140%;
}

.product__category {
  margin-top: 0;
  margin-bottom: 12px;
}

.product__price {
  font-weight: bold;
}
/* #endregion */

/* #endregion */
/* #region categories  */

.categories {
  max-width: 1020px;
  margin: 0 auto;
  margin-bottom: 120px;
}

.categories__title {
  margin-top: 0;
  margin-bottom: 64px;
  font-size: 48px;
  line-height: 100%;
  font-weight: bold;
  text-align: center;
  letter-spacing: -1.5px;
}
/* #endregion */
/* #region category  */
.category {
  margin-bottom: 64px;
}

.category__photos{
  display: flex;
  gap: 3%;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 8px;
}

.category__photos img {
  transition: transform 500ms ease;
}

.category__photos:hover img {
  transform: scale(1.04);
}

.category__title{
  margin: 0;
}
/* #endregion */
/* #region how-to-buy  */
.how-to-buy {
  display: flex;
  gap: 24px;
  max-width: 1020px;
  margin: 0 auto;
}

.how-to-buy__title {
  flex-basis: 50%;
  margin-top: 0;
  margin-bottom: 64px;
  font-size: 48px;
  line-height: 100%;
  font-weight: bold;
  letter-spacing: -1.5px;
}

.how-to-buy__content {
  flex-basis: 50%;
}

.how-to-buy__benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0; 
  margin: 0;
  margin-bottom: 40px;
  font-weight: bold;
}

.how-to-buy__benefits li {
  position: relative;
  padding-left: 20px;
  transition: transform 250ms;
}

.how-to-buy__benefits li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.4;
}

.how-to-buy__benefits li:hover {
  transform: translateX(6px);
}
/* #endregion */
/* #region photo-wide */
.photo-wide {
  width: 65%;
}
/* #endregion */
/* #region photo-square */
.photo-square{
  width: 32%;
}
/* #endregion */
/* #region footer */
.footer {
  position: sticky;
  bottom: 0;
  z-index: -1;
  height: 460px;
  background-image: url(images/footer-bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* #endregion */
