/* ============================================
   BEARDOG GAMES — Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colours */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(17, 17, 24, 0.75);

  --text-primary: #f0ede6;
  --text-secondary: rgba(240, 237, 230, 0.65);
  --text-muted: rgba(240, 237, 230, 0.4);

  --accent-warm: #e8922f;
  --accent-warm-glow: rgba(232, 146, 47, 0.25);
  --accent-cool: #3edbd5;
  --accent-cool-glow: rgba(62, 219, 213, 0.25);

  --border: rgba(255, 255, 255, 0.06);
  --border-highlight: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 40px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-warm);
  color: var(--bg-primary);
}

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

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

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
}

/* --- Section Label --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent-warm);
}

.section-label.cool::before {
  background: var(--accent-cool);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-medium);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-logo .logo-accent {
  color: var(--accent-warm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.png') center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--bg-primary) 100%
  );
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-content h1 {
  margin-bottom: 8px;
}

.hero-content h1 .accent {
  background: linear-gradient(135deg, var(--accent-warm), #f5c842);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logo-mark {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero-content h1,
.hero-tagline,
.hero-cta {
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.hero-tagline em {
  font-style: italic;
  color: var(--accent-warm);
  font-weight: 500;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-medium);
  animation: float 3s ease-in-out infinite;
}

.hero-cta:hover {
  color: var(--accent-warm);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  animation: bounce 2s ease-in-out infinite;
}

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

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding);
  position: relative;
}


.about-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.about-intro h2 {
  margin-bottom: 24px;
}

.about-intro h2 .highlight {
  color: var(--accent-warm);
}

.about-intro p {
  margin-bottom: 20px;
}


/* --- Bear Origin Story --- */
.bear-origin {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 100px;
  padding-top: 80px;
  border-top: 1px solid var(--border);
}

.bear-origin-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.bear-origin-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: var(--transition-slow);
}

.bear-origin-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.bear-origin-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.bear-origin-text h3 .highlight {
  color: var(--accent-warm);
}

.bear-origin-text p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.bear-origin-text p:last-child {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 400;
  font-style: italic;
}

/* ============================================
   GAMES SECTION
   ============================================ */
.games {
  padding: var(--section-padding);
  position: relative;
}

.games-header {
  text-align: center;
  margin-bottom: 80px;
}

.games-header h2 {
  margin-bottom: 16px;
}

.games-header p {
  margin: 0 auto;
}

/* --- Game Card --- */
.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
  position: relative;
}

.game-card:last-child {
  margin-bottom: 0;
}

.game-card.reverse {
  direction: rtl;
}

.game-card.reverse > * {
  direction: ltr;
}

.game-card-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  pointer-events: none;
}

.game-card-image .glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: var(--transition-medium);
  pointer-events: none;
}

.game-card:hover .game-card-image .glow {
  opacity: 1;
}

.game-card.warm .game-card-image .glow {
  box-shadow: 0 0 60px var(--accent-warm-glow), inset 0 0 60px var(--accent-warm-glow);
}

.game-card.cool .game-card-image .glow {
  box-shadow: 0 0 60px var(--accent-cool-glow), inset 0 0 60px var(--accent-cool-glow);
}

.game-card-info {
  padding: 20px 0;
}

.game-card-info .game-genre {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.game-card.warm .game-genre {
  color: var(--accent-warm);
  background: var(--accent-warm-glow);
  border: 1px solid rgba(232, 146, 47, 0.2);
}

.game-card.cool .game-genre {
  color: var(--accent-cool);
  background: var(--accent-cool-glow);
  border: 1px solid rgba(62, 219, 213, 0.2);
}

.game-card-info h3 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.game-card.warm .game-card-info h3 {
  color: var(--accent-warm);
}

.game-card.cool .game-card-info h3 {
  color: var(--accent-cool);
}

.game-card-info p {
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.game-card-info .game-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.game-card-info .feature-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.game-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition-medium);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.game-status {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  margin-top: -4px;
}

.game-card.warm .game-status {
  background: rgba(232, 146, 47, 0.15);
  color: var(--accent-warm);
  border: 1px solid rgba(232, 146, 47, 0.3);
}

.game-card.cool .game-status {
  background: rgba(62, 219, 213, 0.1);
  color: var(--accent-cool);
  border: 1px solid rgba(62, 219, 213, 0.25);
}

.game-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.game-cta-secondary {
  background: transparent !important;
  border: 1px solid var(--border-highlight) !important;
  color: var(--text-secondary) !important;
}

.game-cta-secondary:hover {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--accent-cool) !important;
}

.game-formerly {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: -8px;
}

/* --- Game Gallery --- */
.game-gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-track {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 1);
}

.gallery-track > a,
.gallery-track > img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.gallery-track a img,
.gallery-track > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-track a:hover img,
.gallery-track > img:hover {
  transform: scale(1.03);
}

.gallery-enlarge {
  position: relative;
  cursor: zoom-in;
}

.gallery-enlarge::after {
  content: '⛶';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-enlarge:hover::after {
  opacity: 1;
}

.gallery-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 100px;
}

.gallery-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: var(--transition-fast);
  opacity: 0.7;
}

.gallery-btn:hover {
  opacity: 1;
  color: var(--accent-cool);
}

.gallery-dots {
  display: flex;
  gap: 6px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.gallery-dot.active {
  background: var(--accent-cool);
  transform: scale(1.2);
}

.game-card.warm .game-cta {
  background: var(--accent-warm);
  color: var(--bg-primary);
}

.game-card.warm .game-cta:hover {
  box-shadow: 0 8px 32px var(--accent-warm-glow);
  transform: translateY(-2px);
}

.game-card.cool .game-cta {
  background: var(--accent-cool);
  color: var(--bg-primary);
}

.game-card.cool .game-cta:hover {
  box-shadow: 0 8px 32px var(--accent-cool-glow);
  transform: translateY(-2px);
}

/* ============================================
   FOUNDER SECTION
   ============================================ */
.founder {
  padding: var(--section-padding);
  position: relative;
}

.founder-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
}

.founder-header {
  text-align: center;
  margin-bottom: 48px;
}

.founder-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 3px solid var(--border-highlight);
  box-shadow: 0 0 30px rgba(232, 146, 47, 0.15);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.1);
}

.founder-header .section-label {
  justify-content: center;
}

.founder-header h2 {
  margin-bottom: 8px;
}

.founder-header .founder-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-warm);
  font-weight: 400;
}

.founder-story {
  max-width: 800px;
  margin: 0 auto;
}

.story-block {
  position: relative;
  padding-left: 32px;
  margin-bottom: 32px;
  border-left: 2px solid var(--border);
}

.story-block::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 12px var(--accent-warm-glow);
}

.story-block h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-block p {
  font-size: 0.98rem;
  line-height: 1.8;
}



/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-brand .nav-logo {
  margin-bottom: 0;
}

.footer-brand p {
  width: 100%;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-warm);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 auto;
}

.footer-bottom .maple {
  color: #e74c3c;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   DIVIDER
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 24px;
  }



  .bear-origin {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .bear-origin-image {
    max-width: 260px;
    margin: 0 auto;
  }

  .game-card {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 80px;
  }

  .game-card.reverse {
    direction: ltr;
  }

  .founder-card {
    padding: 40px 28px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.4rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }



  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-tagline br {
    display: none;
  }
}
