:root { --bg:#0b0c10; --text:#e1e1e1; --card:#1f2833; --primary:#66fcf1; }
[data-theme='light'] { --bg:#ffffff; --text:#0b0c10; --card:#f4f4f4; --primary:#0077cc; }

* { box-sizing: border-box; }
html,body { height:100%; }
body {
  margin:0; padding:0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Top bar */
.top-bar {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 20px; background: rgba(0,0,0,0.12); position:sticky; top:0; z-index:16;
  backdrop-filter: blur(6px);
}
.logo-text { font-weight:700; font-size:1.2rem; color:var(--primary); }
.menu-btn {
  position:relative; padding:8px 14px; border-radius:8px; border:none; cursor:pointer;
  background:var(--primary); color:#000; font-weight:700; transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.menu-btn:active { transform: translateY(1px); }
.menu-btn.open { transform: translateY(-1px) scale(.98); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }

/* overlay (page dim) */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden;
  transition: opacity 260ms cubic-bezier(.2,.9,.3,1);
  z-index: 18;
}
.menu-overlay.open { opacity:1; visibility:visible; }

/* menu panel */
.menu-panel {
  position: fixed; top: 64px; right: 18px;
  min-width: 220px; background:var(--card); border-radius:12px; padding:8px 0;
  box-shadow: 0 18px 45px rgba(6,10,16,0.6);
  transform-origin: top right; transform: translateY(-8px) scale(.98);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: transform 300ms cubic-bezier(.22,.9,.27,1), opacity 200ms ease, visibility 1ms linear 300ms;
  z-index:20;
}
.menu-panel.open {
  transform: translateY(0) scale(1);
  opacity:1; visibility:visible; pointer-events:auto; transition-delay:0ms;
}
.menu-panel a {
  display:block; padding:12px 18px; color:var(--text); text-decoration:none; font-size:.95rem;
  transition: background 150ms ease;
}
.menu-panel a:hover, .menu-panel a:focus { background: rgba(255,255,255,0.04); outline: none; }

/* container/hero */
.container { width:90%; max-width:1100px; margin:20px auto; padding-bottom:40px; text-align:center; }
.hero { padding:40px 20px; text-align:left; }
.hero h1 { font-size:3em; color:var(--primary); margin:0 0 10px; }
.lead { font-size:1.05rem; max-width:900px; line-height:1.6em; margin:0; }

/* categories */
.categories { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; margin-top:30px; }
.category-card {
  background:var(--card); width:180px; height:180px; border-radius:12px; overflow:hidden;
  text-decoration:none; color:var(--text); display:flex; flex-direction:column; align-items:center; justify-content:center;
  transition: transform .25s, box-shadow .25s;
}
.category-card img { width:100%; height:100px; object-fit:contain; }
.category-card span { margin-top:8px; font-weight:700; }
.category-card:hover { transform:translateY(-6px); box-shadow:0 10px 25px rgba(0,0,0,0.45); }

/* team */
.team { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; margin-top:40px; }
.team-card { background:var(--card); padding:20px; border-radius:12px; width:250px; box-shadow:0 6px 15px rgba(0,0,0,0.45); text-align:center; }
.team-card img { width:150px; height:150px; object-fit:cover; border-radius:50%; margin-bottom:12px; border:3px solid var(--primary); }

/* article cards */
.card {
  background:var(--card); color:var(--text); border-radius:12px; padding:20px; margin:18px auto; width:100%;
  box-shadow:0 10px 20px rgba(0,0,0,0.5); transition: transform .25s;
}
.card:hover { transform: translateY(-8px); }
.card img { width:100%; max-height:300px; object-fit:cover; border-radius:8px; margin-bottom:12px; }
.card h2 { margin:8px 0; }

/* misc */
.notice { padding:12px; text-align:center; background:rgba(255,255,255,0.03); border-radius:8px; }
.hidden { display:none; }
.footer-links { margin-top:40px; font-size:.95rem; text-align:center; }
.footer-links a { color:var(--primary); text-decoration:none; margin:0 8px; }
.footer-links a:hover { text-decoration:underline; }
.visitor { margin-top:12px; font-weight:600; color:var(--text); }

/* responsive */
@media (max-width:768px) {
  .hero { text-align:center; }
  .hero h1 { font-size:2rem; }
  .team-card, .category-card { width:90%; }
  .menu-panel { right: 10px; min-width: 180px; top:58px; }
}

