/* Reset */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

body {
  line-height: 1.5;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f4f4f4;
  color: #111;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
  line-height: 1.6;
}

ul {
  padding-left: 0;
  margin-bottom: 1rem;
}

a {
  color: #0073e6;
  text-decoration: none;
}

/* Container */
.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* Header */
header {
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  overflow: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.header-logo-link {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  transform: translateY(var(--logo-shift, 0px));
}

.header-logo {
  width: 150px;
  height: auto;
}

.header-text {
  transform: translateY(var(--text-shift, 0px));
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  will-change: transform, opacity;
  line-height: initial;
}

.header-text-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}


.header-text h1 {
  font-size: 5rem;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 600;
}

.header-text h3 {
  font-size: 2rem;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
}

/* Main */
main {
  padding: 1rem 0;
}

main h2 {
  margin: 2rem 0 1rem;
  font-size: 3rem;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
}

main p {
  margin-bottom: 1rem;
}

#tribute-link {
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
}

.tribute-link {
  text-align: center;
}

/* Hidden Image */
#img-div {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

#image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

#img-caption {
  display: none;
}

.album-list li,
.member-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.album-list img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0.75rem;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.member-list img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  margin-right: 0.75rem;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.fun-facts {
  padding-left: 1rem;
}

/* Footer */
footer {
  background-color: #111;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 1000;
}

.footer i.fa-heart {
  color: red;
}

/* Zoom-out background animation */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/header-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center calc(0px - var(--scroll-y, 0px));
  z-index: 0;
  transform: scale(1.1);
  animation: zoomOut 5s ease-out forwards;
  transition: background-position 0.1s linear;
}


/* Apply dark overlay di ::before */
header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity, 0.3));
  z-index: 1;
  transition: background 0.3s ease-out;
  pointer-events: none;
}


/* Ensure actual content stays above pseudo elements */
.header-inner {
  position: relative;
  z-index: 2;
}

/* Animation keyframes */
@keyframes zoomOut {
  0% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1.0);
  }
}

/* Make the header sticky in the background */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* full screen */
  z-index: -1;
  /* di belakang main content */
}

/* Create spacer so content doesn't go behind fixed header */
.header-spacer {
  height: 100vh;
  /* same as header height */
}

/* Add fade-out effect as main content scrolls over header */
main {
  position: relative;
  background-color: #f4f4f4;
  backdrop-filter: blur(1px);
  z-index: 1000;
}

.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, calc(var(--scroll-btn-shift, 0px)));
  text-align: center;
  text-decoration: none;
  opacity: 0.85;
  z-index: 3;
  animation: fadeInUp 1.5s ease-out;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}


.scroll-arrow {
  animation: bounce 1.4s infinite;
  display: block;
  margin: 0.7rem auto;
  opacity: 0.8;
}

.scroll-text {
  font-size: 1rem;
  margin-top: 0.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  font-family: "Bebas Neue", sans-serif;
  opacity: 0.8;
}

/* Bouncing arrow animation */
@keyframes bounce {

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

  50% {
    transform: translateY(6px);
  }
}

/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {

  header {
    height: 100svh;
  }

  .header-text h1 {
    white-space: nowrap;
    font-size: 4rem;
  }

  .header-text h3 {
    white-space: nowrap;
    font-size: 1.5rem;
  }

  main h2 {
    font-size: 2.5rem;
  }

  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/header-bg-mobile.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center calc(0px - var(--scroll-y, 0px));
    z-index: 0;
    transform: scale(1.1);
    animation: zoomOut 5s ease-out forwards;
    transition: background-position 0.1s linear;
  }
}