/* ============================================================
   Whisker & Scythe Studio — Main Stylesheet
   ============================================================ */

/* --- Variables & Reset ------------------------------------ */
:root {
  --bg:         #080808;
  --bg-card:    rgba(255, 255, 255, 0.045);
  --bg-card2:   rgba(255, 255, 255, 0.08);
  --text:       #f0f0f0;
  --text-muted: #888888;
  --accent:     #d42035;
  --accent-h:   #e8253c;
  --border:     rgba(255, 255, 255, 0.09);
  --border-s:   rgba(255, 255, 255, 0.14);
  --nav-h:      80px;
  --radius:     12px;
  --font-head:  'Poppins', sans-serif;
  --font-body:  'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(ellipse 700px 600px at 15% 30%, rgba(20, 80, 40, 0.12) 0%, transparent 100%),
    radial-gradient(ellipse 600px 500px at 80% 20%, rgba(20, 40, 160, 0.12) 0%, transparent 100%),
    radial-gradient(ellipse 500px 400px at 85% 80%, rgba(100, 20, 140, 0.1) 0%, transparent 100%);
  background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: scroll, fixed, fixed, fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

p { color: var(--text-muted); max-width: 65ch; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  box-shadow: 0 0 24px rgba(212, 32, 53, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border-s);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 32, 53, 0.07);
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s;
}

.nav-logo img {
  height: 64px;
  width: auto;
  padding-bottom: 4px;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  transition: color 0.2s;
}

.nav-drawer a:hover { color: var(--accent); }

/* --- Layout Utilities ------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

/* --- Page Hero (inner pages) ------------------------------ */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Shared animated gradient */
@keyframes site-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated gradient base */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    #010810,
    #030e1e,
    #020908,
    #040818,
    #0b030f,
    #030c16,
    #070212,
    #010f09,
    #05071a
  );
  background-size: 700% 700%;
  animation: site-gradient 50s ease infinite;
  z-index: 0;
}

.page-hero::after { display: none; }

/* Orb divs placed inside .page-hero markup */
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* Games — blue top-right, green bottom-left */
.page-hero--games .page-hero-orb:nth-child(1) {
  width: 650px; height: 600px;
  background: rgba(15, 65, 200, 0.38);
  top: -220px; right: -150px;
}
.page-hero--games .page-hero-orb:nth-child(2) {
  width: 500px; height: 400px;
  background: rgba(10, 120, 60, 0.28);
  bottom: -150px; left: -80px;
}

/* Team — purple top-left, blue bottom-right */
.page-hero--team .page-hero-orb:nth-child(1) {
  width: 700px; height: 600px;
  background: rgba(90, 20, 160, 0.38);
  top: -200px; left: -180px;
}
.page-hero--team .page-hero-orb:nth-child(2) {
  width: 500px; height: 400px;
  background: rgba(15, 60, 190, 0.3);
  bottom: -150px; right: -80px;
}

/* Contact — teal bottom-left, purple top-right */
.page-hero--contact .page-hero-orb:nth-child(1) {
  width: 600px; height: 500px;
  background: rgba(10, 140, 150, 0.3);
  bottom: -180px; left: -100px;
}
.page-hero--contact .page-hero-orb:nth-child(2) {
  width: 550px; height: 450px;
  background: rgba(100, 15, 140, 0.3);
  top: -180px; right: -120px;
}

/* Legal — blue top-left, purple bottom-right */
.page-hero--legal .page-hero-orb:nth-child(1) {
  width: 600px; height: 500px;
  background: rgba(15, 55, 180, 0.32);
  top: -180px; left: -120px;
}
.page-hero--legal .page-hero-orb:nth-child(2) {
  width: 450px; height: 380px;
  background: rgba(80, 15, 120, 0.25);
  bottom: -140px; right: -80px;
}

.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { margin: 0 auto; font-size: 1.1rem; max-width: 55ch; }

/* --- Home Hero -------------------------------------------- */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    #010810,
    #030e1e,
    #020908,
    #040818,
    #0b030f,
    #030c16,
    #070212,
    #010f09,
    #05071a
  );
  background-size: 700% 700%;
  animation: site-gradient 50s ease infinite;
  overflow: hidden;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: rgba(20, 80, 200, 0.35);
  filter: blur(130px);
  top: -200px; left: -150px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 500px;
  border-radius: 50%;
  background: rgba(100, 20, 140, 0.25);
  filter: blur(120px);
  bottom: -120px; right: 0%;
}

.hero-img {
  position: absolute;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: auto;
  object-fit: contain;
  opacity: 0.55;
  z-index: 0;
}

.hero-img-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 30%, transparent 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

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

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: #aaa;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-hint svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Featured Game (Home) --------------------------------- */
.featured {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured-media { position: relative; }

.featured-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}

.game-badge {
  position: absolute;
  top: -12px; left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.featured-info h2 { margin-bottom: 1rem; }
.featured-info p { margin-bottom: 2rem; font-size: 1rem; line-height: 1.8; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-radius: 20px;
}

/* --- About (Home) ----------------------------------------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.5rem; line-height: 1.8; }

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(0,0,0,0.4);
  filter: grayscale(20%);
}

/* --- Team Preview (Home) ---------------------------------- */
.team-preview {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  text-align: center;
}

.team-preview h2 { margin-bottom: 1rem; }
.team-preview > .container > p { margin: 0 auto 3rem; max-width: 50ch; }

.team-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* --- Games Page ------------------------------------------- */
.games-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.game-showcase {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.game-showcase:hover {
  border-color: rgba(212, 32, 53, 0.4);
  box-shadow: 0 0 40px rgba(212, 32, 53, 0.08);
  transform: translateY(-3px);
}

.game-showcase-img {
  width: 100%;
  display: block;
  height: auto;
}

.game-showcase-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-showcase-body h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.game-showcase-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 1rem;
  flex: 1;
}

.game-showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.game-showcase-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* --- Legal Pages ------------------------------------------ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: none;
  color: var(--text-muted);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.legal-content ul li ul {
  margin-top: 0.5rem;
  list-style: circle;
}

.legal-contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-contact p { margin: 0; }

/* --- Team Page -------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.member-card:hover {
  border-color: rgba(212, 32, 53, 0.45);
  box-shadow: 0 0 40px rgba(212, 32, 53, 0.1), 0 16px 40px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.member-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(10%);
  transition: filter 0.3s;
}

.member-card:hover .member-photo { filter: grayscale(0%); }

.member-info { padding: 1.5rem; }

.member-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.member-info h3 { margin-bottom: 0.5rem; }
.member-info p { font-size: 0.9rem; margin-bottom: 1.25rem; }

.member-links { display: flex; gap: 0.75rem; }

.member-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.member-link:hover { color: var(--accent); border-color: var(--accent); }

/* --- Contact Page ----------------------------------------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; line-height: 1.8; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.social-link:hover { color: var(--accent); }

.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 8px;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(212, 32, 53, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 32, 53, 0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-status {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  background: rgba(30, 120, 50, 0.15);
  border: 1px solid rgba(30, 180, 70, 0.3);
  color: #5de083;
  display: block;
}

.form-status.error {
  background: rgba(180, 30, 30, 0.15);
  border: 1px solid rgba(220, 50, 50, 0.3);
  color: #ff6b6b;
  display: block;
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 60px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 30ch; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
}

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--text); }

/* --- Page padding (for fixed nav) ------------------------- */
.main-content { padding-top: 0; }

/* --- Divider ---------------------------------------------- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem 0;
  border-radius: 2px;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .featured-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .hero-img { width: 100%; opacity: 0.15; }
  .hero-img-mask { background: linear-gradient(to right, var(--bg) 0%, transparent 100%); }

  .games-duo { grid-template-columns: 1fr; max-width: 520px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .team-grid-mini { grid-template-columns: repeat(2, 1fr); }

  /* Disable fixed bg on mobile for performance */
  body { background-attachment: scroll, scroll, scroll, scroll; }
}
