/* ============================================
   Blue Mustang Studios — Premium Stylesheet
   Design direction by ChatGPT + Claude
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #05070B;
  --surface: #0B1220;
  --surface-2: #111827;
  --text: #F5F7FA;
  --text-secondary: #A7B0BE;
  --text-muted: #6B7280;
  --blue: #2F6BFF;
  --blue-deep: #193D8F;
  --blue-light: #6EA8FF;
  --gold: #C8A96B;
  --gold-glow: rgba(200, 169, 107, 0.22);
  --border: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-stroke: rgba(255, 255, 255, 0.12);
  --container: 1200px;
  --radius-sm: 14px;
  --radius-lg: 20px;
  --space-1: 12px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --space-7: 96px;
  --space-8: 120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Utility --- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 76px;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(5, 7, 11, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.nav-logo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  opacity: 0.84;
  transition: opacity 0.22s ease, color 0.22s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-light);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--blue-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Blue Mustang Logo no words.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
  transition: opacity 0.1s linear;
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    rgba(5, 7, 11, 0.40),
    radial-gradient(circle at 20% 30%, rgba(47, 107, 255, 0.15), transparent 50%);
  z-index: -2;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 140px 40px 100px;
}

.hero-content h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.hero-content .hero-tagline {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  max-width: 560px;
}

.hero-content .hero-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.18), rgba(17, 24, 39, 0.9));
  border: 1px solid rgba(110, 168, 255, 0.35);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(47, 107, 255, 0.15);
}

.btn-primary:hover {
  border-color: rgba(110, 168, 255, 0.6);
  box-shadow: 0 4px 30px rgba(47, 107, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--glass-stroke);
  color: var(--text);
  background: var(--glass);
}

/* --- Sections --- */
.page-content {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

section {
  padding: var(--space-8) 0;
}

section.tight {
  padding: 88px 0;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: var(--space-1);
}

.section-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.section-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
}

/* --- About / Positioning --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-5);
  align-items: start;
}

.about-grid p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* --- Pillar Cards --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.pillar-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 40px rgba(0, 0, 0, 0.18);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.25);
  border-color: var(--glass-stroke);
}

.pillar-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.pillar-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Portfolio / Games --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card-image {
  width: 100%;
  height: 220px;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

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

.game-card:hover .game-card-image img {
  transform: scale(1.03);
}

.game-card-body {
  padding: 28px;
}

.game-card-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.game-card-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: var(--space-1);
}

.game-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.game-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(47, 107, 255, 0.12);
  color: var(--blue-light);
  border: 1px solid rgba(47, 107, 255, 0.2);
}

/* --- Philosophy --- */
.philosophy-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-block p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* --- Contact --- */
.contact-section {
  border-top: 1px solid var(--border);
}

.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-inner p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.contact-inner a.email-link {
  font-size: 18px;
  color: var(--blue-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 168, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.22s ease;
}

.contact-inner a.email-link:hover {
  border-color: var(--blue-light);
}

/* --- Footer --- */
.site-footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-brand h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-col ul a:hover {
  color: var(--blue-light);
}

.footer-legal {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Dividers --- */
.section-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 auto var(--space-5);
}

/* --- Privacy Page --- */
.privacy-page {
  padding-top: 140px;
  padding-bottom: var(--space-8);
  min-height: 100vh;
  background: var(--bg);
}

.privacy-page .container {
  max-width: 760px;
}

.privacy-page h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.privacy-page .effective-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.privacy-page h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.privacy-page p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.privacy-page ul {
  padding-left: 24px;
  margin-bottom: var(--space-2);
}

.privacy-page li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.privacy-page strong {
  color: var(--text);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: var(--space-7) 0;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0 20px;
    height: 64px;
  }

  .hero-content {
    padding: 120px 24px 80px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content .hero-tagline {
    font-size: 19px;
  }

  .section-title {
    font-size: 28px;
  }

  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  section {
    padding: var(--space-6) 0;
  }

  section.tight {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 32px;
  }
}
