
:root {
  --bg: #0b0f14;
  --card: #11161d;
  --muted: #92a1b2;
  --text: #e6edf3;
  --accent: #4cc3ff;
  --accent-2: #9bff9f;
  --border: #1b2230;
  --shadow: 0 10px 30px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 600px at 50% -20%, #0f1622 0%, #0b0f14 60%);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

a { color: var(--text); text-decoration: none; }
img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(11,15,20,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14; border-radius: 6px; font-weight: 900;
}
.brand-text { font-size: 16px; letter-spacing: 0.6px; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--text); padding: 6px 10px; border-radius: 8px; }
.nav-list { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav-list a { padding: 8px 10px; border-radius: 8px; }
.nav-list a.active, .nav-list a:hover { background: #0f1520; border: 1px solid var(--border); }

/* Hero */
.hero { padding: 80px 20px 30px; text-align: center; }
.hero-title { font-size: clamp(28px, 5vw, 52px); margin: 0 0 10px; letter-spacing: 1px; }
.hero-sub { color: var(--muted); margin: 0 auto; max-width: 780px; }

/* Sections */
.section-title { font-size: 24px; margin: 40px 0 14px; text-align: center; }

/* Grid / Cards */
.projects { padding: 10px 20px 80px; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  max-width: 1150px;
  margin: 0 auto;
}
.card {
  grid-column: span 12;
  background: linear-gradient(180deg, #0e141d, #0b0f14);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(0); border-color: #243249; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.card-body { padding: 16px; }
.card-title { margin: 0 0 6px; font-size: 18px; }
.card-text { margin: 0; color: var(--muted); font-size: 14px; }

@media (min-width: 700px) {
  .card { grid-column: span 6; }
}
@media (min-width: 1000px) {
  .card { grid-column: span 4; }
}

/* Page Layouts */
.page { max-width: 980px; margin: 30px auto 90px; padding: 0 20px; }
.project-head h1 { margin-bottom: 8px; }
.project-sub { color: var(--muted); margin-top: 0; }

.bullets { color: var(--text); opacity: .92; }
.bullets li { margin-bottom: 6px; }

/* Gallery */
.gallery { margin-top: 26px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  grid-column: span 12;
  margin: 0;
  background: #0e141d;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  box-shadow: var(--shadow);
}
.gallery-grid figcaption {
  font-size: 14px; color: var(--muted);
  margin-top: 10px;
}
@media (min-width: 760px) {
  .gallery-grid figure { grid-column: span 6; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  color: var(--muted);
  text-align: center;
  background: #0b0f14;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); will-change: transform, opacity; }
.reveal.revealed { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

/* Small screens */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; position: absolute; right: 10px; top: 56px; flex-direction: column; padding: 12px; background: #0e141d; border: 1px solid var(--border); border-radius: 12px; }
  .nav-list.open { display: flex; }
}
