:root {
  --red: #d62828;

  /* THEME TOKENS */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #555555;
  --border: #e5e5e5;
}

/* Dark theme overrides */
html[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #161a22;
  --text: #f2f3f5;
  --muted: #b2b7c2;
  --border: #2a3040;
}

button {
  font-family: Avenir;
}

body {
  font-family: Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.nav-wrap {
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

/* NAV BAR */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* LEFT */
.nav-left {
  justify-self: start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  text-decoration: none;
  color: var(--text);
  font-weight: 900;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  line-height: 1;
}

/* CENTER */
.nav-center {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-center a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

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

/* RIGHT */
.nav-right {
  display: flex;
  justify-self: end;
  gap: 0.75rem;
}

/* SOCIAL ICON BUTTONS */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);

  transition: all 0.2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.theme-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-btn:hover {
  transform: translateY(-1px);
}

.server-card,
.staff-card,
.carousel-btn {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.staff-card p {
  color: var(--muted) !important;
}

.carousel-btn {
  color: var(--text) !important;
}

.staff-carousel-wrap {
  background: transparent !important;
}

.footer { color: var(--muted); }

/* SECTIONS */
section {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1.25rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-text {
  max-width: 700px;
  color: var(--muted);
}

.cta-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  text-align: center;
}

.server-card {
  margin-top: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;

  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.server-ip {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--text);
}

.cta-btn {
  margin-top: 1rem;
  display: inline-block;

  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;

  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.25);
}

/* HERO SECTION */
.hero {
  position: relative;

  min-height: 83vh;
  width: 100vw;
  max-width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;
  overflow: hidden;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.hero-content h1 span {
  color: var(--red);
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  color: #f1f1f1;
}

.hero-logo {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}


/* DISCORD */
.discord-btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* STAFF */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.staff-card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.staff-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* STAFF CAROUSEL */
.staff-carousel-wrap {
  position: relative;
  margin-top: 1.5rem;
}

.staff-carousel {
  display: flex;
  gap: 1.25rem;

  overflow-x: auto;
  padding: 0.5rem 2.75rem 1rem;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.staff-carousel::-webkit-scrollbar {
  display: none;
}

.staff-card {
  scroll-snap-align: center;

  min-width: 260px;
  max-width: 260px;

  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  background: #fff;
}

.staff-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

/* Carousel arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  user-select: none;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.map-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Keep nav on top */
.map-page .nav-wrap {
  flex: 0 0 auto;
}

.map-full {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.map-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

html, body {
  height: 100%;
}

/* Map page */
body.map-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.map-page .map-full {
  flex: 1;
  min-height: 0;
  display: flex;
}

body.map-page .map-full iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Coming Soon Page */
.coming-page {
  background: var(--bg);
  color: var(--text);
}

.coming {
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
}

.coming-card {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  text-align: center;
}

.coming-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.coming-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.coming-card p {
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 55ch;
}

.coming-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

button, input, textarea, select {
  font-family: inherit;
}


/* hide arrows on small screens */
@media (max-width: 600px) {
  .carousel-btn {
    display: none;
  }
  .staff-carousel {
    padding: 0.5rem 1rem 1rem;
  }
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fade-in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-delay-1 { animation-delay: 0.15s; }
.fade-delay-2 { animation-delay: 0.30s; }
.fade-delay-3 { animation-delay: 0.45s; }