/* portfolio.css – Portfolio landing page */

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

.quiz-wrapper{
  width: 100%;
  height: 100vh; /* header+footer allowance */
  /* tweak 220px if your header/footer are taller/shorter */
}

.quiz-wrapper iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #020617;
  font-size: 1.1rem;
    display: flex;
  flex-direction: column;
}



/* Layout helpers */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: radial-gradient(circle at top, #e5f0ff 0, #f3f6fb 40%, #f8fafc 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: 2rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  color: #e7ecff;
}

.section-header p {
  margin: 0;
  color: #adb8c7;
}

/* Header / hero */
.site-header {
  background: radial-gradient(circle at top left, #1d4ed8, #0f172a 55%);
  color: #e5e7eb;
  padding: 3.5rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 2rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #a5b4fc;
  margin: 0 0 0.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.accent {
  color: #bfdbfe;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-highlight {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
}

.hero-highlight .hero-tag {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
}

.hero-highlight ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease, transform 0.05s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 16px 40px rgba(21, 128, 61, 0.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: #e5e7eb;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.4rem 1.45rem 1.3rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  border-color: #bfdbfe;
}

.card:hover::before {
  opacity: 1;
}

.card-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #111827;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.2rem 0 0.6rem;
  padding: 0;
  list-style: none;
}

.card-meta li {
  font-size: 0.75rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}

.card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:not(:has(img))::after {
  content: "↗";
  font-size: 0.8rem;
}


.card-link:hover {
  text-decoration: underline;
}

/* Two-column section */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.two-column h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #020617;
}

.two-column p {
  margin-top: 0;
  color: #4b5563;
}

/* Pill list */
.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1f2937;
  border: 1px solid #bfdbfe;
}

/* Footer */
.site-footer {
  background: #020617;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  padding: 1.25rem 0 1.6rem;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
/* Prevent long links (email/URLs) breaking layouts */

.section-muted a{
  overflow-wrap: anywhere;
  word-break: break-word;
}


.card-img {
  width: 100%;
  /* keep a nice thumbnail box, but don't crop */
  aspect-ratio: 16 / 9;
  object-fit: contain;              /* show whole icon, no cut-off */
  padding: 0.75rem;                 /* whitespace around icon */
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  display: block;
}


.card-img.book-cover {
  aspect-ratio: auto;
  max-height: 220px;
  object-fit: contain;
  padding: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-highlight {
    order: -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero {
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
 
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

}