/* ===========================
   121 Gigawatt Productions
   style.css
   =========================== */

/* ===== Variables ===== */
:root {
  --bg: #0e0f12;
  --bg-home: #0e0f12;
  --bg-card: #33343a;
  --fg: #c8cad0;
  --heading: #dcdee3;
  --muted: #8b8f99;
  --accent: #5b8af0;
  --accent-soft: rgba(91, 138, 240, 0.12);
  --border: #3e4048;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-w: 1100px;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { color: var(--heading); margin: 0 0 0.75rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.2rem; }
li { margin: 0.3rem 0; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-bg--blur {
  filter: blur(4px);
  transform: scale(1.05);
}

.page-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(14, 15, 18, 0.70);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 18, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 34px;
  width: auto;
  border-radius: 4px;
}

.nav-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--heading);
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.main-nav a {
  color: var(--fg);
  transition: color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-label span { top: 9px; }
.nav-toggle-label span::before { content: ""; top: -7px; }
.nav-toggle-label span::after { content: ""; top: 7px; }

.nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
.nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); background: var(--fg); }
.nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); background: var(--fg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn.primary {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn.primary:hover {
  background: rgba(91, 138, 240, 0.2);
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

/* ===== Sections ===== */
.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-title {
  margin-bottom: 1.5rem;
}

/* ===== Grids ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ===== Home-specific ===== */
.home-body { background: var(--bg-home); }

.hero-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px - 60px);
  text-align: center;
  padding: 3rem 0;
}

.hero-logo {
  max-width: 500px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 700px;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-weight: 600;
  font-size: 1.35rem;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.service-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ===== DCP page ===== */
.dcp-hero {
  padding: 3rem 0 1.5rem;
}

.dcp-hero h1 {
  font-size: 1.8rem;
}

.dcp-hero p {
  color: var(--fg);
  max-width: 600px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.pricing-card .tier {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.25rem;
}

.pricing-card .note {
  font-size: 0.8rem;
  color: var(--muted);
}

.delivery-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== VFX page ===== */
.vfx-section-bg {
  position: relative;
  overflow: hidden;
}

.vfx-section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.vfx-section-bg > * {
  position: relative;
  z-index: 1;
}

.vfx-bg-1::before { background-image: url('../images/Apocalypse_HBO_SearchParty.jpg'); }
.vfx-bg-2::before { background-image: url('../images/Dan.jpg'); }
.vfx-bg-3::before { background-image: url('../images/Subway.jpg'); }
.vfx-bg-4::before { background-image: url('../images/Subway.jpg'); }

.reel-embed {
  position: relative;
  padding-bottom: 28.125%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  margin: 0 auto 1.5rem;
  max-width: 50%;
}

.reel-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.credits-text {
  color: #9da2ac;
}

.software-list {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ===== VHS page ===== */
.vhs-page {
  position: relative;
}

.vhs-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../images/VHS_Background.png') center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.02);
}

.vhs-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(14, 15, 18, 0.78);
}

/* Static featured video/image at top */
.tape-featured {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.tape-featured img,
.tape-featured video {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Dissolving tape covers — dual column */
.tape-duo {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 0 auto 2rem;
}

.tape-showcase {
  position: relative;
  width: 280px;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
}

.tape-showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  transition: opacity 1.5s ease-in-out;
}

.tape-showcase img.hidden { opacity: 0; }
.tape-showcase img.visible { opacity: 1; }

/* ===== ChromaKeyTrakr page ===== */
.app-screenshots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.app-screenshots--wide {
  gap: 4rem;
}

.app-screenshots img {
  width: auto;
  height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.app-screenshots img:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}

/* Screenshot lightbox */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.screenshot-lightbox.open {
  display: flex;
}

.screenshot-lightbox img {
  height: 85vh;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  cursor: default;
  object-fit: contain;
}

.screenshot-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.screenshot-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.screenshot-lightbox-nav.prev { left: 18px; }
.screenshot-lightbox-nav.next { right: 18px; }

.feature-list {
  list-style: none;
  padding: 0;
  max-width: 400px;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.95rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

/* ===== About page ===== */
.about-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.about-bio p {
  color: var(--muted);
}

.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.btn-imdb {
  border-color: #f5c518;
  color: #f5c518;
  background: rgba(245, 197, 24, 0.1);
}

.btn-imdb:hover {
  background: rgba(245, 197, 24, 0.2);
}

.focus-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1.5rem;
}

.focus-list li {
  font-size: 0.9rem;
  color: var(--muted);
}

.focus-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.4rem;
}

/* ===== Contact Form ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group textarea {
  resize: vertical;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.cta-section p {
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  background: rgba(14, 15, 18, 0.6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  transition: color 0.15s;
}

.footer-inner a:hover {
  color: var(--accent);
}

/* ===== Blog ===== */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.blog-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.blog-card-img {
  width: 280px;
  min-height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-body h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.blog-card-body time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.blog-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(91, 138, 240, 0.2);
}

/* Blog post page */
.container.blog-post-container {
  max-width: 760px;
  padding: 0 2.5rem;
}

.blog-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: opacity 0.15s;
}

.blog-back:hover { opacity: 0.7; }

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.blog-post-meta time {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-post-image {
  margin-bottom: 1.5rem;
}

.blog-post-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.blog-post-caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

.blog-post-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg);
}

.blog-post-body p {
  margin-bottom: 1.25rem;
}

.blog-post-body a {
  color: var(--accent);
  text-decoration: underline;
}

.blog-video {
  position: relative;
  padding-bottom: 56.25%;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.blog-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  /* Show hamburger */
  .nav-toggle-label { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(14, 15, 18, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .nav-toggle:checked ~ .main-nav { display: flex; }

  .service-cards { grid-template-columns: 1fr; max-width: 200px; }
  .pricing-cards { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .blog-card { flex-direction: column; }
  .blog-card-img { width: 100%; min-height: 160px; max-height: 220px; }
  .blog-card-body { padding: 1rem; }
  .about-layout { flex-direction: column; align-items: center; text-align: center; }
  .focus-list { grid-template-columns: 1fr; }
  .app-screenshots {
    position: relative;
    height: 280px;
    gap: 0;
  }
  .app-screenshots img {
    height: 280px;
    transition: none;
  }
  .app-screenshots img.ss-hidden {
    display: none;
  }
  .app-screenshots img.ss-visible {
    display: block;
    margin: 0 auto;
  }
  .tape-duo #tape-right { display: none; }
  .tape-showcase { width: 100%; max-width: 300px; }
  .reel-embed { max-width: 100%; padding-bottom: 56.25%; }
}

@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  .service-cards { grid-template-columns: 1fr; max-width: 180px; }
  .pricing-cards { grid-template-columns: 1fr; }
  .app-screenshots { flex-direction: column; align-items: center; }
  .app-screenshots img { height: 280px; }
  .footer-inner { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
}
