/* Base Reset and Variables */
:root {
  --primary-bg: #0a0a0a;
  --secondary-bg: #111111;
  --accent-green: #00ff88;
  --accent-red: #ff0066;
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-dim: #666666;
  --border-color: #222222;
  --grid-color: #1a1a1a;
}

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

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

body {
  background: var(--primary-bg);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Noise and Scan Lines Effects */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
}

.scan-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 255, 136, 0.01) 50%
  );
  background-size: 100% 4px;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  cursor: pointer;
  position: relative;
}

.brand-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  position: relative;
  transition: all 0.3s ease;
}

.brand-text.glitch {
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% {
    text-shadow: 
      0.05em 0 0 var(--accent-red),
      -0.05em -0.025em 0 var(--accent-green),
      0.025em 0.05em 0 #0066ff;
  }
  15% {
    text-shadow: 
      0.05em 0 0 var(--accent-red),
      -0.05em -0.025em 0 var(--accent-green),
      0.025em 0.05em 0 #0066ff;
  }
  16% {
    text-shadow: 
      -0.05em -0.025em 0 var(--accent-red),
      0.025em 0.025em 0 var(--accent-green),
      -0.05em -0.05em 0 #0066ff;
  }
  49% {
    text-shadow: 
      -0.05em -0.025em 0 var(--accent-red),
      0.025em 0.025em 0 var(--accent-green),
      -0.05em -0.05em 0 #0066ff;
  }
  50% {
    text-shadow: 
      0.025em 0.05em 0 var(--accent-red),
      0.05em 0 0 var(--accent-green),
      0 -0.05em 0 #0066ff;
  }
  99% {
    text-shadow: 
      0.025em 0.05em 0 var(--accent-red),
      0.05em 0 0 var(--accent-green),
      0 -0.05em 0 #0066ff;
  }
  100% {
    text-shadow: 
      -0.025em 0 0 var(--accent-red),
      -0.025em -0.025em 0 var(--accent-green),
      -0.025em -0.05em 0 #0066ff;
  }
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-contact:hover {
  color: var(--accent-green);
}

.contact-icon {
  width: 16px;
  height: 16px;
}

/* Main Content */
.main-content {
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-ascii {
  margin-bottom: 2rem;
}

.ascii-art {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-primary);
  white-space: pre;
  overflow-x: auto;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-grid {
  position: absolute;
  inset: -50%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  opacity: 0.1;
  pointer-events: none;
}

.grid-line {
  background: linear-gradient(to bottom, transparent, var(--grid-color), transparent);
  width: 1px;
  height: 200%;
  animation: gridFlow 20s linear infinite;
}

@keyframes gridFlow {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Add blur animation for classified text */
.classified-blur {
  filter: blur(4px);
  transition: filter 0.3s ease;
  position: relative;
}

.classified-blur:hover {
  filter: blur(2px);
  cursor: not-allowed;
}

@keyframes glitchBlur {
  0% { filter: blur(4px); }
  10% { filter: blur(6px); }
  20% { filter: blur(3px); }
  30% { filter: blur(5px); }
  40% { filter: blur(4px); }
  50% { filter: blur(7px); }
  60% { filter: blur(3px); }
  70% { filter: blur(5px); }
  80% { filter: blur(4px); }
  90% { filter: blur(6px); }
  100% { filter: blur(4px); }
}

.classified-blur {
  animation: glitchBlur 3s ease-in-out infinite;
}

/* Platform list styles */
.platforms-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.platform-entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.platform-name {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.platform-status {
  color: var(--accent-green);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* Platforms Section */
.platforms-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-number {
  color: var(--accent-green);
  font-size: 0.875rem;
  font-weight: 300;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

.status-item {
  padding: 1.5rem;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
}

.status-item.compact {
  padding: 1rem 1.5rem;
}

.status-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.status-value {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.opening-statement {
  padding: 3rem 2rem;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.opening-statement p {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1rem;
}

.opening-statement p:first-child {
  font-size: 1.125rem;
  color: var(--accent-green);
  font-weight: 500;
}

.opening-statement p:last-child {
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-terminal {
  max-width: 800px;
  margin: 0 auto;
}

.terminal-window {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.terminal-header {
  background: var(--border-color);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-dim);
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-body {
  padding: 2rem;
}

.terminal-line {
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.terminal-line.active {
  color: var(--text-primary);
}

.prompt {
  color: var(--accent-green);
  margin-right: 0.5rem;
}

.contact-link {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.contact-link:hover {
  border-bottom-color: var(--accent-green);
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  z-index: 100;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: -0.75rem;
}

.footer-logo {
  height: 30px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-top: 0;
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.7;
    filter: drop-shadow(0 0 0px rgba(251, 146, 60, 0));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.6));
  }
}

.footer-text, .footer-coords {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  line-height: 30px;
  display: inline-block;
  vertical-align: middle;
}


/* Responsive Design */
@media (max-width: 768px) {
  .nav-content {
    padding: 1rem;
  }
  
  .brand-text {
    font-size: 1rem;
  }
  
  .hero-section {
    padding: 1rem;
  }
  
  .ascii-art {
    font-size: 0.625rem;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    padding: 1rem;
  }
  
  .footer-coords {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-status {
    display: none;
  }
  
  .philosophy-item {
    padding: 1.5rem;
  }
  
  .terminal-body {
    padding: 1rem;
  }
  
  .terminal-line {
    font-size: 0.75rem;
  }
}