html {
  scroll-behavior: smooth;
}

/* ==============================
   BASE HALO-STYLE SPACE BACKGROUND
============================== */

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Bruno Ace SC", sans-serif;
  color: #cfe9ff;

  /* Base clean gradient */
  background: linear-gradient(135deg, #05080f, #0b1c2d, #102a43, #05080f);

  overflow-x: hidden; /* allow scrolling vertically */
  overflow-y: auto;

  position: relative;
}

/* Planets */
body::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 70%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,215,150,0.5), transparent 60%);
  border-radius: 50%;
  filter: blur(3px);
  z-index: 0;
}

body::after {
  content: "";
  position: absolute;
  top: 55%;
  left: 15%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(120,180,255,0.4), transparent 60%);
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}

/* ==============================
   SHOOTING STARS
============================== */

@keyframes shootStar {
  0% { offset-distance: 2%; opacity: 0; }
  10% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  filter: blur(0.4px);
  opacity: 0;
  z-index: 1;
  animation: shootStar linear infinite;
  offset-rotate: auto -95deg;
  pointer-events: none;
}

/* Depth variants */
.shooting-star.far { transform: scale(0.6); opacity: 0.6; filter: blur(0.6px); }
.shooting-star.very-far { transform: scale(0.4); opacity: 0.4; filter: blur(1px); }

/* Curved trajectories */
.shooting-star:nth-child(1) { offset-path: path("M 1200 0 Q 600 200 0 500"); animation-duration: 4s; animation-delay: 1s; }
.shooting-star:nth-child(2) { offset-path: path("M 1000 100 Q 500 300 0 600"); animation-duration: 5s; animation-delay: 3s; }
.shooting-star:nth-child(3) { offset-path: path("M 1400 50 Q 700 250 100 700"); animation-duration: 3.5s; animation-delay: 6s; }
.shooting-star:nth-child(4) { offset-path: path("M 1100 0 Q 650 180 200 550"); animation-duration: 4.5s; animation-delay: 9s; }
.shooting-star:nth-child(5) { offset-path: path("M 1300 150 Q 700 400 300 800"); animation-duration: 6s; animation-delay: 12s; }

/* Ringed planet */
.ringed-planet {
  position: absolute;
  top: 40%;
  left: 70%;
  width: 120px;
  height: 120px;
}

.ringed-planet::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 180px;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.35) 0%, rgba(200,220,255,0.25) 20%, rgba(160,180,220,0.18) 40%, rgba(120,140,180,0.1) 60%, transparent 75%);
  filter: blur(2px);
  opacity: 0.85;
  pointer-events: none;
}

@keyframes galaxyDrift {
  from { transform: translate(-50%, -50%) rotate(-20deg); }
  to { transform: translate(-50%, -50%) rotate(340deg); }
}

.ringed-planet::after,
.ringed-planet::before {
  animation: galaxyDrift 300s linear infinite;
}

/* ==============================
   UNIVERSAL HALO PAGE TITLE
============================== */

h1 {
  position: relative;
  display: inline-block;

  margin: 40px auto 60px;
  padding: 25px 60px;

  font-family: "Bruno Ace SC", sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 6px;
  text-transform: uppercase;
  text-align: center;

  color: #dff3ff;

  background:
    linear-gradient(
      145deg,
      rgba(10, 35, 60, 0.95),
      rgba(5, 20, 40, 0.9)
    );

  border: 2px solid rgba(125, 211, 252, 0.6);
  border-radius: 14px;

  box-shadow:
    0 0 12px rgba(125, 211, 252, 0.45),
    0 0 28px rgba(125, 211, 252, 0.25),
    inset 0 0 20px rgba(125, 211, 252, 0.15);

  z-index: 3;
}

h1::before,
h1::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;

  border: 3px solid rgba(125, 211, 252, 0.9);

  opacity: 0.9;
}

h1::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

h1::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

@keyframes titlePulse {
  0% {
    box-shadow:
      0 0 12px rgba(125, 211, 252, 0.4),
      0 0 28px rgba(125, 211, 252, 0.2),
      inset 0 0 20px rgba(125, 211, 252, 0.15);
  }
  100% {
    box-shadow:
      0 0 18px rgba(125, 211, 252, 0.8),
      0 0 45px rgba(125, 211, 252, 0.45),
      inset 0 0 30px rgba(125, 211, 252, 0.25);
  }
}

h1 {
  animation: titlePulse 3.5s ease-in-out infinite alternate;
}

/* ==============================
   NAV LINKS
============================== */
.nav-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.nav-links a {
  color: #cfe9ff;
  background: linear-gradient(145deg, rgba(11,40,70,0.8), rgba(0,20,40,0.6));
  padding: 21px 42px;
  font-size: 21px;
  border-radius: 15px;
  border: 2px solid rgba(125,211,252,0.6);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 20px 10px 20px;
  box-shadow: 0 0 10px rgba(125,211,252,0.3);
}

.nav-links a:hover {
  background: linear-gradient(145deg, rgba(20,60,100,0.9), rgba(5,25,50,0.8));
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(125,211,252,0.7);
}

/* ==============================
   ORDERED LIST
============================== */
ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: rgba(10,25,50,0.8);
  display: flex;
  justify-content: center;
  border-top: 2px solid rgba(125,211,252,0.5);
  border-bottom: 2px solid rgba(125,211,252,0.5);
  z-index: 2;
  position: relative;
}

ol li a {
  display: block;
  color: #cfe9ff;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: bold;
}

ol li a:hover {
  background-color: rgba(125,211,252,0.2);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .header-container { flex-direction: column; gap: 20px; }
  .nav-links { gap: 15px; }
}

@media (max-width: 480px) {
  .gradient { font-size: 26px; }
  .nav-links a { padding: 10px 14px; font-size: 14px; }
  .intro-box { padding: 20px; }
}

/* ==============================
   EXTRA SPACE ELEMENTS
============================== */

/* Small planets */
.planet-orange, .planet-blue, .planet-purple {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  z-index: 0;
  pointer-events: none;
  animation: planetDrift linear infinite alternate;
}

.planet-orange { width: 80px; height: 80px; top: 20%; left: 10%; background: radial-gradient(circle, rgba(255,160,90,0.5), transparent 65%); animation-duration: 60s; }
.planet-blue { width: 100px; height: 100px; top: 60%; left: 50%; background: radial-gradient(circle, rgba(120,180,255,0.4), transparent 65%); animation-duration: 80s; }
.planet-purple { width: 70px; height: 70px; top: 40%; left: 25%; background: radial-gradient(circle, rgba(180,120,255,0.4), transparent 65%); animation-duration: 100s; }

@keyframes planetDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -5px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Twinkling stars overlay */
.star-field, .star-field.extra1, .star-field.extra2 {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

@keyframes twinkle {
  0%,100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.star-field::before, .star-field::after,
.star-field.extra1::before, .star-field.extra1::after,
.star-field.extra2::before, .star-field.extra2::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 300px 300px;
  animation: twinkle 4s infinite alternate;
}

/* Galaxies */
.galaxy-one, .galaxy-two {
  position: absolute;
  width: 400px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(180,200,255,0.25), rgba(120,150,255,0.15), transparent 70%);
  filter: blur(6px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.galaxy-one { top: 70%; left: 5%; transform: rotate(-15deg); }
.galaxy-two { top: 10%; left: 65%; transform: rotate(25deg); }

/* Extra shooting stars layer */
.shooting-star-extra {
  position: absolute;
  width: 2px;
  height: 60px;
  background: linear-gradient(0deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
  filter: blur(0.3px);
  opacity: 0;
  z-index: 1;
  animation: shootStar linear infinite;
  offset-rotate: auto -95deg;
  pointer-events: none;
}

/* HALO-GUARDIAN STYLE PLANET MOVEMENT */
body::before, body::after, .planet-orange, .planet-blue, .planet-purple {
  animation: guardianDrift linear infinite;
}

body::before { animation-duration: 250s; }
body::after { animation-duration: 300s; }
.planet-orange { animation-duration: 220s; }
.planet-blue { animation-duration: 280s; }
.planet-purple { animation-duration: 320s; }

@keyframes guardianDrift {
  0% { left: -15%; top: 20%; }
  50% { left: 50%; top: 25%; }
  100% { left: 115%; top: 20%; }
}

/* ==============================
   MAIN CONTENT LAYER
============================== */

.content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 10%;
}

.panel {
  background: linear-gradient(145deg, rgba(10,35,60,0.85), rgba(5,20,40,0.85));
  border: 2px solid rgba(125,211,252,0.6);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(125,211,252,0.25), inset 0 0 15px rgba(125,211,252,0.15);
}

.panel h2 {
  font-size: 32px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.panel p {
  font-size: 18px;
  line-height: 1.6;
  color: #d8f0ff;
}

.site-header {
  position: relative;
  z-index: 3;
  text-align: center;
}

.unsc-footer {
  text-align: center;
  padding: 30px;
  font-size: 14px;
  color: rgba(207,233,255,0.7);
  z-index: 3;
  position: relative;
}

/* ==============================
   CONTACT FORM (FAKE SEND)
============================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cfe9ff;
}

.contact-form input,
.contact-form textarea {
  margin-top: 8px;
  padding: 14px;
  font-family: "Bruno Ace SC", sans-serif;
  font-size: 14px;
  color: #cfe9ff;

  background: rgba(5, 25, 45, 0.9);
  border: 2px solid rgba(125,211,252,0.6);
  border-radius: 10px;

  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(207,233,255,0.6);
}

/* Focus glow */
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 12px rgba(125,211,252,0.6);
  border-color: rgba(125,211,252,0.9);
}

/* Send button */
.contact-form button {
  margin-top: 10px;
  padding: 16px;
  font-size: 16px;
  font-family: "Bruno Ace SC", sans-serif;
  letter-spacing: 2px;

  background: linear-gradient(145deg, rgba(20,60,100,0.9), rgba(5,25,50,0.8));
  color: #ffffff;

  border: 2px solid rgba(125,211,252,0.7);
  border-radius: 14px;

  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(125,211,252,0.7);
}

/* Fake form note */
.form-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(207,233,255,0.7);
  text-align: center;
}

/* ==============================
   SHOP LAYOUT
============================== */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.shop-item {
  background: linear-gradient(145deg, rgba(5,25,45,0.9), rgba(10,40,70,0.9));
  border: 2px solid rgba(125,211,252,0.6);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(125,211,252,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(125,211,252,0.6);
}

/* IMAGE PLACEHOLDER */
.item-image {
  width: 100%;
  height: 140px;
  margin-bottom: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(125,211,252,0.5);
  border-radius: 12px;

  color: rgba(125,211,252,0.6);
  font-size: 12px;
  letter-spacing: 1px;
}

/* When you add images later */
.item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.shop-item h3 {
  font-size: 16px;
  margin: 10px 0;
}

.shop-item p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #d8f0ff;
}

.price {
  display: block;
  margin-bottom: 12px;
  color: #7dd3fc;
  font-size: 15px;
}

/* Fake purchase button */
.shop-item button {
  padding: 10px 16px;
  font-family: "Bruno Ace SC", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;

  background: linear-gradient(145deg, rgba(20,60,100,0.9), rgba(5,25,50,0.9));
  color: white;

  border: 2px solid rgba(125,211,252,0.7);
  border-radius: 12px;

  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-item button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(125,211,252,0.7);
}

/* ==============================
   LORE / ABOUT PAGE
============================== */

.lore-panel {
  max-width: 1000px;
  margin: auto;
}

.lore-subtitle {
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  color: #7dd3fc;
  margin-bottom: 40px;
}

.lore-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.lore-block.reverse {
  flex-direction: row-reverse;
}

.lore-image {
  flex: 1;
  height: 200px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.45);
  border: 2px dashed rgba(125,211,252,0.5);
  border-radius: 16px;
}

.lore-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lore-text {
  flex: 1;
}

.lore-text h3 {
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.lore-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #d8f0ff;
}

.lore-note {
  text-align: center;
  font-size: 12px;
  margin-top: 30px;
  color: rgba(255,255,255,0.7);
}

/* Mobile support */
@media (max-width: 768px) {
  .lore-block,
  .lore-block.reverse {
    flex-direction: column;
  }

  .lore-image {
    width: 60%;
  }
}

/* ==============================
   HOME IMAGE SHOWCASE
============================== */

.image-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 25px;
}

.image-slot {
  width: 260px;
  height: 160px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(207,233,255,0.7);

  background:
    linear-gradient(
      145deg,
      rgba(10,35,60,0.85),
      rgba(5,20,40,0.85)
    );

  border: 2px dashed rgba(125,211,252,0.5);
  border-radius: 14px;

  box-shadow:
    inset 0 0 15px rgba(125,211,252,0.15),
    0 0 12px rgba(125,211,252,0.25);
}
