body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;

  /* placeholder background color in case image doesn’t load */
  color: #333;
  overflow-x: hidden; /* prevent sideways scroll from rotation */
}

body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140vw;
  height: 140vh;
  background-image: url("images/header-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  z-index: -1;
  transform: rotate(var(--bg-rotation, 0deg));
}

section {
  text-align: center;
}

header {
  background-image: url("images/header-bg.png"); /* your image */
  background-size: 100% 100%;  /* force width and height to match header */
  background-position: center;
  background-repeat: no-repeat;

  padding: 2rem;
  color: black;
  padding: 1rem;
  text-align: center;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

p {
    text-align: center;
}

a {
  text-align: center;
  text-decoration: none;
  color: inherit; /* optional: keeps text the same color as surrounding text */
}

nav a {
  color: black;
  margin: 0 1rem;
  text-decoration: none;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #005ecc;
}

form {
  margin: 20px auto;
  max-width: 300px;
  display: flex;
  gap: 10px;
}

input[type="email"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

form button {
  padding: 8px 15px;
  border: none;
  background: #0077ff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

form button:hover {
  background: #005ecc;
}

#music-view {
  display: grid;
  grid-template-columns: repeat(1fr);
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

.album-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px
}

.album-tile img {
  width: 100%;
  aspect-ratio: 1 / 1; /* ensures a perfect square */
  object-fit: cover;
  border-radius: 8px; /* optional rounded corners */
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.album-tile img:hover {
  transform: scale(1.05); /* subtle zoom on hover */
}

.album-name {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #333;
}

.album-blurb {
  font-size: 0.95rem;
  color: #555; /* lighter color than title */
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.vibe {
  display: inline-block;
  animation: vibrate 1s ease-in-out infinite;
}

@keyframes vibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

#about-blurb {
  margin-left: 15vw;
  margin-right: 15vw;
}

#pics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 4vw;
  gap: 30px;
}

#pics img {
  max-width: calc(100% - 14vw);
  height: auto;
  flex: 1 1 auto;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 80vh; /* adjust height as needed */
  overflow: hidden;
  max-height: 20vh;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures video fills container */
  z-index: 1;
  max-width: 100vw;
}

#greeting {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
  pointer-events: none;
  white-space: nowrap;
}

#contact-img {
  max-width: 100%;
  height: auto;
  flex: 1 1 auto;
}

#greeting h1.spin {
  margin: 0;
}

.spin {
  display: inline-block;
  animation: spin 5s linear infinite;
}

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

.soundcloud-container {
  width: 90vw;
  margin: 5vw auto; /* keeps spacing around the whole block */
}

.soundcloud-attribution {
  font-size: 10px;
  color: #cccccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Interstate, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Garuda, Verdana, Tahoma, sans-serif;
  font-weight: 100;
  margin: 0; /* remove extra space above */
  padding-top: 2px; /* optional small gap if you want it */
}

.parallax {
  position: relative;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.parallax-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translate(-50%, -50%); /* perfectly center both horizontally and vertically */
  object-fit: contain;
  will-change: transform;
  /*transition: transform 0.05s linear;*/
}

@font-face {
  font-family: "MyCustomFont";
  src: url("fonts/NanumMyeongjo-Regular.ttf") format("truetype");
}

body {
  font-family: "MyCustomFont", sans-serif;
}

.social-links {
  text-align: center;
  margin-top: 10px;
}

.social-links a {
  color: black; /* icon color */
  margin: 0 10px;
  font-size: 20px; /* icon size */
  transition: color 0.2s;
}

.social-links a:hover {
  color: #ff0000; /* highlight color on hover */
}
