/* ===== MJJM Productions — Cinematic Dark Design System ===== */
:root {
  --bg: hsl(230 25% 5%);
  --bg-alt: hsl(230 25% 7%);
  --fg: hsl(210 30% 96%);
  --muted: hsl(220 15% 65%);
  --border: hsl(230 20% 14%);
  --card: hsl(230 25% 7%);

  --primary: hsl(205 100% 58%);
  --primary-glow: hsl(205 100% 70%);
  --primary-fg: hsl(230 30% 6%);
  --secondary: hsl(265 70% 25%);
  --accent: hsl(22 100% 58%);

  --gradient-primary: linear-gradient(135deg, hsl(205 100% 58%), hsl(265 80% 60%));
  --gradient-accent: linear-gradient(135deg, hsl(22 100% 58%), hsl(340 90% 60%));
  --gradient-hero: linear-gradient(135deg, hsl(265 70% 18% / 0.85), hsl(230 60% 8% / 0.9) 50%, hsl(205 100% 20% / 0.7));
  --gradient-radial: radial-gradient(circle at 50% 0%, hsl(205 100% 30% / 0.4), transparent 60%);
  --gradient-glass: linear-gradient(135deg, hsl(230 30% 14% / 0.6), hsl(230 30% 8% / 0.4));

  --shadow-glow: 0 0 60px hsl(205 100% 58% / 0.4);
  --shadow-elegant: 0 30px 80px -30px hsl(205 100% 30% / 0.5);
  --shadow-card: 0 20px 60px -20px hsl(230 60% 2% / 0.8);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --radius: 0.875rem;
  --radius-lg: 1.5rem;

  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: hsl(205 100% 58% / 0.3); color: var(--fg); }

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

/* ----- Utility ----- */
.glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(230 20% 14% / 0.8);
}
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600;
  font-size: 0.875rem; border: none; cursor: pointer;
  transition: all 0.3s var(--ease); white-space: nowrap;
  font-family: inherit;
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn-xl { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-hero {
  background: var(--gradient-primary); color: var(--primary-fg);
  box-shadow: var(--shadow-glow);
}
.btn-hero:hover { box-shadow: var(--shadow-elegant); transform: translateY(-2px); }
.btn-glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid hsl(230 20% 14% / 0.8);
  color: var(--fg);
}
.btn-glass:hover { border-color: hsl(205 100% 58% / 0.4); background: hsl(210 30% 96% / 0.05); }
.full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.25rem 0; transition: padding 0.5s var(--ease);
}
.navbar.scrolled { padding: 0.75rem 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  transition: all 0.5s var(--ease);
}
.navbar.scrolled .nav-inner {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid hsl(230 20% 14% / 0.8);
  box-shadow: var(--shadow-card);
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-mark {
  display: inline-flex; height: 36px; width: 36px; align-items: center; justify-content: center;
  border-radius: 0.6rem; background: var(--gradient-primary); color: var(--primary-fg);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.875rem;
  box-shadow: var(--shadow-glow);
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.dot { color: var(--primary); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--primary); transition: width 0.3s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: calc(100% + 8px); left: 1.5rem; right: 1.5rem;
    padding: 1.5rem; border-radius: var(--radius-lg);
    background: var(--gradient-glass); backdrop-filter: blur(20px);
    border: 1px solid hsl(230 20% 14% / 0.8);
    animation: fadeIn 0.3s var(--ease);
  }
  .nav-links.open a { font-size: 1rem; color: var(--fg); }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; inset: 0; }
.overlay-gradient { background: var(--gradient-hero); }
.overlay-radial { background: var(--gradient-radial); }
.overlay-dim { background: hsl(230 25% 5% / 0.4); }
.overlay-bottom {
  inset: auto 0 0 0; height: 10rem;
  background: linear-gradient(to top, var(--bg), transparent);
}

.beams { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; top: -20%; height: 120%; width: 2px;
  background: linear-gradient(to bottom, transparent, hsl(205 100% 58% / 0.4), transparent);
  animation: beam 4s ease-in-out infinite;
}
.beam-accent { background: linear-gradient(to bottom, transparent, hsl(22 100% 58% / 0.4), transparent); }
@keyframes beam {
  0%, 100% { opacity: 0; transform: translateY(-20%); }
  50% { opacity: 1; transform: translateY(0); }
}

.hero-content {
  position: relative; z-index: 1; padding: 8rem 1.5rem 5rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 999px; margin-bottom: 2rem;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: hsl(210 30% 96% / 0.8); animation: fadeIn 0.6s var(--ease);
}
.ping { position: relative; display: inline-flex; height: 8px; width: 8px; }
.ping span:first-child {
  position: absolute; inset: 0; border-radius: 999px; background: var(--primary);
  opacity: 0.75; animation: ping 1.5s infinite;
}
.ping span:last-child {
  position: relative; height: 8px; width: 8px; border-radius: 999px; background: var(--primary);
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 700;
  line-height: 0.95; letter-spacing: -0.03em; max-width: 60rem;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}
.hero-sub {
  margin-top: 2rem; max-width: 36rem; font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted); animation: fadeUp 0.8s var(--ease) 0.3s both;
}
.hero-actions {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem;
  animation: fadeUp 0.8s var(--ease) 0.5s both;
}
.stats {
  margin-top: 5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 36rem; animation: fadeUp 0.8s var(--ease) 0.7s both;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.stat-label {
  margin-top: 0.25rem; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
}

.scroll-ind {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em;
}
.scroll-line { height: 40px; width: 1px; background: linear-gradient(to bottom, hsl(210 30% 96% / 0.4), transparent); }
@media (max-width: 640px) { .scroll-ind { display: none; } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SECTIONS ===== */
.section { position: relative; padding: 8rem 0; }
.section-alt { background: hsl(230 25% 6%); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 5rem; }
.kicker {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--primary); font-weight: 500;
}
.kicker.accent { color: var(--accent); }
.section-title {
  margin-top: 1rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em;
}
.section-title.left { text-align: left; }
.section-sub { margin-top: 1.5rem; color: var(--muted); font-size: 1.05rem; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px); border-color: hsl(205 100% 58% / 0.4);
  box-shadow: var(--shadow-elegant);
}
.service-img { aspect-ratio: 16 / 10; overflow: hidden; }
.service-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 2rem; }
.service-body.full { padding: 2.5rem; }
.icon-box {
  display: inline-flex; height: 48px; width: 48px; align-items: center; justify-content: center;
  border-radius: 0.85rem; background: hsl(205 100% 58% / 0.1); color: var(--primary);
  font-size: 1.4rem; margin-bottom: 1.25rem;
  transition: all 0.5s var(--ease);
}
.service-card:hover .icon-box { background: var(--gradient-primary); color: var(--primary-fg); }
.service-body h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem;
  font-weight: 600; margin-bottom: 0.6rem;
}
.service-body p { font-size: 0.92rem; color: var(--muted); }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.portfolio-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; display: block;
}
.portfolio-item.large { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .portfolio-item.large { grid-column: auto; aspect-ratio: 4 / 3; } }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute; inset: 0; padding: 2rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, hsl(230 25% 5% / 0.95) 0%, hsl(230 25% 5% / 0.4) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.tag {
  align-self: flex-start; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.18em;
  padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--accent); color: var(--primary-fg);
  margin-bottom: 0.75rem; font-weight: 600;
}
.portfolio-overlay h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; margin-bottom: 0.4rem;
}
.portfolio-overlay p { color: var(--muted); font-size: 0.9rem; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid; gap: 4rem; align-items: center;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text { color: var(--muted); margin-top: 1.5rem; font-size: 1.05rem; }
.about-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.about-tags span {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.8rem;
  background: hsl(205 100% 58% / 0.1); color: var(--primary);
  border: 1px solid hsl(205 100% 58% / 0.2);
}
.founder-card {
  padding: 3rem; border-radius: var(--radius-lg); text-align: center;
}
.founder-mark {
  display: inline-flex; height: 96px; width: 96px; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--gradient-primary); color: var(--primary-fg);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.8rem;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-glow);
}
.founder-card h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; margin-bottom: 0.25rem;
}
.role { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1.5rem; }
.quote { color: var(--muted); font-style: italic; font-size: 1.05rem; line-height: 1.6; }

/* ===== WHY US ===== */
.why-grid {
  display: grid; gap: 1px; background: var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.why-item {
  background: var(--bg); padding: 2.5rem;
  transition: background 0.5s var(--ease);
}
.why-item:hover { background: var(--card); }
.why-item .icon-box { margin-bottom: 1.5rem; }
.why-item:hover .icon-box { background: var(--gradient-primary); color: var(--primary-fg); }
.why-item h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem;
  font-weight: 600; margin-bottom: 0.75rem;
}
.why-item p { font-size: 0.9rem; color: var(--muted); }

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  padding: 2rem; border-radius: var(--radius-lg);
}
.testimonial p { font-size: 1.05rem; line-height: 1.65; margin-bottom: 1.5rem; }
.testimonial footer { display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial footer strong { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; }
.testimonial footer span { font-size: 0.8rem; color: var(--muted); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; gap: 4rem; align-items: start;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-list li {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.contact-list strong {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); font-weight: 500;
}
.contact-list a, .contact-list span { font-size: 1.05rem; color: var(--fg); }
.contact-list a:hover { color: var(--primary); }

.contact-form {
  padding: 2.5rem; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-weight: 500;
}
.field input, .field textarea {
  background: hsl(230 20% 12%); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  color: var(--fg); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(205 100% 58% / 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status { font-size: 0.875rem; min-height: 1.2em; }
.form-status.success { color: hsl(140 70% 60%); }
.form-status.error { color: hsl(0 84% 65%); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem; background: hsl(230 25% 4%);
}
.footer-grid {
  display: grid; gap: 3rem; padding-bottom: 3rem;
  grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about { margin-top: 1rem; color: var(--muted); max-width: 24rem; font-size: 0.92rem; }
.footer h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem;
  margin-bottom: 1rem; font-weight: 600;
}
.footer ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a { color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  color: var(--muted); font-size: 0.8rem;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
