/* THE SUNKEN PLACE - Dark Grungy Theme */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Bebas+Neue&display=swap');

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

body {
  background: transparent;
  color: #b8b8b8;
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

@keyframes backgroundShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 25%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 0% 75%; }
  100% { background-position: 0% 50%; }
}

/* Spline 3D background */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Dark fog/cloud effect */
.fog-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.fog {
  position: absolute;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 30, 30, 0.8) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(20, 20, 20, 0.6) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 80%, rgba(25, 25, 25, 0.7) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 60%, rgba(15, 15, 15, 0.5) 0%, transparent 35%);
  opacity: 0.15;
}

.fog-1 {
  top: -50%;
  left: -50%;
  animation: fogDrift1 30s ease-in-out infinite;
}

.fog-2 {
  top: -25%;
  left: -25%;
  animation: fogDrift2 40s ease-in-out infinite reverse;
  opacity: 0.1;
}

.fog-3 {
  top: -75%;
  left: -75%;
  animation: fogDrift3 50s ease-in-out infinite;
  opacity: 0.05;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(40, 10, 10, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(35, 15, 15, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(20, 5, 5, 0.5) 0%, transparent 40%);
}

@keyframes fogDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5%, 10%) scale(1.05); }
  50% { transform: translate(10%, 5%) scale(1.1); }
  75% { transform: translate(5%, -5%) scale(1.05); }
}

@keyframes fogDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-8%, 8%) rotate(2deg); }
  66% { transform: translate(8%, -4%) rotate(-2deg); }
}

@keyframes fogDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15%, 10%) scale(1.15); }
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 1000;
}

/* Vignette effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
  z-index: 999;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

/* Header */
header {
  position: sticky;
  top: 0;
  text-align: center;
  padding: 40px 20px;
  padding-bottom: 30px;
  margin-bottom: 40px;
  border-bottom: none;
  background: transparent;
  z-index: 100;
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  animation: flicker 4s infinite;
}

h1 span {
  text-shadow:
    0 0 10px rgba(123, 74, 158, 0.5),
    0 0 20px rgba(123, 74, 158, 0.4),
    0 0 40px rgba(123, 74, 158, 0.3),
    2px 2px 0 #2a2a2a;
}

/* Letters fade from bright to dark */
h1 .l1  { color: #909090; }
h1 .l2  { color: #858585; }
h1 .l3  { color: #7a7a7a; }
h1 .l4  { color: #6f6f6f; }
h1 .l5  { color: #646464; }
h1 .l6  { color: #595959; }
h1 .l7  { color: #4e4e4e; }
h1 .l8  { color: #434343; }
h1 .l9  { color: #383838; }
h1 .l10 { color: #2d2d2d; }
h1 .l11 { color: #262626; }
h1 .l12 { color: #1f1f1f; }
h1 .l13 { color: #181818; }
h1 .l14 { color: #111111; }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

.tagline {
  font-family: 'Special Elite', cursive;
  font-size: 0.9rem;
  color: #3a3a3a;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  animation: morseHelpMe 12s linear infinite;
}

.sink-wrapper {
  display: block;
  margin-top: 20px;
  font-family: 'Special Elite', cursive;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #e8e8e8;
  text-transform: lowercase;
}

.sink-link {
  color: #e8e8e8;
  background: #7b4a9e;
  padding: 2px 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sink-link:hover {
  color: #fff;
  background: #9b5fc2;
}

/* Morse code for "HELP ME": .... . .-.. .--. / -- . */
@keyframes morseHelpMe {
  /* H: .... */
  0%, 0.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  1%, 1.5% { color: #3a3a3a; text-shadow: none; }
  2%, 2.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  3%, 3.5% { color: #3a3a3a; text-shadow: none; }
  4%, 4.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  5%, 5.5% { color: #3a3a3a; text-shadow: none; }
  6%, 6.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  7%, 9% { color: #3a3a3a; text-shadow: none; }
  /* E: . */
  10%, 10.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  11%, 13% { color: #3a3a3a; text-shadow: none; }
  /* L: .-.. */
  14%, 14.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  15%, 15.5% { color: #3a3a3a; text-shadow: none; }
  16%, 18% { color: #fff; text-shadow: 0 0 10px #fff; }
  18.5%, 19% { color: #3a3a3a; text-shadow: none; }
  19.5%, 20% { color: #fff; text-shadow: 0 0 10px #fff; }
  20.5%, 21% { color: #3a3a3a; text-shadow: none; }
  21.5%, 22% { color: #fff; text-shadow: 0 0 10px #fff; }
  22.5%, 25% { color: #3a3a3a; text-shadow: none; }
  /* P: .--. */
  26%, 26.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  27%, 27.5% { color: #3a3a3a; text-shadow: none; }
  28%, 30% { color: #fff; text-shadow: 0 0 10px #fff; }
  30.5%, 31% { color: #3a3a3a; text-shadow: none; }
  31.5%, 33.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  34%, 34.5% { color: #3a3a3a; text-shadow: none; }
  35%, 35.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  36%, 42% { color: #3a3a3a; text-shadow: none; }
  /* M: -- */
  43%, 45% { color: #fff; text-shadow: 0 0 10px #fff; }
  45.5%, 46% { color: #3a3a3a; text-shadow: none; }
  46.5%, 48.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  49%, 52% { color: #3a3a3a; text-shadow: none; }
  /* E: . */
  53%, 53.5% { color: #fff; text-shadow: 0 0 10px #fff; }
  54%, 100% { color: #3a3a3a; text-shadow: none; }
}

/* Music Feed */
.influences-section {
  margin-top: 30vh;
}

.section-title {
  font-family: 'Special Elite', cursive;
  font-size: 0.8rem;
  color: #5a5a5a;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
}

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

.music-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: rgba(13, 13, 13, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-left: 3px solid rgba(42, 10, 10, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(139, 0, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.music-card:hover {
  border-left-color: #8b0000;
  transform: translateX(5px);
  box-shadow: -5px 0 20px rgba(139, 0, 0, 0.1);
  background: rgba(13, 13, 13, 0.25);
}

.album-art {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.3s ease;
}

.music-card:hover .album-art img {
  filter: grayscale(0%) contrast(1.1);
}

/* Scratched overlay on album art */
.album-art::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.02) 45%, transparent 50%),
    linear-gradient(-45deg, transparent 40%, rgba(0,0,0,0.1) 45%, transparent 50%);
  pointer-events: none;
}

.music-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.artist {
  font-family: 'Special Elite', cursive;
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: #999;
  letter-spacing: 0.05em;
}

.meta {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  color: #3a3a3a;
}

.type {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.year::before {
  content: '//';
  margin-right: 5px;
  color: #2a0a0a;
}

.spotify-link {
  color: #1db954;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid #1db95440;
  transition: all 0.2s ease;
}

.spotify-link:hover {
  background: #1db954;
  color: #0a0a0a;
  border-color: #1db954;
}

.soundcloud-link {
  color: #ff5500;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid #ff550040;
  transition: all 0.2s ease;
}

.soundcloud-link:hover {
  background: #ff5500;
  color: #0a0a0a;
  border-color: #ff5500;
}

.youtube-link {
  color: #ff0000;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid #ff000040;
  transition: all 0.2s ease;
}

.youtube-link:hover {
  background: #ff0000;
  color: #0a0a0a;
  border-color: #ff0000;
}

/* Footer */
footer {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(26, 26, 26, 0.5);
  text-align: center;
}

footer p {
  font-size: 0.7rem;
  color: #6a6a6a;
  letter-spacing: 0.2em;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px 15px;
  }

  header {
    padding: 20px 15px 15px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }

  h1 span {
    text-shadow:
      0 0 8px rgba(123, 74, 158, 0.5),
      0 0 15px rgba(123, 74, 158, 0.3),
      1px 1px 0 #2a2a2a;
  }

  .tagline {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }

  .sink-link {
    margin-top: 15px;
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .section-title {
    font-size: 0.7rem;
    margin-bottom: 20px;
  }

  .feed {
    gap: 20px;
  }

  .music-card {
    flex-direction: row;
    align-items: center;
    padding: 15px;
    gap: 15px;
  }

  .album-art {
    width: 80px;
    height: 80px;
  }

  .music-info {
    gap: 5px;
  }

  .artist {
    font-size: 0.7rem;
  }

  .title {
    font-size: 1.2rem;
  }

  .meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.65rem;
  }

  .spotify-link,
  .soundcloud-link,
  .youtube-link {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  footer {
    margin-top: 50px;
    padding-top: 20px;
  }

  footer p {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    padding: 0 10px;
  }

  /* Reduce fog complexity on mobile for performance */
  .fog-2, .fog-3 {
    display: none;
  }

  .fog-1 {
    animation-duration: 40s;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  h1 {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }

  .album-art {
    width: 70px;
    height: 70px;
  }

  .title {
    font-size: 1rem;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}
