/* =========================================================
   podvecer productions — stylesheet
   Palette: black / dark gray / muted red / white
   ========================================================= */

:root {
  --black:   #0a0a0a;
  --bg:      #0d0d0f;
  --bg-2:    #131316;
  --surface: #17171b;
  --line:    #26262b;
  --muted:   #8a8a92;
  --white:   #f4f4f5;
  --red:     #b5302a;
  --red-glow:#7a1d1a;

  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }
.text-red { color: var(--red) !important; }
.muted    { color: var(--muted); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Navbar */
#mainNav {
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  padding: 1.2rem 0;
}
#mainNav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--white) !important;
  text-transform: lowercase;
}
#mainNav .nav-link {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.2rem !important;
  margin: 0 0.6rem;
  position: relative;
  transition: color 0.25s ease;
}
#mainNav .nav-link::after {
  content: ""; position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--white); }
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { width: 100%; }

.navbar-toggler { color: var(--white); }
.navbar-toggler:focus { box-shadow: none; }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  overflow: hidden; background: var(--black);
}
.hero-bg {
  position: absolute; inset: -10% 0;
  background: url("assets/hero.jpg") center/cover no-repeat;
  transform: scale(1.1); will-change: transform;
  filter: brightness(0.5) contrast(1.05) saturate(0.85);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 60%, rgba(181,48,42,0.10), transparent 55%),
    linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.85) 60%, var(--black) 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
}
.hero-content { max-width: 920px; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  text-transform: lowercase;
}
.hero-title span, .text-red { color: var(--red); }
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #c8c8cc; letter-spacing: 0.04em;
  max-width: 560px; margin-bottom: 2.5rem;
}
.hero-cta { display: flex; flex-wrap: wrap; }

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; border-radius: 0;
  padding: 0.95rem 1.8rem; transition: all 0.3s ease;
}
.btn-ghost-red { background: var(--red); border: 1px solid var(--red); color: #fff; }
.btn-ghost-red:hover {
  background: transparent; color: var(--red);
  border-color: var(--red); box-shadow: 0 0 24px -6px var(--red-glow);
}
.btn-outline-light { border: 1px solid #3a3a40; color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.06); border-color: var(--white); color: #fff; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; left: 50%; bottom: 30px;
  transform: translateX(-50%); width: 24px; height: 40px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 14px;
  display: flex; justify-content: center; z-index: 5;
}
.scroll-indicator span {
  display: block; width: 3px; height: 8px; margin-top: 8px;
  background: var(--red); border-radius: 2px;
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Section Shell */
.section { position: relative; padding: 8rem 0; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.5rem;
}
.section-lead { color: #b6b6bb; max-width: 640px; font-size: 1.05rem; }

/* Mystery Section */
.section-mystery { background: var(--bg); }
.section-mystery::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.4;
}
.mystery-card { cursor: pointer; position: relative; height: 100%; outline: none; }
.mystery-card-inner {
  position: relative; height: 100%; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), border-color 0.4s ease, box-shadow 0.5s ease;
}
.mystery-card:hover .mystery-card-inner {
  transform: translateY(-6px); border-color: var(--red);
  box-shadow: 0 18px 40px -20px var(--red-glow);
}
.mystery-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.mystery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.4) brightness(0.55) contrast(1.05);
  transition: transform 0.7s ease, filter 0.5s ease;
}
.mystery-card:hover .mystery-thumb img {
  transform: scale(1.08); filter: grayscale(0.2) brightness(0.65) contrast(1.1);
}
.mystery-blur {
  position: absolute; inset: 0;
  backdrop-filter: blur(10px) saturate(0.6);
  -webkit-backdrop-filter: blur(10px) saturate(0.6);
  background: rgba(10,10,10,0.45);
}
.mystery-blur.light {
  backdrop-filter: blur(3px) saturate(0.8);
  -webkit-backdrop-filter: blur(3px) saturate(0.8);
  background: rgba(10,10,10,0.2);
}
.mystery-lock {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  color: var(--white); font-size: 1.2rem;
  background: rgba(0,0,0,0.35);
  box-shadow: 0 0 30px -8px var(--red-glow);
  transition: all 0.4s ease;
}
.mystery-card:hover .mystery-lock {
  border-color: var(--red); color: var(--red);
  box-shadow: 0 0 38px -6px var(--red);
}
.mystery-lock.open { color: var(--white); border-color: rgba(255,255,255,0.4); }
.mystery-body { padding: 1.4rem 1.4rem 1.6rem; position: relative; }
.card-index {
  font-family: var(--font-display); font-size: 0.7rem;
  letter-spacing: 0.3em; color: var(--red);
  display: block; margin-bottom: 0.5rem;
}
.card-title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin-bottom: 0.4rem; }
.card-hint { font-size: 0.88rem; color: var(--muted); margin: 0; }
.mystery-card.unlocked .mystery-blur { opacity: 0.6; }

/* Modals */
.mystery-modal .modal-content {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 0; color: var(--white);
}
.mystery-modal .modal-header { border-bottom: 1px solid var(--line); padding: 1.3rem 1.5rem; }
.mystery-modal .modal-title {
  font-family: var(--font-display); font-size: 0.95rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--white);
}
.mystery-modal .btn-close { filter: invert(1) grayscale(1); opacity: 0.5; }
.mystery-modal .modal-body { padding: 1.8rem 1.5rem; }
.modal-lead { font-family: var(--font-display); font-size: 1.1rem; color: #d6d6da; margin-bottom: 1.2rem; }

.mystery-input {
  background: var(--black); border: 1px solid var(--line);
  color: var(--white); border-radius: 0; padding: 0.9rem 1rem;
  font-family: var(--font-display); letter-spacing: 0.3em;
  text-align: center; font-size: 1.3rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.mystery-input:focus {
  background: var(--black); border-color: var(--red);
  box-shadow: 0 0 0 0.2rem rgba(181,48,42,0.18); color: var(--white);
}
.mystery-input::placeholder { color: #555; letter-spacing: 0.5em; }
.mystery-error {
  display: none; color: var(--red); font-size: 0.85rem;
  margin: 0.8rem 0 0; letter-spacing: 0.04em;
}
.mystery-error.show { display: block; animation: shake 0.4s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Game Tiles */
.game-tile {
  width: 80px; height: 100px;
  background: var(--black); border: 1px solid var(--line);
  cursor: pointer; transition: all 0.3s ease; position: relative;
}
.game-tile:hover { border-color: var(--red); box-shadow: 0 0 15px -5px var(--red-glow); }
.game-tile.correct {
  background: var(--red); border-color: var(--red);
  box-shadow: 0 0 20px -2px var(--red);
}
.game-tile.wrong { background: #2a2a2e; border-color: #3a3a40; opacity: 0.3; }

/* Reveal Content */
.reveal-hero {
  position: relative; aspect-ratio: 16/9;
  margin-bottom: 1.5rem; overflow: hidden; background: #000;
}
.reveal-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) contrast(1.1); }
.reveal-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; line-height: 1.6; color: #e0e0e4;
  border-left: 2px solid var(--red); padding-left: 1rem; margin: 1rem 0 1.5rem;
}
.reveal-date-display {
  font-family: var(--font-display); font-size: 4rem; font-weight: 600;
  letter-spacing: 0.05em; display: flex; align-items: center;
  justify-content: center; gap: 10px; color: var(--white);
  padding: 2rem 0;
}
.reveal-date-display .sep { color: var(--red); }

/* Showcase */
.section-showcase { background: var(--bg-2); }
.gallery-item {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4/3; background: #000; border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.3) brightness(0.75);
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); filter: grayscale(0) brightness(0.85); }
.gallery-cat {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-display); font-size: 0.65rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  background: rgba(10,10,10,0.7); border: 1px solid var(--line);
  padding: 4px 10px; color: #d6d6da; z-index: 3;
}
.gallery-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.6rem;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.85) 100%);
  opacity: 0; transition: opacity 0.5s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 {
  font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.4rem;
  transform: translateY(12px); transition: transform 0.5s ease;
}
.gallery-overlay p {
  color: #c8c8cc; font-size: 0.9rem; margin: 0;
  transform: translateY(12px); transition: transform 0.5s ease 0.05s;
}
.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p { transform: translateY(0); }
.gallery-modal-img { width: 100%; filter: brightness(0.9); }

/* About */
.section-about { background: var(--bg); }
.about-img-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--line); }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) brightness(0.65) contrast(1.1); }
.about-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.7) 100%); }
.about-lead { font-family: var(--font-display); font-size: 1.3rem; color: #e6e6ea; margin-bottom: 1.2rem; }
.about-text { color: #b0b0b6; margin-bottom: 2rem; }
.about-meta {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.about-meta li { font-size: 0.9rem; color: #c8c8cc; }
.about-meta span {
  display: block; font-family: var(--font-display); font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}

/* Footer */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-brand { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: lowercase; color: var(--white); }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--red); }
.footer-copy { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; }

/* Responsive */
@media (max-width: 991px) {
  .navbar-collapse { background: rgba(10,10,10,0.95); margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); }
  #mainNav .nav-link { margin: 0.3rem 0; }
  .section { padding: 5rem 0; }
}
@media (max-width: 575px) {
  .hero-cta .btn { width: 100%; }
  .reveal-date-display { font-size: 2.8rem; }
  .gallery-overlay { padding: 1.1rem; }
  .gallery-overlay h3 { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}