/* 80s Retro-Futuristic Techno Theme for Hacker Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Handjet:wght@100..900&display=swap');

/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Handjet', 'Courier New', monospace;
  background: linear-gradient(135deg, #0a0e27 0%, #1a0033 50%, #0a0e27 100%);
  background-attachment: fixed;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  line-height: 1.6;
  overflow-y: auto;
}

/* Animated grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(0, 255, 136, 0.03) 25%, rgba(0, 255, 136, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 136, 0.03) 75%, rgba(0, 255, 136, 0.03) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 255, 136, 0.03) 25%, rgba(0, 255, 136, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 136, 0.03) 75%, rgba(0, 255, 136, 0.03) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* ============ CONTAINER & LAYOUT ============ */
.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Handjet', monospace;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #ff00ff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.4);
}

h1 {
  font-size: 4rem;
  margin-bottom: 30px;
  animation: glow-pulse 2s ease-in-out infinite;
}

h2 {
  font-size: 2.5rem;
  margin-top: 40px;
}

h3 {
  font-size: 1.8rem;
  color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

p, li, span {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

a {
  color: #00ff88;
  text-decoration: none;
  border-bottom: 2px solid #00ff88;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

a:hover {
  color: #ff00ff;
  border-bottom-color: #ff00ff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
  transform: scale(1.05);
}

/* ============ NAVIGATION ============ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid #00ff88;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ff00ff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
  letter-spacing: 2px;
}

.navbar-brand a {
  color: #ff00ff;
  border: none;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  padding: 8px 15px;
  border: 2px solid #00ff88;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-links a:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  border-color: #ff00ff;
}

.nav-links a.active {
  background: rgba(255, 0, 255, 0.2);
  border-color: #ff00ff;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

/* ============ HERO SECTION ============ */
.hero {
  text-align: center;
  padding: 60px 20px;
  margin: 40px 0;
  border: 3px solid #00ff88;
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.05);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), inset 0 0 30px rgba(0, 255, 136, 0.05);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.3rem;
  color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

/* ============ CARDS & SECTIONS ============ */
.card {
  background: rgba(26, 0, 51, 0.7);
  border: 2px solid #00ff88;
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 20px rgba(0, 255, 136, 0.02);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: #ff00ff;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), inset 0 0 20px rgba(255, 0, 255, 0.05);
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 15px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

/* ============ LISTS ============ */
ul, ol {
  margin-left: 30px;
  margin-top: 15px;
}

li {
  margin-bottom: 10px;
  color: #00ff88;
}

li::marker {
  color: #ff00ff;
  font-weight: bold;
}

/* ============ CODE BLOCKS ============ */
pre {
  background: rgba(10, 14, 39, 0.9);
  border: 2px solid #00ffff;
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  color: #00ff88;
  font-family: 'Courier New', monospace;
}

pre code {
  color: #00ffff;
}

/* ============ BUTTONS ============ */
button, .btn {
  background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
  color: #0a0e27;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Handjet', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
  text-decoration: none;
}

button:hover, .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
}

button:active, .btn:active {
  transform: scale(0.98);
}

.btn {
  display: inline-block;
}

/* ============ FORMS ============ */
input, textarea, select {
  background: rgba(10, 14, 39, 0.8);
  border: 2px solid #00ff88;
  color: #00ff88;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Handjet', monospace;
  font-size: 1rem;
  margin: 10px 0;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

input::placeholder, textarea::placeholder {
  color: rgba(0, 255, 136, 0.4);
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 2px solid #00ff88;
  margin-top: 60px;
  color: #00ffff;
  font-size: 0.95rem;
}

.footer a {
  color: #00ff88;
  margin: 0 15px;
}

/* ============ ANIMATIONS ============ */
@keyframes glow-pulse {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.4);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 0, 255, 1), 0 0 60px rgba(255, 0, 255, 0.6);
  }
}

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

@keyframes scan-lines {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

.flicker {
  animation: flicker 0.15s infinite;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

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

  .container {
    padding: 20px 15px;
  }
}

/* ============ UTILITY CLASSES ============ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.neon-green {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.neon-pink {
  color: #ff00ff;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.neon-cyan {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}
