/* =========================================================
   Bloodhounds DCS — main stylesheet
   Palette taken from the Bloodhounds emblem
   ========================================================= */
:root {
  --red: #d7141d;
  --red-bright: #ff2a33;
  --red-dark: #7d0a0f;
  --black: #0b0b0c;
  --char: #141416;
  --panel: #1a1a1d;
  --line: #2a2a2f;
  --silver: #c9c9cd;
  --silver-dim: #8d8d94;
  --white: #f3f3f5;
  --nav-h: 76px;
  --radius: 14px;
  --font-head: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-bright); }

/* ---------- Top menu ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  background: linear-gradient(180deg, rgba(11,11,12,.92), rgba(11,11,12,.75));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(215,20,29,.35);
  transition: background .3s, box-shadow .3s;
}
.topbar.scrolled {
  background: rgba(11,11,12,.97);
  box-shadow: 0 6px 30px rgba(0,0,0,.6);
}
.topbar::after { /* thin red accent line */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .8;
}
.nav {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-logo { justify-self: start; }
.nav-logo img {
  width: 56px; height: 56px;
  filter: drop-shadow(0 0 8px rgba(215,20,29,.45));
  transition: transform .3s;
}
.nav-logo:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-textlogo { justify-self: center; }
.nav-textlogo img {
  height: 46px; width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.8));
}
.nav-discord {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(215,20,29,.6);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.nav-discord svg { width: 22px; height: 22px; }
.nav-discord:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(215,20,29,.45);
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--black);
  touch-action: pan-y;
  user-select: none;
}
.gallery-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform .8s cubic-bezier(.77,0,.18,1);
}
.gallery-track.dragging { transition: none; }
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.slide-img {
  position: absolute;
  /* oversized so it can move for parallax without showing edges */
  inset: -12% -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.gallery::after { /* dark vignette + fade into page */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, transparent 22%, transparent 65%, var(--black) 100%);
}
.gallery-overlay {
  position: absolute;
  left: 50%; bottom: 16%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.gallery-emblem {
  width: clamp(120px, 16vw, 200px);
  margin: 0 auto 14px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.8));
}
.gallery-tag {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
}
.gallery-arrow {
  position: absolute; top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(11,11,12,.45);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s;
}
.gallery-arrow:hover { background: var(--red); border-color: var(--red); }
.gallery-arrow.prev { left: 24px; }
.gallery-arrow.next { right: 24px; }
.gallery-dots {
  position: absolute;
  left: 50%; bottom: 7%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; gap: 10px;
}
.gallery-dots button {
  width: 12px; height: 12px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: transparent;
  cursor: pointer;
  transition: width .35s, background .35s, border-color .35s;
}
.gallery-dots button.active {
  width: 34px;
  background: var(--red);
  border-color: var(--red);
}
.gallery-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; z-index: 4;
  background: rgba(255,255,255,.08);
}
.gallery-progress span {
  display: block; height: 100%; width: 0;
  background: var(--red);
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-size: .95rem;
}
h2, h3 { font-family: var(--font-head); color: var(--white); line-height: 1.15; }
h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
h2::after {
  content: "";
  display: block;
  width: 72px; height: 4px;
  margin-top: 16px;
  background: var(--red);
  border-radius: 2px;
}
.lead { font-size: 1.2rem; color: var(--white); }
.about p { max-width: 820px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Feature cards ---------- */
.features {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--char));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.feature::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(215,20,29,.5); }
.feature:hover::before { transform: scaleY(1); }
.feature h3 { margin: 18px 0 8px; font-size: 1.45rem; text-transform: uppercase; }
.feature p { margin: 0; font-size: .97rem; }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(215,20,29,.12);
  border: 1px solid rgba(215,20,29,.4);
}
.feature-icon svg { width: 26px; height: 26px; fill: var(--red-bright); }

/* ---------- Servers ---------- */
.servers {
  background:
    radial-gradient(circle at 85% 20%, rgba(215,20,29,.14), transparent 45%),
    linear-gradient(180deg, var(--black), var(--char) 30%, var(--char) 70%, var(--black));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.server-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.server-card {
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.server-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--silver-dim);
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e0a100;
  box-shadow: 0 0 0 0 rgba(224,161,0,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(224,161,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,161,0,0); }
}
.server-value {
  margin-top: 10px;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 1.6rem;
  color: var(--white);
}
.atc-box {
  margin-top: 26px;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.atc-box h3 { margin: 0 0 10px; font-size: 1.6rem; text-transform: uppercase; }
.atc-box p { margin: 0 0 20px; }
.atc-box a {
  color: var(--red-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,42,51,.4);
  transition: color .2s, border-color .2s;
}
.atc-box a:hover { color: var(--white); border-color: var(--white); }
.note {
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(215,20,29,.08);
  border-left: 4px solid var(--red);
  color: var(--white);
}
.note strong { color: var(--red-bright); }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 34px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--silver-dim);
  background: var(--black);
}
.footer img { opacity: .9; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .server-grid { grid-template-columns: 1fr; }
  .gallery-arrow { display: none; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 14px; }
  .nav-logo img { width: 44px; height: 44px; }
  .nav-textlogo img { height: 30px; }
  .nav-discord { padding: 9px 11px; }
  .nav-discord span { display: none; }
  .section { padding: 80px 0; }
  .gallery-tag { letter-spacing: .1em; font-size: .78rem; padding: 0 12px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-track { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot { animation: none; }
}
