/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #00ff41;
  --secondary-green: #00cc33;
  --dark-green: #004411;
  --bg-black: #0a0a0a;
  --bg-dark: #111111;
  --bg-darker: #1a1a1a;
  --text-dim: #88cc88;
  --border-color: #00ff41;
  --glow-color: #00ff41;
  --warning-orange: #ff8800;
  --error-red: #ff4444;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background: var(--bg-black);
  color: var(--primary-green);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* CRT Effects */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03),
    rgba(0, 255, 65, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 20, 0, 0.1) 100%);
}

/* Terminal Cursor */
.terminal-cursor {
  position: fixed;
  width: 2px;
  height: 20px;
  background: var(--primary-green);
  z-index: 10001;
  pointer-events: none;
  animation: blink 1s infinite;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--bg-black) 0%, var(--bg-darker) 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 2rem 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo-image {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 20px var(--glow-color));
}

.logo {
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow: 0 0 20px var(--glow-color);
  animation: logoGlow 3s ease-in-out infinite alternate;
  letter-spacing: 2px;
}

@keyframes logoGlow {
  from { text-shadow: 0 0 20px var(--glow-color); }
  to { text-shadow: 0 0 30px var(--glow-color), 0 0 40px var(--glow-color); }
}

.tagline {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.status-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.status-item {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
}

.status-item .pending {
  color: var(--warning-orange);
}

.status-item .active {
  color: var(--primary-green);
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--primary-green);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 1px;
}

.nav-link:hover {
  border-color: var(--border-color);
  background: var(--bg-dark);
  text-shadow: 0 0 10px var(--glow-color);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-dark) 100%);
}

.hero-content {
  display: flex;
  justify-content: center;
}

.terminal-window {
  max-width: 600px;
  width: 100%;
  background: var(--bg-black);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.terminal-header {
  background: var(--bg-darker);
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.terminal-title {
  font-weight: 500;
}

.terminal-body {
  padding: 2rem;
}

.terminal-text {
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.8;
}

.prompt {
  color: var(--secondary-green);
  font-weight: 500;
}

.output {
  color: var(--text-dim);
  margin-left: 2rem;
}

.ready {
  color: var(--primary-green);
  font-weight: 700;
  text-shadow: 0 0 10px var(--glow-color);
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

.content-section.alt-bg {
  background: var(--bg-dark);
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-green);
  text-shadow: 0 0 15px var(--glow-color);
  letter-spacing: 1px;
}

/* Mission Grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mission-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mission-item:hover {
  border-color: var(--secondary-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.mission-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary-green);
}

/* Programs */
.programs-list {
  display: grid;
  gap: 2rem;
}

.program-card {
  background: var(--bg-black);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.program-card:hover {
  border-color: var(--secondary-green);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.2);
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.program-header h3 {
  font-size: 1.4rem;
  color: var(--primary-green);
}

.program-status {
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.program-status.active {
  background: rgba(0, 255, 65, 0.2);
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
}

.program-status.dev {
  background: rgba(255, 136, 0, 0.2);
  color: var(--warning-orange);
  border: 1px solid var(--warning-orange);
}

.tech-stack {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--bg-darker);
  color: var(--text-dim);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--dark-green);
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Legal and Support */
.legal-info, .support-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.legal-card, .support-card {
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
}

.legal-card h3, .support-card h3 {
  color: var(--secondary-green);
  margin-bottom: 1rem;
}

.support-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--text-dim);
}

.cta-button {
  background: var(--bg-black);
  color: var(--primary-green);
  border: 2px solid var(--border-color);
  padding: 0.8rem 2rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
}

.cta-button:hover:not(:disabled) {
  background: var(--primary-green);
  color: var(--bg-black);
  text-shadow: none;
  box-shadow: 0 0 15px var(--glow-color);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Contact */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
}

.contact-card h3 {
  color: var(--secondary-green);
  margin-bottom: 1rem;
}

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

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

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 2px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-green);
}

/* AI Assistant Styles */
.ai-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--bg-black);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--primary-green);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 200;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-toggle:hover {
  background: var(--primary-green);
  color: var(--bg-black);
  box-shadow: 0 0 20px var(--glow-color);
}

.ai-window {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 400px;
  height: 500px;
  background: var(--bg-black);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.ai-window.hidden {
  display: none;
}

.ai-header {
  background: var(--bg-darker);
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-title {
  font-weight: 500;
  color: var(--primary-green);
}

.ai-close {
  background: none;
  border: none;
  color: var(--primary-green);
  font-size: 1.2rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-close:hover {
  color: var(--error-red);
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ai-message {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 4px;
}

.ai-message.user {
  background: var(--bg-darker);
  border-left: 3px solid var(--secondary-green);
}

.ai-message.assistant {
  background: rgba(0, 255, 65, 0.05);
  border-left: 3px solid var(--primary-green);
}

.ai-message.system {
  background: rgba(255, 136, 0, 0.1);
  border-left: 3px solid var(--warning-orange);
  color: var(--warning-orange);
}

.ai-input-container {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.ai-input {
  flex: 1;
  background: var(--bg-dark);
  border: none;
  color: var(--primary-green);
  padding: 1rem;
  font-family: inherit;
  outline: none;
}

.ai-input::placeholder {
  color: var(--text-dim);
}

.ai-send {
  background: var(--bg-darker);
  border: none;
  color: var(--primary-green);
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.ai-send:hover {
  background: var(--primary-green);
  color: var(--bg-black);
}

.ai-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-status {
  padding: 0.5rem 1rem;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* Responsive Design */
/* Mobile Responsiveness - Better Implementation */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  header {
    padding: 1rem 0 0.5rem;
  }
  
  .header-content {
    margin-bottom: 1rem;
  }
  
  .logo-container {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .logo-image {
    width: 60px;
    height: 60px;
  }
  
  .logo {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 0;
  }
  
  .tagline {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .status-bar {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .status-item {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    text-align: center;
  }
  
  .main-nav {
    gap: 0.5rem;
    justify-content: center;
  }
  
  .nav-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .terminal-window {
    margin: 0 0.5rem;
    max-width: none;
  }
  
  .terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  .content-section {
    padding: 2rem 0;
  }
  
  .mission-item,
  .program-card,
  .legal-card,
  .support-card,
  .contact-card {
    padding: 1.5rem;
  }
  
  .program-header h3 {
    font-size: 1.1rem;
  }
  
  .ai-window {
    width: calc(100vw - 1rem);
    right: 0.5rem;
    left: 0.5rem;
    height: 300px;
    bottom: 5rem;
  }
  
  .ai-toggle {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem 0 0.5rem;
  }
  
  .logo-image {
    width: 50px;
    height: 50px;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .tagline {
    font-size: 0.75rem;
  }
  
  .status-item {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .nav-link {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .terminal-body {
    font-size: 0.7rem;
    line-height: 1.5;
  }
  
  .ai-window {
    height: 250px;
  }
  
  .ai-toggle {
    width: 40px;
    height: 40px;
  }
}
