/* 
  =========================================
  DESIGN SYSTEM & SYSTEM VARIABLES
  =========================================
*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-deep-space: #03030c;
  --bg-hud: rgba(10, 10, 22, 0.65);
  --border-hud: rgba(255, 255, 255, 0.08);
  --border-hud-glow: rgba(0, 240, 255, 0.2);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  /* Orbit/Thématique Colors */
  --color-sun-glow: rgba(245, 158, 11, 0.4);
  --color-orbit-1: #3b82f6; /* Blue - Pro & RPA */
  --color-orbit-2: #f43f5e; /* Rose/Neon - Photo & Art */
  --color-orbit-3: #10b981; /* Green - Tech Photo */
  --color-orbit-4: #8b5cf6; /* Violet - Projets Persos */

  --glow-orbit-1: 0 0 15px rgba(59, 130, 246, 0.6);
  --glow-orbit-2: 0 0 15px rgba(244, 63, 94, 0.6);
  --glow-orbit-3: 0 0 15px rgba(16, 185, 129, 0.6);
  --glow-orbit-4: 0 0 15px rgba(139, 92, 246, 0.6);

  /* Fonts */
  --font-hud: 'Orbitron', sans-serif;
  --font-content: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Perspectives */
  --tilt-x: 65deg;
  --tilt-y: 0deg;
  --tilt-z: -12deg;
}

/* 
  =========================================
  BASE STYLES & RESET
  =========================================
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep-space);
  color: var(--text-primary);
  font-family: var(--font-content);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  user-select: none;
}

/* Starfield Background Canvas */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Nebula background effect */
.nebula {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.03) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

/* 
  =========================================
  LAYOUT
  =========================================
*/
main {
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Views */
.view-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.view-container.active {
  opacity: 1;
  pointer-events: auto;
}

/* 
  =========================================
  COSMIC VIEW (SOLAR SYSTEM)
  =========================================
*/
#cosmic-view {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  overflow: hidden;
}

/* Outer Orbit Wrapper - Applies the 3D tilt */
.universe-wrapper {
  position: absolute;
  width: 1000px;
  height: 1000px;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--tilt-z));
  transition: transform var(--transition-slow);
}

/* Center of the solar system */
.sun-system-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  z-index: 10;
}

/* The Sun (Renaud HENRY) Card/Sphere */
.sun {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, #ffe082 0%, #ff8f00 70%, #d84315 100%);
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 40px var(--color-sun-glow), 
              0 0 80px rgba(245, 158, 11, 0.2), 
              inset 0 0 20px rgba(255, 255, 255, 0.6);
  /* Billboard effect: Keep Sun facing camera */
  transform: rotateZ(calc(-1 * var(--tilt-z))) rotateY(calc(-1 * var(--tilt-y))) rotateX(calc(-1 * var(--tilt-x)));
  transition: transform var(--transition-slow), box-shadow var(--transition-normal);
}

.sun:hover {
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.6), 
              0 0 100px rgba(245, 158, 11, 0.4), 
              inset 0 0 25px rgba(255, 255, 255, 0.8);
}

/* Profile Photo Container inside Sun */
.sun-photo-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
  background-color: #0c0a09;
}

.sun-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glowing Corona around Sun */
.sun-corona {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.15);
  animation: pulse-corona 4s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulse-corona {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.25);
  }
}

/* Orbits */
.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  pointer-events: none;
  transition: border-color var(--transition-normal);
}

.orbit-line.active {
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
}

/* Orbit Path Labels */
.orbit-label {
  position: absolute;
  font-family: var(--font-hud);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotateX(0deg);
  white-space: nowrap;
  pointer-events: none;
}

/* Planet orbit positions container */
.planet-track {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  animation: rotate-orbit linear infinite;
  pointer-events: none;
}

@keyframes rotate-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* individual planet parent for billboarding */
.planet-billboard {
  position: absolute;
  transform-style: preserve-3d;
  /* Cancel the rotation of the track so the billboarding remains straight */
  animation: counter-rotate-orbit linear infinite;
  pointer-events: none;
}

@keyframes counter-rotate-orbit {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* The Planet Element */
.planet-element {
  position: relative;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transform-style: preserve-3d;
  /* Inverse rotation of wrapper so planets look upright */
  transform: rotateZ(calc(-1 * var(--tilt-z))) rotateY(calc(-1 * var(--tilt-y))) rotateX(calc(-1 * var(--tilt-x)));
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

/* Orbited theme colors */
.planet-element[data-orbit="1"] {
  background: radial-gradient(circle at 30% 30%, #93c5fd 0%, var(--color-orbit-1) 60%, #1e40af 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), inset -3px -3px 8px rgba(0,0,0,0.6);
}
.planet-element[data-orbit="2"] {
  background: radial-gradient(circle at 30% 30%, #fca5a5 0%, var(--color-orbit-2) 60%, #9f1239 100%);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.3), inset -3px -3px 8px rgba(0,0,0,0.6);
}
.planet-element[data-orbit="3"] {
  background: radial-gradient(circle at 30% 30%, #6ee7b7 0%, var(--color-orbit-3) 60%, #065f46 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3), inset -3px -3px 8px rgba(0,0,0,0.6);
}
.planet-element[data-orbit="4"] {
  background: radial-gradient(circle at 30% 30%, #c4b5fd 0%, var(--color-orbit-4) 60%, #5b21b6 100%);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3), inset -3px -3px 8px rgba(0,0,0,0.6);
}

/* Planet hover / focus state */
.planet-element:hover, .planet-element.selected {
  transform: rotateZ(calc(-1 * var(--tilt-z))) rotateY(calc(-1 * var(--tilt-y))) rotateX(calc(-1 * var(--tilt-x))) scale(1.25);
}

.planet-element[data-orbit="1"]:hover, .planet-element[data-orbit="1"].selected { box-shadow: var(--glow-orbit-1), inset -2px -2px 6px rgba(0,0,0,0.4); }
.planet-element[data-orbit="2"]:hover, .planet-element[data-orbit="2"].selected { box-shadow: var(--glow-orbit-2), inset -2px -2px 6px rgba(0,0,0,0.4); }
.planet-element[data-orbit="3"]:hover, .planet-element[data-orbit="3"].selected { box-shadow: var(--glow-orbit-3), inset -2px -2px 6px rgba(0,0,0,0.4); }
.planet-element[data-orbit="4"]:hover, .planet-element[data-orbit="4"].selected { box-shadow: var(--glow-orbit-4), inset -2px -2px 6px rgba(0,0,0,0.4); }

/* Planet Rings (e.g. Satellites / Sub-orbits / Glow Rings) */
.planet-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.planet-element:hover .planet-ring, .planet-element.selected .planet-ring {
  opacity: 1;
  transform: scale(1.15);
}

/* Planet Name Tag (Subtle label below planet) */
.planet-tag {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-hud);
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--transition-normal), color var(--transition-normal);
}

.planet-element:hover .planet-tag, .planet-element.selected .planet-tag {
  opacity: 1;
  color: var(--text-primary);
}

/* 
  =========================================
  INTERACTIVE HUD OVERLAYS (GLASSMORPHISM)
  =========================================
*/

/* 1. Header / Brand Overlay */
header {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
  pointer-events: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  padding: 10px 18px;
  border-radius: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo-icon {
  width: 20px;
  height: 20px;
  color: var(--color-orbit-1);
  filter: drop-shadow(0 0 5px var(--color-orbit-1));
  animation: rotate-logo 10s linear infinite;
}

@keyframes rotate-logo {
  100% { transform: rotate(360deg); }
}

.logo-text h1 {
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-text p {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* 2. Top-Right Mode Controls */
.controls-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  gap: 12px;
}

.hud-btn {
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  color: var(--text-secondary);
  font-family: var(--font-hud);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.hud-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.hud-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hud-glow);
  box-shadow: 0 0 15px var(--border-hud-glow);
  transform: translateY(-2px);
}

.hud-btn.active {
  color: #03030c;
  background: var(--text-primary);
  border-color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.hud-btn:active {
  transform: translateY(0);
}

/* 3. Cosmic System Control Dock (Play/Pause, Zoom, Speed) */
.system-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 16px;
}

.dock-divider {
  width: 1px;
  height: 20px;
  background-color: var(--border-hud);
}

.dock-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast);
}

.dock-btn svg {
  width: 16px;
  height: 16px;
}

.dock-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.dock-btn.active {
  color: var(--color-orbit-1);
}

.dock-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.dock-status {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  min-width: 60px;
  text-align: center;
}

/* 4. Left HUD - Profile Details (Fixed / slide-in) */
.profile-hud {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 320px;
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-slow);
}

.profile-hud h2 {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.profile-hud h3 {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  color: var(--color-orbit-1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -6px;
}

.profile-hud p.bio {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.profile-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  border-top: 1px solid var(--border-hud);
  padding-top: 12px;
}

.profile-badge {
  font-family: var(--font-hud);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* 5. Right HUD - Planet Inspector Sidebar */
.inspector-hud {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 24px;
  z-index: 90;
  transform: translateX(380px); /* Initially hidden */
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspector-hud.active {
  transform: translateX(0);
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-hud);
  padding-bottom: 12px;
}

.inspector-theme-label {
  font-family: var(--font-hud);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.inspector-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.inspector-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.inspector-title {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

.inspector-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.inspector-tech-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspector-section-title {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.inspector-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Custom themed tech tags based on planet theme color */
.inspector-hud[data-theme="1"] .tech-tag { border-color: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.inspector-hud[data-theme="2"] .tech-tag { border-color: rgba(244, 63, 94, 0.2); color: #fca5a5; }
.inspector-hud[data-theme="3"] .tech-tag { border-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.inspector-hud[data-theme="4"] .tech-tag { border-color: rgba(139, 92, 246, 0.2); color: #c4b5fd; }

.inspector-hud[data-theme="1"] { border-left: 3px solid var(--color-orbit-1); }
.inspector-hud[data-theme="2"] { border-left: 3px solid var(--color-orbit-2); }
.inspector-hud[data-theme="3"] { border-left: 3px solid var(--color-orbit-3); }
.inspector-hud[data-theme="4"] { border-left: 3px solid var(--color-orbit-4); }

.launch-btn {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg-deep-space);
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.inspector-hud[data-theme="1"] .launch-btn { background: var(--color-orbit-1); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.inspector-hud[data-theme="2"] .launch-btn { background: var(--color-orbit-2); color: white; box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3); }
.inspector-hud[data-theme="3"] .launch-btn { background: var(--color-orbit-3); color: white; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.inspector-hud[data-theme="4"] .launch-btn { background: var(--color-orbit-4); color: white; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }

.inspector-hud[data-theme="1"] .launch-btn:hover { box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5); }
.inspector-hud[data-theme="2"] .launch-btn:hover { box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5); }
.inspector-hud[data-theme="3"] .launch-btn:hover { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); }
.inspector-hud[data-theme="4"] .launch-btn:hover { box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5); }

/* 6. Floating Tooltip */
.hud-tooltip {
  position: absolute;
  z-index: 200;
  background: rgba(8, 8, 16, 0.85);
  border: 1px solid var(--border-hud);
  padding: 10px 14px;
  border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  max-width: 250px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hud-tooltip.active {
  opacity: 1;
  transform: scale(1);
}

.tooltip-title {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.tooltip-desc {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.tooltip-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tooltip-tech-badge {
  font-size: 0.55rem;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 2px;
}

/* 
  =========================================
  LIST VIEW (RESPONSIVE CARDS GRID)
  =========================================
*/
#list-view {
  overflow-y: auto;
  padding: 100px 24px 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Intro Header in List View */
.list-intro {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.list-profile-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--color-orbit-1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  object-fit: cover;
}

.list-intro h1 {
  font-family: var(--font-hud);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.list-intro p.title {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-orbit-1);
  text-transform: uppercase;
  margin-top: -10px;
}

.list-intro p.bio {
  max-width: 600px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Categories in List */
.list-category {
  margin-bottom: 48px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-hud);
  padding-bottom: 12px;
}

.category-header svg {
  width: 20px;
  height: 20px;
}

.list-category[data-orbit="1"] .category-header { color: var(--color-orbit-1); }
.list-category[data-orbit="2"] .category-header { color: var(--color-orbit-2); }
.list-category[data-orbit="3"] .category-header { color: var(--color-orbit-3); }
.list-category[data-orbit="4"] .category-header { color: var(--color-orbit-4); }

.category-header h2 {
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* Glassmorphic Card */
.site-card {
  background: var(--bg-hud);
  border: 1px solid var(--border-hud);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hud-glow);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.list-category[data-orbit="1"] .site-card:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 15px rgba(59, 130, 246, 0.15); }
.list-category[data-orbit="2"] .site-card:hover { border-color: rgba(244, 63, 94, 0.4); box-shadow: 0 0 15px rgba(244, 63, 94, 0.15); }
.list-category[data-orbit="3"] .site-card:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 15px rgba(16, 185, 129, 0.15); }
.list-category[data-orbit="4"] .site-card:hover { border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 0 15px rgba(139, 92, 246, 0.15); }

.card-title {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-card:hover .card-title svg {
  transform: translate(2px, -2px);
  opacity: 1;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.card-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.card-techs span {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-radius: 4px;
}

.list-category[data-orbit="1"] .card-techs span { color: #93c5fd; }
.list-category[data-orbit="2"] .card-techs span { color: #fca5a5; }
.list-category[data-orbit="3"] .card-techs span { color: #6ee7b7; }
.list-category[data-orbit="4"] .card-techs span { color: #c4b5fd; }


/* 
  =========================================
  SCROLLBAR
  =========================================
*/
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep-space);
}
::-webkit-scrollbar-thumb {
  background: var(--border-hud);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


/* 
  =========================================
  RESPONSIVE MEDIA QUERIES
  =========================================
*/

/* Mobile Adjustments (under 1024px) */
@media (max-width: 1024px) {
  /* On tablets/smaller desktops, scale down the solar system wrapper to fit */
  .universe-wrapper {
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--tilt-z)) scale(0.85);
  }
}

/* Mobile Breakpoint (under 768px) */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
  }
  
  /* Cosmic view scaled down and pan-enabled */
  #cosmic-view {
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 150px;
    height: auto;
  }
  
  .universe-wrapper {
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--tilt-z)) scale(0.55);
    margin-top: 100px;
  }
  
  /* Make inspector slide up from bottom instead of side on mobile */
  .inspector-hud {
    width: calc(100% - 32px);
    right: 16px;
    bottom: 16px;
    left: 16px;
    transform: translateY(380px);
  }
  
  .inspector-hud.active {
    transform: translateY(0);
  }

  /* Profile HUD (left card) moved into top layout or simplified */
  .profile-hud {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 80px;
    box-shadow: none;
    border-radius: 8px;
    backdrop-filter: none;
    background: transparent;
    border: none;
    padding: 0;
  }

  .profile-hud h3, .profile-hud .profile-skills-grid {
    display: none; /* Hide non-essential details in mobile solar system view */
  }

  /* Toggle view buttons adjustments */
  header {
    top: 16px;
    left: 16px;
  }

  .controls-panel {
    top: 16px;
    right: 16px;
  }

  .system-dock {
    bottom: 16px;
    padding: 6px 12px;
    gap: 8px;
  }

  .dock-status {
    display: none; /* Hide speed readout on mobile to save space */
  }
}

/* Very Small Mobile Breakpoint (under 480px) */
@media (max-width: 480px) {
  .universe-wrapper {
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--tilt-z)) scale(0.42);
    margin-top: 140px;
  }
  
  .sun {
    width: 110px;
    height: 110px;
  }
  
  .sun-photo-container {
    width: 90px;
    height: 90px;
  }
  
  .logo-text h1 {
    font-size: 0.85rem;
  }
  
  .logo-text p {
    display: none;
  }
}
