@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy: #123e70;
  --navy2: #0b315d;
  --blue: #0875df;
  --blue2: #2d8ff1;
  --ink: #12365f;
  --muted: #66809e;
  --line: #dce9f6;
  --bg: #f7fbff;
  --soft: #edf6ff;
  --white: #fff;
  --shadow: 0 18px 45px rgba(17, 62, 111, 0.1);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin: auto;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #eef4fa;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
}

.brand img {
  width: 214px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-left: 34px;
  height: 100%;
  font-size: 12px;
  font-weight: 650;
}

.main-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  color: #234a73;
}

.main-nav a.active:after,
.main-nav a:hover:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-search {
  width: 177px;
  height: 36px;
  border: 1px solid #e4edf6;
  border-radius: 20px;
  background: #f8fbfe;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #7990a9;
}

.header-search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 11px;
  color: var(--ink);
  padding-left: 6px;
}

.github-btn {
  height: 36px;
  border-radius: 20px;
  background: #123d6d;
  color: #fff;
  padding: 0 17px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #f9fcff 0%, #f0f8ff 58%, #e8f4ff 100%);
  min-height: 337px;
  border-bottom: 1px solid #edf5fc;
}

.hero-grid {
  min-height: 337px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  padding: 34px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #b8dafc;
  color: #086bd2;
  background: #eff8ff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 12px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1987ec;
}

.hero h1 {
  font-size: 37px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 14px;
  color: #103b6b;
}

.hero h1 span {
  color: #18538e;
}

.hero-copy > p {
  font-size: 14px;
  line-height: 1.65;
  color: #52718f;
  max-width: 575px;
  margin: 0 0 18px;
}

.trust-row {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #315c84;
  font-size: 10px;
  font-weight: 650;
  margin-bottom: 20px;
}

.trust-row i {
  height: 14px;
  width: 1px;
  background: #b8ccdf;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.hero-art {
  height: 280px;
  position: relative;
}

.code-window {
  position: absolute;
  width: 300px;
  height: 184px;
  right: 84px;
  top: 49px;
  border-radius: 9px;
  background: #143e6b;
  box-shadow: 0 25px 45px rgba(17, 58, 102, 0.2);
  overflow: hidden;
  transform: perspective(700px) rotateY(-4deg);
}

.window-bar {
  height: 27px;
  background: #1a4c7d;
  display: flex;
  gap: 5px;
  align-items: center;
  padding-left: 11px;
}

.window-bar b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8e5f4;
}

.code-lines {
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.code-lines span {
  height: 5px;
  border-radius: 5px;
  background: #6d93b5;
  opacity: 0.85;
}

.code-lines .blue {
  background: #44a9ff;
}

.code-lines .green {
  background: #48d2a0;
}

.code-lines .purple {
  background: #9d8aff;
}

.w80 { width: 80%; }
.w75 { width: 75%; }
.w72 { width: 72%; }
.w68 { width: 68%; }
.w64 { width: 64%; }
.w58 { width: 58%; }
.w55 { width: 55%; }
.w48 { width: 48%; }
.w42 { width: 42%; }
.w38 { width: 38%; }

.logo-badge {
  position: absolute;
  right: 190px;
  top: 15px;
  width: 66px;
  height: 66px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(18, 62, 112, 0.15);
  display: grid;
  place-items: center;
}

.logo-badge img {
  width: 51px;
  height: auto;
}

.stack-card {
  position: absolute;
  right: 0;
  top: 92px;
  width: 198px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 35px rgba(22, 71, 120, 0.13);
  padding: 8px 12px;
}

.stack-card div {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1c5c99;
  font-size: 10px;
  font-weight: 700;
}

.stack-card span {
  color: #345b7e;
  font-weight: 650;
  flex: 1;
}

.stack-card b {
  font-size: 17px;
  color: #7191ae;
}

.stack-list {
  position: absolute;
  right: 20px;
  top: 92px;
  width: 190px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 35px rgba(22, 71, 120, 0.13);
  padding: 8px 12px;
}

.stack-list div {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1c5c99;
  font-size: 10px;
  font-weight: 700;
}

.stack-list span {
  color: #345b7e;
  font-weight: 650;
  flex: 1;
}

.stack-list b {
  font-size: 17px;
  color: #7191ae;
}

.float-icon {
  position: absolute;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: #176fc8;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(18, 62, 112, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.fi-github { right: 4px; top: 28px; }
.fi-code { right: 4px; top: 104px; }
.fi-layer { right: 4px; top: 180px; }

.hero-shape {
  position: absolute;
  border: 1px dashed #90c5f5;
  border-radius: 40px;
  opacity: 0.8;
}

.shape-a {
  width: 280px;
  height: 170px;
  right: 40px;
  top: 40px;
  transform: rotate(25deg);
}

.shape-b {
  width: 130px;
  height: 90px;
  right: 390px;
  top: 80px;
  transform: rotate(-12deg);
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 17px;
  border-radius: 22px;
  font-size: 11px;
  font-weight: 750;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

.btn-primary {
  background: #0875df;
  color: #fff;
  box-shadow: 0 9px 20px rgba(8, 117, 223, 0.18);
}

.btn-primary:hover {
  background: #0668c7;
  box-shadow: 0 12px 25px rgba(8, 117, 223, 0.25);
}

.btn-outline {
  background: #fff;
  border-color: #86baf0;
  color: #0b65be;
}

.btn-outline:hover {
  background: #f0f7ff;
  border-color: #6aabf0;
}

.btn b,
.link-btn b {
  font-size: 17px;
  line-height: 0;
}

.link-btn {
  border: 1px solid #9fc9f4;
  background: #fff;
  color: #126fc9;
  border-radius: 20px;
  height: 33px;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: 0.2s;
}

.link-btn:hover {
  background: #f0f7ff;
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  padding: 36px 0;
}

.section-sm {
  padding: 32px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 9px;
  letter-spacing: 1px;
  color: #0872d9;
  font-weight: 800;
  margin-bottom: 6px;
}

.section h2 {
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
  color: #143f6d;
}

.section-head p {
  margin: 0;
  color: #69849e;
  font-size: 11px;
  line-height: 1.55;
  max-width: 720px;
}

/* ── Category Grid ──────────────────────────────────────── */

.categories-section {
  background: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.category-grid a {
  text-decoration: none;
}

.category-card {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 3px 8px rgba(25, 73, 115, 0.02);
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: #abd0f5;
  box-shadow: 0 10px 25px rgba(22, 75, 124, 0.08);
}

.cat-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 10px;
  background: #eef7ff;
  color: #0b71d3;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
}

.category-card:nth-child(3n) .cat-icon {
  background: #f0efff;
  color: #6755dc;
}

.category-card:nth-child(4n) .cat-icon {
  background: #eafbf5;
  color: #13916e;
}

.category-card:nth-child(5n) .cat-icon {
  background: #fff4ed;
  color: #ef743b;
}

.cat-info {
  min-width: 0;
  flex: 1;
}

.cat-info strong {
  display: block;
  font-size: 12px;
  color: #173f69;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-info small {
  display: block;
  color: #8a9db0;
  font-size: 12px;
  margin-top: 4px;
}

.cat-arrow {
  color: #3d77aa;
  font-size: 18px;
}

.category-grid-large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Featured Section ───────────────────────────────────── */

.featured-section {
  padding-top: 0;
}

.featured-panel {
  background: #f2f8fe;
  border: 1px solid #e6f1fb;
  border-radius: 11px;
  padding: 26px 17px 18px;
}

.featured-grid {
  /* alias used in home view */
}

/* ── Library Cards ──────────────────────────────────────── */

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.library-card {
  background: #fff;
  border: 1px solid #e2edf7;
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
  box-shadow: 0 5px 18px rgba(19, 64, 106, 0.035);
  transition: 0.18s;
}

.library-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(19, 64, 106, 0.08);
  border-color: #bfdcf7;
}

.card-top {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 9px;
}

.card-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #eaf4ff;
  color: #0874d9;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 31px;
}

.library-card:nth-child(3n) .card-icon {
  background: #f0edff;
  color: #6650d8;
}

.library-card:nth-child(4n) .card-icon {
  background: #eaf9f4;
  color: #148f70;
}

.library-card:nth-child(5n) .card-icon {
  background: #fff0f1;
  color: #db4252;
}

.card-title {
  flex: 1;
  min-width: 0;
}

.card-title strong {
  font-size: 12px;
  display: block;
  color: #16436e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-size: 8px;
  padding: 3px 6px;
  border-radius: 10px;
  background: #edf7ff;
  color: #0a6fd0;
  white-space: nowrap;
}

.badge.recommended {
  background: #eaf8f1;
  color: #148a61;
}

.badge.optional {
  background: #fff7e7;
  color: #a5680b;
}

.badge.reference {
  background: #f0f2f5;
  color: #68798a;
}

.badge.keep {
  background: #edf7ff;
  color: #0a6fd0;
}

.library-card p {
  font-size: 11px;
  line-height: 1.55;
  color: #70869c;
  min-height: 28px;
  margin: 0 0 10px;
}

.card-meta {
  font-size: 10px;
  color: #7890a6;
  margin-bottom: 9px;
  display: flex;
  gap: 7px;
}

.card-links {
  display: flex;
  gap: 12px;
  font-size: 10px;
  font-weight: 750;
  color: #176ab5;
}

.card-links a:hover {
  text-decoration: underline;
}

.card-details {
  margin-left: auto !important;
}

/* ── Filters ────────────────────────────────────────────── */

.browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 15px;
}

.browser-head h2 {
  font-size: 22px;
  margin: 0;
}

.result-count {
  font-size: 10px;
  color: #7b91a7;
}

.result-count strong {
  color: #176fc4;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 9px;
  margin-bottom: 18px;
}

.search-box {
  height: 40px;
  border: 1px solid #dce9f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
}

.search-box span {
  color: #7190ab;
}

.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 11px;
  padding-left: 8px;
  color: #1b426a;
}

.filters select {
  height: 40px;
  border: 1px solid #dce9f5;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #345d82;
  font-size: 10px;
  outline: 0;
  font-family: inherit;
}

/* ── Empty State ────────────────────────────────────────── */

.empty-state {
  text-align: center;
  border: 1px dashed #c8ddec;
  border-radius: 12px;
  padding: 45px 20px;
  color: #6f879e;
}

.empty-state > div {
  font-size: 28px;
}

.empty-state h3 {
  margin: 8px 0 4px;
  color: #234f79;
}

.empty-state p {
  margin: 0 0 16px;
  font-size: 11px;
}

/* ── Pagination ─────────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.page-btn {
  min-width: 31px;
  height: 31px;
  border: 1px solid #dce8f4;
  background: #fff;
  border-radius: 7px;
  color: #3f6585;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}

.page-btn.active {
  background: #0875df;
  color: #fff;
  border-color: #0875df;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-btn:hover:not(:disabled) {
  background: #f0f7ff;
}

.page-btn.active:hover {
  background: #0668c7;
}

/* ── Stats Section ──────────────────────────────────────── */

.stats-section {
  background: linear-gradient(100deg, #123f72, #1c578f);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 130%,
      transparent 0 100px,
      rgba(255, 255, 255, 0.05) 101px 103px,
      transparent 104px
    ),
    radial-gradient(
      circle at 95% -30%,
      transparent 0 120px,
      rgba(255, 255, 255, 0.04) 121px 123px,
      transparent 124px
    );
}

.stats-inner {
  height: 86px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  align-items: center;
  position: relative;
}

.stats-brand img {
  width: 160px;
  opacity: 0.95;
}

.stat {
  height: 48px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat strong {
  font-size: 18px;
  line-height: 1.1;
}

.stat span {
  font-size: 8px;
  opacity: 0.8;
  margin-top: 4px;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.25fr 1.5fr;
  gap: 50px;
  padding: 30px 0;
}

.footer-about img {
  width: 200px;
  border: 1px solid gray;
    border-radius: 5px;
}

.footer-about p {
  font-size: 12px;
  line-height: 1.6;
  color: #71879b;
  max-width: 260px;
}

.footer h4 {
  font-size: 13px;
  margin: 5px 0 12px;
  color: #17456f;
}

.footer-grid > div > a {
  display: block;
  font-size: 11px;
  color: #66819a;
  margin: 8px 0;
}

.footer-grid > div > a:hover {
  color: #0875df;
}

.socials {
  display: flex;
  gap: 7px;
}

.socials a {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #edf5fc;
  display: grid !important;
  place-items: center;
  font-size: 8px !important;
  font-weight: 800;
}

.socials a:hover {
  background: #dceafa;
}

.newsletter p {
  font-size: 11px;
  color: #748a9e;
}

.newsletter form {
  display: flex;
  height: 31px;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 1px solid #dbe8f4;
  border-radius: 6px 0 0 6px;
  padding: 0 9px;
  font-size: 9px;
  outline: 0;
  font-family: inherit;
}

.newsletter input:focus {
  border-color: #0875df;
}

.newsletter button {
  border: 0;
  background: #0875df;
  color: #fff;
  border-radius: 0 6px 6px 0;
  font-size: 9px;
  padding: 0 12px;
  cursor: pointer;
  font-family: inherit;
}

.newsletter button:hover {
  background: #0668c7;
}

.newsletter small {
  font-size: 8px;
  color: #15906c;
  display: block;
  margin-top: 6px;
}

.footer-bottom {
  border-top: 1px solid #edf2f7;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #8a9cac;
  font-size: 8px;
}

.footer-bottom i {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: #c8d5e0;
  vertical-align: middle;
  margin: 0 7px;
}

.footer-bottom a {
  margin-left: 16px;
}

.footer-bottom a:hover {
  color: #0875df;
}

/* ── Back to Top ────────────────────────────────────────── */

.back-top {
  position: fixed;
  right: 18px;
  bottom: 17px;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: #123f72;
  color: #fff;
  box-shadow: 0 10px 25px rgba(17, 61, 107, 0.2);
  cursor: pointer;
  display: none;
  font-size: 14px;
  font-weight: 700;
  z-index: 100;
  transition: 0.2s;
}

.back-top.show {
  display: block;
}

.back-top:hover {
  background: #0b315d;
}

/* ── Page Hero ──────────────────────────────────────────── */

.page-hero {
  padding: 76px 0 68px;
  background: linear-gradient(135deg, #eef5fc 0%, #f7faff 52%, #edf4fb 100%);
  border-bottom: 1px solid rgba(18, 75, 134, 0.08);
}

.page-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  color: var(--navy, #123e70);
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.75;
  color: #607086;
  margin: 0;
}

/* ── Library Browser ────────────────────────────────────── */

.library-browser {
  /* wrapper for list & category-detail pages */
}

.page-library-browser {
  padding-top: 58px;
}

/* ── Content Pages ──────────────────────────────────────── */

.content-section {
  padding-top: 70px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 26px;
  align-items: stretch;
}

.content-card {
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 35px rgba(16, 53, 91, 0.06);
}

.content-card h2 {
  margin: 8px 0 14px;
  color: var(--navy, #123e70);
  font-size: 30px;
}

.content-card h3 {
  margin: 10px 0 8px;
  color: var(--navy, #123e70);
}

.content-card p {
  color: #627187;
  line-height: 1.8;
  margin: 0 0 14px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.accent-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  background: linear-gradient(150deg, #123e70, #0b315d);
  border: 0;
}

.mini-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 18px;
}

.mini-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-stat strong {
  font-size: 34px;
}

.mini-stat span {
  color: #d9e7f6;
}

/* ── Values Section ─────────────────────────────────────── */

.values-section {
  background: #f6f8fb;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eaf3fc;
  color: #0875df;
  font-weight: 800;
  font-size: 20px;
}

/* ── Contact Section ────────────────────────────────────── */

.contact-section {
  padding-top: 70px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-copy h2 {
  font-size: 38px;
  line-height: 1.15;
  color: var(--navy, #123e70);
  margin: 8px 0 15px;
}

.contact-copy > p {
  color: #627187;
  line-height: 1.8;
  font-size: 17px;
}

.contact-points {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.contact-points > div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-points > div > span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eaf3fc;
  color: #0875df;
  font-weight: 800;
}

.contact-points strong {
  display: block;
  color: #123e70;
  margin-bottom: 4px;
}

.contact-points small {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form-card {
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 16px 45px rgba(16, 53, 91, 0.08);
}

.contact-form-card form {
  display: grid;
  gap: 18px;
}

.contact-form-card label {
  display: grid;
  gap: 8px;
  color: #2b4969;
  font-size: 14px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  color: #263b52;
  outline: none;
  background: #fbfcfe;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: #0875df;
  box-shadow: 0 0 0 3px rgba(8, 117, 223, 0.1);
}

.contact-form-card textarea {
  resize: vertical;
  min-height: 150px;
}

.form-message {
  min-height: 20px;
  color: #18794e;
  font-size: 14px;
  font-weight: 600;
}

/* ── Detail Page ────────────────────────────────────────── */

.detail-hero {
  padding-bottom: 80px;
}

.detail-heading {
  display: flex;
  gap: 22px;
  align-items: center;
}

.detail-heading .card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 53, 91, 0.12);
  color: #0875df;
  font-weight: 900;
  font-size: 21px;
  flex: 0 0 72px;
}

.detail-heading h1 {
  margin: 10px 0 7px;
  font-size: clamp(34px, 5vw, 58px);
  color: #123e70;
}

.detail-heading p {
  margin: 0;
  color: #627187;
  font-size: 16px;
}

.detail-heading .badge {
  margin-bottom: 6px;
}

.detail-layout {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  text-align: left;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.detail-links {
  display: grid;
  gap: 11px;
}

.detail-links .btn {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.back-link {
  display: block;
  color: #0875df;
  text-decoration: none;
  font-weight: 700;
  padding: 4px;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-not-found {
  text-align: left;
}

.detail-not-found h1 {
  font-size: 42px;
}

.detail-not-found p {
  color: #627187;
  margin-bottom: 24px;
}

/* ── Preloader ──────────────────────────────────────────── */

.preloader-wrapper {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  /* CSS fallback: never stay stuck even if JS fails */
  animation: preloader-autohide 0.4s ease 3.5s forwards;
}

.preloader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-logo {
  width: 64px;
  height: auto;
  animation: preloader-pulse 1.4s ease-in-out infinite;
}

.preloader-text {
  margin: 0;
  font-size: 13px;
  color: #6b7a8c;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e4edf6;
  border-top-color: #0875df;
  border-radius: 50%;
  animation: preloader-spin 0.7s linear infinite;
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes preloader-autohide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ── Flash / Alert Messages ─────────────────────────────── */

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #eaf8f1;
  color: #18794e;
  border: 1px solid #b6e8ce;
}

.alert-danger {
  background: #fef0f1;
  color: #b42328;
  border: 1px solid #fcd4d5;
}

.alert-warning {
  background: #fff7e7;
  color: #a5680b;
  border: 1px solid #fde6a0;
}

.alert-info {
  background: #eff8ff;
  color: #086bd2;
  border: 1px solid #b8dafc;
}

/* ── Search Dropdown (header) ───────────────────────────── */

.search-dropdown {
  background: #fff;
  border: 1px solid #e4edf6;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(17, 62, 111, 0.12);
  overflow: hidden;
}

.search-dropdown a,
.search-dropdown .search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #234a73;
  border-bottom: 1px solid #f2f6fa;
  transition: background 0.15s;
}

.search-dropdown a:hover,
.search-dropdown .search-item:hover {
  background: #f0f7ff;
}

.search-dropdown a:last-child,
.search-dropdown .search-item:last-child {
  border-bottom: 0;
}

/* ── Utilities ──────────────────────────────────────────── */

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ── Responsive: 1050px ─────────────────────────────────── */

@media (max-width: 1050px) {
  .main-nav {
    gap: 17px;
    margin-left: 10px;
  }

  .header-search {
    width: 145px;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .library-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
  }

  .stack-card {
    right: -8px;
  }

  .code-window {
    right: 65px;
  }

  .logo-badge {
    right: 165px;
  }

  .fi-github,
  .fi-code,
  .fi-layer {
    display: none;
  }
}

/* ── Responsive: 980px ──────────────────────────────────── */

@media (max-width: 980px) {
  .category-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .contact-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

/* ── Responsive: 800px ──────────────────────────────────── */

@media (max-width: 800px) {
  .site-header {
    height: 62px;
  }

  .nav-wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 178px;
  }

  .main-nav,
  .nav-actions .header-search,
  .github-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    display: block;
  }

  .hero-copy {
    padding: 36px 0 10px;
  }

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

  .hero-art {
    height: 255px;
  }

  .code-window {
    right: 50%;
    transform: translateX(50%);
    width: 280px;
    top: 35px;
  }

  .logo-badge {
    right: calc(50% + 70px);
    top: 8px;
  }

  .stack-card {
    right: calc(50% - 160px);
    top: 84px;
    width: 175px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .search-box {
    grid-column: 1/-1;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    padding: 18px 0;
  }

  .stats-brand {
    grid-column: 1/-1;
    text-align: center;
    margin-bottom: 12px;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    height: 58px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-about {
    grid-column: 1/-1;
  }

  .footer-bottom {
    padding: 12px 22px;
    flex-direction: column;
  }

  /* Mobile navigation */
  .main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    height: auto;
    background: #fff;
    border-bottom: 1px solid #e5eef6;
    padding: 8px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: 0 15px 30px rgba(18, 62, 112, 0.1);
    z-index: 49;
  }

  .main-nav.mobile-open a {
    height: 40px;
    width: 100%;
  }

  .main-nav.mobile-open a:after {
    display: none;
  }
}

/* ── Responsive: 680px ──────────────────────────────────── */

@media (max-width: 680px) {
  .category-grid-large {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 55px 0 48px;
  }

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

  .content-card,
  .contact-form-card {
    padding: 22px;
  }

  .detail-heading {
    align-items: flex-start;
  }

  .detail-heading .card-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
  }
}

/* ── Responsive: 520px ──────────────────────────────────── */

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

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

  .trust-row {
    flex-wrap: wrap;
    gap: 7px;
  }

  .trust-row i {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-art {
    height: 235px;
  }

  .code-window {
    width: 245px;
    height: 160px;
  }

  .stack-card {
    width: 160px;
    right: calc(50% - 140px);
    top: 72px;
  }

  .logo-badge {
    width: 55px;
    height: 55px;
    right: calc(50% + 55px);
  }

  .category-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .featured-panel {
    padding: 20px 12px;
  }

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

  .browser-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

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

  .footer-about {
    grid-column: auto;
  }

  .footer-bottom div:last-child {
    display: flex;
    gap: 10px;
  }

  .footer-bottom a {
    margin-left: 0;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 15px;
  }

  .detail-heading h1 {
    font-size: 32px;
  }

  .content-card h2 {
    font-size: 24px;
  }

  .contact-copy h2 {
    font-size: 28px;
  }

  .contact-copy > p {
    font-size: 15px;
  }

  .contact-points > div > span {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .mini-stat strong {
    font-size: 28px;
  }
}


/* FAROOK MOHAMMAD START */
body > nav > div > a > img{
  width: 250px;
}
/* FAROOK MOHAMMAD END */