/* Landing Page Styles */

.landing-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.starfield-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20px 30px, #00ff88, transparent),
    radial-gradient(2px 2px at 40px 70px, #00ccff, transparent),
    radial-gradient(1px 1px at 90px 40px, #ffaa00, transparent),
    radial-gradient(1px 1px at 130px 80px, #00ff88, transparent),
    radial-gradient(2px 2px at 160px 30px, #00ccff, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: starfield-drift 20s linear infinite;
  z-index: -1;
}

@keyframes starfield-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  position: relative;
  z-index: 10;
}

.logo-container {
  text-align: left;
}

.sasi-logo {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  animation: glow 3s ease-in-out infinite;
}

.tagline {
  font-size: 1rem;
  color: var(--secondary-text);
  opacity: 0.8;
  letter-spacing: 0.1em;
}

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

.nav-link {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-text);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.landing-main {
  padding: 2rem 4rem;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 70vh;
  margin-bottom: 4rem;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-text);
}

.highlight {
  color: var(--accent-text);
  text-shadow: 0 0 20px var(--accent-text);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--secondary-text);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-text);
  text-shadow: 0 0 10px var(--glow-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--secondary-text);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.retro-button.primary {
  background: var(--primary-text);
  color: var(--primary-bg);
  border-color: var(--primary-text);
}

.retro-button.primary:hover {
  background: transparent;
  color: var(--primary-text);
}

.retro-button.secondary {
  background: transparent;
  color: var(--secondary-text);
  border-color: var(--secondary-text);
}

.retro-button.secondary:hover {
  background: var(--secondary-text);
  color: var(--primary-bg);
}

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

.mini-swarm-preview {
  position: relative;
  width: 400px;
  height: 400px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary-bg) 0%, transparent 70%);
  overflow: hidden;
}

.preview-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.preview-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--secondary-text);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary-text);
  animation: node-pulse 2s ease-in-out infinite;
}

.preview-node.active {
  background: var(--primary-text);
  box-shadow: 0 0 15px var(--primary-text);
  animation: node-active 1s ease-in-out infinite;
}

.preview-connections {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.preview-connection {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, var(--border-color), transparent);
  transform-origin: bottom;
  animation: connection-pulse 3s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes node-active {
  0%, 100% { opacity: 1; transform: scale(1.2); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

@keyframes connection-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.about-section {
  margin-bottom: 4rem;
  padding: 3rem 0;
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-text);
  margin-bottom: 2rem;
  text-shadow: 0 0 20px var(--glow-color);
}

.section-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--secondary-text);
  opacity: 0.9;
}

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

.about-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.about-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--glow-color);
}

.about-card p {
  color: var(--secondary-text);
  line-height: 1.6;
  opacity: 0.9;
}

/* SETI@home Tribute Section */
.seti-tribute {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, rgba(0, 255, 136, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

.seti-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
}

.seti-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seti-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
}

.seti-text h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px var(--glow-color);
}

.seti-text p {
  color: var(--secondary-text);
  line-height: 1.8;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.seti-link {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.seti-link:hover {
  color: var(--primary-text);
  text-shadow: 0 0 10px var(--accent-text);
}

/* Enhanced About Cards */
.about-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-text);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--glow-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.landing-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-text);
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .mini-swarm-preview {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .landing-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
  }
  
  .landing-main {
    padding: 1rem 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .about-card {
    padding: 1.5rem;
  }
  
  /* SETI Tribute Responsive */
  .seti-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .seti-image {
    max-width: 200px;
    margin: 0 auto;
  }
  
  .seti-text {
    text-align: left;
  }
}