/* ==========================================================================
   Jxsh Portfolio - Futuristic Sci-Fi Minimal Design System
   ========================================================================== */

:root {
  /* Palette & Colors */
  --bg-dark: #03050D;
  --bg-secondary: #080D1C;
  --bg-card: rgba(13, 20, 38, 0.65);
  --bg-card-hover: rgba(22, 33, 62, 0.85);

  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.6);
  --accent-blue: #3a86ff;
  --accent-blue-glow: rgba(58, 134, 255, 0.6);

  --text-main: #f8f9fa;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-subtle: rgba(157, 78, 221, 0.2);
  --border-active: rgba(157, 78, 221, 0.6);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-glow: 0.5s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--accent-purple);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.3s;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}
.skip-link:focus {
  top: 20px;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(3, 5, 13, 0.8) 0%, rgba(3, 5, 13, 0) 100%);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 110;
  pointer-events: auto;
}

.avatar-btn {
  background: none;
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(13, 20, 38, 0.6);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 120;
  pointer-events: auto;
}

.avatar-btn:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 18px var(--accent-purple-glow);
  transform: scale(1.05);
}

.player-head-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 6px;
}

.btn-live-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid var(--accent-purple);
  border-radius: 20px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-purple-glow);
  transition: all 0.3s ease;
  animation: edit-glow 2s infinite ease-in-out;
}

@keyframes edit-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-purple-glow); }
  50% { box-shadow: 0 0 18px var(--accent-purple), 0 0 24px var(--accent-purple-glow); }
}

.btn-live-edit:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: scale(1.05);
}

.hidden {
  display: none !important;
}

/* Login Modal */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.login-modal.active {
  opacity: 1;
  visibility: visible;
}

.login-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-active);
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 36px 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(157, 78, 221, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-modal.active .login-modal-content {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: var(--accent-purple);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-avatar-head {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px var(--accent-purple-glow));
}

.login-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.login-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  background: rgba(3, 5, 13, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.login-error {
  color: #ff4d4d;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 14px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Sticky Live Edit Floating Control Bar */
.live-edit-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid var(--accent-purple);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-purple-glow);
  border-radius: 30px;
  padding: 10px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.edit-bar-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.edit-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse-dot-green 1.5s infinite ease-in-out;
}

@keyframes pulse-dot-green {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.edit-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-main);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tool:hover {
  background: rgba(157, 78, 221, 0.2);
  border-color: var(--accent-purple);
}

.btn-save {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  font-weight: 600;
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.btn-save:hover {
  background: #8b3abf;
  box-shadow: 0 0 18px var(--accent-purple-glow);
}

.btn-exit {
  background: rgba(255, 77, 77, 0.15);
  border-color: rgba(255, 77, 77, 0.4);
  color: #ff8080;
}

.btn-exit:hover {
  background: rgba(255, 77, 77, 0.3);
  color: #fff;
}

/* Rich Text Editor Box & Toolbar for Live Edit Mode */
.live-editor-wrapper {
  position: relative;
  margin: 6px 0;
}

.rte-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-active);
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  z-index: 10;
}

.rte-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.rte-btn:hover {
  background: rgba(157, 78, 221, 0.25);
  color: #fff;
}

.editable-field {
  border: 1px dashed var(--border-active);
  background: rgba(157, 78, 221, 0.05);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 8px 12px;
  outline: none;
  transition: border 0.2s, background 0.2s;
  min-height: 38px;
}

.editable-field:focus {
  border-style: solid;
  border-color: var(--accent-purple);
  background: rgba(157, 78, 221, 0.12);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.link-card.in-edit-mode {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.link-card-edit-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 4px;
}

.edit-select-icon, .edit-input-url {
  background: rgba(3, 5, 13, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  padding: 4px 8px;
  font-size: 0.8rem;
  outline: none;
}

.btn-toggle-hide, .btn-delete-card {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.btn-toggle-hide.hidden-state {
  background: rgba(255, 165, 0, 0.15);
  border-color: orange;
  color: orange;
}

.btn-delete-card {
  background: rgba(255, 77, 77, 0.18);
  border: 1px solid rgba(255, 77, 77, 0.5);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #ff9999;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-delete-card:hover {
  background: #ff4d4d;
  border-color: #ff4d4d;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
  transform: translateY(-1px);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  transition: var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link.active {
  color: var(--text-main);
}

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

/* Main Content Layout */
main {
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 60px;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

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

.greeting-subtitle {
  font-family: var(--font-heading);
  color: var(--accent-purple);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(157, 78, 221, 0.4);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.dot-accent {
  color: var(--accent-purple);
  display: inline-block;
  text-shadow: 0 0 15px var(--accent-purple);
  animation: pulse-dot 3s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.8; text-shadow: 0 0 12px var(--accent-purple-glow); }
  50% { opacity: 1; text-shadow: 0 0 24px var(--accent-purple), 0 0 36px var(--accent-purple-glow); }
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
}

.accent-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple) 0%, rgba(157, 78, 221, 0) 100%);
  border-radius: 2px;
  margin-bottom: 36px;
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

/* About Me Card inside Hero */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-normal);
}

.about-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px 0 rgba(157, 78, 221, 0.15);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent-purple);
}

.about-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.about-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Glowing Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-glowing {
  background: rgba(157, 78, 221, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-glowing:hover {
  background: rgba(157, 78, 221, 0.2);
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple-glow), inset 0 0 10px rgba(157, 78, 221, 0.3);
  transform: translateY(-2px);
}

.btn-glowing .arrow-icon {
  transition: transform 0.3s ease;
}

.btn-glowing:hover .arrow-icon {
  transform: translateX(4px);
}

/* Constellation Container placeholder (right side) */
.constellation-container {
  width: 100%;
  height: 480px;
  position: relative;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-subtle);
  transition: var(--transition-fast);
}

.scroll-indicator a:hover {
  color: var(--accent-purple);
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-subtle);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.3s;
}

.scroll-indicator a:hover .mouse-icon {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.wheel {
  width: 4px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s infinite ease-in-out;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

.scroll-text {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-arrow {
  animation: bounce-arrow 2s infinite ease-in-out;
}

@keyframes bounce-arrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

/* Common Section Layout */
.section {
  padding: 120px 0;
  position: relative;
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-purple);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* About Section Specifics */
.about-section {
  background: linear-gradient(180deg, rgba(3, 5, 13, 0) 0%, rgba(8, 13, 28, 0.5) 50%, rgba(3, 5, 13, 0) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-main-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}
.stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-blue);
}

/* Links Grid & Link Cards */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-purple);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(157, 78, 221, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  transition: all 0.3s ease;
}

.link-card:hover .link-icon {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.link-info {
  display: flex;
  flex-direction: column;
}

.link-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.link-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-arrow {
  color: var(--text-subtle);
  transition: transform 0.3s ease, color 0.3s ease;
}

.link-card:hover .link-arrow {
  color: var(--accent-purple);
  transform: translateX(4px);
}

/* Floating Tooltip for Orbs */
.orb-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid var(--accent-purple);
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.3), inset 0 0 10px rgba(157, 78, 221, 0.1);
  border-radius: 12px;
  padding: 12px 18px;
  max-width: 220px;
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -120%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.25s;
}

.orb-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -140%) scale(1);
}

.tooltip-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 4px;
}

.tooltip-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Keyboard Accessible Layer for Orbs */
.orb-accessible-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.orb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.orb-btn:focus-visible {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .constellation-container {
    height: 380px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 0 20px;
  }

  .hero-container {
    padding: 0 20px;
  }

  .hero-heading {
    font-size: 3rem;
  }

  .nav {
    gap: 20px;
  }

  .constellation-container {
    height: 320px;
  }

  .section {
    padding: 80px 0;
  }

  .section-container {
    padding: 0 20px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }
}
