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

body {
  font-family: system-ui, sans-serif;
  background: #0a0a0a;
  color: #eee;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10,10,10,0.98);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Wraps items into rows on very narrow phones */
  gap: 1rem;
}

.logo {
  max-width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 1rem; /* Reduced base gap for phone layouts */
  list-style: none;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #ddd;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  text-decoration: none;
}

/* Hero */
.hero {
  min-height: 60vh; /* Changed from height to min-height to prevent text clipping */
  padding: 120px 1rem 60px; /* Safety padding top so navbar doesn't cover text */
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://via.placeholder.com/1920x1080/111/98FB98?text=ZIGGI') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem); /* Beautiful dynamic scaling without breaking */
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 1rem; /* Dynamic layout breathing room */
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  text-align: center;
  margin-bottom: clamp(1.5rem, 5vw, 3rem);
  color: #98FB98;
}

/* Music Player */
.music-player-container {
  display: grid;
  grid-template-columns: 1fr; /* Stacks column cards on mobile */
  gap: 1.5rem;
}

.main-player, .tracklist {
  background: #1a1a1a;
  padding: clamp(1rem, 4vw, 2rem); /* Dynamic inner padding */
  border-radius: 16px;
  width: 100%; /* Ensures wrappers do not overflow viewport limits */
}

/* Tracklist */
.scrollable-list {
  max-height: 350px; /* Reduced slightly for comfortable scrolling on phones */
  overflow-y: auto;
}

.scrollable-list li {
  padding: 12px;
  cursor: pointer;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.scrollable-list li:hover,
.scrollable-list li.active {
  background: #2a2a2a;
}

/* Contact */
.contact-form {
  max-width: 600px; /* Prevents input forms from stretching awkwardly wide on desktop */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  background: #1a1a1a;
  border: none;
  border-radius: 10px;
  color: white;
  width: 100%; /* Keeps form elements constrained inside safety bounds */
}

/* Desktop Breakpoints */
@media (min-width: 768px) {
  .nav-links {
    gap: 1.5rem;
  }
}

@media (min-width: 900px) {
  .music-player-container {
    grid-template-columns: 1fr 1fr; /* splits side-by-side on desktop */
  }
}
