/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #3d575e;
  line-height: 1.6;
  animation: saturateLoop 20s infinite alternate ease-in-out;
  will-change: filter;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

a:focus-visible {
  outline: 2px solid #a3bfc5;
}
a:focus:not(:focus-visible) {
  outline: none;
}

/* HERO */
.hero {
  position: relative;
  text-align: center;
  height: 100vh;
  background: 
    linear-gradient(135deg, rgba(77, 105, 112, 0.6) 0%, rgba(105, 132, 139, 0.6) 60%, rgba(163, 191, 197, 0.6) 100%),
    url('img/background.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(77, 105, 112, 0.25);
}

.hero-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transition: transform 0.8s ease;
}

.hero-image:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: 3.5rem;
  margin-top: 25px;
  letter-spacing: 1.2px;
  color: #f4e8da;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(77, 105, 112, 0.6);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #e2dbd0;
  margin-top: 10px;
  z-index: 2;
}

/* Hero fadein and move */
.hero-image {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeUp 2.5s forwards;
}
.hero-title, .hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 2.5s forwards;
}
.hero-subtitle { animation-delay: 0.5s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}


.scroll-down {
  position: absolute;
  bottom: 40px;
  color: #e2dbd0;
  font-size: 2rem;
  text-decoration: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes saturateLoop {
  0%, 100% {
    filter: saturate(1);  /* normal color */
  }
  50% {
    filter: saturate(0.4);  /* 0 = desaturated */
  }
}

.hero-lines {
  position: relative;
  width: 100vw;       /* width = viewport */
  height: 50px;
  margin-top: 30px;
  pointer-events: none; /* does not interfere with interactions */
  user-select: none;   /* not selectable */
  object-fit: none;    /* do not resize */
  z-index: 2;
}

/* On smaller screens, hero image slightly smaller*/
@media (max-width: 600px) {
  .hero-image {
    width: 180px;
    height: 180px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

/* NAVIGATION */
.nav {
  text-align: center;
  background: #86a2a9;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(77, 105, 112, 0.1);
  
}

.nav a {
  margin: 0 18px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
  outline-offset: 3px; /* for focus */
}

/* Focus visibile for accessibility */
.nav a:focus {
  outline: 2px solid #a3bfc5;
  outline-offset: 3px;
}

.nav a:hover {
  color: #a3bfc5;
}

.nav,
.section h2 {
  font-family: 'Merriweather', serif;
}

/* SECTIONS */
.section {
  padding: 80px 20px; /* padding reduced for mobile */
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background-color: #ffffff;
  color: #3d575e;
  opacity: 0;
  transform: translateY(20px);
  transition: background-color 0.6s ease, opacity 1s ease, transform 1s ease;
}

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

@media (min-width: 600px) {
  .section {
    padding: 100px 20px;
  }
}

.section.alt {
  background: #86a2a9;
  color: #f4e8da;
}

p.justify {
	text-align: justify;
	padding-left: 50px;
	padding-right: 50px;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #3d575e;
}

/* RELEASE GRID */
.releases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* minmax more flexible */
  gap: 40px;
  justify-items: center;
}

.release {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.release img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.release:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.track-title {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #3d575e; /* text color */
  letter-spacing: 0.3px;
}

/* LISTEN */
.streaming-links {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.platform {
  text-align: center;
  color: #3d575e;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.platform:hover {
  opacity: 0.9;
}

.platform p {
  font-size: 1rem;
  font-weight: 500;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 50px 0;
  font-size: 0.9rem;
  color: #ffffff;
  background: #86a2a9;
  letter-spacing: 0.3px;
}
