/* ============================================================
   Iluminators Shpk — Portfolio design system
   Modern dark theme + gradient accents. No external deps.
   ============================================================ */

:root {
  /* Palette */
  --bg:            #07080f;
  --bg-2:          #0b0d18;
  --surface:       #10121f;
  --surface-2:     #161a2b;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:          #eef0f7;
  --muted:         #a4a9bd;
  --faint:         #6f7591;

  /* Accents — Iluminators gold / champagne */
  --a1: #f6e7bd; /* pale champagne */
  --a2: #d9b357; /* gold           */
  --a3: #a9762b; /* bronze         */
  --gold-ink: #2a1d05; /* dark text for use on gold fills */
  --accent-grad: linear-gradient(120deg, #f6e7bd, #dcb85f 48%, #b3802f);

  /* Shape & motion */
  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glow:     0 0 0 1px rgba(217, 179, 87, 0.30), 0 20px 60px -20px rgba(217, 179, 87, 0.32);
  --maxw:     1180px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font: var(--font-body);
}

/* -------------------- Reset -------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
/* Luxury/editorial: serif display for the big headings, sans for UI labels */
.hero h1, .proj-hero h1, .section-title, .prose h2, .cta-band h2, .panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
}
.hero h1, .proj-hero h1 { font-weight: 600; }

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(46rem 46rem at 12% -8%, rgba(217, 179, 87, 0.16), transparent 60%),
    radial-gradient(40rem 40rem at 92% 4%, rgba(246, 231, 189, 0.10), transparent 60%),
    radial-gradient(50rem 50rem at 60% 100%, rgba(169, 118, 43, 0.12), transparent 60%);
}

/* -------------------- Layout helpers -------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a2);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-lead { color: var(--muted); max-width: 620px; margin: 16px auto 0; }

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--a2); }
.btn-primary {
  background: var(--accent-grad);
  border: none;
  color: var(--gold-ink);
  font-weight: 700;
  box-shadow: 0 12px 30px -12px rgba(217, 179, 87, 0.65);
}
.btn-primary:hover { box-shadow: 0 18px 42px -12px rgba(217, 179, 87, 0.85); }
.btn-ghost { background: transparent; }

/* -------------------- Navbar -------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 15, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand .logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-grad);
  box-shadow: 0 6px 18px -6px rgba(217, 179, 87, 0.8);
  position: relative; flex: none;
}
.brand .logo-mark::after {
  content: ""; position: absolute; inset: 8px;
  border-radius: 4px; background: rgba(7, 8, 15, 0.85);
}
.brand small { color: var(--faint); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.97rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* -------------------- Hero (home) -------------------- */
.hero { padding: 96px 0 72px; position: relative; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; }
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 640px; margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 26px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 12px var(--a2); }

.stats { display: flex; flex-wrap: wrap; gap: 42px; margin-top: 58px; }
.stat .num { font-size: 2.2rem; font-weight: 800; }
.stat .lbl { color: var(--faint); font-size: 0.9rem; }

/* -------------------- Project grid -------------------- */
.grid { display: grid; gap: 22px; }
.projects-grid { grid-template-columns: repeat(3, 1fr); }
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(30rem 20rem at 50% -30%, rgba(217, 179, 87, 0.15), transparent 70%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card:hover::before { opacity: 1; }
.project-card > * { position: relative; }
.card-thumb {
  position: relative;
  display: block;
  width: calc(100% + 52px);
  margin: -26px -26px 20px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.project-card:hover .card-thumb img { transform: scale(1.04); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.card-icon svg { width: 24px; height: 24px; }

/* Browser-frame showcase (project pages) */
.browser-mock {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 7px; flex: none; }
.browser-dots span { width: 12px; height: 12px; border-radius: 50%; background: #3a3f55; }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser-shot { display: block; width: 100%; background: var(--bg-2); }
.browser-shot img { display: block; width: 100%; height: auto; }
.project-card h3 { font-size: 1.28rem; }
.project-card .cat { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a2); margin-bottom: 6px; }
.project-card p { color: var(--muted); font-size: 0.96rem; margin: 10px 0 20px; flex: 1; }
.card-links { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.card-links a { font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 5px; }
.card-links .more { color: var(--text); }
.card-links .more:hover { color: var(--a2); }
.card-links .ext { color: var(--faint); }
.card-links .ext:hover { color: var(--text); }

.badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(217, 179, 87, 0.14); color: var(--a2);
  border: 1px solid rgba(217, 179, 87, 0.34);
}
.badge.soon { background: rgba(169, 118, 43, 0.16); color: #e6cd91; border-color: rgba(169, 118, 43, 0.4); }

/* -------------------- About strip -------------------- */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px; }
.about-card { padding: 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.about-card .ic { font-size: 1.6rem; margin-bottom: 12px; }
.about-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.about-card p { color: var(--muted); font-size: 0.9rem; }

/* -------------------- Project page hero -------------------- */
.proj-hero { padding: 64px 0 40px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 500; font-size: 0.92rem; margin-bottom: 26px; transition: color 0.2s; }
.back-link:hover { color: var(--text); }
.proj-cat { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a2); margin-bottom: 14px; }
.proj-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.proj-tagline { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 680px; margin: 18px 0 30px; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.preview-ribbon {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px; padding: 11px 17px; border-radius: 12px;
  background: rgba(169, 118, 43, 0.12); border: 1px solid rgba(169, 118, 43, 0.3);
  color: #e8d49b; font-size: 0.9rem;
}

/* -------------------- Content sections -------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.panel { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.panel h3 { font-size: 1.2rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.panel p, .panel li { color: var(--muted); }
.panel ul li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.panel ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-grad); }

/* Feature grid */
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature {
  padding: 24px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature .fic {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--surface-2); border: 1px solid var(--border);
}
.feature h4 { font-size: 1.06rem; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* Pricing */
.pricing-grid { grid-template-columns: repeat(4, 1fr); }
.price-card {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--a2); box-shadow: var(--glow); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.price-card .tier { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a2); }
.price-card .amt { font-size: 2rem; font-weight: 800; margin: 12px 0 4px; }
.price-card .amt small { font-size: 0.9rem; color: var(--faint); font-weight: 500; }
.price-card ul { margin-top: 16px; }
.price-card ul li { color: var(--muted); font-size: 0.9rem; padding-left: 22px; position: relative; margin-bottom: 9px; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--a2); font-weight: 700; }

/* Info list (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { padding: 8px 15px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; font-weight: 500; }

/* -------------------- CTA band -------------------- */
.cta-band {
  margin: 20px auto;
  padding: 56px 40px;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(40rem 20rem at 50% -40%, rgba(217, 179, 87, 0.22), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { color: var(--muted); max-width: 520px; margin: 14px auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -------------------- Footer -------------------- */
.footer { border-top: 1px solid var(--border); padding: 54px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h5 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer a { color: var(--muted); display: block; margin-bottom: 10px; font-size: 0.94rem; transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer .desc { color: var(--muted); font-size: 0.94rem; max-width: 320px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.87rem; }

/* -------------------- Reveal animation -------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* -------------------- Responsive -------------------- */
@media (max-width: 940px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-logo { height: 34px; }
  .section { padding: 68px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 24px; align-items: flex-start;
  }
  .split { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
}
@media (max-width: 560px) {
  .projects-grid, .about-grid, .feature-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   v2 — filter, hero proof, socials, contact, polish
   ============================================================ */

/* Projects category filter */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 40px;
}
.filter-btn {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: 0.9rem;
  font-family: var(--font-body); cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--accent-grad); color: var(--gold-ink); border-color: transparent; }
.project-card.hide { display: none !important; }
.project-card.pop { animation: cardPop .45s var(--ease) both; }
@keyframes cardPop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Hero factual proof chips (replaces fabricated stats) */
.proof { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 50px; }
.proof .pf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.93rem; color: var(--muted);
}
.proof .pf strong { color: var(--text); font-weight: 600; }
.proof .pf .pfi { color: var(--a2); font-size: 1.05rem; line-height: 1; }

/* Social icons */
.socials { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.socials a:hover { color: var(--a2); border-color: var(--a2); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.contact-card {
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong);
}
.contact-card .lead-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600; margin: 8px 0 6px;
}
.todo-note {
  display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(169,118,43,0.16); color: #e6cd91; border: 1px solid rgba(169,118,43,0.4);
}

/* Capabilities card accent icon in gold */
.about-card .ic { color: var(--a2); }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .proof { gap: 10px; margin-top: 38px; }
}
