/* ============================================================
   HOME PAGE — BACKGROUND TRANSITION (8 SECONDS)
   ============================================================ */

body {
  background: url('/assets/images/day-background.jpg') no-repeat center center fixed;
  background-size: cover;
  transition: background 8s ease;
}

body.dark-mode {
  background: url('/assets/images/night-background.jpg') no-repeat center center fixed;
  background-size: cover;
}


/* ============================================================
   HERO SECTION LAYOUT
   ============================================================ */

.home-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 60px;
}


/* ============================================================
   HERO CROWN — DUAL-LAYER 8 SECOND CROSSFADE
   ============================================================ */

.hero-crown-wrapper {
  position: relative;
  width: 189px;
  height: 189px;
  margin: 0 auto;
}

/* Base crown styling */
.hero-crown {
  position: absolute;
  top: 0;
  left: 0;
  width: 189px;
  height: 189px;
  opacity: 0;
  transition: opacity 8s ease, transform 8s ease, filter 8s ease;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.6));
}

/* Day crown visible by default */
.crown-day {
  opacity: 1;
}

/* Night crown hidden by default */
.crown-night {
  opacity: 0;
}

/* When dark mode is active */
body.dark-mode .crown-day {
  opacity: 0;
}

body.dark-mode .crown-night {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(255,255,255,1));
}
/* ============================================================
   DAY CLOUDS — PURE CSS GRADIENT CLOUDS + DRIFT
   ============================================================ */

.day-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background: 
    radial-gradient(circle at 20% 40%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(circle at 60% 30%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 65%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
  filter: blur(20px);
  animation: cloudDrift 60s linear infinite;
}

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hidden in night mode */
body.dark-mode .day-clouds {
  opacity: 0;
  transition: opacity 4s ease;
}
/* ============================================================
   NIGHT NEBULA — PURE CSS COSMIC GLOW + SHIMMER
   ============================================================ */

.night-nebula {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(120,80,255,0.25) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(circle at 70% 60%, rgba(60,120,255,0.20) 0%, rgba(0,0,0,0) 65%),
    radial-gradient(circle at 50% 80%, rgba(180,60,255,0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(40px);
  animation: nebulaShift 80s ease-in-out infinite alternate;
}

@keyframes nebulaShift {
  0%   { opacity: 0.15; transform: scale(1); }
  50%  { opacity: 0.28; transform: scale(1.05); }
  100% { opacity: 0.18; transform: scale(1.02); }
}

/* Visible only in night mode */
body.dark-mode .night-nebula {
  opacity: 1;
  transition: opacity 4s ease;
}
