:root {
  color-scheme: dark;
  --bg-base: #060b15;
  --bg-overlay: rgba(7, 12, 22, 0.62);
  --panel-bg: rgba(9, 15, 30, 0.74);
  --panel-border: rgba(122, 162, 255, 0.28);
  --text-main: #eaf0ff;
  --text-muted: #aec0eb;
  --accent: #77a4ff;
  --accent-strong: #4b81f8;
  --shadow: 0 20px 48px rgba(2, 4, 10, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-base);
  overflow-x: hidden;
}

.background-video,
.video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.background-layer,
.overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 15%, rgba(71, 110, 198, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(70, 121, 219, 0.25), transparent 42%),
    linear-gradient(145deg, rgba(2, 8, 18, 0.86), var(--bg-overlay));
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(121, 153, 232, 0.25);
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(5, 10, 21, 0.82), rgba(5, 10, 21, 0.45));
}

.brand {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem);
}

.topnav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.topnav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.topnav a.active,
.topnav a:hover,
.topnav a:focus-visible {
  color: #fff;
  background: rgba(110, 153, 255, 0.2);
}

main {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 4rem) 0 3rem;
  display: grid;
  gap: 1.2rem;
}

.hero {
  text-align: center;
  max-width: 720px;
  justify-self: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero p,
p,
.muted {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.menu-grid,
.cards,
.cert-grid,
.grid {
  width: 100%;
  display: grid;
  gap: 0.9rem;
}

.menu-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cert-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.menu-card,
.card,
.cert,
.grid a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(156, 184, 255, 0.35);
  border-radius: 14px;
  background: rgba(15, 24, 44, 0.65);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.menu-card,
.cert { padding: 0.9rem; }

.card {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card:has(img) {
  flex-direction: row;
  gap: 0.6rem;
}

.card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.menu-card:hover,
.card:hover,
.cert:hover,
.grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(156, 184, 255, 0.75);
  background: rgba(15, 24, 44, 0.78);
}

.menu-card h2,
h1,
h2 { margin: 0.2rem 0 0.7rem; }

.menu-card p,
.card small {
  margin: 0;
  color: var(--text-muted);
}

.tag {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta,
.button,
.btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: var(--accent-strong);
  font-weight: 600;
}

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: center; }
.split img,
.intro img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(156, 184, 255, 0.35);
}

.intro { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1.3fr; align-items: center; }
.cert img { width: 100%; height: 120px; object-fit: contain; }
.grid a { overflow: hidden; }
.grid img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.2s; }
.grid a:hover img { transform: scale(1.03); }

iframe {
  display: block;              /* allows margin auto centering */
  margin: 1rem auto 0;       /* space above + center horizontally */
  width: max(100%, 1000px);
  height: 1200px;
  border: 2px dashed #ffffff80;
  background: #0b1327;
}

model-viewer {
  width: 100%;
  height: 560px;
  background: rgba(10, 18, 34, 0.7);
  border-radius: 12px;
}

blockquote {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(14, 23, 43, 0.58);
  border-radius: 10px;
}

a { color: #9fc1ff; }

@media (max-width: 900px) {
  .split,
  .intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }
}
