/* Extracted from index.html <style> */
:root {
  --bg: #030008;
  --neon-blue: #00eeff;
  --neon-purple: #c030ff;
  --glow: 0 0 10px var(--neon-blue), 0 0 20px rgba(0, 238, 255, 0.4);
  --font-main: 'Orbitron', monospace;
  --font-pixel: 'Press Start 2P', curive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: #c0c0ff;
  font-family: var(--font-main);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* NEON GRID FLOOR */
#grid-floor {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: 
    linear-gradient(rgba(0, 238, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 238, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotateX(60deg) scale(1.3);
  transform-origin: center bottom;
  z-index: -3;
  pointer-events: none;
}

/* CUSTOM CURSOR */
#custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 14px var(--neon-blue), 0 0 28px rgba(0, 238, 255, 0.6);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

/* EXPLOSION PARTICLES */
.explosion-particle {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.9;
}

/* GLITCH OVERLAY */
#glitch-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(192, 48, 255, 0.04) 2px,
    rgba(192, 48, 255, 0.04) 4px
  );
  opacity: 0;
  pointer-events: none;
  z-index: 9996;
  animation: glitchPulse 7s infinite;
}
@keyframes glitchPulse {
  0%, 100% { opacity: 0; }
  2%, 4% { opacity: 0.12; }
  6%, 8% { opacity: 0; }
}

/* 3D BACKGROUND */
#cyber-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none !important;
}

/* LOADING SCREEN */
#loading-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.terminal-text {
  text-align: center;
  margin-bottom: 25px;
}
.terminal-text p {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--neon-blue);
  margin: 8px 0;
  text-shadow: var(--glow);
}
#loading-status {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--neon-purple);
  margin-top: 15px;
  text-shadow: 0 0 8px var(--neon-purple);
}
#loading-bar-container {
  width: 300px;
  height: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--neon-blue);
  border-radius: 7px;
  margin-top: 20px;
  overflow: hidden;
}
#loading-bar {
  height: 100%;
  width: 0%;
  background: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
  transition: width 0.3s ease;
}
.pixel-loader {
  width: 64px;
  height: 64px;
  background: url("image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='0' y='0' width='8' height='8' fill='%2300eeff' opacity='0.5'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23c030ff' opacity='0.7'/%3E%3C/svg%3E");
  animation: pixelSpin 2s infinite steps(8);
  margin-top: 15px;
}
@keyframes pixelSpin { to { transform: rotate(360deg); } }

.hidden { display: none; }

/* NAV */
.pixel-nav {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 100;
}
.pixel-nav ul {
  list-style: none;
}
.pixel-nav a {
  display: block;
  color: var(--neon-blue);
  text-decoration: none;
  font-size: 10px;
  font-family: var(--font-pixel);
  margin: 6px 0;
  text-shadow: var(--glow);
  transition: all 0.2s;
}
.pixel-nav a:hover, .pixel-nav a:active {
  color: var(--neon-purple);
  transform: translateX(3px);
  text-shadow: 0 0 12px var(--neon-purple), 0 0 24px rgba(192, 48, 255, 0.5);
}

/* SECTIONS */
.section {
  max-width: 850px;
  margin: 90px auto 70px;
  padding: 0 18px;
  scroll-margin-top: 70px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  font-size: 20px;
  color: var(--neon-purple);
  margin-bottom: 25px;
  text-shadow: var(--glow);
  font-family: var(--font-pixel);
  letter-spacing: 1.5px;
  text-align: center;
}

/* PROFILE PHOTO - CUTE ANIMATED AVATAR */
.profile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}
.profile-photo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cute-avatar {
  width: 100%;
  height: 100%;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* HOLOGRAM CARD */
.hologram-card {
  background: rgba(2, 0, 6, 0.94);
  border: 1px solid var(--neon-blue);
  border-radius: 8px;
  padding: 24px;
  color: #b0b0ff;
  transition: all 0.35s;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 238, 255, 0.2);
  margin: 0 auto;
  max-width: 700px;
}
.hologram-card:hover, .hologram-card:active {
  box-shadow: var(--glow);
  border-color: var(--neon-purple);
  transform: translateY(-3px);
}

.bio-text {
  line-height: 1.6;
  font-size: 14px;
}

/* GRIDS */
.timeline-grid, .projects-grid, .skills-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 769px) {
  .timeline-grid, .projects-grid, .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
.project-card, .skill-panel {
  background: rgba(2, 0, 6, 0.94);
  border: 1px solid var(--neon-blue);
  border-radius: 6px;
  padding: 16px;
  color: #b0b0ff;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 238, 255, 0.15);
}
.project-card.glow-on-hover:hover, .project-card.glow-on-hover:active {
  box-shadow: var(--glow);
  border-color: var(--neon-purple);
  transform: translateY(-3px);
}
.date {
  color: var(--neon-blue);
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}
.project-card {
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}
.skill-panel {
  font-size: 11px;
  text-align: center;
}

/* CONTACT */
.reward-text {
  text-align: center;
  font-size: 16px;
  margin: 18px 0;
  color: var(--neon-purple);
}
.hint-text {
  text-align: center;
  font-size: 12px;
  margin: 15px 0;
  color: var(--neon-blue);
}
#mission-complete {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--neon-purple);
  margin: 15px 0;
  display: none;
}
#mission-complete.show {
  display: block;
}
#resume-btn, #contact-section {
  display: none;
}
#resume-btn.show, #contact-section.show {
  display: block;
}
#resume-btn {
  width: 200px;
  margin: 0 auto 25px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  font-family: var(--font-pixel);
  font-size: 10px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
}
#resume-btn:hover, #resume-btn:active {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
}
#contact-section {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(3, 0, 8, 0.9);
  border: 1px solid var(--neon-blue);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--glow);
}
#contact-section h3 {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--neon-purple);
  margin-bottom: 15px;
  text-align: center;
}
.contact-form {
  display: grid;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(1, 0, 4, 0.9);
  border: 1px solid var(--neon-blue);
  color: white;
  padding: 10px;
  font-family: var(--font-main);
  font-size: 12px;
}
.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #404060;
}
.send-button {
  background: transparent;
  border: 2px solid var(--neon-purple);
  color: var(--neon-purple);
  padding: 10px;
  font-family: var(--font-pixel);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.send-button:hover, .send-button:active {
  background: rgba(192, 48, 255, 0.25);
  box-shadow: 0 0 10px var(--neon-purple);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 35px 15px;
  color: #252540;
  font-size: 10px;
  font-family: var(--font-pixel);
}

/* === SCORE HUD === */
#score-hud {
  position: fixed;
  z-index: 1000;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--neon-blue);
  text-shadow: var(--glow);
  pointer-events: none;
}

@media (min-width: 769px) {
  #score-hud {
    bottom: 20px;
    right: 20px;
  }
}
@media (max-width: 768px) {
  #score-hud {
    top: 15px;
    left: 15px;
  }
  #custom-cursor { display: none !important; }
}

/* === ENEMY SYMBOLS - FIXED === */
.enemy-symbol {
  position: fixed;
  z-index: 400;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  animation: glitch-fade 7s infinite;
}
@keyframes glitch-fade {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  5% { opacity: 1; }
  80% { opacity: 1; }
  85% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0)); }
  100% { opacity: 0; }
}

/* === VICTORY MODAL === */
#victory-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(3, 0, 8, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
#victory-modal.show {
  opacity: 1;
  pointer-events: all;
}
#victory-modal h2 {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--neon-purple);
  text-shadow: var(--glow);
  margin-bottom: 20px;
  text-align: center;
}
#victory-modal p {
  max-width: 600px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 14px;
}
#close-modal {
  background: transparent;
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  padding: 10px 20px;
  font-family: var(--font-pixel);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
#close-modal:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
}
