/* Variables */
:root {
  --primary-color: #ffffff;
  --accent-color: #f47321;
  --bg-main: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --border-color: #333333;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: 
    url('../images/space.png') center center no-repeat,
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 30%),
    radial-gradient(ellipse at 20% 20%, #0d0d1a 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, #0a0a15 0%, transparent 50%),
    linear-gradient(180deg, #000000 0%, #050510 50%, #000000 100%);
  background-size: 60%, 100% 100%, 100% 100%, 100% 100%, 200% 200%, 200% 200%, 100% 100%;
  background-attachment: fixed;
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
  pointer-events: none;
  z-index: 0;
  animation: gridScroll 60s linear infinite;
}

@keyframes gridScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

/* Header */
.main-header {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
}

.main-header h1 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.4), 
    0 0 40px rgba(255, 255, 255, 0.2), 
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Footer */
footer {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 10, 0.95) 100%);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 2px solid var(--border-color);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
}

footer p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  font-weight: 300;
}

footer strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-header h1 {
    font-size: 2.2rem;
  }
}

/* Universal Nav Links */
.main-header nav {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
