html { scroll-behavior: smooth; }

.section-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .section-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .section-container { padding-left: 2rem; padding-right: 2rem; }
}

.section-heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
}
@media (min-width: 640px) {
  .section-heading { font-size: 2.25rem; }
}

.section-subheading {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: #475569;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #059669;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-primary:hover { background-color: #10b981; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn-secondary:hover { background: #f8fafc; }

.card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.nav-link {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}
.nav-link:hover { color: #059669; }

.mobile-nav-link {
  display: block;
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}

.prose-blog { max-width: none; line-height: 1.625; color: #334155; }
.prose-blog h2 { margin: 2rem 0 1rem; font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.prose-blog h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; font-weight: 600; }
.prose-blog p { margin-bottom: 1rem; }
.prose-blog ul, .prose-blog ol { margin: 0 0 1rem 1.5rem; }
.prose-blog ul { list-style: disc; }
.prose-blog ol { list-style: decimal; }
.prose-blog :not(pre) > code {
  border-radius: 0.25rem;
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: #047857;
}
.prose-blog code {
  font-family: 'JetBrains Mono', monospace;
}
.prose-blog pre {
  margin-bottom: 1rem;
  overflow-x: auto;
  border-radius: 0.5rem;
  background: #1d1f21;
  padding: 0;
  border: 1px solid #334155;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}
.prose-blog pre code {
  display: block;
  background: transparent;
  padding: 1rem 1.25rem;
  color: inherit;
  font-size: 0.8125rem;
  line-height: 1.65;
  tab-size: 2;
}
.prose-blog pre code[class*="language-"] {
  color: #c5c8c6;
}
.prose-blog a { color: #059669; text-decoration: underline; }
.prose-blog img {
  margin: 1.5rem 0;
  max-width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.hero-portrait {
  position: relative;
  width: min(100%, 14rem);
}

@media (min-width: 640px) {
  .hero-portrait { width: min(100%, 16rem); }
}

@media (min-width: 1024px) {
  .hero-portrait { width: min(100%, 18rem); }
}

.hero-portrait-glow {
  position: absolute;
  inset: 12% 10% 0 10%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 72%);
  filter: blur(14px);
}

.hero-portrait-frame {
  position: relative;
  background: transparent;
}

.hero-portrait-image {
  display: block;
  width: 100%;
  max-height: 17rem;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center bottom;
}

@media (min-width: 1024px) {
  .hero-portrait-image { max-height: 19rem; }
}

.achievement-thumb-wrap {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.achievement-thumb-link {
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease;
}

.achievement-thumb-link:hover {
  opacity: 0.9;
}

.achievement-thumb {
  display: block;
  width: 100%;
  height: 100%;
}

.achievement-thumb-logo {
  max-height: 100%;
  width: auto;
  padding: 0.5rem;
  object-fit: contain;
}

.achievement-thumb-logo-gcp {
  padding: 0.375rem;
}

.achievement-thumb-book {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-subheading {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.achievement-card {
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.875rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
  border-color: rgb(16 185 129 / 0.35);
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.06);
}

.achievement-card-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.achievement-icon-fallback {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.625rem;
  background: rgb(16 185 129 / 0.1);
  color: #059669;
}

.experience-subheading {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.experience-card {
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.875rem 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.2s ease;
}

.experience-card:hover {
  border-color: rgb(16 185 129 / 0.35);
}

.opensource-subheading {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.2rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #475569;
}

.project-card {
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.875rem 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  border-color: rgb(16 185 129 / 0.35);
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.06);
}

.project-card-featured {
  border-color: rgb(16 185 129 / 0.28);
  background: linear-gradient(180deg, rgb(236 253 245 / 0.45) 0%, #fff 100%);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  color: #94a3b8;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.project-card-link:hover {
  background: rgb(16 185 129 / 0.08);
  color: #059669;
}

.project-featured-badge {
  display: inline-flex;
  border-radius: 9999px;
  background: rgb(16 185 129 / 0.1);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #059669;
}

.project-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid #f1f5f9;
}

.project-tag {
  border-radius: 0.25rem;
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: #64748b;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
}

.insights-subheading {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.insight-view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #059669;
  text-decoration: none;
  white-space: nowrap;
}

.insight-view-all:hover {
  color: #10b981;
}

.insight-card {
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.875rem 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
  border-color: rgb(16 185 129 / 0.35);
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.06);
}

.blog-breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.blog-subheading {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.blog-filter {
  display: inline-flex;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.blog-filter:hover {
  color: #059669;
  box-shadow: inset 0 0 0 1px rgb(16 185 129 / 0.35);
}

.blog-filter-active {
  background: #059669;
  color: #fff;
  box-shadow: none;
}

.blog-filter-active:hover {
  background: #10b981;
  color: #fff;
}

.admin-page-link {
  display: inline-flex;
  min-width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-page-link:hover {
  background: #f1f5f9;
  color: #059669;
}

.admin-page-link-active {
  background: #059669;
  color: #fff;
}

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

.admin-page-ellipsis {
  padding: 0.375rem 0.25rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.services-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.services-subheading {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.services-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.services-section-copy {
  margin-top: 0.375rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}

.service-card {
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem 1.125rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: rgb(16 185 129 / 0.35);
}

.service-tag {
  border-radius: 9999px;
  background: rgb(16 185 129 / 0.1);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #059669;
}

.service-engagement-card {
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem 1.125rem;
}

.service-duration {
  border-radius: 9999px;
  background: #f1f5f9;
  padding: 0.125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
}

.service-stat-card {
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem;
  text-align: center;
}

.service-bullet {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.service-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background: #10b981;
}

.service-cta {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, rgb(16 185 129 / 0.06), rgb(16 185 129 / 0.02));
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .service-cta { padding: 2rem; }
}
