@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=VT323&display=swap');

:root {
  --bg-dark: #0b0c10;
  --bg-light: #1a1a24;
  --text-gold: #FFD700;
  --accent-cyan: #00ffff;
  --accent-green: #39ff14;
  --glass-bg: rgba(26, 26, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'VT323', monospace;
  --font-text: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: #fff;
  font-family: var(--font-text);
  font-size: 1.1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Retro Gold Cursor */
body, html {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><polygon points="0,0 0,16 4,12 8,20 12,18 8,10 16,8" fill="%23FFD700" stroke="%23000000" stroke-width="1.5" stroke-linejoin="miter"/></svg>') 0 0, auto !important;
}

/* Ensure buttons use a pointer version (like a glowing hand, or keep it default pointer) */
a, button, .play-btn {
    cursor: pointer !important;
}

/* CRT Scanline Overlay */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-gold);
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

nav .logo {
  font-family: var(--font-heading);
  color: var(--text-gold);
  text-decoration: none;
  font-size: 1.8rem;
  text-shadow: 2px 2px 0px var(--accent-cyan);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

nav ul li a:hover {
  color: var(--accent-cyan);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--text-gold);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-decoration: none;
  border: 2px solid var(--text-gold);
  border-radius: 4px;
  cursor: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.btn-play {
  background: var(--text-gold);
  color: var(--bg-dark);
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 15px var(--text-gold);
  animation: arcade-pulse 2s infinite;
}

@keyframes arcade-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent-cyan), inset 0 0 10px var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-play:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 25px var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Main Content Padding for Fixed Nav */
main {
  padding-top: 100px;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
  border-color: var(--accent-cyan);
}

/* -- Index Page -- */
.hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

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

.time-dust-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #FFD700, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #66fcf1, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #FFD700, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #66fcf1, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: drift 60s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: -1000px 1000px; }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 4px 4px 0px var(--accent-green);
  max-width: 900px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  color: #ddd;
}

.features {
  padding: 5rem 5%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

.feature-card p {
  color: #ccc;
}

/* -- Lore Page -- */
.timeline {
  padding: 4rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
}

/* Master Container */
.timeline-container {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
}

/* The Glowing Center Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #FFD700;
    transform: translateX(-50%);
    box-shadow: 0 0 15px #FFD700, 0 0 5px #FFD700;
    z-index: 1;
}

/* Base Card Styling */
.lore-card {
    width: 42%;
    padding: 25px;
    background: rgba(26, 26, 36, 0.85); /* Glassmorphism background */
    backdrop-filter: blur(10px);
    border: 2px solid #45a29e;
    border-radius: 12px;
    margin-bottom: 40px;
    z-index: 2;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

/* Alternate Left and Right */
.lore-card:nth-child(odd) {
    align-self: flex-start;
}

.lore-card:nth-child(even) {
    align-self: flex-end;
}

/* -- About Page -- */
.about-section {
  padding: 5rem 5%;
  max-width: 900px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.timestamp {
  display: inline-block;
  background: var(--accent-cyan);
  color: var(--bg-dark);
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  color: var(--accent-cyan);
}

.about-content p {
  margin-bottom: 1.5rem;
  color: #ddd;
  font-size: 1.15rem;
}

/* -- Media / Social Page -- */
.media-section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.media-section h1 {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-gold);
  margin-bottom: 2rem;
}

.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.embed-card {
  padding: 1.5rem;
  background: rgba(26, 26, 36, 0.85); /* Glassmorphism background */
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent-cyan);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  main {
    padding-top: 140px;
  }
  


  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }

  .timeline-line {
      left: 20px; /* Moves line to the far left on phones */
  }
  .lore-card {
      width: 80%;
      align-self: flex-end !important; /* Forces all cards to the right side of the line */
  }
}



.dev-status {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 10px;
    background: rgba(102, 252, 241, 0.1);
    border: 1px solid #66fcf1;
    color: #66fcf1;
    font-family: var(--font-heading);
    font-size: 16px;
    border-radius: 4px;
}

/* Feature Pages */
.languages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.language-card {
    flex: 1 1 180px; 
    max-width: 220px;
    background: rgba(102, 252, 241, 0.1);
    border: 1px solid #66fcf1;
    padding: 10px;
    border-radius: 4px;
    color: #66fcf1;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.language-card:hover {
    background: rgba(102, 252, 241, 0.2);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
    transform: translateY(-2px);
}
