@import url("https://use.typekit.net/bed3tea.css");


/* Colors */
:root {
--color-bg: #1E2D25;
--color-highlight: #F5B642;
--color-text: #F6F4EF;
--color-neutral:#B8B9B5;
}

html {
  scroll-behavior: smooth;
}


body {
background: var(--color-bg);
color: var(--color-text);
font-family: "fairplex-narrow", serif;
margin: 0;
padding: 0;
position: relative; /* IMPORTANT: permet que absolute funcioni bé */
min-height: 100%;
}

.hero-container {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 3;
width: fit-content;
}


.hero-logo {
height: auto;
}


.hero-menu {
display: flex;
justify-content: space-between;
font-size: 2rem;
font-weight: 500;
color: var(--color-highlight);
width:100%;
font-family: "bely-display", serif;
font-size: 1.5rem;
}


.hero-menu a {
text-decoration: none;
color: var(--color-highlight);
}

.hero-menu a:hover {
    color:#ffdd9a;
    transform: translateY(-2px);
    background: rgba(245, 182, 66, 0.2);
    box-shadow: 0 0 18px rgba(245, 182, 66, 0.6); /* glow suau en el teu highlight */
}

section.hero {
    width: 100%;
    top:0;
    margin: 0;
    padding: 0;
    position: absolute; /* assegura que ::after es posicioni respecte la hero */
}

section.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5%; /* ajusta a 5%-10% segons vulguis */
    background: linear-gradient(to bottom, rgba(30, 45, 37, 0) 0%, var(--color-bg) 100%);
    pointer-events: none;
    z-index: 1;
}


.hero-img {
    width: 100%;
    object-fit: cover;  /* escalar la imatge per omplir tot el contenedor */
    display: block;
}


.hero-text-column {
    width: 50%;
    margin-left: auto;   /* empeny cap a la dreta */
    margin-top: 20vh;
    margin-right: 4rem;  /* baixa la columna 40% de l'alçada de la pantalla */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--color-text);
    z-index: 3;
    position: relative; /* ja està bé */
}

.hero-text-column p {
    font-family: "fairplex-narrow", serif;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}


.new-release-columns {
    display: flex;
    align-items:center; /* centrat verticalment */
    justify-content: space-between;
    gap: 2rem;           /* espai entre columnes */
}

.release-text {
    flex: 2;
    padding-left: 1rem;
    font-size: 1.5rem; /* separació de la imatge */
}

.song-title {
    font-weight: 700; /* bold */
}

.release-image {
    flex: 1;
}

.release-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .llan-image img {
      max-width: 250px;
      height: auto;
      border-radius: 12px;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .llan-image img:hover {
      opacity: 1;
      transform: scale(1.1);
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(245, 182, 66, 0.8);
      }

  .btn-presave {
      display: inline-block;
      background-color: var(--color-highlight);
      color: var(--color-bg);
      font-weight: 700;
      font-size: 1.5rem;      /* més gran */
      padding: 1rem 2rem;     /* més gran */
      border-radius: 10px;
      text-decoration: none;
      transition:
          transform 0.15s ease,
          background-color 0.15s ease,
          box-shadow 0.15s ease;
      margin-top: 0.5rem;
  }

  .btn-presave:hover {
      background-color: #ffc85c;
      transform: translateY(-2px);
      box-shadow: 0 0 18px rgba(245, 182, 66, 0.6); /* glow suau en el teu highlight */
  }

  /* ===== LISTEN SECTION ===== */
  .listen-section {
    margin-top: 8rem;
  }


  /* Bandcamp snippet */
  .listen-bandcamp {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
  }

  .bandcamp-intro {
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--color-neutral);
    font-size: 1.3rem;
  }

  .listen-bandcamp a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.8); /* fons blanc gairebé opac */
    padding: 1rem 1.5rem;
    border-radius: 12px; /* cantons rodons */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* lleu profunditat */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listen-bandcamp a:hover {
    transform: translateY(-3px);
    background-color: #ffc85c;
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(245, 182, 66, 0.6); /* glow suau en el teu highlight */
}

.listen-bandcamp a img {
    width: 150px; /* més gran */
    height: auto;
    display: block;
}

  /* Spotify i Youtube */
  .listen-main-platforms {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .listen-card {
      flex: 1;
      display: flex;               /* convertim en flex container */
      flex-direction: row;      /* elements apilats verticalment */
      align-items: center;         /* centra horitzontalment */
      justify-content: center;     /* centra verticalment dins de la targeta */
      background: rgba(255,255,255,0.05);
      border-radius: 10px;
      padding: 1rem 0.5rem;        /* més espai dins */
      text-align: center;
      text-decoration: none;
      color: var(--color-neutral);
      font-family: "fairplex-narrow", serif;
      transition: transform 0.2s ease, background 0.2s ease;
      gap: 1rem;                   /* separa icona i text */
  }

  .listen-card img {
      width: 60px;                 /* icona més gran */
      height: auto;
  }

  .listen-card span {
      font-size: 1.4rem;           /* text més gran */
      font-weight: 600;
  }

  .listen-card:hover {
    transform: translateY(-4px);
    background: rgba(245, 182, 66,0.2);
    box-shadow: 0 0 18px rgba(245, 182, 66, 0.6); /* glow suau en el teu highlight */
  }


  /* Icons de la resta */
  .listen-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .listen-icons img {
    height: 36px;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .listen-icons img:hover {
    opacity: 1;
    transform: scale(1.1);
    border-radius: 10px;
    background: rgba(245, 182, 66,0.2);
    box-shadow: 0 0 10px rgba(245, 182, 66, 0.8); /* glow suau en el teu highlight */
  }



  /* ----- BIO SECTION ----- */

  .bio-section {
    position: relative;
    padding: 2rem;
    margin-left: 4rem;
    margin-right: 4rem;
    margin-bottom: 4rem;
    z-index: 3;
  }


  .bio-content {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 3rem;
  }

  /* Text */
  .bio-text {
    flex: 3;
    font-family: "fairplex-narrow", serif;
    font-style: italic;
    line-height: 1.6;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .bio-outro{
    align-self: baseline;
  }


  /* Imatge */
  .bio-image {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;

  }

  .bio-image img {
    width: 400px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }

  .fireflies-container {
    position: absolute;   /* Fixa dins del flux, però segueix el scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: auto;         /* IMPORTANT - deixar que JS la defineixi */
    pointer-events: none; /* Per no bloquejar clics */
    overflow: hidden;     /* Per evitar “escape” de fireflies */
    z-index: 1;          /* Sota el contingut */
  }

  .firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(245,182,66,0.8);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(245,182,66,0.8);
    filter: blur(2px); /* suavitzem els contorns */
    opacity: 0.5 + Math.random() * 0.5;
    pointer-events: none;
  }

h2 {
  font-family: "bely-display", serif;
  color: var(--color-highlight);
  margin-bottom: 2rem;
  font-size: 3rem;
}

h3 {
  font-family: "bely-display", serif;
  color: var(--color-highlight);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  text-align: left;
}

p {
line-height: 1.6;
font-style: italic;
}


footer {
text-align: center;
padding: 0.5rem 1rem;
}

footer p {
    color: var(--color-neutral);
}

.lang-badge {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-family: "fairplex-narrow", serif;
  color: var(--color-text);
  cursor: pointer;
  z-index: 999;
}

.lang-badge .lang-selected {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-badge img {
  width: 22px;
  height: auto;
  display: inline-block;
}

/* Dropdown ocult per defecte */
.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--color-bg, #fff);
  border: 1px solid #ccc;
  border-radius: 6px;
  display: none;
  min-width: 80px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lang-dropdown li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
}

.lang-dropdown li:hover {
  background-color: rgba(0,0,0,0.05);
}

/* Mostrar dropdown al hover del badge */
.lang-badge:hover .lang-dropdown {
  display: block;
}

.llanc-section {
  position: relative;
  padding: 2rem;
  margin-top: 10vh;
  margin-left: 4rem;
  margin-right: 4rem;
  margin-bottom: 4rem;
  z-index: 3;
}

.llanc-text {
  flex: 3;
  font-family: "fairplex-narrow", serif;
  font-style: italic;
  line-height: 1.6;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom:4rem;
}

.llan-columns {
    display: flex;
    align-items:center; /* centrat verticalment */
    justify-content: space-between;
    gap: 2rem;
    flex-direction: column;
    width: 250px;
    height:350px;
    text-align: center;     /* espai entre columnes */
}

.llan-list {
    margin-top: 6rem;
    margin-bottom: 20rem;
    display: flex;
    align-items:center; /* centrat verticalment */
    justify-content:space-between;
    gap: 3rem;
    align-items: center;        /* espai entre columnes */
}



/* ===== RESPONSIVE: max-width 1280px ===== */
@media (max-width: 1280px) {

  main{
    display: flex;
    flex-direction:column;

  }
  /* Hero*/
  section.hero {
    height: auto;
    max-width: 100vw;
    overflow: hidden;
    position:static;
    order:-1

  }

  section.hero::after {
      content: none; /* elimina el difuminat*/
    }


  .hero-img {
    height: auto;
    display: block;
    object-fit: cover;

    /* difuminat a baix de la imatge*/
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
  }

  /* Logo*/
  .hero-container {
    position: static;
    margin: 1rem auto;
    max-width: 80%; /* reduït per evitar overflow*/
    transform: none;
  }

  .hero-logo{
    width: -webkit-fill-available;
  }

  /* Text*/
  .hero-text-column {
    position: static;
    width: 100%;
    padding: 0rem;
    transform: none;
    justify-content: flex-start;
    text-align: justify; /* text justificat*/
  }

  .hero-text-column h2 {
    font-size: 2.5rem; /* lleugerament més petit per mobile*/
    margin-bottom: 1.5rem;
  }

  .hero-text-column p {
    font-size: 1.5rem;
    line-height: 1.5;
  }



  /* Release*/
  .new-release-columns {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .release-text {
    flex: none;
    width: 90%;
    max-width: 600px;
    text-align: justify; /* text justificat*/
    padding-left: 0;
    overflow-wrap: break-word; /* evita overflow horitzontal*/
  }

  .release-image {
    flex: none;
    width: 80%;
    max-width: 300px;
  }

  .release-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
  }

  .btn-presave {
    display: block;
    margin: 1rem auto 0 auto; /* centra el botó*/
    text-align: center;
  }

  .listen-section {
    margin-top: 8rem;
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-size: 1.5rem;
}
  /* Bio*/
  .bio-section {
    margin-top: 4rem;
    width: 90%;
    max-width: 600px;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
  }

  .bio-content{
    flex-direction: column;
  }

  .bio-image {
    justify-content: center;
}
  .llan-list {
    flex-direction: column;
    gap:6rem;
  }
  /* Footer*/
  footer {
    padding: 1rem;
    text-align: center;
  }

  footer p {
    color: var(--color-neutral);
    text-align: center;
  }


  .lang-badge {
    position: relative; /* dins del flux del main*/
    display: flex;
    justify-content: center; /* centrat horitzontalment*/
    align-items: center;
    gap: 0.4rem;
    padding: 1rem;
    margin-top: 2rem;
    z-index: 1000; /* per sobre del contingut*/
  }

  .lang-badge img {
    width: 44px; /* doble mida respecte desktop*/
    height: auto;
    display: inline-block;
  }

  /* Dropdown inicialment ocult*/
  .lang-badge .lang-dropdown {
    display: none; /* desapareix per defecte*/
    position: absolute;
    top:auto;
    bottom: 100%; /* surt cap a dalt del botó*/
    left: 50%;    /* centrat horitzontalment respecte la badge*/
    transform: translateX(-50%);
    flex-direction: column;
    gap: 0.8rem;
    background: var(--color-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1001; /* per sobre de tot*/
  }

  .lang-badge .lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.3rem 0;
  }

  .lang-badge .lang-dropdown img {
    width: 44px;
    height: auto;
  }

  /* Toggle sense hover: mostrem al tocar*/
  .lang-badge:active .lang-dropdown,
  .lang-badge:focus-within .lang-dropdown {
    display: flex;
  }
}
