/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00ff00;
  --secondary-color: #0080ff;
  --accent-color: #ff0080;
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --text-color: #ffffff;
  --border-color: #333333;
  --glow-color: #00ff0050;
}

body {
  font-family: "Courier Prime", monospace;
  background: var(--bg-dark);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Scanlines Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    transparent 0%,
    rgba(0, 255, 0, 0.03) 50%,
    transparent 100%
  );
  background-size: 100% 4px;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

/* Winamp-style Player */
.winamp-player {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 350px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.winamp-player.minimized {
  height: 40px;
  overflow: hidden;
  transform: translateY(-10px);
  opacity: 0.6;
  filter: blur(1px);
}

.winamp-header {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: black;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  font-weight: bold;
}

.winamp-title {
  font-size: 11px;
  text-transform: uppercase;
}

.winamp-controls {
  display: flex;
  gap: 5px;
}

.winamp-btn {
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  color: black;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
}

.winamp-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

.winamp-main {
  padding: 10px;
  background: var(--bg-darker);
}

.winamp-display {
  background: #000;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-info {
  flex: 1;
  color: var(--primary-color);
}

.track-title {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.track-time {
  font-size: 10px;
  color: var(--secondary-color);
  margin-top: 2px;
}

.equalizer {
  display: flex;
  gap: 2px;
  align-items: end;
  height: 30px;
}

.eq-bar {
  width: 3px;
  background: var(--primary-color);
  animation: eq-dance 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) {
  height: 10px;
  animation-delay: 0s;
}
.eq-bar:nth-child(2) {
  height: 20px;
  animation-delay: 0.1s;
}
.eq-bar:nth-child(3) {
  height: 15px;
  animation-delay: 0.2s;
}
.eq-bar:nth-child(4) {
  height: 25px;
  animation-delay: 0.3s;
}
.eq-bar:nth-child(5) {
  height: 12px;
  animation-delay: 0.4s;
}

@keyframes eq-dance {
  0% {
    height: 5px;
  }
  100% {
    height: var(--height, 20px);
  }
}

.winamp-controls-panel {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 10px;
}

.player-btn {
  width: 30px;
  height: 25px;
  background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  cursor: pointer;
  font-size: 12px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.player-btn:hover {
  background: linear-gradient(145deg, #4a4a4a, #3a3a3a);
  box-shadow: 0 0 5px var(--glow-color);
}

.player-btn:active {
  transform: scale(0.95);
}

.volume-slider {
  flex: 1;
  margin-left: 10px;
  height: 5px;
  background: var(--bg-dark);
  outline: none;
  border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 5px var(--glow-color);
}

.progress-container {
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-dark);
  outline: none;
  border-radius: 4px;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--secondary-color);
  cursor: pointer;
  border-radius: 50%;
}

/* Mini Video Window in Winamp */
.mini-video-container {
  margin-top: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-darker);
  overflow: hidden;
}

.mini-video-header {
  background: var(--bg-dark);
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.mini-video-title {
  font-size: 9px;
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
}

.mini-video-expand {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mini-video-expand:hover {
  background: rgba(0, 255, 0, 0.1);
  color: var(--accent-color);
}

.mini-video-content {
  padding: 4px;
}

#mini-video-player {
  width: 100%;
  height: 120px;
  border-radius: 3px;
  background: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

#mini-video-player:hover {
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

#mini-youtube-player {
  width: 100%;
  height: 120px;
  border-radius: 3px;
  background: #000;
  cursor: pointer;
  transition: all 0.2s ease;
}

#mini-youtube-player:hover {
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Fullscreen Video Player */
#video-player {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10010;
  width: 80vw;
  max-width: 800px;
  height: auto;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
  background: #000;
  display: none;
}

#video-player.fullscreen-active {
  display: block;
}

/* Fullscreen YouTube Player */
#youtube-player {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10010;
  width: 80vw;
  max-width: 800px;
  height: 60vh;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
  background: #000;
  display: none;
}

#youtube-player.fullscreen-active {
  display: block;
}

.playlist-container {
  border-top: 1px solid var(--border-color);
  max-height: 400px;
  overflow: hidden;
}

.playlist-header {
  background: var(--bg-dark);
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
  font-size: 10px;
  font-weight: bold;
}

.playlist-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 12px;
}

.playlist {
  background: var(--bg-darker);
  max-height: 350px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-dark);
}

.playlist::-webkit-scrollbar {
  width: 8px;
}

.playlist::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

.playlist::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.playlist-item {
  padding: 4px 8px;
  font-size: 10px;
  color: var(--text-color);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-item:hover {
  background: rgba(0, 255, 0, 0.1);
  color: var(--primary-color);
}

.playlist-item.active {
  background: var(--primary-color);
  color: black;
  font-weight: bold;
}

.playlist-category-header {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: black;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 4px 0;
  border-radius: 3px;
  text-align: center;
  letter-spacing: 1px;
}

.track-duration {
  font-size: 9px;
  color: var(--secondary-color);
}

.track-type {
  font-size: 8px;
  color: var(--accent-color);
  text-transform: uppercase;
}

.track-credits {
  font-size: 7px;
  color: var(--text-color);
  opacity: 0.7;
  font-style: italic;
  margin-top: 2px;
  text-transform: lowercase;
}

/* Info Box for Sections */
.info-box {
  max-width: 800px;
  margin: 0 auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
}

/* Glitch Effect */
.glitch {
  position: relative;
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: var(--secondary-color);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: var(--accent-color);
  z-index: -2;
}

@keyframes glitch {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-2px);
  }
  40% {
    transform: translateX(-2px);
  }
  60% {
    transform: translateX(2px);
  }
  80% {
    transform: translateX(2px);
  }
}

@keyframes glitch-1 {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-2px);
  }
  40% {
    transform: translateX(-2px);
  }
  60% {
    transform: translateX(2px);
  }
  80% {
    transform: translateX(2px);
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(2px);
  }
  40% {
    transform: translateX(2px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(-2px);
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 10006;
  position: relative;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--accent-color);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--accent-color);
}

/* Navigation */
.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::before {
  content: "> ";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover::before {
  opacity: 1;
  color: var(--primary-color);
}

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--glow-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 255, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 128, 255, 0.1) 0%,
      transparent 50%
    );
}

/* Terminal */
.terminal {
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.terminal-header {
  background: var(--border-color);
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background: #ff5f56;
}
.terminal-button.yellow {
  background: #ffbd2e;
}
.terminal-button.green {
  background: #27ca3f;
}

.terminal-body {
  padding: 1.5rem;
  font-family: "Courier Prime", monospace;
  line-height: 1.8;
}

/* Typewriter Effect */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  margin: 0;
  letter-spacing: 0.1em;
  animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
  opacity: 0;
}

.typewriter.active {
  opacity: 1;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

/* Sections */
.section {
  padding: 4rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Pixel Text Effect */
.pixel-text {
  position: relative;
  text-shadow: 1px 1px 0px var(--primary-color),
    2px 2px 0px var(--secondary-color), 3px 3px 0px var(--accent-color);
  animation: pixelGlow 2s ease-in-out infinite alternate;
}

@keyframes pixelGlow {
  0% {
    text-shadow: 1px 1px 0px var(--primary-color),
      2px 2px 0px var(--secondary-color), 3px 3px 0px var(--accent-color);
  }
  100% {
    text-shadow: 1px 1px 5px var(--primary-color),
      2px 2px 10px var(--secondary-color), 3px 3px 15px var(--accent-color);
  }
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.media-item {
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.media-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  transition: left 0.5s ease;
}

.media-item:hover::before {
  left: 100%;
}

.media-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px var(--glow-color);
  transform: translateY(-5px);
}

.media-player h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.media-player audio,
.media-player video {
  width: 100%;
  border-radius: 4px;
  background: var(--bg-dark);
}

.media-player audio {
  height: 40px;
}

.media-player video {
  max-height: 200px;
}

/* Featured Video */
.featured-video {
  background: var(--bg-darker);
  padding: 4rem 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px var(--glow-color);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Games Section */
.games-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.game-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px var(--glow-color);
  transition: all 0.3s ease;
}

.game-video-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px var(--glow-color);
}

.game-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: center;
}

.contact-line {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-line a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-line a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 10px var(--glow-color);
}

.track-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 4px;
  position: relative;
}

.track-clickable::before {
  content: "▶ ";
  opacity: 0;
  color: var(--primary-color);
  font-size: 10px;
  transition: opacity 0.3s ease;
  position: absolute;
  left: -15px;
}

.track-clickable:hover {
  background: rgba(0, 255, 0, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
  text-shadow: 0 0 5px var(--glow-color);
}

.track-clickable:hover::before {
  opacity: 1;
}

.track-clickable:active {
  transform: translateX(8px) scale(0.98);
  background: rgba(0, 255, 0, 0.2);
}

.profile-image {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px var(--glow-color);
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--glow-color);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pixels {
  display: flex;
  gap: 0.5rem;
}

.pixel {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  animation: pixelFloat 2s ease-in-out infinite;
}

.pixel:nth-child(2) {
  animation-delay: 0.2s;
}
.pixel:nth-child(3) {
  animation-delay: 0.4s;
}
.pixel:nth-child(4) {
  animation-delay: 0.6s;
}
.pixel:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes pixelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: flex;
    position: fixed;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 10006; /* Above everything */
  }

  .hamburger.active {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid var(--primary-color);
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    z-index: 10005;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
  }

  .nav.mobile-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-menu-backdrop {
    display: none;
  }

  .mobile-menu-backdrop.active {
    display: none;
  }

  .nav-link {
    text-align: center;
    padding: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-color) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .nav-link:hover {
    background: rgba(0, 255, 0, 0.15);
    color: var(--primary-color) !important;
    transform: translateX(10px);
    text-shadow: 0 0 10px var(--glow-color);
  }

  .menu-header {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--glow-color);
  }

  .menu-footer {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 2rem;
    opacity: 0.8;
    font-style: italic;
  }

  .section-title {
    font-size: 2rem;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .games-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .winamp-player {
    width: 300px;
    right: 10px;
    z-index: 500; /* Below hamburger menu and sections */
  }

  .section {
    z-index: 1000; /* Above Winamp player */
  }

  /* Hide GAMES section and navigation on mobile */
  #games {
    display: none;
  }

  .nav-link[href="#games"] {
    display: none;
  }

  /* Adjust main content to not be hidden by hamburger menu */
  main {
    margin-top: 80px; /* Space for hamburger menu */
  }

  .footer .container {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .terminal {
    margin: 0 10px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-item {
    padding: 1rem;
  }

  .winamp-player {
    position: fixed;
    top: 40px; /* Below mobile menu bar */
    left: 0;
    right: 0;
    width: 100vw;
    margin: 0;
    z-index: 500; /* Below hamburger menu and sections */
    border-radius: 0;
    border-left: none;
    border-right: none;
    font-size: 14px;
  }

  .section {
    z-index: 1000; /* Above Winamp player */
  }

  /* Hide GAMES section and navigation on mobile */
  #games {
    display: none;
  }

  .nav-link[href="#games"] {
    display: none;
  }

  /* Adjust main content to not be hidden by Winamp player */
  main {
    margin-top: 200px; /* Space for fixed Winamp player */
  }

  .winamp-display {
    flex-direction: column;
    align-items: flex-start;
  }

  .winamp-header {
    justify-content: center;
    text-align: center;
  }

  .winamp-title {
    font-size: 12px;
    font-weight: bold;
  }

  .winamp-controls {
    position: absolute;
    right: 10px;
  }

  .equalizer {
    margin-top: 10px;
  }

  .playlist-item {
    font-size: 12px;
    padding: 6px 8px;
  }

  .track-title {
    font-size: 12px;
  }

  .player-btn {
    font-size: 14px;
    width: 35px;
    height: 30px;
  }

  .winamp-btn {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  .volume-slider {
    height: 8px;
  }

  .progress-bar {
    height: 10px;
  }

  .playlist-category-header {
    font-size: 10px;
    padding: 6px 8px;
  }

  /* Mini video adjustments for mobile */
  #mini-video-player {
    height: 100px;
  }

  .mini-video-title {
    font-size: 8px;
  }

  .mini-video-expand {
    font-size: 10px;
  }

  /* Video player positioning for mobile */
  #video-player {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10010 !important;
    width: 90vw !important;
    max-width: 400px !important;
    height: auto !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4) !important;
  }

  /* YouTube player positioning for mobile */
  #youtube-player {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10010 !important;
    width: 90vw !important;
    max-width: 400px !important;
    height: 50vh !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4) !important;
  }

  /* Mini YouTube adjustments for mobile */
  #mini-youtube-player {
    height: 100px;
  }

  /* Larger fonts for mobile */
  body {
    font-size: 16px;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-line {
    font-size: 14px;
  }

  .nav-link {
    font-size: 1.4rem !important;
  }

  /* Adjust main content top margin for fixed winamp */
  main {
    margin-top: 160px;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Focus States */
audio:focus,
video:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Button Styles for Media Controls */
audio::-webkit-media-controls,
video::-webkit-media-controls {
  filter: brightness(0.8) hue-rotate(90deg);
}

/* Link Hover Effects */
a {
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 8px currentColor;
}
