:root {
  --bg: #0a0a0a;
  --panel: #101010;
  --text: #f2fff6;
  --muted: #a8eec6;
  --accent: #00cc66;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.8;
}

a { color: var(--accent); text-decoration: none; }

/* Header layout: center brand and nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #000 0%, #0c0c0c 100%);
  border-bottom: 1px solid rgba(0,255,120,.25);
  display: flex;
  flex-direction: column;
  align-items: center; /* centers children horizontally */
}

.brand {
  width: 100%;
  display: flex;
  justify-content: center; /* center logo + name */
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,120,.4);
  background: rgba(0,255,120,.06);
}

.brand .name { font-weight: 800; letter-spacing: .4px; }

/* Nav: center items and keep nice spacing; allow scroll on small screens */
nav { width: 100%; }
nav ul {
  display: flex;                 /* use flex so we can re-order and center */
  justify-content: center;       /* center the menu row */
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0 18px 16px;
  overflow-x: auto;
}
nav li { display: contents; } /* lets each <a> be the flex item for better wrapping */

/* Visual buttons */
nav a {
  display: block;
  padding: 10px 14px;
  border: 1px solid rgba(0,255,120,.2);
  border-radius: 10px;
  background: #0f0f0f;
  white-space: nowrap;
}
nav a:hover { background: rgba(0,255,120,.08); }

/* Menu order, without changing HTML:
   Desired order: Home, Reviews, Directors, History, Technology, About, Contact
   Current HTML order: 1 Home, 2 About, 3 Reviews, 4 Directors, 5 History, 6 Technology, 7 Contact
*/
nav li:nth-child(1) a { order: 1; } /* Home */
nav li:nth-child(3) a { order: 2; } /* Reviews */
nav li:nth-child(4) a { order: 3; } /* Directors */
nav li:nth-child(5) a { order: 4; } /* History */
nav li:nth-child(6) a { order: 5; } /* Technology */
nav li:nth-child(2) a { order: 6; } /* About */
nav li:nth-child(7) a { order: 7; } /* Contact */

main { max-width: 1100px; margin: 0 auto; padding: 28px 18px 96px; }

.hero {
  background:
    radial-gradient(60% 60% at 10% 10%, rgba(0,255,120,.14), transparent),
    radial-gradient(70% 70% at 90% 10%, rgba(0,255,120,.08), transparent);
  padding: 26px;
  border: 1px solid rgba(0,255,120,.18);
  border-radius: 16px;
}

.hero h1 { margin: 0 0 6px; }
.dek { color: var(--muted); margin: 6px 0 12px; }

.media {
  background: #0e0e0e;
  border: 1px solid rgba(0,255,120,.15);
  border-radius: 14px;
  padding: 10px;
  margin: 18px 0;
}
.media img { width: 100%; height: auto; display: block; border-radius: 10px; }
.media figcaption { color: var(--muted); font-size: .95rem; padding: 8px 6px 2px; }

.hero-media { margin-top: 8px; }
.hero-media img { max-height: 55vh; object-fit: cover; }

.section {
  background: var(--panel);
  border: 1px solid rgba(0,255,120,.12);
  border-radius: 16px;
  padding: 24px;
  margin-top: 22px;
}
.section h2 { color: var(--accent); margin: 0 0 8px; }
.section h3 { color: var(--muted); margin: 10px 0; }

footer {
  border-top: 1px solid rgba(0,255,120,.25);
  background: #0b0b0b;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: #d6ffe7;
  margin: 0;
}

/* Site-wide paragraph justification */
p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* Media protection: reduce drag, long-press save, and selection on media */
img, picture, video, svg, canvas {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* --- Final Footer Refinement (FilmVault Harmonization) --- */

/* Reset and centering */
footer,
footer * {
  text-align: center !important;
}

/* Footer base — cinematic neon depth */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 26px;
  padding-bottom: 26px;
  background: linear-gradient(180deg, rgba(0,255,120,0.05), rgba(0,0,0,0.6));
  border-top: 1px solid rgba(0,255,120,0.25);
  color: var(--muted);
  box-shadow: 0 -4px 22px rgba(0,255,120,0.15) inset;
}

/* Metrolagu Network (FilmVault palette) */
.metrolagu-network {
  background: none;
  color: var(--text);
  padding: 20px 0;
}

.network-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Network headline */
.metrolagu-network h3 {
  font-size: 1.15em;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 6px rgba(0,255,120,0.35);
}

/* Description text */
.metrolagu-network p {
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.7;
  text-align: center;
}

/* Links */
.network-links {
  text-align: center;
}

.network-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,255,120,0.25);
  transition: color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.network-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  opacity: 0.85;
}

/* Copyright capsule refinement */
footer .copyright {
  display: inline-block;
  margin: 18px auto 6px auto;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: var(--text);
  background: rgba(0,255,120,0.06);
  padding: 8px 22px;
  border: 1.5px solid rgba(0,255,120,0.25);
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(0,255,120,0.25);
  transition: all 0.3s ease;
}

/* Hover animation — soft neon pulse */
footer .copyright:hover {
  background: rgba(0,255,120,0.15);
  color: #fff;
  border-color: rgba(0,255,120,0.45);
  box-shadow: 0 3px 16px rgba(0,255,120,0.45);
  transform: translateY(-1px);
}

/* Link tone inside copyright */
footer .copyright a {
  color: inherit !important;
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}
