:root {
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
}

@font-face {
  font-family: "Shard";
  src: url("../fonts/Shard-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

body {
  background: url("../img/skull.png") center center / cover no-repeat fixed;
  position: relative;
}

section[id] {
  scroll-margin-top: 8vh;
}

/* Overlay to dim the background */
body::before {
  content: "";
  position: fixed;       /* stays in place */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(229, 231, 235, 0.9); /* gray-200 tint, 90% opacity */
  pointer-events: none;  /* don’t block clicks */
  z-index: 0;            /* behind content */
}

/* Make sure content is above overlay */
body > * {
  position: relative;
  z-index: 1;
}

#main, #about, #contact {
  margin-top: 5vh;
}

.topnav {
  height: auto;
  padding: 1rem 0;
  background: black;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.topnav ul {
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav a {
  font-family: "Shard", sans-serif; /* your custom font */
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
  transition: color 0.3s ease;
}

.topnav a:hover {
  color: #9ca3af; /* gray-400 hover color */
}

#main {
  height: 85vh; /* less aggressive full-height on small screens */
  padding: 10% 5%;
  justify-content: center;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.band-title {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Shard", sans-serif;
  font-size: 4.5rem;
  line-height: 0.9;
  pointer-events: none;
}

.fade-in {
  opacity: 1;
  animation-name: fadeInOpacity;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-duration: 2s;
}

.text-red {
  color: #d23530;
}

.text-white {
  color: white;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  max-height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;     /* keeps image proportions */
}

#about {
  padding: 10% 6%;
  background-color: rgba(0,0,0,0.75);
  color: #f1f1f1;
}

.about-container {
  grid-template-columns: 1fr 1fr; /* two equal halves */
  align-items: start;
  display: flex;
  flex-direction: column; /* stack by default (mobile-first) */
  gap: 3rem;
}

.bio h2, .music-player h2 {
  font-family: "Shard", sans-serif;
  font-size: 36px;
  margin-bottom: 1rem;
}

.bio p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 90%;
}

.music-player {
  width: 100%;
  .band-info {
    font-size: 10px;
    color: #cccccc;
    line-break: anywhere;
    word-break: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;
    font-weight: 100;
  }
}

.music-player iframe {
  width: 100% !important; /* force full width on mobile */
}

@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#contact {
  padding: 5% 10%;
  background-color: #111;      /* dark background */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact h2 {
  font-family: "Shard", sans-serif;
  font-size: 36px;
  margin-bottom: 2rem;
  text-align: center;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.05);  /* subtle overlay */
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

#contact label {
  font-size: 16px;
  margin-bottom: 0.25rem;
}

#contact input,
#contact textarea {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  resize: vertical;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px #9ca3af; /* subtle gray-400 focus ring */
}

#contact button {
  background: #9ca3af; /* Tailwind gray-400 */
  color: black;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: 18px;
  font-family: "Shard", sans-serif;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease, transform 0.2s ease;
}

#contact button:hover {
  background: white;
  transform: scale(1.05);
}

#form-status {
  margin-top: 1rem;
  font-size: 16px;
  font-weight: 500;
  font-family: "Shard", sans-serif;
}

/* Larger screens: go back to side-by-side + bigger fonts */
@media (min-width: 900px) {  /* ≈ tablets & up — safe breakpoint for stacking */
  .topnav {
    height: 7vh;
    padding: 0;
  }

  .topnav ul {
    flex-direction: row;
    gap: 4rem;
  }

  .topnav a {
    font-size: 34px;
  }

  .band-title {
    font-size: 10rem;
    bottom: 5%;
  }

  #main {
    height: 95vh;
    padding: 5%;
  }

  .about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  #about {
    padding: 5% 10%;
  }
}

@media (max-width: 380px) {
  .band-title {
    font-size: 3.8rem;
  }

  .topnav a {
    font-size: 1.6rem;
  }
}
