/* ============================================================
   TravelTimeStory — Indie Studio Website
   Design tokens, layout, components, motion
   ============================================================ */

:root {
  /* Background layers */
  --bg-base:        #0a0e1a;
  --bg-elevated:    #111729;
  --bg-card:        #161d33;
  --bg-card-hover:  #1c2547;

  /* Borders */
  --border-subtle:  #232b4a;
  --border-strong:  #2e3865;

  /* Accents — each focus area gets a hue */
  --accent-cyan:    #00e5ff;   /* Gaming / primary */
  --accent-amber:   #ffb74d;   /* Travel */
  --accent-pink:    #ff5c8a;   /* Creative / social */
  --accent-green:   #4ade80;   /* Health */

  /* Text */
  --text-primary:   #f0f2fa;
  --text-secondary: #b4bdd6;
  --text-muted:     #7a85a8;
  --text-dim:       #4a5278;

  /* Layout */
  --max-w:          1180px;
  --gutter:         clamp(16px, 4vw, 32px);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  /* Type */
  --font-sans:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Motion */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows / glows */
  --glow-cyan:      0 0 40px rgba(0, 229, 255, 0.25);
  --glow-amber:     0 0 40px rgba(255, 183, 77, 0.22);
  --glow-pink:      0 0 40px rgba(255, 92, 138, 0.22);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%,  rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 100% 30%,  rgba(255, 92, 138, 0.06), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 80%,    rgba(255, 183, 77, 0.05), transparent 60%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── Layout helpers ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(60px, 10vw, 110px);
}

.section-tight {
  padding-block: clamp(40px, 7vw, 80px);
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

p { color: var(--text-secondary); }
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.text-gradient {
  background: linear-gradient(120deg, var(--accent-cyan) 0%, #6aa9ff 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 26, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.brand-name { font-weight: 700; }
.brand-name span { color: var(--accent-cyan); }

.nav-links {
  display: none;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent-cyan); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 24px;
  background: rgba(10, 14, 26, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s;
}
.nav-drawer a:hover, .nav-drawer a.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #6aa9ff);
  color: #08111d;
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 229, 255, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding-block: clamp(70px, 12vw, 130px) clamp(50px, 9vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1px at 20% 30%, var(--text-muted) 1px, transparent 1px),
    radial-gradient(circle 1px at 70% 60%, var(--text-muted) 1px, transparent 1px),
    radial-gradient(circle 1px at 45% 80%, var(--text-muted) 1px, transparent 1px),
    radial-gradient(circle 1px at 85% 20%, var(--accent-cyan) 1px, transparent 1px),
    radial-gradient(circle 1px at 10% 70%, var(--accent-amber) 1px, transparent 1px),
    radial-gradient(circle 1px at 90% 75%, var(--accent-pink) 1px, transparent 1px);
  background-size: 600px 600px;
  opacity: 0.7;
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 760px;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 36px; font-size: clamp(1.1rem, 2.6vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Section header ─── */
.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 700px;
}
.section-header h2 { margin-bottom: 14px; }

/* ─── Card grids ─── */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ─── Card ─── */
.card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--card-glow, var(--accent-cyan)) 80%, transparent);
  opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
  background: rgba(0, 229, 255, 0.08);
}
.card h3 { margin-bottom: 10px; color: var(--text-primary); }
.card p { color: var(--text-secondary); font-size: 0.96rem; }

.card.amber  { --card-glow: var(--accent-amber); }
.card.amber  .card-icon { background: rgba(255, 183, 77, 0.10); }
.card.pink   { --card-glow: var(--accent-pink); }
.card.pink   .card-icon { background: rgba(255, 92, 138, 0.10); }
.card.green  { --card-glow: var(--accent-green); }
.card.green  .card-icon { background: rgba(74, 222, 128, 0.10); }

/* ─── Featured project hero panel ─── */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.06), rgba(255, 92, 138, 0.06)),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.20), transparent 70%);
  top: -120px; right: -120px;
  pointer-events: none;
}
@media (min-width: 800px) {
  .feature { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.feature-text { position: relative; z-index: 1; }
.feature-text .eyebrow { color: var(--accent-pink); }
.feature-text h2 { margin-bottom: 16px; }
.feature-text p { margin-bottom: 24px; }
.feature-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.18), transparent 70%),
    #0c1124;
  overflow: hidden;
}

/* mini 5×5 board art */
.mini-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 70%;
  aspect-ratio: 1;
}
.mini-cell {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.mini-cell.x  { color: var(--accent-cyan); text-shadow: 0 0 12px var(--accent-cyan); }
.mini-cell.o  { color: var(--accent-pink); text-shadow: 0 0 12px var(--accent-pink); }
.mini-cell.win { background: rgba(0, 229, 255, 0.10); border-color: var(--accent-cyan); }

/* ─── Feature list (bullets w/ glow dots) ─── */
.bullets {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-block: 8px 28px;
}
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.bullets li::before {
  content: '';
  flex-shrink: 0;
  display: block;
  width: 8px; height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ─── Travel / path section ─── */
.journey {
  position: relative;
  padding-block: clamp(60px, 10vw, 100px);
}
.journey-path {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.stop {
  position: relative;
  padding: 22px 22px 22px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.stop:hover { border-color: var(--accent-amber); transform: translateX(4px); }
.stop::before {
  content: '';
  position: absolute;
  left: 22px; top: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 16px var(--accent-amber);
}
.stop::after {
  content: '';
  position: absolute;
  left: 28px; top: 50px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-amber), transparent);
  opacity: 0.5;
}
.stop:last-child::after { display: none; }
.stop h3 { color: var(--accent-amber); margin-bottom: 6px; }

/* ─── Contact ─── */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(36px, 7vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.12), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.contact-card h2 { margin-bottom: 14px; }
.contact-card p { margin-bottom: 28px; max-width: 50ch; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--accent-cyan);
  border-radius: 100px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.3s var(--ease);
}
.contact-email:hover {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: var(--glow-cyan);
}

/* ─── Prose (privacy, about long text) ─── */
.prose {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
}
.prose h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: 1.6rem;
  color: var(--text-primary);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: var(--accent-cyan);
}
.prose p { margin-bottom: 16px; color: var(--text-secondary); }
.prose ul { padding-left: 22px; margin-bottom: 16px; }
.prose ul li { color: var(--text-secondary); margin-bottom: 8px; }
.prose strong { color: var(--text-primary); }
.prose a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.4);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--accent-cyan); }
.prose .meta {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ─── Footer ─── */
.footer {
  margin-top: 60px;
  padding-block: 40px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 26, 0.5);
}
.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand p {
  font-size: 0.92rem;
  margin-top: 10px;
  max-width: 28ch;
  color: var(--text-muted);
}
.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--accent-cyan); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
