* {
  box-sizing: border-box;
}

/* GENERAL */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #050b1a;
  color: white;
  overflow-x: hidden;
}

a {
  color: #7aa2ff;
  text-decoration: none;
}

.site-header {
  background: #11162a;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin: 0;
  font-size: 1.5rem;
}
.logo span {
  color: #7aa2ff;
}

nav a {
  margin-left: 15px;
  font-weight: 500;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(
    rgba(11,18,38,0.8),
    rgba(11,18,38,0.8)
  );
}

.hero h2 {
  font-size: 2.2rem;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background: #7aa2ff;
  color: #000;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.post-card {
  background: #11162a;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post h1 {
  margin-top: 0;
}

.date {
  color: #aaa;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  padding: 25px;
  color: #888;
}

/* HERO TEXT */
#hero-title {
  font-size: 3rem;
  font-weight: 700;
  transition: transform 0.1s ease-out;
}

.highlight {
  color: #7aa2ff;
}

/* PARTICLES */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;   /* pushes canvas behind everything */
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 4rem;
}

.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
}

.glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ================================= */
/* UPDATES PAGE — RESPONSIVE & GLASS */
/* ================================= */

.updates-page .updates-grid {
  display: grid;
  gap: 28px;
  margin-top: 30px;
}

/* 2 columns on phones */
@media (max-width: 768px) {
  .updates-page .updates-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* 4 columns on desktops */
@media (min-width: 769px) {
  .updates-page .updates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card */
.updates-page .update-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: 
    background 0.35s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Cosmic orange hover */
.updates-page .update-card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 170, 90, 0.22),
    rgba(255, 120, 40, 0.15)
  );
  box-shadow: 0 18px 45px rgba(255, 140, 60, 0.35);
  transform: translateY(-6px);
}

/* Title 
.updates-page .update-title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}*/

/* Tags 
.updates-page .update-tags {
  margin-bottom: 12px;
}*/

/* Description */
.updates-page .update-desc {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 16px;
}

/* Meta */
.updates-page .update-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #a5b4fc;
  gap: 10px;
}

/* ========================== */
/* UPDATE CARD IMAGE */
/* ========================== */

.updates-page .update-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

/* Make title clickable */
.updates-page .update-title {
  display: block;
  font-weight: 600;
  color: white;
  text-decoration: none;
  margin-bottom: 10px;
}

.updates-page .update-title:hover {
  color: #7aa2ff;
}

/* ========================== */
/* TAGS */
/* ========================== */

.updates-page .update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.updates-page .tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #c7d2fe;
}

.tag-ribbon-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

.tag-ribbon {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.ribbon-tag {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.85rem;
}

.ribbon-tag:hover {
  background: rgba(255,255,255,0.2);
}

.ribbon-tag.active {
  background: linear-gradient(90deg,#00ffcc,#00aaff);
  color: black;
  font-weight: 600;
}

/* ========================== */
/* DEADLINE BAR */
/* ========================== */

.deadline-bar {
  width: 100%;
  height: 7px;
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
}

.deadline-progress {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.6s ease, background 0.6s ease;
}


