/* ===== Global Page Styles ===== */

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

:root {
  --accent-a: #00e0ff;
  --accent-b: #00ffa6;
  --accent-c: #3ddcff;
  --bg: #0f0f0f;
  --card: #181818;
  --muted: #9aa8b0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #e5e5e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
h1 {
  font-size: 2.6rem;
  margin-top: 2.2rem;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-c));
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

p.subtitle {
  opacity: 0.8;
  margin-bottom: 1.6rem;
  color: var(--muted)
}

/* Moon button quarter area handled in menu.css */

/* Tiles grid */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 90%;
  max-width: 1000px;
  margin: 2rem 0 4rem 0;
  padding: 0 12px;
  z-index: 2;
}

.tile {
  background: var(--card);
  padding: 1.4rem;
  border-radius: 14px;
  border: 1px solid #232323;
  transition: transform 220ms cubic-bezier(.2, .9, .2, 1), box-shadow 220ms ease, border-color 220ms ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

.tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 22px rgba(0, 255, 200, 0.12), 0 0 30px rgba(0, 160, 255, 0.08);
}

.tile h3 { margin: 0 0 8px 0; font-size: 1.15rem; color: var(--accent-a); }
.tile p { margin: 4px 0; color: var(--muted); font-size: 0.95rem }

.tile.variant-1 { border-color: rgba(0, 255, 170, 0.08); box-shadow: 0 0 18px rgba(0, 255, 170, 0.04); }
.tile.variant-2 { border-color: rgba(61, 220, 255, 0.08); box-shadow: 0 0 18px rgba(61, 220, 255, 0.04); }
.tile.variant-3 { border-color: rgba(0, 224, 255, 0.08); box-shadow: 0 0 18px rgba(0, 224, 255, 0.04); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(18px) scale(0.98); animation: fadeIn 0.7s ease-out forwards; }
.fade-in.delay-1 { animation-delay: 0.06s }
.fade-in.delay-2 { animation-delay: 0.12s }
.fade-in.delay-3 { animation-delay: 0.18s }

@keyframes fadeIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* Stars (twinkle) */
.star {
  position: fixed;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* brighter variation */
.star.bright {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

/* twinkle animation */
@keyframes starPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  45% { opacity: 1; transform: scale(1.4); }
}

/* shooting star */
.shoot {
  position: fixed;
  width: 2px;
  height: 2px;
  background: linear-gradient(90deg, #fff, #aef);
  box-shadow: 0 0 8px rgba(175, 235, 255, 0.9);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

/* responsive */
@media (max-width:600px) {
  h1 { font-size: 1.6rem }
  .tiles { grid-template-columns: 1fr; padding: 0 10px }
}
