/*
 * Celestial Rust "We Have Moved" page styles
 *
 * This stylesheet defines the colour palette and layout used on the
 * landing page informing visitors about the site move. Colours and
 * animations are inspired by the original Celestial Rust design.
 */

/* Root colour variables for easy theme adjustments */
:root {
  --background: #0f0823;
  --primary: #6c3ce9;
  --accent: #9b7aff;
  --secondary: #1a103c;
  --foreground: #f8fafc;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  /* Use a cosmic image as the base layer */
  background-image: url('assets/images/stars-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hero section layout */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  flex: 1;
  overflow: hidden;
  /* Overlay a semi‑transparent gradient to help text stand out */
  background: linear-gradient(rgba(15, 8, 35, 0.9), rgba(15, 8, 35, 0.9));
}

/* Logo styling */
.logo {
  width: 200px;
  max-width: 80vw;
  height: auto;
  margin-bottom: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

/* Headings and text */
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  h1 {
    font-size: 3.5rem;
  }
}

p {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2rem;
  color: var(--foreground);
}

/* Call‑to‑action button */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--foreground);
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--accent);
  color: var(--foreground);
}

/* Footer styling */
footer {
  text-align: center;
  padding: 1rem 0;
  background-color: var(--secondary);
  color: var(--foreground);
  font-size: 0.875rem;
}

/* Star elements created by JavaScript */
.star {
  position: absolute;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0.8;
  animation: glow 5s ease-in-out infinite;
}

/* Glow effect around the logo */
.celestial-glow {
  position: relative;
}

.celestial-glow::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(108, 60, 233, 0.4) 0%,
    rgba(108, 60, 233, 0) 70%
  );
  animation: glow 6s ease-in-out infinite;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}