:root {
  color-scheme: dark;
  --bg: #00d7fe;
  --panel: #ffffff;
  --panel-soft: #f3f7fb;
  --text: #061825;
  --muted: #1b3a4d;
  --accent: #061825;
  --border: rgba(11, 27, 43, 0.12);
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3,
p {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Use a custom Proxima-like font for all site titles/headings. */
h1,
h2,
h3 {
  font-family: 'Proxima N W01 Xbold', 'Proxima Nova', 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

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

main {
  display: grid;
  gap: 3rem;
  padding: 0 clamp(1.5rem, 4vw, 5rem) 4rem;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem clamp(1.5rem, 4vw, 5rem) 2.5rem;
  border-bottom: 1px solid rgba(11, 27, 43, 0.15);
}

.intro__text h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.intro__text p {
  color: var(--muted);
  max-width: 560px;
}

.intro__media {
  display: flex;
  justify-content: center;
}

.jibo-figure {
  display: grid;
  place-items: center;
  padding: 0.25rem 0.75rem;
}

.jibo-image {
  width: min(240px, 70vw);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

/* Flip Jibo horizontally so it faces left and sits centered in the right column */
.jibo-image {
  transform: scaleX(-1);
}

.hub {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}

.hub h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.section__header {
  margin-bottom: 1rem;
}

.section__header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.resources {
  background: #000000;
  color: #ffffff;
  border-radius: 0;
  /* expand to full viewport edges while preserving main's inner padding */
  margin-left: calc(-1 * clamp(1.5rem, 4vw, 5rem));
  margin-right: calc(-1 * clamp(1.5rem, 4vw, 5rem));
  padding: 1.5rem clamp(1.5rem, 4vw, 5rem);
}

.resources__title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.resource {
  padding: 1rem 1.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  transition: border 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 24px rgba(11, 27, 43, 0.08);
  color: var(--text);
  position: relative;
}

.resource__note {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-family: Inter, 'Proxima N W01 Xbold', 'Proxima Nova', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-size: 0.78rem;
  font-weight: 500;
  color: #9CA3AF;
  letter-spacing: 0.02em;
}

.resource h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.resource p {
  color: var(--muted);
  font-size: 0.82rem;
}

.resource:hover {
  border-color: rgba(11, 27, 43, 0.5);
  transform: translateY(-2px);
}

.developers {
  padding-top: 0.5rem;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 220px));
  gap: 1.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.dev {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.5rem;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--accent);
}

.dev h3 {
  font-size: 0.9rem;
  font-weight: 600;
}

.dev p {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: #ffffff;
  text-transform: lowercase;
  font-size: 0.75rem;
  background: #000000;
}

@media (max-width: 720px) {
  .intro__media {
    justify-content: flex-start;
  }

  .hub {
    text-align: left;
    padding-left: clamp(1.5rem, 4vw, 5rem);
  }
}

/* Progress section styles */
.progress-section {
  padding: 2rem clamp(1.5rem, 4vw, 5rem) 1rem; /* Reduced bottom padding to close gap */
  text-align: center;
  background: var(--panel-soft); /* Different background */
  border-radius: 10px;
  margin: 0 clamp(1.5rem, 4vw, 5rem) 1rem;
}

.progress-link {
  display: inline-block;
  width: 100%;
  max-width: 600px; /* Made longer */
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer; /* Make selectable more visible */
}

.progress-bar-mini {
  width: 100%;
  height: 12px;
  background: var(--panel-soft);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-mini__fill {
  height: 100%;
  background: #4CAF50;
  border-radius: 6px;
  width: 65%;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border); /* Divider under the overall completion text */
  padding-bottom: 0.5rem;
}

.commit-preview {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  width: 300px;
  z-index: 10;
}

.progress-link:hover .commit-preview {
  opacity: 1;
  visibility: visible;
}
