/* ================================================================
   SHARED BASE (Professional Footer Update)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg:          #08080c;
  --bg-panel:    rgba(16, 16, 24, 0.7);
  --accent:      #6366f1;
  --accent-cyan: #22d3ee;
  --accent-glow: 0 0 25px rgba(99, 102, 241, 0.4);
  --white:       #ffffff;
  --text-main:   #cbd5e1;
  --text-dim:    #64748b;
  --border:      rgba(255, 255, 255, 0.08);
  --sans: 'Plus Jakarta Sans', sans-serif;
  --heading: 'Space Grotesk', sans-serif;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

html { scroll-behavior: smooth; font-size: 16px; width: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--sans);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#spaceNetwork {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, #0f101a 0%, #08080c 100%);
  opacity: 0.5;
}

/* ── NAV ─────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(8, 8, 12, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-logo {
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  z-index: 9002;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 9002;
  padding: 5px;
}

/* ── PROFESSIONAL FOOTER ─────────────────────── */
.site-footer {
  margin-top: 100px;
  background: rgba(16, 16, 24, 0.5);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding: 80px 4rem 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 60px;
}

.footer-brand h2 {
  font-family: var(--heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-brand h2 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--white);
  transform: translateY(-3px);
}

/* ── GLOBAL UI ──────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -5px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 992px) {
  .site-nav { padding: 1rem 2rem; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: 0.4s ease-in-out;
    z-index: 9001;
  }
  .nav-links.active { right: 0; }
  .menu-toggle { display: block; }
  
  .site-footer { padding: 60px 2rem 40px; }
  .footer-top { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 480px) {
  .site-nav { padding: 0.8rem 1.2rem; }
}
