/* Reset */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100%;        /* allow content to extend */
  overflow-x: hidden;      /* only hide horizontal scroll */
  background: black;
  color: #00ff00;
  font-family: 'Courier New', monospace;
}

/* Matrix canvas covers background */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* push behind grid */
  background: black;
}

/* Cyberpunk grid background */
#grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -3; /* behind matrix */
  background-image: linear-gradient(#0f0 1px, transparent 1px),
                    linear-gradient(90deg, #0f0 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 10s linear infinite;
  opacity: 0.15; /* subtle effect */
}

/* Content styling */
.content {
  position: relative;
  z-index: 1;
  padding: 40px;
  line-height: 1.7;
}

/* Neon headings */
.neon {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00;
  animation: neonPulse 2s infinite alternate;
}

/* Links with glitch effect */
a {
  color: #00ff00;
  text-decoration: none;
  transition: all 0.3s ease;
}
a:hover {
  color: #0ff;
  text-shadow: 2px 2px #ff00ff, -2px -2px #00ff00;
  animation: glitch 0.3s infinite;
}

/* Skills list */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.skills li {
  background: rgba(0, 255, 0, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #00ff00;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skills li:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #00ff00;
}

/* Project cards */
.project-card {
  background: rgba(0, 255, 0, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #00ff00;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px #00ff00;
}

/* Animations */
@keyframes neonPulse {
  from { text-shadow: 0 0 5px #00ff00; }
  to { text-shadow: 0 0 40px #00ff00, 0 0 80px #00ff00; }
}
@keyframes glitch {
  0% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 2px); }
  100% { transform: translate(0,0); }
}
@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}
