@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  
  --bg-color: #030308;
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-dim: rgba(255, 255, 255, 0.25);
  
  --color-accent: #00e5ff; /* Cobalt/Cyan glow */
  --color-purple: #bd00ff; /* Nebula purple */
  --color-moon: #e2e8f0; /* Lunar silver */
  
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-color);
}

body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: transparent;
}

/* Background Stars Container */
#stars-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at center, #0a0a23 0%, #030308 100%);
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

#nebula-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 30%, rgba(189, 0, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.04) 0%, transparent 40%);
  filter: blur(40px);
}

/* Page Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
}

header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header h1 .feat {
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: lowercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  background: none;
  -webkit-text-fill-color: var(--text-muted);
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.5rem;
}

header .subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Main Interactive Area */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem;
}

/* Universe / Planet Container */
.universe-system {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

/* The Planet */
.planet-logo-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  animation: moonBreathe 6s ease-in-out infinite;
}

.planet-logo-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.75) 80%);
  z-index: 11;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Atmosphere glow border (tight white/silver lunar glow matching the moon image) */
.planet-logo-wrapper::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 75%);
  z-index: -1;
  opacity: 0.85;
  filter: blur(3px);
  transition: var(--transition-smooth);
}

.planet-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  z-index: 9;
  filter: grayscale(10%) contrast(110%);
  transition: var(--transition-smooth);
}

/* Planet Active & Hover States */
.universe-system.active .planet-logo-wrapper {
  transform: scale(1.05);
  animation-play-state: paused;
}

.universe-system.active .planet-logo-wrapper::before {
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.5) 80%);
}

.universe-system.active .planet-logo-wrapper::after {
  opacity: 0.9;
  filter: blur(8px);
}

@media (hover: hover) {
  .universe-system:hover .planet-logo-wrapper {
    transform: scale(1.05);
    animation-play-state: paused;
  }

  .universe-system:hover .planet-logo-wrapper::before {
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.5) 80%);
  }

  .universe-system:hover .planet-logo-wrapper::after {
    opacity: 0.9;
    filter: blur(8px);
  }
}

/* Orbit Menu Items */
.orbit-item {
  position: absolute;
  z-index: 5;
  opacity: 0;
  transform: translate(0, 0) scale(0.6);
  pointer-events: none;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.orbit-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  background: rgba(3, 3, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  position: absolute;
  top: 110%;
}

/* Planet Spheres - CSS Rendered 3D Planets */
.planet-sphere {
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  animation: planetPulse 4s ease-in-out infinite alternate;
}

/* Individual Planet Designs */
.planet-1 {
  width: 56px;
  height: 56px;
  background-image: url('planet-1.png');
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
  animation-delay: 0s;
}

.planet-2 {
  width: 60px;
  height: 60px;
  background-image: url('planet-2.png');
  box-shadow: 0 0 15px rgba(214, 0, 235, 0.6);
  animation-delay: 0.5s;
}

.planet-3 {
  width: 64px;
  height: 64px;
  background-image: url('planet-3.png');
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.5);
  animation-delay: 1s;
}

.planet-4 {
  width: 58px;
  height: 58px;
  background-image: url('planet-4.png');
  box-shadow: 0 0 15px rgba(139, 44, 255, 0.6);
  animation-delay: 1.5s;
}

.planet-5 {
  width: 62px;
  height: 62px;
  background-image: url('planet-5.png');
  box-shadow: 0 0 15px rgba(255, 159, 0, 0.6);
  animation-delay: 2s;
}

.planet-6 {
  width: 48px;
  height: 48px;
  background-image: url('planet-6.png');
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.8);
  animation-delay: 2.5s;
}

.planet-7 {
  width: 54px;
  height: 54px;
  background-image: url('planet-7.png');
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
  animation-delay: 3s;
}

.planet-8 {
  width: 60px;
  height: 60px;
  background-image: url('planet-8.png');
  box-shadow: 0 0 15px rgba(189, 0, 255, 0.6);
  animation-delay: 3.5s;
}

/* Individual planet animation */
@keyframes planetPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-5px) scale(1.02);
  }
}

/* Individual item offsets on active state */
.universe-system.active .orbit-item {
  opacity: 1;
  pointer-events: auto;
}

/* Show labels immediately when universe is active */
.universe-system.active .orbit-label {
  opacity: 0.85;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/*
  Symmetrical Offsets for 8 items in a circular layout
  1. Music: Top-Center (0, -210px)
  2. Mythology & Ritual: Top-Right (150px, -150px)
  3. Philosophy & Defiance: Middle-Right (220px, 15px)
  4. Gallery: Bottom-Right (150px, 175px)
  5. News: Bottom-Center (0, 220px)
  6. Creative Alchemy: Bottom-Left (-150px, 175px)
  7. Power of the Universe: Middle-Left (-220px, 15px)
  8. Music Reality: Top-Left (-150px, -150px)
*/
.universe-system.active .orbit-item:nth-child(1) {
  transform: translate(0, -210px) scale(1);
}

.universe-system.active .orbit-item:nth-child(2) {
  transform: translate(150px, -150px) scale(1);
}

.universe-system.active .orbit-item:nth-child(3) {
  transform: translate(220px, 15px) scale(1);
}

.universe-system.active .orbit-item:nth-child(4) {
  transform: translate(150px, 175px) scale(1);
}

.universe-system.active .orbit-item:nth-child(5) {
  transform: translate(0, 220px) scale(1);
}

.universe-system.active .orbit-item:nth-child(6) {
  transform: translate(-150px, 175px) scale(1);
}

.universe-system.active .orbit-item:nth-child(7) {
  transform: translate(-220px, 15px) scale(1);
}

.universe-system.active .orbit-item:nth-child(8) {
  transform: translate(-150px, -150px) scale(1);
}

@media (hover: hover) {
  /* Individual item offsets on hover */
  .universe-system:hover .orbit-item {
    opacity: 1;
    pointer-events: auto;
  }

  /* Show labels immediately when universe is hovered */
  .universe-system:hover .orbit-label {
    opacity: 0.85;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .universe-system:hover .orbit-item:nth-child(1) {
    transform: translate(0, -210px) scale(1);
  }

  .universe-system:hover .orbit-item:nth-child(2) {
    transform: translate(150px, -150px) scale(1);
  }

  .universe-system:hover .orbit-item:nth-child(3) {
    transform: translate(220px, 15px) scale(1);
  }

  .universe-system:hover .orbit-item:nth-child(4) {
    transform: translate(150px, 175px) scale(1);
  }

  .universe-system:hover .orbit-item:nth-child(5) {
    transform: translate(0, 220px) scale(1);
  }

  .universe-system:hover .orbit-item:nth-child(6) {
    transform: translate(-150px, 175px) scale(1);
  }

  .universe-system:hover .orbit-item:nth-child(7) {
    transform: translate(-220px, 15px) scale(1);
  }

  .universe-system:hover .orbit-item:nth-child(8) {
    transform: translate(-150px, -150px) scale(1);
  }
}

/* Hovering directly on a planet item makes it glow and reveals its label */
.orbit-item:hover .planet-sphere {
  transform: scale(1.25) translateY(-3px);
  box-shadow: 
    inset -2px -2px 6px rgba(0, 0, 0, 0.6), 
    inset 2px 2px 8px rgba(255, 255, 255, 0.6),
    0 0 25px rgba(255, 255, 255, 0.8);
  animation-play-state: paused;
}

.orbit-item:hover .orbit-label {
  opacity: 1;
  transform: translateY(0) scale(1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Spotify & YouTube Player Bar */
.media-links {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  z-index: 10;
}

.media-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.media-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

.media-btn.spotify:hover {
  color: #1ed760;
  border-color: rgba(30, 215, 96, 0.4);
  box-shadow: 0 0 15px rgba(30, 215, 96, 0.2);
}

.media-btn.youtube:hover {
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

/* Motto */
.motto-container {
  max-width: 600px;
  text-align: center;
  margin: 1.5rem auto 3rem auto;
  padding: 0 1.5rem;
  z-index: 10;
}

.motto-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.motto-text:hover {
  color: var(--text-muted);
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 2rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.footer-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}

.footer-mail-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-mail-link:hover {
  color: var(--color-accent);
  transform: translateY(-3px) scale(1.15);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

/* Animations */
@keyframes moonBreathe {
  0%, 100% {
    box-shadow: 
      0 0 15px rgba(255, 255, 255, 0.4), 
      0 0 35px rgba(255, 255, 255, 0.15),
      inset 0 0 25px rgba(0, 0, 0, 0.8);
  }
  50% {
    box-shadow: 
      0 0 25px rgba(255, 255, 255, 0.65), 
      0 0 50px rgba(255, 255, 255, 0.25),
      inset 0 0 20px rgba(0, 0, 0, 0.75);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  
  .universe-system {
    width: 320px;
    height: 380px;
  }
  
  .planet-logo-wrapper {
    width: 130px;
    height: 130px;
  }
  
  /* Mobile positions (6 orbit items closer to planet) - starts collapsed */
  .orbit-item {
    opacity: 0;
    pointer-events: none;
    transform: translate(0, 0) scale(0.6);
  }

  .universe-system:hover .orbit-item,
  .universe-system.active .orbit-item {
    opacity: 1;
    pointer-events: auto;
  }

  .universe-system:hover .orbit-item:nth-child(1),
  .universe-system.active .orbit-item:nth-child(1) {
    transform: translate(0, -130px) scale(0.9);
  }

  .universe-system:hover .orbit-item:nth-child(2),
  .universe-system.active .orbit-item:nth-child(2) {
    transform: translate(95px, -95px) scale(0.9);
  }

  .universe-system:hover .orbit-item:nth-child(3),
  .universe-system.active .orbit-item:nth-child(3) {
    transform: translate(130px, 10px) scale(0.9);
  }

  .universe-system:hover .orbit-item:nth-child(4),
  .universe-system.active .orbit-item:nth-child(4) {
    transform: translate(95px, 110px) scale(0.9);
  }

  .universe-system:hover .orbit-item:nth-child(5),
  .universe-system.active .orbit-item:nth-child(5) {
    transform: translate(0, 140px) scale(0.9);
  }

  .universe-system:hover .orbit-item:nth-child(6),
  .universe-system.active .orbit-item:nth-child(6) {
    transform: translate(-95px, 110px) scale(0.9);
  }

  .universe-system:hover .orbit-item:nth-child(7),
  .universe-system.active .orbit-item:nth-child(7) {
    transform: translate(-130px, 10px) scale(0.9);
  }

  .universe-system:hover .orbit-item:nth-child(8),
  .universe-system.active .orbit-item:nth-child(8) {
    transform: translate(-95px, -95px) scale(0.9);
  }
  
  .universe-system:hover .orbit-label,
  .universe-system.active .orbit-label,
  .orbit-item:hover .orbit-label {
    font-size: 0.72rem;
    padding: 0.4rem 0.6rem;
    opacity: 0.9;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    white-space: normal;
    text-align: center;
    max-width: 100px;
    width: max-content;
    display: inline-block;
  }
}
