/* ============================================
   HABIB'S RETRO HOMEPAGE - GeoCities/Hi5 Style
   Polished with frontend-design aesthetics
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-dark: #1E3A8A;
  --blue-mid: #2563EB;
  --blue-light: #3B82F6;
  --blue-pale: #93C5FD;
  --gold: #FFD700;
  --red: #FF0000;
  --green: #10B981;
  --green-dark: #059669;
  --grey-light: #DFDFDF;
  --grey-mid: #C0C0C0;
  --grey-dark: #808080;
  --grey-darker: #404040;
  --win-highlight: #FFF;
  --win-shadow: #404040;
  --link-blue: #0000EE;
  --link-visited: #551A8B;
}

body {
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1.5;
  color: #000;
  background-color: #B8B8C8;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.015) 3px,
      rgba(0,0,0,0.015) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(0,0,0,0.015) 3px,
      rgba(0,0,0,0.015) 4px
    );
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M0 0L11 11L7 11L10 16L8 17L5 12L2 15Z" fill="white" stroke="black" stroke-width="1"/></svg>') 0 0, default;
  overflow-x: hidden;
}

/* Custom Scrollbar - Windows 98 */
::-webkit-scrollbar {
  width: 18px;
}

::-webkit-scrollbar-track {
  background: var(--grey-mid);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.05) 2px,
    rgba(0,0,0,0.05) 4px
  );
}

::-webkit-scrollbar-thumb {
  background: var(--grey-light);
  border-top: 2px solid var(--win-highlight);
  border-left: 2px solid var(--win-highlight);
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
}

::-webkit-scrollbar-thumb:hover {
  background: #D0D0D0;
}

::-webkit-scrollbar-button {
  background: var(--grey-mid);
  border-top: 2px solid var(--win-highlight);
  border-left: 2px solid var(--win-highlight);
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
  height: 18px;
}

a {
  color: var(--link-blue);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  color: var(--red);
  cursor: pointer;
}

/* ============================================
   CRT SCANLINE OVERLAY
   ============================================ */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  mix-blend-mode: multiply;
}

/* CRT slight vignette */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* ============================================
   BOOT SCREEN
   ============================================ */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000008;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 60px;
  font-family: 'VT323', monospace;
  color: #AAA;
  font-size: 18px;
  line-height: 1.8;
  transition: opacity 0.5s ease;
}

.boot-screen.fade-out {
  opacity: 0;
}

.boot-screen .boot-line {
  opacity: 0;
  white-space: nowrap;
}

.boot-screen .boot-line.visible {
  opacity: 1;
}

.boot-screen .boot-highlight {
  color: #FFD700;
}

.boot-screen .boot-ok {
  color: #00FF00;
}

.boot-screen .boot-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #AAA;
  animation: boot-blink 0.6s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

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

/* ============================================
   SPARKLE CURSOR TRAIL
   ============================================ */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  font-size: 14px;
  animation: sparkle-fade 0.8s ease-out forwards;
  user-select: none;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0) rotate(180deg);
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.header.revealed {
  opacity: 1;
}

.header-bar {
  background: linear-gradient(180deg, var(--blue-light), var(--blue-dark));
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 3px solid #0F172A;
  position: relative;
}

/* Shimmer on header bar */
.header-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: header-shimmer 8s ease-in-out infinite;
}

@keyframes header-shimmer {
  0%, 100% { left: -50%; }
  50% { left: 100%; }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  font-family: 'Press Start 2P', cursive;
  font-size: 11px;
  color: var(--gold);
  animation: marquee 20s linear infinite;
  padding-left: 100%;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

.hero {
  background: linear-gradient(180deg, var(--blue-dark), #1E40AF);
  text-align: center;
  padding: 40px 20px 28px;
  border-bottom: 2px solid #0F172A;
  position: relative;
  overflow: hidden;
}

/* Subtle star particles in hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 85%, rgba(255,215,0,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 10%, rgba(255,215,0,0.3) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 28px;
  color: #FFFFFF;
  text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, 0 0 20px rgba(59, 130, 246, 0.4);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
  0% { text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, 0 0 20px rgba(59, 130, 246, 0.3); }
  100% { text-shadow: 3px 3px 0px #000, -1px -1px 0px #000, 0 0 30px rgba(59, 130, 246, 0.6); }
}

.hero-subtitle {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.hero-tagline {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--blue-pale);
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

.nav {
  background: var(--grey-light);
  border-top: 2px solid #FFF;
  border-bottom: 2px solid var(--grey-dark);
  padding: 8px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: var(--blue-dark);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--grey-mid);
  border-top: 2px solid #FFF;
  border-left: 2px solid #FFF;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
  transition: none;
}

.nav-link:hover {
  background: #A0A0A0;
  border-top: 2px solid var(--win-shadow);
  border-left: 2px solid var(--win-shadow);
  border-right: 2px solid #FFF;
  border-bottom: 2px solid #FFF;
  color: var(--red);
}

.nav-link:visited {
  color: var(--blue-dark);
}

.blink-new {
  color: var(--red);
  font-size: 8px;
  animation: blink 1s step-end infinite;
}

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

/* ============================================
   PAGE CONTAINER
   ============================================ */
.page-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 15px;
}

/* ============================================
   PANELS (Windows 98 style)
   ============================================ */
.panel {
  background: #FFF;
  border: 2px solid #000;
  margin-bottom: 20px;
  box-shadow: 5px 5px 0px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.1);
  /* scroll reveal */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.panel.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance delays */
.panel:nth-child(1) { transition-delay: 0s; }
.panel:nth-child(2) { transition-delay: 0.1s; }
.panel:nth-child(3) { transition-delay: 0.2s; }
.panel:nth-child(4) { transition-delay: 0.3s; }
.panel:nth-child(5) { transition-delay: 0.4s; }

.panel-title-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Active indicator dot on title bar */
.panel-title-bar::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.panel-title-text {
  font-family: 'Press Start 2P', cursive;
  font-size: 11px;
  color: #FFF;
  text-shadow: 1px 1px 0 #000;
  flex: 1;
}

.panel-title-buttons {
  display: flex;
  gap: 2px;
}

.win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-family: 'VT323', monospace;
  font-size: 14px;
  background: var(--grey-mid);
  border-top: 2px solid #FFF;
  border-left: 2px solid #FFF;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
  color: #000;
  cursor: default;
  line-height: 1;
}

.win-close {
  font-weight: bold;
}

.win-close:hover, .win-close-sm:hover {
  background: #E05050;
  color: #FFF;
}

.panel-body {
  padding: 16px;
  border-top: 2px solid var(--grey-dark);
}

/* ============================================
   ABOUT ME
   ============================================ */
.about-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about-photo {
  flex-shrink: 0;
  text-align: center;
}

.photo-frame {
  width: 130px;
  height: 130px;
  border: 4px solid var(--grey-dark);
  border-top-color: var(--grey-darker);
  border-left-color: var(--grey-darker);
  border-right-color: var(--grey-light);
  border-bottom-color: var(--grey-light);
  background: #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: center;
  image-rendering: pixelated;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal lines in photo placeholder */
.photo-frame::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(0,0,0,0.03) 6px,
    rgba(0,0,0,0.03) 7px
  );
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
}

.photo-placeholder {
  font-family: 'Press Start 2P', cursive;
  font-size: 28px;
  color: var(--blue-dark);
  position: relative;
  z-index: 1;
}

.photo-caption {
  font-size: 14px;
  color: var(--grey-dark);
  margin-top: 4px;
  font-style: italic;
}

.about-info {
  flex: 1;
}

.about-bio {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.6;
}

.about-details {
  background: #F5F5F5;
  border: 1px solid var(--grey-mid);
  padding: 10px;
  margin-bottom: 12px;
}

.about-details p {
  margin-bottom: 4px;
  font-size: 17px;
}

.label {
  font-weight: bold;
  color: var(--blue-dark);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #F0FFF0;
  border: 1px dashed var(--green-dark);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
  50% { opacity: 0.3; box-shadow: 0 0 2px rgba(16, 185, 129, 0.2); }
}

.status-text {
  color: var(--green-dark);
  font-weight: bold;
  font-size: 17px;
  transition: opacity 0.3s ease;
}

/* ============================================
   SKILLS / RPG STATS
   ============================================ */
.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table tr {
  border-bottom: 1px solid #E5E5E5;
}

.stats-table tr:last-child {
  border-bottom: none;
}

.stats-table td {
  padding: 8px 4px;
  vertical-align: middle;
}

.stat-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: var(--blue-dark);
  width: 100px;
  white-space: nowrap;
}

.stat-bar-cell {
  width: 140px;
  padding: 8px 10px !important;
}

.stat-bar {
  width: 100%;
  height: 18px;
  background: #2A2A2A;
  border: 2px solid #000;
  border-top-color: var(--grey-dark);
  border-left-color: var(--grey-dark);
  border-right-color: #FFF;
  border-bottom-color: #FFF;
  position: relative;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(180deg, #4ADE80, #16A34A);
  position: relative;
  image-rendering: pixelated;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(0,0,0,0.15) 8px,
    rgba(0,0,0,0.15) 10px
  );
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Glow effect on filled bar */
.stat-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(2px);
}

.stat-fill.animated {
  width: var(--target-width);
}

.stat-desc {
  font-size: 16px;
  color: #555;
}

.stats-footer {
  text-align: center;
  margin-top: 14px;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: var(--grey-dark);
  letter-spacing: 0.5px;
}

/* ============================================
   EXPERIENCE / FORUM POSTS
   ============================================ */
.forum-body {
  padding: 0;
}

.forum-post {
  border-bottom: none;
  transition: background 0.2s ease;
}

.forum-post:hover {
  background: #FAFAFA;
}

.post-header {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.post-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #FFF;
}

.post-date {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--blue-pale);
}

.post-content {
  display: flex;
  padding: 12px;
  gap: 12px;
}

.post-avatar {
  flex-shrink: 0;
  text-align: center;
}

.avatar-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 20px;
  color: #FFF;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.forum-post:hover .avatar-box {
  transform: scale(1.05);
}

.post-role {
  display: block;
  font-size: 13px;
  color: var(--grey-dark);
  margin-top: 4px;
  line-height: 1.2;
}

.post-body {
  flex: 1;
}

.post-subtitle {
  font-style: italic;
  color: #666;
  margin-bottom: 8px;
  font-size: 17px;
}

.post-body ul {
  list-style: none;
  padding: 0;
}

.post-body li {
  padding: 3px 0;
  font-size: 17px;
  line-height: 1.5;
}

.post-body li::before {
  content: "\25B8 ";
  color: var(--blue-dark);
}

.post-karma {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--grey-mid);
  font-size: 15px;
  color: #D97706;
  font-weight: bold;
}

.forum-divider {
  text-align: center;
  color: var(--grey-mid);
  padding: 4px 0;
  font-size: 14px;
  letter-spacing: 2px;
  user-select: none;
}

.older-posts-toggle {
  text-align: center;
  padding: 12px;
}

.retro-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  padding: 8px 16px;
  background: var(--grey-mid);
  border-top: 2px solid #FFF;
  border-left: 2px solid #FFF;
  border-right: 2px solid var(--win-shadow);
  border-bottom: 2px solid var(--win-shadow);
  color: #000;
  cursor: pointer;
}

.retro-btn:hover {
  background: #A0A0A0;
}

.retro-btn:active {
  border-top: 2px solid var(--win-shadow);
  border-left: 2px solid var(--win-shadow);
  border-right: 2px solid #FFF;
  border-bottom: 2px solid #FFF;
}

.older-posts {
  display: block;
}

.hidden {
  display: none;
}

/* ============================================
   PROJECTS / WINDOWS 98 CARDS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-window {
  border: 2px solid #000;
  background: #FFF;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-window:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.window-title-bar {
  background: linear-gradient(90deg, var(--grey-dark), var(--grey-mid));
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Active/focused window title bar */
.project-window:hover .window-title-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
}

.project-window:hover .window-title {
  color: #FFF;
}

.window-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: #000;
  transition: color 0.15s ease;
}

.win-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-family: 'VT323', monospace;
  font-size: 10px;
  background: var(--grey-mid);
  border-top: 1px solid #FFF;
  border-left: 1px solid #FFF;
  border-right: 1px solid var(--win-shadow);
  border-bottom: 1px solid var(--win-shadow);
  color: #000;
  cursor: default;
  line-height: 1;
}

.window-body {
  padding: 12px;
  border-top: 2px solid var(--grey-dark);
}

.project-screenshot {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #E0E7FF, #DBEAFE, #EDE9FE);
  background-size: 200% 200%;
  animation: screenshot-shift 6s ease-in-out infinite;
  border: 2px solid var(--grey-dark);
  border-top-color: var(--grey-darker);
  border-left-color: var(--grey-darker);
  border-right-color: var(--grey-light);
  border-bottom-color: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

@keyframes screenshot-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.screenshot-icon {
  font-size: 36px;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.1));
}

.project-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 16px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.project-stat {
  font-size: 14px;
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  padding: 2px 6px;
  color: #92400E;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tech-badge {
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  background: var(--blue-dark);
  color: #FFF;
  padding: 3px 6px;
  border: 1px solid #000;
  transition: background 0.15s ease;
}

.tech-badge:hover {
  background: var(--blue-light);
}

/* ============================================
   NOW PLAYING - MySpace Music Widget
   ============================================ */
.now-playing {
  background: #1a1a2e;
  border: 2px solid #000;
  margin-bottom: 20px;
  box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.now-playing.revealed {
  opacity: 1;
  transform: translateY(0);
}

.now-playing-header {
  background: linear-gradient(90deg, #16213e, #0f3460);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.now-playing-header::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #e94560;
  border-radius: 50;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(233, 69, 96, 0.6);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.now-playing-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #e94560;
  text-shadow: 0 0 6px rgba(233, 69, 96, 0.4);
}

.now-playing-body {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.np-art {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #533483, #e94560);
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  animation: art-pulse 3s ease-in-out infinite;
}

@keyframes art-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(233, 69, 96, 0.3); }
  50% { box-shadow: 0 0 16px rgba(233, 69, 96, 0.6); }
}

.np-info {
  flex: 1;
  min-width: 0;
}

.np-song {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #FFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.np-artist {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #888;
}

.np-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 30px;
  flex-shrink: 0;
}

.np-bar {
  width: 4px;
  background: #e94560;
  animation: eq-bar 0.8s ease-in-out infinite alternate;
  border-radius: 1px 1px 0 0;
}

.np-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.np-bar:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.np-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.np-bar:nth-child(4) { height: 22px; animation-delay: 0.15s; }
.np-bar:nth-child(5) { height: 14px; animation-delay: 0.25s; }
.np-bar:nth-child(6) { height: 20px; animation-delay: 0.05s; }
.np-bar:nth-child(7) { height: 12px; animation-delay: 0.3s; }

@keyframes eq-bar {
  0% { height: 4px; }
  100% { height: 28px; }
}

.np-controls {
  padding: 6px 12px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.np-ctrl-btn {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.15s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.np-ctrl-btn:hover {
  color: #e94560;
}

.np-ctrl-btn.active {
  color: #e94560;
  text-shadow: 0 0 6px rgba(233, 69, 96, 0.4);
}

/* ============================================
   CONTACT / GUESTBOOK
   ============================================ */
.contact-body {
  text-align: center;
}

.contact-intro {
  font-size: 20px;
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  padding: 8px 16px;
  background: #F5F5F5;
  border: 2px solid var(--grey-mid);
  border-top-color: #FFF;
  border-left-color: #FFF;
  text-decoration: none;
  color: var(--link-blue);
  transition: transform 0.1s ease;
}

.contact-link:hover {
  background: #E0E0E0;
  color: var(--red);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

.contact-link:active {
  transform: translate(0, 0);
  box-shadow: none;
  border-top-color: var(--win-shadow);
  border-left-color: var(--win-shadow);
  border-right-color: #FFF;
  border-bottom-color: #FFF;
}

.contact-icon {
  font-size: 22px;
}

.guestbook-msg {
  background: #FFFFF0;
  border: 2px dashed #D97706;
  padding: 12px;
  margin-top: 10px;
  font-size: 18px;
  color: #92400E;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 0 15px;
  text-align: center;
}

.visitor-counter {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  background: #000;
  color: #00FF00;
  padding: 10px 20px;
  display: inline-block;
  border: 2px solid #333;
  margin-bottom: 14px;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
  box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.05), 0 0 10px rgba(0, 0, 0, 0.3);
  animation: counter-flicker 4s ease-in-out infinite;
}

@keyframes counter-flicker {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 255, 0, 0.6); }
  50% { text-shadow: 0 0 12px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.3); }
}

.retro-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.retro-badge {
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  background: var(--grey-light);
  border: 2px solid var(--grey-dark);
  border-top-color: #FFF;
  border-left-color: #FFF;
  padding: 4px 8px;
  color: #333;
  transition: transform 0.1s ease;
}

.retro-badge:hover {
  transform: scale(1.05);
}

.under-construction {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: var(--red);
  margin-bottom: 14px;
  animation: blink 1.5s step-end infinite;
}

.construction-blink {
  animation: blink 0.8s step-end infinite;
}

.copyright {
  font-size: 16px;
  color: var(--grey-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 9px;
  }

  .nav {
    gap: 4px;
    padding: 6px 10px;
  }

  .nav-link {
    font-size: 8px;
    padding: 4px 8px;
  }

  .about-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-details {
    text-align: left;
  }

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

  .post-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-content {
    flex-direction: column;
    align-items: center;
  }

  .stat-label {
    font-size: 7px;
    width: 70px;
  }

  .stat-bar-cell {
    width: 90px;
  }

  .stat-desc {
    font-size: 13px;
  }

  .retro-badges {
    flex-direction: column;
    align-items: center;
  }

  .boot-screen {
    padding: 20px 30px;
    font-size: 14px;
  }

  .now-playing-body {
    flex-direction: column;
    text-align: center;
  }
}
