@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Comic+Neue:wght@300;400;700&display=swap');

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

body {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  background: #000;
  color: #00ff00;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Starfield background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 60px 70px, white, transparent),
    radial-gradient(1px 1px at 50px 50px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, white, transparent),
    radial-gradient(2px 2px at 90px 10px, white, transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.8;
  z-index: -1;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.5; }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Big orange striped title */
.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 80px;
  text-align: center;
  margin: 40px 0;
  letter-spacing: 8px;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    0deg,
    #ff6600 0px,
    #ff8800 2px,
    #ff6600 4px,
    #cc5500 6px,
    #ff6600 8px
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    3px 3px 0 rgba(0, 0, 0, 0.5),
    5px 5px 10px rgba(255, 102, 0, 0.5);
  filter: drop-shadow(0 0 20px rgba(255, 102, 0, 0.6));
  line-height: 1.2;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 20px rgba(255, 102, 0, 0.6)); }
  to { filter: drop-shadow(0 0 40px rgba(255, 102, 0, 0.9)); }
}

/* Navigation bar */
.top-nav {
  background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
  border: 2px outset #666;
  padding: 5px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  background: linear-gradient(to bottom, #ddd, #aaa);
  border: 2px outset #ccc;
  padding: 5px 15px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.1s;
}

.nav-link:hover {
  background: linear-gradient(to bottom, #fff, #ddd);
  border: 2px inset #ccc;
}

.nav-link:active {
  border: 2px inset #999;
  background: linear-gradient(to bottom, #aaa, #ddd);
}

/* Welcome section */
.welcome-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border: 3px solid #00ff00;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
  position: relative;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 255, 0, 0.1) 10px,
    rgba(0, 255, 0, 0.1) 20px
  );
  z-index: -1;
}

.welcome-section h2 {
  color: #00ffff;
  font-size: 32px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  font-family: 'Press Start 2P', monospace;
}

.welcome-section p {
  color: #00ff00;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Computer icons */
.computer-icons {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
}

.computer-icon {
  font-size: 60px;
  animation: float 3s ease-in-out infinite;
}

.computer-icon:nth-child(2) {
  animation-delay: 1s;
}

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

/* Main grid layout */
.main-grid {
  display: grid;
  grid-template-columns: 300px 1fr 350px;
  gap: 20px;
  margin-top: 30px;
}

/* Window-style boxes */
.window-box {
  background: linear-gradient(to bottom, #c0c0c0, #808080);
  border: 2px outset #fff;
  margin-bottom: 20px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
}

.window-title {
  background: linear-gradient(to right, #000080, #1084d0);
  color: white;
  padding: 3px 5px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

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

.window-button {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px outset #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.window-content {
  background: #c0c0c0;
  padding: 15px;
  color: #000;
  border: 2px inset #808080;
}

/* Books section */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.book-item {
  background: #fff;
  border: 2px solid #000;
  padding: 10px;
  font-size: 12px;
}

.book-item strong {
  display: block;
  color: #000080;
  margin-bottom: 5px;
}

/* Projects section */
.project-item {
  background: #ffffe0;
  border: 2px dashed #ff6600;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.project-item h4 {
  color: #cc0000;
  margin-bottom: 5px;
}

/* Games section */
.games-list {
  list-style: none;
}

.games-list li {
  background: linear-gradient(to right, #e0e0ff, #f0f0ff);
  border: 1px solid #000080;
  padding: 8px;
  margin-bottom: 5px;
  position: relative;
  padding-left: 25px;
}

.games-list li::before {
  content: '▶';
  position: absolute;
  left: 8px;
  color: #ff6600;
  font-size: 10px;
}

/* Media player */
.media-player {
  background: linear-gradient(to bottom, #c0c0c0, #808080);
  border: 2px outset #fff;
  padding: 10px;
  margin-top: 20px;
}

.player-controls {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.player-button {
  background: linear-gradient(to bottom, #ddd, #aaa);
  border: 2px outset #ccc;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.player-button:active {
  border: 2px inset #ccc;
}

/* Flaming divider */
.flame-divider {
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, 
    #ff0000 0%, 
    #ff6600 20%, 
    #ffaa00 40%, 
    #ffff00 60%, 
    transparent 100%
  );
  margin: 30px 0;
  animation: flicker 0.3s infinite alternate;
  filter: blur(2px);
}

@keyframes flicker {
  0% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* Open 24/7 sign */
.open-sign {
  text-align: center;
  margin: 30px 0;
}

.neon-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 48px;
  color: #ff00ff;
  text-shadow: 
    0 0 10px #ff00ff,
    0 0 20px #ff00ff,
    0 0 30px #ff00ff,
    0 0 40px #ff00ff;
  animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 
      0 0 10px #ff00ff,
      0 0 20px #ff00ff,
      0 0 30px #ff00ff,
      0 0 40px #ff00ff;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* Graphics collection */
.graphics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 5px;
  margin-top: 15px;
}

.button-88x31 {
  width: 88px;
  height: 31px;
  border: 1px solid #000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

/* Recruiter section */
.recruiter-box {
  background: linear-gradient(135deg, #ffff00, #ffcc00);
  border: 5px solid #ff0000;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #ff0000; }
  50% { border-color: #ff6600; }
}

.recruiter-box h3 {
  color: #cc0000;
  font-size: 24px;
  margin-bottom: 15px;
  font-family: 'Press Start 2P', monospace;
  animation: blink 1s infinite;
}

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

.bookmark-button {
  display: inline-block;
  background: linear-gradient(to bottom, #00ff00, #00cc00);
  color: #000;
  padding: 15px 30px;
  border: 3px solid #000;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.1s;
}

.bookmark-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

/* Under construction */
.construction-banner {
  background: repeating-linear-gradient(
    45deg,
    #ffff00,
    #ffff00 30px,
    #000 30px,
    #000 60px
  );
  padding: 20px;
  text-align: center;
  margin: 30px 0;
  border: 5px solid #ff0000;
}

.construction-banner h2 {
  color: #ff0000;
  font-size: 36px;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000;
  animation: shake 0.5s infinite;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  margin-top: 50px;
  border-top: 3px solid #00ff00;
  color: #00ff00;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .site-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: 32px;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
  }
}

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

::-webkit-scrollbar-track {
  background: #c0c0c0;
  border: 2px inset #808080;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ddd, #aaa);
  border: 2px outset #fff;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #fff, #ddd);
}
