/* BISCMUN XIV — Conference website */
:root {
  --navy: #0c1228;
  --navy-mid: #152044;
  --surface: rgba(18, 28, 58, 0.92);
  --surface-solid: #1a2548;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.35);
  --text: #f2f6fc;
  --muted: #9aabc4;
  --accent: #ffffff;
  --accent-bright: #ffffff;
  --accent-deep: #d7e1ee;
  --accent-soft: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.22);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--text);
  background-color: #161b36;
  background-image: url("BISCMUN BACKGROUND.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(15, 23, 48, 0.85);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a:not(.platform-link)::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 2px;
  margin-top: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:not(.platform-link):hover::after,
.site-nav a:not(.platform-link).is-active::after {
  transform: scaleX(1);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav .platform-link {
  color: var(--navy) !important;
  background: var(--accent);
  font-weight: 700;
  margin-left: 0.35rem;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.22);
}

.site-nav .platform-link:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.32);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 180px;
  padding: 0.5rem;
  background: var(--navy-mid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: grid;
  gap: 0.15rem;
}

.dropdown-menu a {
  border-radius: 10px;
  width: 100%;
}

/* Hero */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Countdown */
.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.countdown__cell {
  min-width: 86px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.countdown__cell:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.countdown__cell strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

.countdown__cell span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-doc {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  color: var(--accent-bright);
}

.btn-doc:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.resources-callout {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.resources-callout .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading .eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-heading p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 40rem;
}

.prose p {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Grids / cards */
.grid {
  display: grid;
  gap: 1.1rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: rgba(16, 24, 52, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(22, 34, 68, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.partner-card {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.75rem;
}

.partner-card img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: saturate(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-card:hover img {
  filter: saturate(1);
  transform: scale(1.06);
}

.partner-card span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.committee-card {
  position: relative;
  overflow: hidden;
}

.committee-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.committee-card:hover::before,
.committee-card:focus-visible::before {
  transform: scaleY(1);
}

.committee-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  transition: color 0.2s ease;
}

.committee-card:hover h3 {
  color: var(--accent-bright);
}

.committee-card .full-name {
  margin-top: 0.25rem;
  font-weight: 700;
}

.committee-card .meta {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.committee-card .topics {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.person-card {
  text-align: center;
  padding: 1rem 1rem 1.25rem;
}

.person-card {
  overflow: hidden;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.person-card:hover img {
  transform: scale(1.04);
  border-color: var(--line-strong);
}

.person-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.person-card p {
  margin-top: 0.3rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-card strong {
  display: block;
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

.stat-card span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-band {
  background: linear-gradient(145deg, rgba(18, 32, 68, 0.96), rgba(28, 52, 96, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: clamp(2.15rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0.85rem auto 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-weight: 500;
}

.schedule-list {
  display: grid;
  gap: 0.65rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.schedule-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(4px);
}

.schedule-item time {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.schedule-item strong {
  font-weight: 700;
}

.schedule-item span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.day-block + .day-block {
  margin-top: 1.75rem;
}

.day-block h3 {
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

.contact-panel h3 {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.contact-panel a.email {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.contact-panel a.email:hover {
  color: var(--accent);
}

.contact-panel address {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

.map-frame {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 28, 0.9);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.socials {
  display: flex;
  gap: 0.65rem;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--accent-bright);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, opacity 0.2s ease;
}

.socials a svg {
  display: block;
  width: 22px;
  height: 22px;
}

.socials a:hover,
.socials a:focus-visible {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  color: var(--accent-bright);
  transform: translateY(-3px);
  opacity: 1;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  text-align: center;
  color: rgba(154, 171, 196, 0.72);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  .site-nav {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 480px;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    margin-top: 0.25rem;
  }

  .dropdown.is-open .dropdown-menu {
    display: grid;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  body {
    background-attachment: scroll;
  }
}
