:root {
  --bg: #0f172a;
  --bg2: #020617;
  --panel-bg: #0d1a30;
  --fg: #e2e8f0;
  --fg-soft: #f1f5f9;
  --muted: #94a3b8;
  --accent: #fbbf24;
  --border: rgba(255,255,255,0.12);
  --card-bg-soft: rgba(255,255,255,0.04);
  --font-heading: 'League Spartan', sans-serif;
  --font-body: 'Carlito', sans-serif;
  --font-accent: 'Tinos', serif;
  --font-ui: 'Inter','Carlito',sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 56px;
  --font-size-base: 18px; /* was 17px */
  --font-size-desc: 17px; /* was 16px */
  --font-size-card-title: 16px; /* was 15px */
  --radius-card: 16px;
  --line-height-desc: 1.6;
}

html, body {
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: linear-gradient(var(--bg2), var(--bg));
  -webkit-font-smoothing: antialiased;
}

html { font-size: var(--font-size-base); }

.site-header {
  backdrop-filter: blur(6px);
}

.hero-section .hero-logo-wrapper.large img {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.project-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
  background: var(--card-bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.55);
}

.project-card:focus-visible, a:focus-visible, .project-heading:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
}

.project-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(var(--font-size-card-title) + 2px); /* bigger than desc */
  opacity: 0.98;
  letter-spacing: .35px;
  color: var(--fg);
  /* removed underline decoration */
}

/* Shared description text */
.desc-text {
  font-size: var(--font-size-desc);
  line-height: var(--line-height-desc);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--fg-soft);
  letter-spacing: .15px;
  opacity: 0.92;
}

/* Pill card base */
.pill-card, .pillar {
  background: var(--card-bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
}

.pillars-grid .pillar {
  transition: transform .25s ease, box-shadow .25s ease;
}

.pillars-grid .pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.45);
}

/* Pillars responsive tightening */
@media (max-width: 980px) {
  .pillars-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

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

.fade-in { opacity: 0; animation: fadeIn .85s ease forwards; }
.fade-in:nth-child(2){ animation-delay: .08s; }
.fade-in:nth-child(3){ animation-delay: .16s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.site-footer {
  font-size: 14px;
}

@media (max-width: 640px) {
  .hero-section { padding: 56px 0 !important; }
  h1 { font-size: clamp(30px, 8vw, 40px) !important; }
}

/* Improve readability of longer paragraph blocks */
.hero-section p { line-height: 1.6; text-transform: none; letter-spacing: .5px; }

/* Accessibility: ensure links have visible focus */
.contact-section a { position: relative; }
.contact-section a:focus-visible { text-decoration: underline; }

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px; /* was 22px */
  letter-spacing: .4px;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 64px;
  background: linear-gradient(90deg, var(--accent), rgba(251,191,36,0));
  border-radius: 2px;
}
@media (min-width: 1280px) {
  .section-heading { font-size: 26px; }
}
@media (max-width: 640px) {
  .section-heading { font-size: 21px; }
  .section-heading::after { width: 54px; }
}
