:root {
  --bg: #07080c;
  --bg-2: #0d1018;
  --card: rgba(22, 26, 38, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eceef4;
  --muted: #9097ab;
  --gold: #e3b04b;
  --gold-2: #ffd98a;
  --ember: #ff7a2f;
  --blue: #5cb8ff;
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Cinzel", Georgia, serif;
  /* Put your own WoW: Forever screenshot in images/wow-forever-bg.jpg */
  --hero-image: url("../images/wow-forever-bg.jpg");
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
main, header, footer { position: relative; z-index: 2; }

#embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--ember), var(--gold-2)); box-shadow: 0 0 12px var(--ember); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 150; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 5%; transition: background .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(7, 8, 12, 0.82); backdrop-filter: blur(14px); padding: .7rem 5%; border-color: var(--border); }
.logo { font-family: var(--display); font-size: 1.45rem; font-weight: 900; letter-spacing: .06em; }
.logo span { color: var(--gold); }
.navbar nav { display: flex; align-items: center; gap: 1.8rem; }
.navbar nav a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; position: relative; }
.navbar nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--gold); transition: width .3s var(--ease); }
.navbar nav a:hover { color: var(--gold-2); }
.navbar nav a:hover::after { width: 100%; }
.nav-cta { padding: .45rem 1.1rem; border: 1px solid rgba(227, 176, 75, .5); border-radius: 999px; color: var(--gold-2) !important; }
.nav-cta:hover { background: rgba(227, 176, 75, .12); }
.menu-btn { display: none; background: none; border: 0; width: 34px; height: 26px; cursor: pointer; flex-direction: column; justify-content: space-between; padding: 3px 0; }
.menu-btn i { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 8rem 5% 6rem; overflow: hidden; }
.hero-bg { position: absolute; inset: -8% 0; background: var(--hero-image) center / cover no-repeat, radial-gradient(ellipse at 75% 25%, rgba(227, 176, 75, .22), transparent 55%), radial-gradient(ellipse at 15% 85%, rgba(92, 184, 255, .14), transparent 50%), var(--bg); will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,8,12,.95) 0%, rgba(7,8,12,.78) 42%, rgba(7,8,12,.46) 100%),
    linear-gradient(180deg, rgba(7,8,12,.65) 0%, transparent 22%, transparent 50%, var(--bg) 100%); }
.hero-fog { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 60% 40% at 20% 100%, rgba(255,122,47,.12), transparent 70%), radial-gradient(ellipse 50% 35% at 80% 0%, rgba(227,176,75,.12), transparent 70%); animation: fog 14s ease-in-out infinite alternate; }
@keyframes fog { from { transform: translateX(-2%) scale(1); opacity: .7; } to { transform: translateX(2%) scale(1.08); opacity: 1; } }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; font-weight: 600; color: var(--gold); margin-bottom: 1rem; }
.hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.1; font-weight: 900; margin-bottom: 1.5rem; }
.shine { background: linear-gradient(100deg, var(--gold) 20%, #fff2cf 45%, var(--gold) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; filter: drop-shadow(0 0 18px rgba(227,176,75,.35)); }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.hero-bio { color: #b7bccb; font-size: 1.15rem; max-width: 560px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.stats { display: flex; gap: 2.8rem; margin-top: 3.2rem; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--gold-2); line-height: 1.1; }
.stats span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }


/* Hero background video */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease;
  filter: saturate(1.2) contrast(1.08) brightness(.72); }
.hero-video.ready { opacity: 1; }
.hero-tint { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse 70% 60% at 72% 42%, rgba(255,170,70,.55), transparent 65%), linear-gradient(180deg, rgba(227,176,75,.18), rgba(255,122,47,.12)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%);
  box-shadow: inset 0 0 160px rgba(0,0,0,.6); }

/* Buttons */
.btn { position: relative; display: inline-block; padding: .9rem 1.8rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, color .25s; overflow: hidden; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, #f2c35f, #b9822a); color: #1b1204; box-shadow: 0 10px 30px rgba(227,176,75,.3); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(227,176,75,.5); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* Sections */
.section { padding: 6.5rem 5%; position: relative; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section h2 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; margin-bottom: .6rem; line-height: 1.2; }
.section-header p:not(.eyebrow) { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.8rem; max-width: 1240px; margin: 0 auto; perspective: 1200px; }
.project-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(10px); transform-style: preserve-3d; transition: transform .2s ease-out, border-color .3s, box-shadow .3s; }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(227,176,75,.16), transparent 60%); }
.project-card:hover { border-color: rgba(227,176,75,.55); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 40px rgba(227,176,75,.08); }
.project-card:hover::before { opacity: 1; }
.project-cover { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #1d2333, #0d1018); }
.project-cover .bg { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; filter: blur(26px) saturate(1.3) brightness(.55); transform: scale(1.1); transition: transform .6s var(--ease); }
.project-card:hover .project-cover .bg { transform: scale(1.25); }
.project-cover .logo-img { position: relative; width: 96px; height: 96px; border-radius: 22px; object-fit: cover; box-shadow: 0 12px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.14); transition: transform .4s var(--ease); }
.project-card:hover .logo-img { transform: translateY(-4px) scale(1.07) rotate(-2deg); }
.project-cover .fallback { position: relative; font-family: var(--display); font-size: 1.4rem; color: var(--gold); padding: 1rem; text-align: center; }
.downloads { position: absolute; top: .8rem; right: .8rem; z-index: 2; font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: rgba(7,8,12,.7); border: 1px solid var(--border); color: var(--gold-2); backdrop-filter: blur(6px); }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: .85rem; }
.project-title { font-size: 1.25rem; font-weight: 700; }
.project-desc { color: var(--muted); font-size: .95rem; }
.project-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag { font-size: .7rem; font-weight: 500; padding: .2rem .65rem; border-radius: 999px; background: rgba(92,184,255,.1); color: var(--blue); border: 1px solid rgba(92,184,255,.25); }
.project-features { list-style: none; font-size: .9rem; color: #aab0c2; }
.project-features li { padding-left: 1.2rem; position: relative; }
.project-features li::before { content: "◆"; position: absolute; left: 0; top: .1rem; font-size: .6rem; line-height: 1.9; color: var(--gold); }
.project-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--border); }
.project-meta .version { color: var(--gold-2); font-weight: 600; }
.project-actions { display: flex; gap: .6rem; margin-top: .4rem; }
.project-actions .btn { flex: 1; text-align: center; padding: .65rem 1rem; font-size: .85rem; }
.loading, .error { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Custom addon section */
.custom { background: linear-gradient(180deg, transparent, rgba(227,176,75,.05) 40%, transparent); }
.custom::before { content: ""; position: absolute; left: 50%; top: 50%; width: 700px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,122,47,.1), transparent 65%); pointer-events: none; }
.custom-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.custom-text p:not(.eyebrow) { color: #b2b8c9; margin-bottom: 2rem; font-size: 1.05rem; }
.steps { list-style: none; display: grid; gap: 1.1rem; }
.steps li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 1.4rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); transition: transform .3s var(--ease), border-color .3s; }
.steps li:hover { transform: translateX(8px); border-color: rgba(227,176,75,.5); }
.steps b { flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-family: var(--display); font-size: 1.1rem; border-radius: 50%; color: #1b1204; background: linear-gradient(135deg, #f2c35f, #b9822a); box-shadow: 0 0 20px rgba(227,176,75,.35); }
.steps h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.steps p { font-size: .9rem; color: var(--muted); }

/* About */
.about { max-width: 780px; margin: 0 auto; text-align: center; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* Contact */
.social-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; max-width: 960px; margin: 0 auto; }
.social { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.6rem 1.8rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.social b { font-family: var(--display); font-size: 1.3rem; }
.social span { color: var(--muted); font-size: .9rem; }
.social::after { content: "→"; position: absolute; right: 1.6rem; top: 50%; transform: translate(-10px, -50%); opacity: 0; font-size: 1.4rem; transition: all .3s var(--ease); }
.social:hover { transform: translateY(-6px); }
.social:hover::after { opacity: 1; transform: translate(0, -50%); }
.social.discord:hover { border-color: #7289ff; box-shadow: 0 16px 40px rgba(114,137,255,.25); }
.social.discord:hover::after { color: #7289ff; }
.social.github:hover { border-color: #ffffff; box-shadow: 0 16px 40px rgba(255,255,255,.12); }
.social.curse:hover { border-color: var(--ember); box-shadow: 0 16px 40px rgba(255,122,47,.28); }
.social.curse:hover::after { color: var(--ember); }

.footer { text-align: center; padding: 2.5rem 5%; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; background: rgba(7,8,12,.8); }

/* Responsive */
@media (max-width: 900px) { .custom-inner { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 720px) {
  .menu-btn { display: flex; }
  .navbar nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px); flex-direction: column; justify-content: center; gap: 2rem; background: rgba(7,8,12,.97); backdrop-filter: blur(16px); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .4s var(--ease); }
  .navbar nav.open { transform: none; }
  .navbar nav a { font-size: 1.15rem; }
  .menu-btn { position: relative; z-index: 2; }
  .hero { padding-top: 7rem; }
  .stats { gap: 1.8rem; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  #embers { display: none; }
}
