  /* Core variables */
:root {
  --st-red: #e50914;
  --glass: rgba(0, 0, 0, 0.45);
  --glass-strong: rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: #e8e8e8;
  background: #000;
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
}

/* Background layers */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -10;
}

.overlay-dark {
  position: fixed;
  inset: 0;
  z-index: -7;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(229, 9, 20, 0.08), transparent),
    radial-gradient(900px 400px at 80% 100%, rgba(229, 9, 20, 0.05), transparent);
}

.overlay-vignette {
  position: fixed;
  inset: 0;
  z-index: -6;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.55) 85%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.overlay-scanlines {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 0, 0, 0.08) 0 1px,
    transparent 2px 4px
  );
  opacity: 0.22;
  animation: scanPulse 6s linear infinite;
}

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.16;
  }
  50% {
    opacity: 0.32;
  }
}

.overlay-grain {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image: url('assets/noise.png');
  opacity: 0.08;
  animation: grainShift 1.2s steps(2) infinite;
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2%, 1%);
  }
  50% {
    transform: translate(1%, -1%);
  }
  75% {
    transform: translate(-1%, 2%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Red mist */
@keyframes mistMove {
  0% { transform: translate(0, 0) scale(1); opacity: 0.28; }
  50% { transform: translate(-8%, 4%) scale(1.05); opacity: 0.38; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.28; }
}

.mist-overlay {
  position: fixed;
  inset: -10vh -10vw;
  z-index: -3;
  mix-blend-mode: screen;
  filter: blur(2px) saturate(1.1);
  background:
    radial-gradient(60vw 40vh at 60% 40%, rgba(229, 9, 20, 0.14), transparent 70%),
    radial-gradient(50vw 30vh at 20% 70%, rgba(229, 9, 20, 0.10), transparent 70%),
    radial-gradient(70vw 50vh at 80% 20%, rgba(229, 9, 20, 0.08), transparent 75%);
  animation: mistMove 18s ease-in-out infinite;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* Intro (always, no poster) */
.intro {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.intro-inner {
  text-align: center;
}

.st-title {
  font-family: 'Cinzel', serif;
  color: var(--st-red);
  letter-spacing: 0.15rem;
  text-shadow: 0 0 8px rgba(229, 9, 20, 0.6), 0 0 18px rgba(229, 9, 20, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.st-title .st-top {
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
}

.st-title .st-mid {
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-top: -0.3rem;
}

.st-title .st-bot {
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  margin-top: -0.25rem;
}

.st-title span {
  opacity: 0;
  animation: typeOn 0.6s ease forwards, flicker 3.5s linear 0.6s 1;
}

.st-title .st-mid { animation-delay: 0.6s, 1.2s; }
.st-title .st-bot { animation-delay: 1.2s, 1.8s; }

@keyframes typeOn {
  from { opacity: 0; letter-spacing: 0.6rem; filter: blur(10px); }
  to   { opacity: 1; letter-spacing: 0.15rem; filter: blur(0); }
}

@keyframes flicker {
  0%   { text-shadow: 0 0 6px rgba(229, 9, 20, 0.5), 0 0 14px rgba(229, 9, 20, 0.35); }
  10%  { text-shadow: 0 0 2px rgba(229, 9, 20, 0.2); }
  12%  { text-shadow: 0 0 12px rgba(229, 9, 20, 0.65); }
  28%  { text-shadow: 0 0 18px rgba(229, 9, 20, 0.8); }
  55%  { text-shadow: 0 0 14px rgba(229, 9, 20, 0.7); }
  100% { text-shadow: 0 0 14px rgba(229, 9, 20, 0.7); }
}

.intro.hide {
  animation: introFade 1.2s ease forwards;
}

@keyframes introFade {
  to { opacity: 0; visibility: hidden; }
}

/* Navbar */
.st-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
  padding: 10px 16px;
  border-bottom: 1px solid rgba(229, 9, 20, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-left,
.brand-right {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.25));
}

.college-wrap {
  display: flex;
  flex-direction: column;
}

.college-title {
  font-family: 'IM Fell English SC', serif;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.06rem;
  text-shadow: 0 0 8px rgba(229, 9, 20, 0.35);
}

.college-address {
  font-size: 0.9rem;
  color: #c5c5c5;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  color: #eee;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 0.2s;
  letter-spacing: 0.04rem;
}

.nav-links a:hover {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.35);
}

.nav-links a.active {
  color: #fff;
  border-color: rgba(229, 9, 20, 0.8);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.5);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

/* Layout */
.container {
  max-width: 1100px;
}

.hero {
  padding: 70px 16px 30px;
  text-align: center;
}

.st-head {
  font-family: 'Cinzel', serif;
  color: var(--st-red);
  letter-spacing: 0.22rem;
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  text-shadow: 0 0 8px rgba(229, 9, 20, 0.7), 0 0 26px rgba(229, 9, 20, 0.35);
  animation: subtlePulse 5s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%,
  100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.st-sub {
  color: #ddd;
  font-family: 'IM Fell English SC', serif;
  letter-spacing: 0.1rem;
}

.lead-line {
  color: #e0e0e0;
  margin: 16px auto 26px;
  max-width: 700px;
}

/* Panels and cards */
.st-panel {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(229, 9, 20, 0.35);
  box-shadow: 0 0 28px rgba(229, 9, 20, 0.18);
  padding: 24px;
}

.st-section-title {
  font-family: 'Cinzel', serif;
  color: var(--st-red);
  letter-spacing: 0.18rem;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.6), 0 0 30px rgba(229, 9, 20, 0.35);
}

.st-card {
  background: var(--glass);
  border: 1px solid rgba(229, 9, 20, 0.45);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(229, 9, 20, 0.12), 0 8px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-card h3 {
  font-family: 'IM Fell English SC', serif;
  color: #ffe3e3;
  letter-spacing: 0.06rem;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.st-card-eq {
  height: 100%;
}

.st-card:hover {
  transform: translateY(-6px);
  transition: 0.25s;
  box-shadow: 0 0 22px rgba(229, 9, 20, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.st-cta {
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.08), rgba(229, 9, 20, 0.25));
  border: 1px solid rgba(229, 9, 20, 0.6);
  color: #fff;
  border-radius: 30px;
  padding: 10px 26px;
  transition: 0.2s;
}

.st-cta:hover {
  background: rgba(229, 9, 20, 0.4);
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.5);
  color: #fff;
}

.st-cta-wide {
  padding: 14px 34px;
  font-weight: 700;
}

/* Lists in cards (optional) */
.st-card .st-list {
  margin: 8px 0 0;
  padding-left: 18px;
  text-align: left;
  color: #f0f0f0;
}

.st-card .st-list li {
  margin: 6px 0;
  line-height: 1.35;
}

/* Page header and footer */
.page-header {
  padding: 64px 16px 0;
  text-align: center;
}

.footer {
  margin: 40px 0 24px;
  text-align: center;
  color: #cfcfcf;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .st-navbar { padding-right: 8px; }
}

@media (max-width: 576px) {
  .brand-left,
  .brand-right { height: 48px; }
  .college-title { font-size: 1rem; }
  .college-address { font-size: 0.85rem; }
}

  /* Stranger Things modal fixes */
.st-modal.modal-content {
  background: rgba(0, 0, 0, 0.92);
  color: #f1f1f1;
  border: 1px solid rgba(229, 9, 20, 0.55);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.35), 0 10px 40px rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.st-modal .modal-header {
  border-bottom: 1px solid rgba(229, 9, 20, 0.35);
}

.st-modal .modal-title {
  font-family: 'Cinzel', serif;
  color: #ffdede;
  letter-spacing: 0.06rem;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.45);
}

.st-modal .modal-body {
  font-family: 'Space Mono', monospace;
  line-height: 1.55;
  color: #e9e9e9;
}

.st-modal .modal-body ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.btn-close.btn-close-white {
  filter: invert(1) drop-shadow(0 0 6px rgba(229, 9, 20, 0.5));
}

/* Make modal wider on large screens */
@media (min-width: 992px) {
  .modal-dialog {
    max-width: 720px; /* wider than default ~500px */
  }
}

/* Improve modal backdrop visibility with dark theme */
.modal-backdrop.show {
  opacity: 0.75; /* darker backdrop so modal stands out */
}

  /* Red emojis inside modal content (Stranger Things theme) */
.st-modal .emoji-red {
  color: #e50914;
  filter: drop-shadow(0 0 6px rgba(229,9,20,0.45));
}
.st-modal .modal-body ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.st-modal .muted {
  color: #f0f0f0;
  opacity: 0.95;
}

.st-modal .emoji-red {
  color: #e50914;
  filter: drop-shadow(0 0 6px rgba(229,9,20,0.45));
}
.st-modal .modal-body ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

  /* HD Stranger Things backdrop */
.bg-layers { position: fixed; inset: 0; z-index: -10; }

.overlay-dark {
  position: fixed; inset: 0; z-index: -7;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(229,9,20,0.08), transparent),
    radial-gradient(900px 400px at 80% 100%, rgba(229,9,20,0.05), transparent);
}

.overlay-vignette {
  position: fixed; inset: 0; z-index: -6; pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,0.55) 85%,
    rgba(0,0,0,0.9) 100%);
}

/* CRT scanlines */
.overlay-scanlines {
  position: fixed; inset: 0; z-index: -5; pointer-events: none; mix-blend-mode: overlay;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,0,0,0.08) 0 1px,
    transparent 2px 4px
  );
  opacity: .22;
  animation: scanPulse 6s linear infinite;
}
@keyframes scanPulse { 0%,100%{opacity:.16} 50%{opacity:.32} }

/* Grain (auto-fallback in JS if noise.png missing) */
.overlay-grain {
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background-image: url('assets/noise.png');
  opacity: .08;
  animation: grainShift 1.2s steps(2) infinite;
}
@keyframes grainShift {
  0%{transform:translate(0,0)}
  25%{transform:translate(-2%,1%)}
  50%{transform:translate(1%,-1%)}
  75%{transform:translate(-1%,2%)}
  100%{transform:translate(0,0)}
}

/* Red mist / fog */
@keyframes mistMove {
  0% { transform: translate(0,0) scale(1); opacity: .28; }
  50% { transform: translate(-8%,4%) scale(1.05); opacity: .38; }
  100% { transform: translate(0,0) scale(1); opacity: .28; }
}
.mist-overlay {
  position: fixed; inset: -10vh -10vw; z-index: -3; pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(2px) saturate(1.1);
  background:
    radial-gradient(60vw 40vh at 60% 40%, rgba(229, 9, 20, .14), transparent 70%),
    radial-gradient(50vw 30vh at 20% 70%, rgba(229, 9, 20, .10), transparent 70%),
    radial-gradient(70vw 50vh at 80% 20%, rgba(229, 9, 20, .08), transparent 75%);
  animation: mistMove 18s ease-in-out infinite;
}

/* Particles canvas sits on top of overlays */
#particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

  /* Mobile drawer (slides from right) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -280px;           /* hidden off-canvas */
  width: 260px;
  height: 100vh;
  background: rgba(0,0,0,0.92);
  border-left: 1px solid rgba(229,9,20,0.45);
  box-shadow: -10px 0 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  padding: 80px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10000;
  transition: right .25s ease;
}
.mobile-drawer a {
  color: #eee;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(229,9,20,0.25);
}
.mobile-drawer a:hover {
  border-color: rgba(229,9,20,0.6);
  box-shadow: 0 0 10px rgba(229,9,20,0.35);
}
.mobile-drawer.open { right: 0; }

/* Only show drawer/hamburger on small screens; keep desktop nav */
@media (max-width: 992px) {
  .nav-links { display: none; }      /* hide desktop links */
  .hamburger { display: block; }     /* show hamburger */
}
