:root {
  color-scheme: light;
  --bg: rgb(255, 255, 153);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --border: rgba(102, 99, 177, 0.18);
  --text: #2e2646;
  --muted: #605973;
  --brand: #1f3388;
  --brand-dark: #13205a;
  --brand-soft: #d7ddff;
  --highlight: #f7cb30;
  --highlight-soft: var(--bg);
  --accent: #5b49a3;
  --accent-soft: #d9d2ff;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(50, 38, 112, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  background-image: url("/images/hyacint.gif");
  background-repeat: repeat;
  background-position: center top;
}

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

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

a:hover,
button:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(153, 204, 255);
  height: 5rem;
  border-bottom: 1px solid rgba(102, 99, 177, 0.12);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.branding img {
  width: 152px;
  max-width: 100%;
}

.branding h1 {
  margin: 0;
  font-size: 1.4rem;
}

.branding p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

nav ul {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 120px;
  max-width: 150px;
  height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(31, 51, 136, 0.08);
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(31, 51, 136, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

nav a.active,
nav a:hover {
  background: var(--highlight-soft);
  border-color: rgba(247, 203, 48, 0.35);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: rgba(31, 51, 136, 0.1);
  color: var(--brand-dark);
  border: 1px solid rgba(31, 51, 136, 0.25);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(31, 51, 136, 0.16);
  transform: translateY(-1px);
}

main {
  padding: 2rem 0 4rem;
}

section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.hero-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 1.25rem;
}

.hero-cards {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.card h3 {
  margin-top: 0;
}

.overview-list,
.project-list,
.sponsor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.overview-list li,
.project-item,
.sponsor-item {
  padding: 0;
  border-radius: 1rem;
  background: transparent;
  border: none;
}

.project-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: var(--surface-strong);
  border: 1px solid rgba(33, 42, 52, 0.08);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-item a:hover,
.project-item a:focus-visible {
  background: #ffffff;
  border-color: rgba(37, 92, 154, 0.25);
  transform: translateY(-1px);
}

.project-item a::after {
  content: '→';
  color: var(--brand);
  font-size: 1.1rem;
}

.project-item span {
  color: var(--muted);
}

footer {
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  color: var(--brand);
}

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

@media (max-width: 1024px) {
  header {
    height: auto;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .branding {
    flex: 1;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    width: 100%;
    flex-basis: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }

  nav.open ul {
    display: flex;
  }
}

.grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.grid-3 img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.grid-3 a:hover img {
  opacity: 0.85;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  cursor: default;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
  width: auto;
  height: auto;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
