:root,
[data-theme="bca-neo"] {
  --blue: #3b82f6;
  --blue-light: #60a5fa;

  --green: #14b8a6;
  --green-light: #5eead4;

  --yellow: #facc15;
  --yellow-light: #fde047;

  --bg: #080d18;
  --bg-card: #101827;

  --text: #e8edf7;
  --muted: #8996aa;

  --border: rgba(148, 163, 184, 0.14);

  --text-xs: 10px;
  --text-sm: 12px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
}

/* =====================================================
   GLOBAL
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  background: var(--bg);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: var(--text-base);
}

a {
  color: inherit;
  text-decoration: none;
}

/* =====================================================
   PAGE
===================================================== */

.index-page {
  width: min(1100px, calc(100% - 32px));

  min-height: 100vh;

  margin: 0 auto;

  display: flex;
  flex-direction: column;
}

/* =====================================================
   HERO
===================================================== */

.hero {
  padding: 80px 0 50px;
}

.hero-content {
  width: 100%;

  padding: 55px 35px;

  text-align: center;

  border: 1px solid var(--border);

  border-radius: 24px;

  background: var(--bg-card);
}

/* =====================================================
   BADGE
===================================================== */

.hero-badge {
  display: inline-block;

  margin-bottom: 18px;

  padding: 6px 12px;

  border: 1px solid rgba(250, 204, 21, 0.25);

  border-radius: 999px;

  background: rgba(250, 204, 21, 0.08);

  color: var(--yellow);

  font-size: var(--text-xs);

  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

/* =====================================================
   TITLE
===================================================== */

.hero h1 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(42px, 7vw, 72px);

  line-height: 1;

  font-weight: 700;

  letter-spacing: -2px;
}

/* =====================================================
   DESCRIPTION
===================================================== */

.hero p {
  max-width: 650px;

  margin: 22px auto 0;

  color: var(--muted);

  font-size: var(--text-base);

  line-height: 1.7;
}

/* =====================================================
   GIF
===================================================== */

.hero-gif {
  display: block;

  width: 300px;
  height: 250px;

  margin: 25px auto 0;

  object-fit: cover;

  border: 1px solid var(--border);

  border-radius: 12px;
}

/* =====================================================
   PROJECT SECTION
===================================================== */

.projects-section {
  padding: 20px 0 70px;
}

/* =====================================================
   SECTION HEADER
===================================================== */

.section-heading {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 16px;
}

.section-label {
  margin: 0;

  color: var(--green-light);

  font-size: var(--text-xs);

  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.section-heading h2 {
  margin: 5px 0 0;

  color: var(--text);

  font-size: var(--text-xl);

  font-weight: 600;
}

.project-count {
  color: var(--muted);

  font-size: var(--text-sm);
}

/* =====================================================
   PROJECT GRID
===================================================== */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));

  gap: 16px;
}

/* =====================================================
   PROJECT CARD
===================================================== */

.project-card {
  min-height: 180px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 20px;

  border: 1px solid var(--border);

  border-radius: 16px;

  background: var(--bg-card);
}

/* =====================================================
   CARD NUMBER
===================================================== */

.card-number {
  color: #64748b;

  font-size: var(--text-xs);

  font-weight: 600;

  letter-spacing: 0.5px;
}

/* =====================================================
   CARD CONTENT
===================================================== */

.card-label {
  margin-bottom: 7px;

  color: var(--blue-light);

  font-size: var(--text-xs);

  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.card-content h3 {
  margin: 0;

  color: var(--text);

  font-size: var(--text-lg);

  line-height: 1.4;

  font-weight: 600;
}

/* =====================================================
   OPEN PROJECT
===================================================== */

.open-project {
  display: inline-block;

  margin-top: 18px;

  color: var(--yellow);

  font-size: var(--text-sm);

  font-weight: 600;
}

/* =====================================================
   EMPTY / LOADING / ERROR
===================================================== */

.loading,
.empty-state,
.error-state {
  grid-column: 1 / -1;

  padding: 40px 20px;

  border: 1px solid var(--border);

  border-radius: 16px;

  background: var(--bg-card);

  color: var(--muted);

  text-align: center;

  font-size: var(--text-base);
}

.error-state strong {
  display: block;

  margin-bottom: 6px;

  color: #f87171;

  font-size: var(--text-base);
}

.error-state p {
  margin: 0;

  font-size: var(--text-sm);
}

.error-state code {
  color: var(--yellow);

  font-size: var(--text-sm);
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  margin-top: auto;

  padding: 20px 0;

  border-top: 1px solid var(--border);

  color: #64748b;

  text-align: center;

  font-size: var(--text-xs);
}

.site-footer a {
  color: var(--blue-light);
}

.footer-separator {
  margin: 0 6px;

  color: #334155;
}

/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #1e3a5f;

  border-radius: 10px;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {
  .index-page {
    width: calc(100% - 20px);
  }

  .hero {
    padding: 35px 0 30px;
  }

  .hero-content {
    padding: 40px 20px;

    border-radius: 18px;
  }

  .hero h1 {
    font-size: 46px;

    letter-spacing: -1.5px;
  }

  .hero p {
    font-size: var(--text-base);
  }

  .hero-gif {
    width: 100%;

    max-width: 300px;

    height: 220px;
  }

  .section-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 5px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 165px;
  }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {
  .index-page {
    width: calc(100% - 14px);
  }

  .hero-content {
    padding: 35px 16px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: var(--text-sm);
  }

  .hero-gif {
    height: 200px;
  }
}
