@font-face {
  font-family: "Tonbow";
  src: url("fonts/pixelfont.woff2") format("woff2"),
       url("fonts/pixelfont.woff") format("woff"),
       url("fonts/Tonbow.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #05060a;
  --bg-alt: #111921;
  --accent: #f77c2a;
  --accent-soft: rgba(255, 179, 71, 0.1);
  --text: #e7e7e7;
  --muted: #cecece;
  --border: #2c4054;
  --radius: 14px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --font-main: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: radial-gradient(circle at center right, #95adbe 0, #2c4054 25%) ;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.container {
  width: min(960px, 100% - 2rem);
  margin: 0 auto;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: #111921;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo img {
  height: 80px;      /* Adjust this! */
  width: auto;       /* Keeps correct proportions */
  display: block;    /* Removes extra bottom spacing */
}

nav a {
  margin-left: 1.25rem;
  font-size: 1.5rem;
  color: var(--muted);
}

nav a:hover {
  color: #115b8c;
}

/* Hero */

.hero {
  position: relative;
  padding: 6rem 0;
  color: white;
  overflow: hidden;
  
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 40%;
  bottom: 0%;
  right: 30%;
  width: 200px;
  transform: translateY(0%);
  background: url('img/tonbow-silhouette.png') no-repeat center / contain;
  opacity: 0.08;          /* adjust to taste */
  filter: brightness(1.4);
  filter: blur(0.8px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner.hero-inner-about {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-about-text {
  max-width: 40rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-actions-about {
  margin-top: 1.5rem;
  justify-content: center;
}

/* Remove background silhouette for About page */
.hero-about::after {
  display: none;
}

.hero-text-col {
  flex: 1;
  max-width: 500px; /* keeps text nicely left-focused */
}

.hero-photo-col {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.hero-photo-col img {
   width: 100%;
  max-width: 300px;   /* image can shrink on smaller screens */
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
}

.hero-text {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}



.btn {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #111921;
  font-size: 0.9rem;
}

.btn.primary {
  background: linear-gradient(135deg, #ffb347, #ff6b6b);
  color: #151515;
  border: none;
  box-shadow: var(--shadow-soft);
}

.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero--games {
  /* optional: slightly darker strip behind the header */
  background: rgba(17, 25, 33, 0.75);
}

.page-hero--tools {
  /* optional: slightly darker strip behind the header */
  background: rgba(17, 25, 33, 0.75);
}

.page-hero--demos {
  /* optional: slightly darker strip behind the header */
  background: rgba(17, 25, 33, 0.75);
}

.page-title-img {
  display: block;
  margin: 0 auto 1rem;
  width: 100%;
  max-width: 480px;
  height: auto;
  image-rendering: pixelated; /* keeps your pixels crisp */
}

.page-hero-tagline {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero .btn {
  font-size: 0.9rem;
}

/* Sections */

.section {
  padding: 2.5rem 0;
}

.pillars {
  padding: 1rem 0 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));;
  gap: 1.2rem;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 480px;   /* keeps cards uniform */
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0.2rem 0 0.8rem;
  color: var(--muted);
}

.card-link {
  font-size: 0.9rem;
  color: var(--accent);
}

.card p.fake-link {
  font-size: 0.9rem;
  color: #f77c2a;
}

.card img {

  width: 100%;
  height: auto;
  object-fit: cover;  /* or "cover" if you’re okay with cropping */
  border-radius: var(--radius);
  background: #111921;
  display: flex;
  overflow: hidden;
}

.card video {

  width: 100%;
  height: auto;
  object-fit: cover;  /* or "cover" if you’re okay with cropping */
  border-radius: var(--radius);
  background: #111921;
  display: flex;
  overflow: hidden;
}

/* Projects */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.3rem 1.4rem;
}

.project h3 {
  margin: 0 0 0.3rem;
}

.project-tags {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.project p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.project-links a {
  font-size: 0.9rem;
  margin-right: 0.9rem;
  color: var(--accent);
}

.center-img {
  display: block;
  margin: 0 auto;
}



/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.4rem 0 2rem;
  margin-top: 2rem;
  background: rgba(5, 6, 10, 0.95);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a {
  margin-left: 1rem;
}

/* Mobile tweaks */

@media (max-width: 600px) {
  nav a {
    margin-left: 0.85rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .page-title-img {
    max-width: 300px;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-inner-about {
    flex-direction: column;
    text-align: center;
  }

  .hero-inner.hero-inner-about {
    flex-direction: column;
    text-align: center;
  }

  .hero-photo-col img {
    width: 220px;
  }
}
