/* =====================================================
   COSMICSHOT — Global Stylesheet
   Dark Space Theme | Red & Orange | No External Deps
   ===================================================== */

/* ── Fonts ──────────────────────────────────────────── */
@font-face {
  font-family: 'Fredoka One';
  src: url('../fonts/fredoka_one_400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito_400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito_700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito_800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito_900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: #050008;
  color: #e0d0ff;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: #FF6600; text-decoration: none; transition: color 0.2s; }
a:hover { color: #FF9900; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --primary: #FF4400;
  --primary-light: #FF7700;
  --accent: #FF9900;
  --accent-glow: rgba(255,100,0,0.35);
  --bg: #050008;
  --bg2: #0d0010;
  --bg3: #150018;
  --card: #110015;
  --card-border: rgba(255,80,0,0.18);
  --text: #e0d0ff;
  --text-muted: #9980aa;
  --radius: 16px;
  --shadow: 0 4px 32px rgba(255,60,0,0.18);
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 70px;
  background: rgba(5,0,8,0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,80,0,0.08);
  transition: background 0.3s, border-color 0.3s;
}
.navbar.scrolled {
  background: rgba(5,0,8,0.95);
  border-bottom-color: rgba(255,80,0,0.25);
  box-shadow: 0 2px 24px rgba(255,60,0,0.15);
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem; color: #fff; text-decoration: none;
}
.brand-rocket { width: 34px; height: 34px; filter: drop-shadow(0 0 8px #FF4400); }
.brand-accent { color: var(--primary-light); }
.navbar-nav {
  display: flex; align-items: center; gap: 0.2rem;
}
.navbar-nav li a {
  color: #ccc; font-weight: 700; font-size: 0.92rem;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.navbar-nav li a:hover, .navbar-nav li a.active {
  color: #fff; background: rgba(255,80,0,0.12);
}
.nav-cta {
  background: linear-gradient(135deg, #CC2200, #FF4400) !important;
  color: #fff !important; border-radius: 10px !important;
  padding: 9px 20px !important; font-weight: 800 !important;
  box-shadow: 0 0 16px rgba(255,60,0,0.4);
  display: flex; align-items: center; gap: 6px;
}
.nav-cta:hover { background: linear-gradient(135deg, #FF4400, #FF7700) !important; transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #FF6600; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Section ───────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35) saturate(1.4);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(80,0,0,0.7) 0%, rgba(5,0,8,0.85) 60%, rgba(5,0,8,0.98) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text { max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,60,0,0.12); border: 1px solid rgba(255,80,0,0.3);
  color: var(--primary-light); font-size: 0.82rem; font-weight: 800;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 1.5rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05; color: #fff; margin-bottom: 1.2rem;
}
.hero-title span { color: var(--primary-light); text-shadow: 0 0 30px rgba(255,100,0,0.6); }
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #CC2200, #FF4400);
  color: #fff; font-family: 'Fredoka One', cursive;
  font-size: 1.05rem; padding: 14px 28px; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 24px rgba(255,60,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,60,0,0.55); color: #fff; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,80,0,0.1); color: var(--primary-light);
  font-family: 'Fredoka One', cursive; font-size: 1.05rem;
  padding: 14px 28px; border-radius: 12px; border: 1px solid rgba(255,80,0,0.3);
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: rgba(255,80,0,0.2); transform: translateY(-2px); color: #FF9900; }
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num {
  font-family: 'Fredoka One', cursive; font-size: 1.8rem;
  color: var(--primary-light); line-height: 1;
}
.hero-stat .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-visual img {
  width: 100%; max-width: 480px; border-radius: 20px;
  box-shadow: 0 0 60px rgba(255,60,0,0.35), 0 0 120px rgba(255,60,0,0.15);
  border: 1px solid rgba(255,80,0,0.2);
}
.hero-glow {
  position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,60,0,0.25), transparent 70%);
  border-radius: 50%; pointer-events: none;
}

/* ── Page Hero (inner pages) ────────────────────────── */
.page-hero {
  position: relative; padding-top: 70px; min-height: 320px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3) saturate(1.3); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(80,0,0,0.7), rgba(5,0,8,0.9));
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 2.5rem;
  width: 100%;
}
.page-hero-content h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; margin-bottom: 0.6rem;
}
.page-hero-content h1 span { color: var(--primary-light); }
.page-hero-content p { color: var(--text-muted); font-size: 1rem; }
.page-hero-divider {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3;
  height: 50px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ── Section Styles ─────────────────────────────────── */
.section { padding: 80px 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-block;
  background: rgba(255,60,0,0.1); border: 1px solid rgba(255,80,0,0.25);
  color: var(--primary-light); font-size: 0.78rem; font-weight: 800;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin-bottom: 0.8rem;
}
.section-title span { color: var(--primary-light); }
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── Stats Banner ───────────────────────────────────── */
.stats-banner {
  background: linear-gradient(135deg, #1a0008, #200010);
  border: 1px solid rgba(255,80,0,0.2);
  border-radius: 24px; padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
}
.stats-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,60,0,0.12), transparent 70%);
}
.stats-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  display: block; font-family: 'Fredoka One', cursive;
  font-size: 2.4rem; color: var(--primary-light);
  text-shadow: 0 0 20px rgba(255,100,0,0.5);
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── Feature Cards ──────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255,60,0,0.2);
  border-color: rgba(255,80,0,0.4);
}
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,60,0,0.12); border: 1px solid rgba(255,80,0,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); margin-bottom: 1.2rem;
}
.feature-card h3 {
  font-family: 'Fredoka One', cursive; font-size: 1.15rem;
  color: #fff; margin-bottom: 0.6rem;
}
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── How to Play Steps ──────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.step-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(255,60,0,0.18); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #CC2200, #FF4400);
  font-family: 'Fredoka One', cursive; font-size: 1.4rem; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; box-shadow: 0 0 20px rgba(255,60,0,0.4);
}
.step-card h3 { font-family: 'Fredoka One', cursive; color: #fff; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── About ──────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem;
}
.about-text h2 {
  font-family: 'Fredoka One', cursive; font-size: 2rem; color: #fff; margin-bottom: 1.2rem;
}
.about-text h2 span { color: var(--primary-light); }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.97rem; }
.about-visual { position: relative; border-radius: 20px; overflow: hidden; }
.about-visual img { width: 100%; border-radius: 20px; box-shadow: 0 0 50px rgba(255,60,0,0.25); }
.about-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,0,8,0.5), transparent 60%);
  border-radius: 20px;
}
.about-visual-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(5,0,8,0.75); border: 1px solid rgba(255,80,0,0.3);
  color: var(--primary-light); font-size: 0.78rem; font-weight: 800;
  padding: 5px 12px; border-radius: 8px; backdrop-filter: blur(6px);
}
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem;
}
.value-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(255,60,0,0.15); }
.val-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,60,0,0.1); border: 1px solid rgba(255,80,0,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); margin-bottom: 1rem;
}
.value-card h3 { font-family: 'Fredoka One', cursive; color: #fff; margin-bottom: 0.5rem; font-size: 1.05rem; }
.value-card p { color: var(--text-muted); font-size: 0.87rem; line-height: 1.65; }

/* ── Contact ────────────────────────────────────────── */
.contact-section { padding: 60px 2rem 80px; max-width: 1100px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h2 { font-family: 'Fredoka One', cursive; font-size: 1.9rem; color: #fff; margin-bottom: 1rem; }
.contact-info h2 span { color: var(--primary-light); }
.contact-info > p { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 0.8rem;
}
.ci-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,60,0,0.12); display: flex; align-items: center;
  justify-content: center; color: var(--primary-light); flex-shrink: 0;
}
.ci-text span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.ci-text strong { color: #fff; font-size: 0.9rem; }
.contact-form {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { color: #ccc; font-size: 0.85rem; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
  background: #0d0010; border: 1px solid rgba(255,80,0,0.2);
  border-radius: 10px; padding: 10px 14px; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,60,0,0.12);
}
.form-group select option { background: #0d0010; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; align-items: center; gap: 8px;
  background: rgba(0,200,100,0.1); border: 1px solid rgba(0,200,100,0.3);
  border-radius: 10px; padding: 12px 16px;
  color: #00c864; font-size: 0.9rem; margin-top: 1rem;
}

/* ── Play Page ──────────────────────────────────────── */
.play-page { min-height: 100vh; background: var(--bg); padding-top: 70px; }
.game-wrapper {
  max-width: 1000px; margin: 0 auto; padding: 2rem;
}
.game-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem;
}
.game-header h1 {
  font-family: 'Fredoka One', cursive; font-size: 1.6rem; color: #fff;
}
.game-header h1 span { color: var(--primary-light); }
.game-controls-hint {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.ctrl-tag {
  background: rgba(255,60,0,0.1); border: 1px solid rgba(255,80,0,0.2);
  color: var(--text-muted); font-size: 0.78rem; padding: 4px 10px; border-radius: 6px;
}
.canvas-container {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: #000; border-radius: 16px; overflow: hidden;
  border: 2px solid rgba(255,80,0,0.25);
  box-shadow: 0 0 60px rgba(255,60,0,0.2), 0 0 120px rgba(255,60,0,0.08);
}
#gameCanvas { display: block; width: 100%; height: 100%; }
.game-tips {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.tip-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 1rem 1.2rem;
  display: flex; align-items: flex-start; gap: 0.8rem;
}
.tip-icon { color: var(--primary-light); flex-shrink: 0; margin-top: 2px; }
.tip-card p { color: var(--text-muted); font-size: 0.83rem; line-height: 1.5; }

/* ── CTA Section ────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1a0008, #200010);
  border-top: 1px solid rgba(255,80,0,0.12);
  border-bottom: 1px solid rgba(255,80,0,0.12);
  padding: 80px 2rem; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,60,0,0.12), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-section h2 {
  font-family: 'Fredoka One', cursive; font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff; margin-bottom: 1rem; position: relative;
}
.cta-section h2 span { color: var(--primary-light); }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; position: relative; }

/* ── Scroll reveal ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible, .reveal.revealed { opacity: 1; transform: none; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: #030006;
  border-top: 1px solid rgba(255,80,0,0.1);
  padding: 3.5rem 2rem 2rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .brand-name {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Fredoka One', cursive; font-size: 1.2rem; color: #fff; margin-bottom: 0.8rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  font-family: 'Fredoka One', cursive; color: #fff; font-size: 0.95rem;
  margin-bottom: 1rem; letter-spacing: 0.5px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  color: var(--text-muted); font-size: 0.88rem;
  transition: color 0.2s; display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-divider { border: none; border-top: 1px solid rgba(255,80,0,0.1); margin: 0 0 1.5rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }
.footer-address { color: #665577 !important; font-size: 0.78rem !important; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .navbar-nav { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(5,0,8,0.98); padding: 1.5rem; gap: 0.3rem; border-bottom: 1px solid rgba(255,80,0,0.15); }
  .navbar-nav.open { display: flex; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
  .stats-inner { gap: 1.2rem; }
}
