/* ==========================================================
   🌌 ROTATING SOUL — ENHANCED BASE STYLES
   Author: Himal Shrestha (9bitbin)
   ========================================================== */

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

/* Optional local fallback */
@font-face {
  font-family: 'Bancroft';
  src: url('fonts/Bancroft.ttf') format('truetype');
  font-display: swap;
}

/* ========== GLOBAL RESET ========== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #000;
  color: #e0e0e0;
  font-family: 'Bancroft', 'Arial', monospace;
  text-align: center;
  font-weight: 600;
  overflow: hidden; /* prevent scroll flicker when mouse moves */
}

/* ========== MAIN CONTENT AREA ========== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  position: relative;
  z-index: 1; /* content floats above starfield */
}

/* ========== NAVIGATION ========== */
nav {
  margin-top: 10px;
  z-index: 1;
}

nav a {
  color: #00ffff;
  margin: 0 12px;
  text-decoration: none;
  font-size: 1.2em;
  position: relative;
  transition: 0.3s ease-in-out;
}

nav a:hover {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
  animation: glowPulse 1.5s infinite;
}

nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: #ff00ff;
  transition: width 0.3s;
  margin: 0 auto;
}

nav a:hover::after {
  width: 60%;
}

/* ========== HEADINGS ========== */
h1, h2 {
  text-shadow: 0 0 8px #00ffff;
  animation: flicker 3s infinite;
  margin: 0.5em 0;
}

/* ========== FOOTER ========== */
footer {
  font-size: 0.9em;
  color: #888;
  text-shadow: 0 0 3px #333;
  z-index: 1;
  position: relative;
  margin-bottom: 10px;
}

/* ========== COLOR ACCENTS ========== */
.cyan { color: #00ffff; }
.lavender { color: #b49bff; }
.emerald { color: #00ff99; }
.softblue { color: #66ccff; }
.magenta { color: #ff00ff; }

/* ========== ANIMATIONS ========== */
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 5px #ff00ff, 0 0 15px #ff00ff; }
  50% { text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff; }
  100% { text-shadow: 0 0 5px #ff00ff, 0 0 15px #ff00ff; }
}

/* ========== STARFIELD CANVAS ========== */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: black;
  filter: brightness(1.1) contrast(1.4);
}

/* ==========================================================
   💚 SOCIAL LINKS — Green glow with yellow hover (Contact Page Only)
   ========================================================== */
.social-links a {
  color: #00ff66; /* neon green */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow:
    0 0 5px #00ff66,
    0 0 10px #00ff66,
    0 0 20px #00ff66;
}

.social-links a:hover {
  color: #ffff66; /* yellow hover */
  text-shadow:
    0 0 8px #ffff66,
    0 0 16px #ffff66,
    0 0 32px #ffff66;
}

/* Optional glowing underline */
.social-links a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: #ffff66;
  transition: width 0.3s ease;
  margin: 0 auto;
}

.social-links a:hover::after {
  width: 60%;
}

/* Layout styling for spacing */
.social-links {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.social-links li {
  margin: 10px 0;
}
