/* NEXCODIA — Stranger Things–themed styles */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #c7c7c7;
  --red: #ff0000;
  --neon: #ff1a1a;
  --accent: #b30000;
  --card: #0b0b0b;
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 0 24px rgba(255, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.brand,
.title,
.section-title {
  font-family: 'Cinzel', 'Creepster', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.08em;
}

.title {
  font-size: clamp(2.4rem, 6vw, 6rem);
  color: var(--red);
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin-top: 0.25rem;
}

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-top: 0.75rem;
  color: #fff;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
}

.brand {
  color: var(--red);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.25rem 0.5rem;
  display: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.nav-menu a:hover {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    right: 1rem;
    top: 56px;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 120%, rgba(255, 0, 0, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.95)),
    url('stranger_entrance.webp') center/cover no-repeat;
  filter: contrast(1.05) saturate(1.05) brightness(0.9);
}

.mist-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
  z-index: 1;
}

.hero .logo {
  width: clamp(200px, 40vw, 520px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 0, 0, 0.45));
  display: inline-block;
}

.hero .cta-row {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 0.75rem;
  max-width: 520px;
  margin-inline: auto;
}

.time {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.time span {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--red);
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.time small {
  color: var(--muted);
}

/* Upside Down mirrored content */
/* Removed mirrored reflection block in hero */

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 200px at 50% 0%, rgba(255, 0, 0, 0.08), transparent 60%);
  pointer-events: none;
}

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

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--red);
  margin: 0 0 1.25rem;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  text-align: center;
}

.section-about .mission-container {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.section-about .mission-cards {
  display: grid;
  text-align: justify;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.section-about .lead {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.8;
}

.mission-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mission-card h3 {
  margin-top: 0;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

.mission-card p {
  color: var(--muted);
}

.mission-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.28);
}

.section-events .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.section-events.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.0);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card h3 {
  margin-top: 0;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

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

.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.28);
}

.section-cta {
  text-align: center;
  background: radial-gradient(600px 260px at 50% 50%, rgba(255, 0, 0, 0.08), transparent 60%);
}

.cta-inner p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin: 0.5rem 0;
}

.section-contact .contact-grid>div {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 0;
}

.section-contact h3 {
  margin-top: 0;
  text-align: center;
}

.section-contact .faculty-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  margin: 0.5rem 0;
}

.contact-list,
.social {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-contact .contact-list {
  margin-top: 0.5rem;
}

.section-contact .contact-list li {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 12px;
}

.section-contact .contact-name {
  color: #fff;
  font-weight: 700;
}

.section-contact .contact-phone {
  color: var(--muted);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.section-contact .contact-phone:hover {
  color: var(--red);
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.social a {
  color: #fff;
  text-decoration: none;
}

.social a:hover {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

details {
  overflow: hidden;
}

details summary {
  cursor: pointer;
  font-weight: bold;
  list-style: none;
}

details .notes {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

@media (max-width: 780px) {
  .section-contact .contact-grid {
    margin: 0.75rem 0;
  }

  .section-contact .contact-grid>div {
    padding: 0.4rem;
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .section-contact .contact-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .section-contact .contact-phone {
    opacity: 0.95;
  }
}

/* Buttons */
.btn {
  cursor: pointer;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-neon {
  color: #000;
  border: solid rgba(255, 0, 0, 0) 2px;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.5), inset 0 -4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}

.btn-neon:hover {
  filter: brightness(1.08);
  color: #ff1a1a;
  border: solid red 2px;
  background: transparent;
  box-shadow: 0 0 26px rgba(255, 0, 0, 0.7);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.4);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Register */
.section-register .reg-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 1rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select {
  background: #0e0e0e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.form-grid input:focus,
.form-grid select:focus {
  outline: 2px solid var(--red);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
}

.hint {
  color: var(--muted);
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-status {
  margin-top: 0.75rem;
  min-height: 1.25rem;
  color: var(--muted);
}

.form-status.success {
  color: #5cff72;
}

.form-status.error {
  color: #ff6969;
}

/* Registration notes */
.reg-notes {
  margin: 0.75rem 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.reg-notes summary {
  cursor: pointer;
  color: #fff;
  font-weight: 700;
}

.reg-notes .notes {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.reg-notes h4 {
  color: #fff;
  margin: 0.5rem 0;
}

.reg-notes ol {
  margin: 0.25rem 0 0.75rem 1.1rem;
}

/* QR pay layout */
.qr-pay {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.qr-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.25));
  border-radius: 8px;
  background: white;
  max-width: 220px;
}

.qr-caption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.qr-subcaption {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0.9;
}

.qr-text {
  margin-left: 0.25rem;
}

@media (max-width: 680px) {
  .qr-pay {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .qr-text {
    margin-left: 0;
  }

  .qr-img {
    width: 180px;
    height: 180px;
  }
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.85);
}

.footer-logo {
  max-width: 600px;
  height: auto;
  filter: brightness(0.9) contrast(1.1);
  transition: filter 0.3s ease;
}

.footer-logo:hover {
  filter: brightness(1) contrast(1.2);
}

@media (max-width: 680px) {
  .footer-logo {
    max-width: 320px;
  }
}

/* Effects: glitch and flicker */
.glitch {
  position: relative;
  color: #ff0000;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: #ff0000;
  transform: translate(2px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  opacity: .6;
  animation: glitchTop 3s infinite linear alternate-reverse;
}

.glitch::after {
  color: #ff0000;
  transform: translate(-2px, 0);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  opacity: .6;
  animation: glitchBottom 2.7s infinite linear alternate;
}

@keyframes glitchTop {
  0% {
    transform: translate(0, 0)
  }

  20% {
    transform: translate(3px, -1px)
  }

  40% {
    transform: translate(-2px, 1px)
  }

  60% {
    transform: translate(2px, 0)
  }

  80% {
    transform: translate(-1px, 0)
  }

  100% {
    transform: translate(0, 0)
  }
}

@keyframes glitchBottom {
  0% {
    transform: translate(0, 0)
  }

  20% {
    transform: translate(-3px, 1px)
  }

  40% {
    transform: translate(2px, -1px)
  }

  60% {
    transform: translate(-2px, 0)
  }

  80% {
    transform: translate(1px, 0)
  }

  100% {
    transform: translate(0, 0)
  }
}

.flicker {
  animation: flicker 4s infinite;
}

@keyframes flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5), 0 0 18px rgba(255, 0, 0, 0.25);
  }

  20%,
  24%,
  55% {
    opacity: 0.6;
    text-shadow: none;
  }
}

/* Accessibility helpers */
:focus-visible {
  outline: 2px dashed var(--red);
  outline-offset: 3px;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.6rem 1rem;
  }

  .container {
    padding: 0 0.25rem;
  }
}

@media (max-width: 780px) {
  .section {
    padding: 2.5rem 0.75rem;
  }

  .hero-content {
    padding: 1.75rem 0.75rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .section-events .cards {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 560px) {
  .title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .upside-down {
    opacity: 0.15;
    transform: scaleY(-1) translateY(72%);
  }

  .time span {
    font-size: 1.4rem;
  }

  .section {
    padding: 2rem 0.75rem;
  }

  .section-events .cards {
    grid-template-columns: 1fr;
  }

  .section-register .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  #event-select {
    min-height: 180px;
  }
}





/* Motion & performance preferences */
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after, .flicker { animation: none !important; }
  .mist-canvas { display: none !important; }
}