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

/* BODY */
body {
  background-color: #0a0a0a;
  color: white;
  font-family: 'Arial Black', sans-serif;
  overflow-x: hidden;
  padding-top: 75px;
}

/* PARTICLES (GLOBAL FIX) */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* KEEP CONTENT ABOVE PARTICLES */
.topbar,
.page-hero,
.content-section {
  position: relative;
  z-index: 2;
}

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 75px;
  background: #111;
  border-bottom: 4px solid #b30000;
  display: flex;
  align-items: center;
  padding: 0 50px;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  letter-spacing: 3px;
  font-weight: bold;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 3px;
  background: #b30000;
  transition: 0.3s;
}

.logo:hover::after {
  width: 100%;
}

/* NAV */
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 40px;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 14px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ff1a1a;
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* FUN BUTTON */
#funBtn {
  background: transparent;
  border: 2px solid #ff1a1a;
  color: #ff1a1a;
  padding: 10px 25px;
  font-weight: bold;
  cursor: pointer;
}

/* PAGE HERO */
.page-hero {
  height: 40vh;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)),
              url("imgs/editedBG.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero h1 {
  font-size: 50px;
}

/* CONTENT */
.content-section {
  max-width: 900px;
  margin: auto;
  padding: 100px 20px;
}

/* FADE */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* FUN MODE */
body.fun-off {
  filter: grayscale(80%) brightness(0.7);
}