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

/* BODY & PAGE */
body {
  background-image: url("images/outer-index.jpeg");
  background-size: contain;
  background-repeat: repeat;
  background-attachment: fixed;
  padding: 30px;
  font-family: "Brush Script MT", cursive;
  color: #000;
}

.page {
  max-width: 1250px;
  margin: auto;
  background-image: url("images/index-bg.jpeg");
  background-size: contain;
  background-repeat: repeat;
  border: 5px solid #000;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header-box { margin: 16px; }

.site-header {
  background-image: url("images/index-header.jpeg");
  background-size: cover;
  background-position: center;
  padding: 18px;
  text-align: center;
  border-radius: 12px;
}

.site-header h1 {
  font-size: 2.6rem;
  color: transparent;
  text-shadow: 2px 2px 0 #000;
  transition: all 0.3s ease;
  display: inline-block;
}

.site-header h1:hover {
  transform: scale(1.08);
  letter-spacing: 8px;
  text-shadow:
    0 0 5px #fff,
    0 0 10px hotpink,
    0 0 20px deeppink;
}

/* GRID LAYOUT */
.grid-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 20px;
  padding: 16px;
  position: relative;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* BOXES */
.box {
  background-image: url("images/index-box.jpeg");
  background-size: 400px 600px;
  border: 2px solid #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #000;
}

.box-header {
  background-image: url("images/mini-header.jpeg");
  background-size: 700px 700px;
  background-repeat: repeat;
  background-position: center;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: bold;
  border-bottom: 2px solid #000;
  text-align: center;
  transition: letter-spacing 0.3s ease;
}

.box-header:hover { letter-spacing: 3px; }

.box-content { padding: 14px; font-size: 0.95rem; line-height: 1.4; }

/* BIG WELCOME BOX */
.big { min-height: 320px; }

.welcome-box .box-content {
  text-align: center;
  font-size: 1.3rem;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ABOUT ME BOX */
.big-about {
  min-height: 200px;
  max-height: 220px;
  overflow-y: auto;
}

/* FLOATING MUSIC BUTTON */
.music-box {
  position: absolute;
  top: 305px;
  left: -45px;
  transform: rotate(-10deg);
}

.music-box img {
  width: 150px;
  transition: all 0.3s ease;
}

.music-box img:hover {
  transform: scale(1.3) rotate(10deg);
  cursor: pointer;
}

/* LEFT / RIGHT COLUMN SIZING */
.nav-box { height: 200px; }
.nav-box .box-content { max-height: 150px; overflow-y: auto; }

.song-box { height: 180px; }
.song-box .box-content { max-height: 120px; overflow-y: auto; }

.status-box {
  height: 120px;
}

.carousel-track img {
  height: 100px;
  width: auto;
  flex-shrink: 0;
}

.status-box .currently-content { height: 80px; overflow-y: auto; }

/* CENTERING UTILITIES */
.center-content { display: flex; justify-content: center; align-items: center; }

/* SPINNING FLOWER BUTTON */
.button {
  position: absolute;
  top: 240px;
  right: 55px;
  width: 30px;
  transform-origin: right center;
  animation: spin 4s linear infinite;
  transition: transform 0.3s ease;
}

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

.button:hover { animation-play-state: paused; transform: rotate(0deg) scale(1.2); }

/* NAV LINKS */
.column.left .box-content a {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  color: black;
  text-decoration: none;
  transition: all 0.2s ease;
}

.column.left .box-content a:hover {
  background-color: #ce6f8f;
  color: white;
  font-weight: bold;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
}

a:visited { color: black; }

/* ===========================
   BOTTOM BUTTON SCROLL
   =========================== */
.carousel-box { margin: 0 16px 16px 16px; }

.carousel-box .box-content {
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 12px;
  width: max-content;
  animation: scrollCarousel 20s linear infinite;
}

.carousel-track img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.carousel-box:hover .carousel-track { animation-play-state: paused; }

@keyframes scrollCarousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SPARKLE EFFECT */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: hotpink;
  border-radius: 50%;
  pointer-events: none;
  animation: explode 0.6s ease-out forwards;
}

@keyframes explode {
  to { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.5); }
}

/* MOBILE */
@media (max-width: 800px) {
  .grid-wrapper { grid-template-columns: 1fr; }
}
