/**
 * The Constellation - Interactive Portfolio
 * Stylesheet: Layout
 * Purpose: Page structure, header, footer, navigation
 */

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--void);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #fff;
  cursor: crosshair;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  scroll-behavior: smooth;
}

#universe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: transform;
  /* GPU acceleration for canvas */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  will-change: opacity;
}

header {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: auto;
}

.identity {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.identity h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.identity .tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

.coords span {
  display: block;
}

.jmj-tooltip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-bottom: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: help;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}

.jmj-tooltip:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

.center-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding-top: 15vh;
}

.quick-links {
  display: flex;
  gap: 1.5rem;
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}

.quick-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 20px #ffffff;
}

.quick-links a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.quick-links a:hover::after {
  transform: scaleX(1);
}

footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
}

.contact-node {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-node a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-node a:hover {
  color: #60a5fa;
  text-shadow: 0 0 30px #60a5fa;
  letter-spacing: 0.05em;
}

.contact-node .book-call {
  font-size: 0.75rem;
  opacity: 0.6;
}

.social-orbit {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-orbit a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
}

.social-orbit a:hover {
  color: #ffffff;
  text-shadow: 0 0 20px #ffffff;
}
