body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* overflow: hidden; -- Removed to allow scrolling */
    background: #111; 
    overflow-x: hidden; /* Prevent horizontal scroll only */
}

/* Page shadows (Vignette) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* Class to show top shadow */
body.scrolled::before {
    opacity: 1;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.view-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
    padding-top: 80px; /* Space for Nav */
    box-sizing: border-box;
}

/* Home view specific centering */
#home-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changed from center to allow manual top spacing */
    position: absolute; /* Keep home view absolute to center correctly on screen */
    top: 0;
    left: 0;
    height: 100vh;
    overflow: hidden;
    padding-top: 25vh; /* Push down by 25% of viewport height */
    padding-bottom: 70px;
    padding-left: 70px;
    padding-right: 70px;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.content h1 {
    /* add black stroke around the text */
    text-shadow: 0 0 10px rgba(0, 0, 0, 5);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 5));  
    color: rgb(255, 255, 255);
    font-size: 5rem;
    margin-bottom: 0rem;
    margin-top: 5rem; /* Move down */
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    mix-blend-mode: difference;
}

.links-container {
    display: flex;
    gap: 4rem;
    pointer-events: auto;
    align-items: center;
}

.social-link {
    display: flex;
    width: 97px;
    height: 97px;
    margin-top: 3rem; /* Move down */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    /* Remove default cursor since we have custom one */
    cursor: none;
}

.social-link img {
    /* drop shadow below doesnt work. fix it. */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 5));   
    width: 130%;
    height: 130%;
    object-fit: contain;
}

.fanart-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 200px; /* Extra space at bottom */
}

/* Elastic Slider Container Position */
#music-control-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.track-title {
    color: white;
    font-family: sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

#curved-loop-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Behind content but in front of background? content is z-index 1. So this is behind content. */
}

/* Ensure SVG inside has pointer events */
#curved-loop-container svg {
    pointer-events: auto;
}

#scrambled-text-container {
    margin-top: 3rem;
    max-width: 600px;
    text-align: center;
    color: #ffffff; /* Fully white */
    font-family: monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    pointer-events: auto;
    padding: 1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); /* Drop shadow */
    /* Optional backdrop for readability if needed */
    /* background: rgba(0,0,0,0.2);
    border-radius: 8px; */
}

/* Scrambled Text Spans */
#scrambled-text-container span {
    display: inline-block;
    transition: color 0.1s;
    cursor: default;
}

/* --- Curved Loop Styles (Inlined from CurvedLoop/styles.css) --- */
.curved-loop-jacket {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.curved-loop-svg {
  user-select: none;
  width: 100%;
  aspect-ratio: 100 / 12;
  overflow: visible;
  display: block;
  font-size: 6rem;
  fill: #ffffff;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  transform: translateY(100px); /* Move down by 100px */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Drop shadow */
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 5));
  
  /* Customization */
  --loop-spread: 4000; /* Increase spread to fit more text (e.g. 4000 for wider) */
  --loop-font-size: 130px; /* Size of the text */
  --loop-curve-height: 500; /* Height of the curve (unitless, e.g. 200, 300, 500) */
  --loop-text-spacing: 2px; /* Letter spacing */
}

