:root {
  --bg: #020817;
  --panel: #07152f;
  --text: #f8fbff;
  --muted: #9ca9c7;
  --line: rgba(255,255,255,.09);
  --green: #14e66e;
  --blue: #2d7dff;
  --purple: #8a4dff;
  --shadow: 0 20px 45px rgba(0,0,0,.32);
  --max-width: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; min-height: 100%; overflow-x: clip; background: #001126; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background-color: #001126;
  background-image: radial-gradient(circle at 12% 0, rgba(45,125,255,.14), transparent 28%), radial-gradient(circle at 90% 40%, rgba(138,77,255,.1), transparent 27%), linear-gradient(180deg,#020817,#031129 55%,#020817);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
.container { width: min(92%, var(--max-width)); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(2,8,23,.86); backdrop-filter: blur(12px); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 4px; font-size: 1.2rem; font-weight: 800; }
.brand-mark { width: 32px; height: 38px; flex: 0 0 32px; display: block; background: transparent; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { padding: 11px 14px; border-radius: 999px; color: #dbe8ff; font-weight: 600; transition: .25s ease; }
.nav-links a:hover, .nav-links .active { color: var(--green); background: rgba(255,255,255,.04); }
.menu-toggle { display: none; width: 52px; height: 52px; flex: 0 0 52px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; touch-action: manipulation; pointer-events: auto; position: relative; z-index: 1001; }
.menu-toggle span { pointer-events: none; display: block; font-size: 29px; font-weight: 900; line-height: 1; transform: scaleX(1.08) translateY(-1px); }
.catalog-hero { padding: 88px 0 58px; text-align: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; padding: 8px 13px; border: 1px solid rgba(20,230,110,.18); border-radius: 999px; color: #a6f6c5; background: rgba(20,230,110,.06); font-weight: 700; font-size: .86rem; }
.catalog-hero h1 { font-size: clamp(2.65rem,7vw,5.2rem); line-height: 1.02; letter-spacing: -2.5px; margin-bottom: 20px; }
.catalog-hero h1 span { color: var(--green); }
.catalog-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
.catalog { padding: 28px 0 100px; }
.projects-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.project-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg,rgba(11,26,58,.97),rgba(7,20,46,.97)); box-shadow: var(--shadow); transition: transform .28s ease,border-color .28s ease,box-shadow .28s ease; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(20,230,110,.25); box-shadow: 0 25px 55px rgba(0,0,0,.4); }
.project-cover { aspect-ratio: 16/10; overflow: hidden; background: #06122d; }
.project-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.project-card:hover .project-cover img { transform: scale(1.04); }
.project-content { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.project-type { margin-bottom: 7px; color: #8eb4ff; text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; font-weight: 800; }
.project-content h2 { margin-bottom: 9px; font-size: 1.3rem; }
.project-description { margin-bottom: 17px; color: var(--muted); font-size: .94rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.project-tag { padding: 6px 10px; border: 1px solid rgba(138,77,255,.22); border-radius: 999px; background: rgba(138,77,255,.09); color: #e2d6ff; font-size: .76rem; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border: 1px solid transparent; border-radius: 13px; font-weight: 750; transition: transform .25s ease,background .25s ease,box-shadow .25s ease; }
.btn-primary { align-self: flex-start; margin-top: auto; color: #041218; background: linear-gradient(135deg,var(--green),#0fcb61); box-shadow: 0 12px 28px rgba(20,230,110,.15); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; background: linear-gradient(135deg,var(--blue),var(--purple)); }
.btn-secondary { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); }
.back-row { display: flex; justify-content: center; margin-top: 42px; }
.detail { padding: 72px 0 100px; }
.detail-back { margin-bottom: 24px; }
.detail-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg,rgba(11,26,58,.97),rgba(7,20,46,.97)); box-shadow: var(--shadow); }
.detail-image { aspect-ratio: 16/8; background: #06122d; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.detail-content { padding: clamp(24px,5vw,50px); }
.detail-content h1 { margin: 5px 0 15px; font-size: clamp(2.2rem,5vw,4rem); line-height: 1.05; }
.detail-content .project-description { max-width: 820px; font-size: 1.05rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease,transform .75s ease; }
.reveal.show { opacity: 1; transform: none; }
.footer { padding: 30px 0 42px; border-top: 1px solid rgba(255,255,255,.06); text-align: center; color: var(--muted); }
@media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 768px) { .brand-mark { width: 30px; height: 36px; flex-basis: 30px; } }
@media (max-width: 700px) {
  .nav { flex-wrap: wrap; padding: 14px 0; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav-links.show { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .catalog-hero { padding: 62px 0 42px; text-align: left; }
  .catalog-hero h1 { letter-spacing: -1.5px; }
  .catalog-hero p { margin: 0; }
  .detail { padding-top: 42px; }
  .detail-image { aspect-ratio: 16/10; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
