/* ========================================
   KEMPSTON PILOTS — style.css (redesigned)
   ======================================== */

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

:root {
  --gold:    #f59e0b;
  --gold-dim: rgba(245,158,11,0.18);
  --gold-glow: rgba(245,158,11,0.45);
  --dark:    #0a0f1e;
  --dark2:   #0f172a;
  --dark3:   #111827;
  --surface: #1a2236;
  --surface2: #1e2d44;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --radius:  14px;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAVBAR ──────────────────────────── */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 0 40px;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,158,11,0.12);
  z-index: 1000;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
  background: var(--gold-dim);
}

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

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 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); }

/* ─── HERO ────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,158,11,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(30,41,90,0.5) 0%, transparent 60%),
    var(--dark2);
  overflow: hidden;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 36px;
  display: block;
  margin-top: 20px; /* push down from navbar */
  box-shadow:
    0 0 0 3px rgba(245,158,11,0.25),
    0 0 30px 8px rgba(245,158,11,0.3),
    0 0 70px 4px rgba(245,158,11,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-logo:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 3px rgba(245,158,11,0.4),
    0 0 40px 12px rgba(245,158,11,0.45),
    0 0 80px 8px rgba(245,158,11,0.2);
}

.main-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 10px;
}

.subtitle {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 4vw, 44px);
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(245,158,11,0.4);
}

.hero-tagline {
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}

.scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(245,158,11,0.35);
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s;
  background: var(--gold-dim);
}

.scroll-cta:hover {
  background: rgba(245,158,11,0.25);
  border-color: var(--gold);
  transform: translateY(3px);
}

.scroll-cta svg {
  animation: bounce 1.8s ease-in-out infinite;
}

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

/* ─── GAMES SECTION ───────────────────── */
.games-section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 34px);
  color: #fff;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}

/* Category filter buttons */
.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Game Card */
.game-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.game-card:not(.coming-soon):hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(245,158,11,0.25), 0 0 0 1px rgba(245,158,11,0.3);
}

.game-card:not(.coming-soon):hover .card-glow {
  opacity: 1;
}

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(245,158,11,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card-inner {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Badge */
.game-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--gold);
  color: #000;
}

.game-badge.soon {
  background: rgba(255,255,255,0.12);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Thumbnail area */
.game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0f1e;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.game-card:not(.coming-soon):hover .game-thumb img {
  transform: scale(1.05);
}

.game-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:not(.coming-soon):hover .game-thumb-overlay {
  opacity: 1;
}

.play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: 8px;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(245,158,11,0.5);
}

.placeholder-thumb {
  background: linear-gradient(135deg, #0f1729 0%, #1a2236 100%);
}

.placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.placeholder-art p {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(148,163,184,0.4);
  text-transform: uppercase;
}

/* Game info area */
.game-info {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.game-tag.soccer     { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.game-tag.basketball { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.game-tag.racing     { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.game-tag.adventure  { background: rgba(20,184,166,0.15); color: #2dd4bf; border: 1px solid rgba(20,184,166,0.25); }

.game-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.3;
}

.game-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.game-platform {
  font-size: 13px;
  color: rgba(148,163,184,0.6);
}

.game-cta-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.game-cta-soon {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(148,163,184,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.coming-soon {
  opacity: 0.55;
  cursor: default;
}

/* ─── SECTIONS ────────────────────────── */
.section {
  padding: 100px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section .section-title {
  margin-bottom: 40px;
  display: inline-block;
}

.section .section-title::after {
  margin: 8px auto 0;
}

/* About */
.about-content {
  text-align: left;
  max-width: 780px;
  margin: 0 auto;
}

.about-content p {
  color: #b8c7d9;
  font-size: 15.5px;
  margin-bottom: 18px;
  line-height: 1.75;
}

/* Approach */
.dark-section {
  background: var(--dark3);
  padding: 100px 40px;
  max-width: 100%;
}

.dark-section .section-title {
  text-align: center;
  display: block;
  margin-bottom: 48px;
}

.dark-section .section-title::after {
  margin: 8px auto 0;
}

.grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
  cursor: pointer;
  text-align: left;
}

.card:hover { transform: translateY(-6px); }

.card h3 {
  margin-bottom: 14px;
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.card p { font-size: 15px; color: var(--muted); }

.card .long { display: none; margin-top: 14px; font-size: 14px; color: #b8c7d9; }

.card.active {
  transform: scale(1.04);
  background: var(--surface2);
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 30px rgba(245,158,11,0.1);
}

.card.active .long  { display: block; }
.card.active .short { display: none; }
.grid .card:not(.active) { opacity: 0.88; }

/* Contact */
.contact-sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.email-link {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  letter-spacing: 1px;
}

.email-link:hover {
  border-color: var(--gold);
}

/* ─── FOOTER ──────────────────────────── */
footer {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.footer-copy {
  color: #475569;
  font-size: 13px;
}

/* ─── FILTER JS HIDDEN ────────────────── */
.game-card.hidden {
  display: none;
}

/* ─── RESPONSIVE ──────────────────────── */
@media (max-width: 768px) {
  html { scroll-padding-top: 68px; }

  .navbar { padding: 0 20px; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,15,30,0.98);
    backdrop-filter: blur(16px);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(245,158,11,0.15);
  }

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

  .nav-links a {
    padding: 12px 16px;
    font-size: 16px;
    letter-spacing: 1.5px;
    border-radius: 8px;
  }

  .hero { padding-top: 100px; }
  .hero-logo { width: 130px; height: 130px; margin-top: 10px; }

  .games-section { padding: 70px 20px; }
  .games-header { flex-direction: column; align-items: flex-start; }
  .games-grid { grid-template-columns: 1fr; }

  .section { padding: 70px 20px; }
  .dark-section { padding: 70px 20px; }
  .grid { gap: 20px; }

  footer { padding: 36px 20px; }
}

@media (max-width: 480px) {
  .main-title { font-size: 36px; letter-spacing: 2px; }
  .subtitle   { font-size: 22px; }
  .hero-tagline { font-size: 15px; }
  .hero-logo  { width: 110px; height: 110px; }
  .scroll-cta { font-size: 13px; padding: 10px 18px; }
  .games-section { padding: 60px 16px; }
  .section { padding: 60px 16px; }
}
