/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #ffffff;
  color: #000000;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid #3b82f6;
}

/* Stars background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Planets */
.planets-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.planet {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.planet-1 {
  width: 128px;
  height: 128px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  opacity: 0.2;
  top: 10%;
  left: 80%;
  animation-duration: 6s;
}

.planet-2 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  opacity: 0.3;
  top: 70%;
  left: 10%;
  animation-duration: 8s;
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Main content */
.main-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* Hero section */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 64rem;
}

.logo-container {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.logo-box {
  display: inline-block;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.logo-box:hover {
  transform: scale(1.05);
}

.logo-box:focus-within {
  outline: 4px solid #93c5fd;
}

.logo-text {
  font-size: 3rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.1em;
}

.sparkle-icon {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  font-size: 2rem;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-title {
  font-size: 2rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.highlight {
  color: #93c5fd;
  font-weight: 600;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: #e5e7eb;
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 0.875rem;
  color: #e5e7eb;
}

/* Domain info section */
.domain-info {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.tech-details {
  display: inline-block;
}

.tech-summary {
  cursor: pointer;
  color: #d1d5db;
  transition: color 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.25rem;
  outline: none;
  list-style: none;
}

.tech-summary::-webkit-details-marker {
  display: none;
}

.tech-summary:hover {
  color: #ffffff;
}

.tech-summary:focus {
  outline: 2px solid #93c5fd;
}

.tech-summary-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-icon {
  width: 1rem;
  height: 1rem;
}

.tech-content {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
}

.tech-content p {
  margin-bottom: 0.25rem;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.footer p {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Reduced motion indicator */
.reduced-motion-indicator {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #eab308;
  color: #000000;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  z-index: 50;
}

/* Responsive design */
@media (max-width: 768px) {
  .logo-text {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .planet-1 {
    width: 96px;
    height: 96px;
  }

  .planet-2 {
    width: 64px;
    height: 64px;
  }

  .sparkle-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1rem 0.5rem;
  }

  .logo-box {
    padding: 1rem 1.5rem;
  }

  .logo-text {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .star,
  .planet,
  .sparkle-icon,
  .hero-title,
  .status-dot {
    animation: none;
  }

  .logo-box:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-description {
    color: #ffffff;
  }

  .status-text {
    color: #ffffff;
  }

  .tech-summary {
    color: #ffffff;
  }
}
