* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0d;
  color: white;
  overflow-x: hidden;
}

img {
  display: block;
}

/* HEADER */

header {
  min-height: 100vh;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "left"
    "right";
  align-items: center;
  justify-items: center;
  gap: 2rem;
  position: relative;
}

.hero {
  grid-area: hero;
  max-width: 780px;
  text-align: center;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.6rem, 12vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 560px;
  margin: 1rem auto 0;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.75;
}

/* SIDE BUTTONS */

.side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.8s ease, opacity 0.8s ease;
  z-index: 3;
}

.side.left {
  grid-area: left;
}

.side.right {
  grid-area: right;
}

.side a {
  width: 150px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: rgba(22, 22, 28, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  text-decoration: none;
  color: white;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 25px rgba(255,255,255,0.08),
    0 22px 45px rgba(0,0,0,0.55);
  animation: floatBox 3.5s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.side a:nth-child(2) {
  animation-delay: 0.45s;
}

.side a:hover,
.side a:focus {
  transform: scale(1.08);
  background: rgba(35, 35, 45, 0.95);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 35px rgba(255,255,255,0.14),
    0 28px 55px rgba(0,0,0,0.75);
}

@keyframes floatBox {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

header.scrolled .side.left {
  transform: translateX(-170%);
  opacity: 0;
}

header.scrolled .side.right {
  transform: translateX(170%);
  opacity: 0;
}

/* SECTIONS */

#gallery {
  box-shadow: inset 0 0 100px rgba(255,70,70,0.08);
}

#song {
  box-shadow: inset 0 0 100px rgba(76,255,155,0.08);
}

#digital {
  box-shadow: inset 0 0 100px rgba(76,140,255,0.08);
}

section {
  padding: 4rem 1rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  max-width: 1100px;
  margin: 0 auto 2rem;
  font-size: clamp(2rem, 8vw, 4rem);
}

/* GALLERY */

.carousel {
  position: relative;
  height: 520px;
  max-width: 1100px;
  margin: auto;
}

.card {
  position: absolute;
  width: 66%;
  left: 50%;
  transition: transform 0.5s ease, opacity 0.5s ease;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.card figcaption,
.grid figcaption,
.album figcaption {
  margin-top: 0.65rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.card.left {
  transform: translateX(-115%) scale(0.84);
  opacity: 0.55;
}

.card.center {
  transform: translateX(-50%) scale(1);
  z-index: 3;
  opacity: 1;
}

.card.right {
  transform: translateX(15%) scale(0.84);
  opacity: 0.55;
}

/* MUSIC */

.spotify-player {
  max-width: 760px;
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  background: #111;
  border-radius: 18px;
  box-shadow:
    0 0 22px rgba(76,255,155,0.35),
    0 15px 35px rgba(0,0,0,0.8);
}

.vinyl {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.vinyl img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #050505;
  box-shadow:
    inset 0 0 0 6px rgba(255,255,255,0.08),
    0 0 25px rgba(76,255,155,0.35),
    0 18px 35px rgba(0,0,0,0.8);
  animation: spin 5s linear infinite;
}

.vinyl figcaption {
  margin-top: 0.75rem;
  color: #4cff9b;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spotify-embed h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.spotify-embed p {
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.7);
}

.spotify-embed iframe {
  border: none;
  box-shadow: 0 18px 35px rgba(0,0,0,0.55);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* DIGITAL */

.grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid figure {
  transition: transform 0.4s ease;
  cursor: pointer;
}

.grid figure:hover,
.grid figure:focus {
  transform: translateY(-5px) scale(1.03);
}

.grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* CAPY */

.capy {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem;
  background: limegreen;
  border: none;
  border-radius: 14px;
  animation: bounce 1s infinite;
  cursor: pointer;
  z-index: 10;
}

@keyframes bounce {
  50% {
    transform: translateY(-10px);
  }
}

/* DIGITAL */

.grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid figure {
  cursor: pointer;
  transition: transform 0.4s ease;
}

.grid figure:hover,
.grid figure:focus {
  transform: translateY(-5px) scale(1.03);
}

.grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.grid figcaption {
  margin-top: 0.65rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* MODAL */

.modal:not([open]) {
  display: none;
}

.modal[open] {
  display: grid;
  place-items: center;
}

.modal {
  width: 100%;
  height: 100%;
  padding: 1rem;
  border: none;
  background: rgba(0,0,0,0.86);
  color: white;
}

.modal::backdrop {
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(6px);
}

.modal article {
  width: min(94vw, 850px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.2rem;
  background: linear-gradient(145deg, #15151d, #0d0d12);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  box-shadow:
    0 0 40px rgba(255,255,255,0.08),
    0 30px 80px rgba(0,0,0,0.95);
  animation: zoom 0.35s ease;
}

.modal figure {
  margin-bottom: 1rem;
}

.modal img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  background: #09090d;
}

.modal figcaption {
  display: none;
}

.modal h2 {
  margin-bottom: 0.5rem;
  color: white;
  font-size: 1.8rem;
}

.modal p {
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.close {
  margin-top: 1.2rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: white;
  color: #0a0a0d;
  font-weight: 700;
  cursor: pointer;
}

.close:hover,
.close:focus {
  background: #4cff9b;
}

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

  .grid img {
    height: 360px;
  }
}
/* LARGER SCREENS */

@media (min-width: 760px) {
  header {
    grid-template-columns: 180px 1fr 180px;
    grid-template-areas: "left hero right";
    padding: 2rem;
  }

  .side.left {
    justify-self: start;
  }

  .side.right {
    justify-self: end;
  }

  .spotify-player {
    grid-template-columns: 180px 1fr;
    padding: 1.5rem;
  }

  .vinyl img {
    width: 160px;
    height: 160px;
  }

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