:root {
  --red: #C0000A;
  --ember: #FF4500;
  --black: #060608;
  --surface: #0e0e12;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #f0eee8;
  --muted: #7a7872;
  --glow: 0 0 40px rgba(192,0,10,0.35), 0 0 80px rgba(192,0,10,0.15);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Noise Overlay ── */
body::before {
  content:''; position:fixed; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events:none; z-index:9990; opacity:0.4;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
  backdrop-filter: blur(16px);
  background: rgba(6, 6, 8, 0);
  border-bottom: 1px solid var(--border);
}
.nav-logo img { position: absolute; transform: translateY(-50%); height: 30px; width: auto; }
.nav-links {
  display: flex; 
  gap: 36px; 
  list-style: none;
  margin-right: auto;
  margin-left: 100px;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(6,6,8,0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 36px; opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-drawer.open { opacity: 1; pointer-events: all; }
.mobile-drawer a {
  color: var(--text); text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem); letter-spacing: 0.05em;
  line-height: 1; transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--red); }
.mobile-drawer .drawer-langs { display: flex; gap: 12px; }

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  padding: 0 5vw;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://raw.githubusercontent.com/WeshBytez/wonders/main/bg_wonders.gif') center/cover no-repeat;
  opacity: 1.0; transform: scale(1.00);
  animation: subtle-drift 20s ease-in-out infinite alternate;
}
@keyframes subtle-drift {
  from { transform: scale(1.04) translate(0,0); }
  to   { transform: scale(1.06) translate(-1%,-0.5%); }
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--black) 75%);
}
.hero-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 820px;
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  animation: fadeUp 1s 0.2s both;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content:''; flex:1; height: 1px; background: var(--red); width: 30px; opacity: 0.5;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.9; letter-spacing: 0.02em;
  margin-bottom: 28px;
  animation: fadeUp 1s 0.4s both;
}

.hero-title .fill { color: var(--red); }
.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem); font-weight: 300;
  color: rgba(240,238,232,0.65); max-width: 520px; margin: 0 auto 40px;
  line-height: 1.8; animation: fadeUp 1s 0.6s both;
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s 0.8s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; corner-shape: squircle;
  font-family: 'Barlow', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  text-decoration: none; transition: all 0.25s; cursor: pointer;
}
.btn-primary {
  background: var(--red); color: #fff;
}
.btn-primary:hover {
  background: var(--ember); box-shadow: var(--glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--red); color: var(--red);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: fadeUp 1s 1.2s both;
}
.scroll-line {
  width: 1px; height: 50px; background: linear-gradient(var(--red), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ── SECTION COMMONS ── */
section { padding: clamp(60px, 10vw, 120px) 5vw; }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content:''; width: 24px; height: 1px; background: var(--red);
}
.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95; letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted); font-weight: 300;
  font-size: clamp(0.9rem, 1.5vw, 1rem); max-width: 480px;
  line-height: 1.8;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── WHY ── */
.why { background: var(--surface); position: relative; overflow: hidden;}
.why-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--border); border: 0px solid var(--border); }
.why-card {
  background: rgba(0, 0, 0, 0.5); padding: 48px 36px;
  transition: background 0.3s; backdrop-filter: blur(16px); overflow: hidden;
}
.why-card:hover { background: rgba(192,0,10,0.06); }
.why-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem; line-height: 1; color: var(--red);
  margin-bottom: 20px; opacity: 0.5;
}
.why-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.why-desc { color: var(--muted); font-weight: 300; line-height: 1.8; font-size: 0.95rem; }

/* ── TEAM ── */
.team { background: var(--black); position: relative; overflow: hidden;}
.team-header { margin-bottom: 60px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}
.member-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 0px;
  aspect-ratio: 1; cursor: pointer;
  transition: border-color 0.3s;
}
.member-card:hover { border-color: var(--red); }
.member-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: grayscale(40%);
}
.member-card:hover img { transform: scale(1.06); filter: grayscale(0%); }
.member-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,0.95) 0%, rgba(6,6,8,0.2) 55%, transparent 100%);
}
.member-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 20px;
  transform: translateY(4px); transition: transform 0.3s;
}
.member-card:hover .member-info { transform: translateY(0); }
.member-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; letter-spacing: 0.05em; margin-bottom: 4px;
}
.member-role { font-size: 0.75rem; color: var(--ember); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.member-socials {
  display: flex; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s 0.05s, transform 0.3s 0.05s;
}
.member-card:hover .member-socials { opacity: 1; transform: translateY(0); }
.member-socials a {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none; font-size: 0.8rem;
  transition: background 0.2s; cursor: pointer;
}
.member-socials a:hover { background: var(--red); }

@media (max-width: 600px) {
  .team-grid {
    display: grid !important;
    /* Please bro can you just show me 2 members per row instead of 1 big ass one? */
    grid-template-columns: 1fr 1fr !important; 
    gap: 10px !important;
    padding: 10px !important;
  }

  .member-name {
    font-size: 1.1rem;
  }

  .member-info {
    padding: 12px 10px;
  }
}

/* ── JOIN / DISCORD ── */
.join-section { background: var(--surface);  position: relative; overflow: hidden;}
.join-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.join-discord-wrap {
  border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
  position: relative;
}
.join-discord-wrap iframe { display: block; width: 100%; height: 460px; border: none; }

/* ── EXPLORE ── */
.explore { background: var(--black); position: relative; overflow: hidden; }
.playlist-carousel { position: relative; max-width: 800px; margin: 0 auto; }
/* fuck ur fucking stupid embed that cant be small on desktop and big on mobile */
.playlist-embed {
  position: relative; padding-bottom: 56.5%; height: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 2px;
}
@media (max-width: 768px) {
  .playlist-carousel {
    max-width: 100%; 
    padding: 0 10px;
  }
}
.playlist-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.playlist-slide { display: none; }
.playlist-slide.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.playlist-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 20px;
}
.playlist-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: 0.05em;
}
.carousel-nav { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-btn {
  width: 40px; height: 40px; border: 1px solid var(--border);
  background: none; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s; border-radius: 2px;
  font-size: 0.85rem;
}
.carousel-btn:hover { border-color: var(--red); background: rgba(192,0,10,0.12); }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--border);
  transition: background 0.2s, transform 0.2s; cursor: pointer;
}
.dot.active { background: var(--red); transform: scale(1.4); }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 5vw 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 60px;
}
.footer-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem; letter-spacing: 0.06em; color: var(--red);
  display: block; margin-bottom: 16px;
}
.footer-desc { color: var(--muted); font-weight: 300; line-height: 1.8; font-size: 0.9rem; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; border-radius: 2px;
  font-size: 0.85rem; transition: all 0.2s; cursor: pointer;
}
.footer-socials a:hover { border-color: var(--red); color: var(--red); }
.footer-col-title {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text); font-weight: 700; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-size: 0.88rem;
  font-weight: 300; transition: color 0.2s; display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: var(--muted); font-size: 0.8rem; }

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; background: var(--red);
  color: #fff; border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.85rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s; z-index: 900; cursor: pointer;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); background: var(--ember); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .why-inner { grid-template-columns: 1fr; }
  .why-card { padding: 36px 24px; }
  .join-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-title { letter-spacing: 0; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .member-socials { opacity: 1; transform: none; }

}
@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ── Skeleton loader ── */
.team-skeleton {
  aspect-ratio: 3/4; border-radius: 2px;
  background: linear-gradient(90deg, var(--surface) 25%, rgba(255,255,255,0.04) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--border);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}