:root {
  --purple-deep: #4B2E96;
  --purple: #5B3FD9;
  --purple-light: #7B5CFA;
  --coral: #FF6B6B;
  --teal: #2FD8C9;
  --yellow: #FFD93D;
  --cream: #FFF8ED;
  --ink: #2A2140;
  --card-shadow: 0 12px 0 rgba(42, 33, 64, 0.15), 0 20px 30px rgba(42, 33, 64, 0.25);
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html, body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.05), transparent 40%),
    linear-gradient(160deg, var(--purple-deep) 0%, var(--purple) 55%, var(--purple-light) 100%);
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* Diagonal Striped Background Motif matching game */
.chain-bg-motif {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 40px,
    rgba(255,255,255,0.5) 40px 42px
  );
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  z-index: 0;
}

/* Floating Particles */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Top Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(42, 33, 64, 0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  text-shadow: 0 3px 0 rgba(42,33,64,0.4);
}

.accent-coral { color: var(--coral); }
.accent-teal { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

.nav-btn {
  background: var(--coral);
  color: white;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.22);
}

/* Page Shell & Container */
.showcase-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main Game Header */
.game-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 0.95;
  text-align: center;
  color: white;
  text-shadow: 0 4px 0 rgba(42,33,64,0.35);
  letter-spacing: 0.5px;
}

.logo-sub {
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-weight: 800;
  margin-top: 8px;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Cream Card (Matching Game UI) */
.card {
  background: var(--cream);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  padding: 36px;
  width: 100%;
  max-width: 520px;
  color: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
  color: var(--ink);
}

.card-desc {
  text-align: center;
  color: #554a70;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.tab-row {
  display: flex;
  background: #EFE8FF;
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #6B5B95;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: white;
  color: var(--purple);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  border-radius: 16px;
  padding: 14px 24px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--coral);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.18);
}

.btn-secondary {
  background: #2A2140;
  color: #FFFFFF;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
  background: #1D162E;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  background: #EFE8FF;
  color: var(--purple);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #DFD5FF;
}

.full {
  width: 100%;
}

/* Feature Pills Row (Exact Game Style) */
.footer-features {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 520px;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.85rem;
  flex: 1;
  min-width: 150px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease;
}

.feature-pill:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.feature-pill b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 2px;
}

/* Developer Profile Card (Exact Game Style) */
.developer-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dev-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dev-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  font-weight: 800;
}

.dev-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.dev-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0A66C2;
  color: white;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

.dev-linkedin-btn:hover {
  background: #004182;
  transform: translateY(-2px);
}

/* Showcase Section Titles */
.section-title-wrap {
  text-align: center;
  margin: 60px 0 24px;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: white;
  text-shadow: 0 3px 0 rgba(42,33,64,0.3);
}

.section-title-wrap p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-top: 4px;
}

/* How It Works Timeline */
.timeline-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 800px;
}

.timeline-box {
  flex: 1;
  min-width: 170px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px;
  color: white;
  text-align: center;
  transition: transform 0.2s ease;
}

.timeline-box:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.timeline-badge {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline-box h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.timeline-box p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Canvas Playground */
.playground-wrap {
  width: 100%;
  max-width: 540px;
}

.draw-canvas {
  width: 100%;
  height: 280px;
  background: white;
  border-radius: 20px;
  border: 2px solid #E5E0F0;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.color-dot.active, .color-dot:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--purple-light);
}

/* Screenshot Cards */
.screenshots-wrap {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 800px;
}

.screenshot-item {
  flex: 1;
  min-width: 320px;
  background: white;
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.screenshot-item:hover {
  transform: scale(1.02);
}

.screenshot-item img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.screenshot-caption {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
  margin-top: 10px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(42, 33, 64, 0.92);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Footer */
.dev-footer {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  justify-content: center;
}

.dev-footer-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--teal);
}

.dev-footer strong {
  color: white;
}

.dev-linkedin-link {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

.dev-linkedin-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .logo { font-size: 2.3rem; }
  .card { padding: 22px; border-radius: 22px; }
  .nav-links { display: none; }
}
