/* Reset & sensible defaults */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --blue-500: #0a66ff;
  --blue-600: #0858e0;
  --navy: #0b2340;
  --muted: #6b7280;
  --bg1: #f7fbff;
  --max: 1200px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --header-h:70px;
}

/* Page base */
html, body { height: 100%; margin: 0; }
body {
  background:
    radial-gradient(1200px 400px at 10% 10%, rgba(10,102,255,0.06), transparent 10%),
    linear-gradient(180deg, #ffffff 0%, var(--bg1) 100%);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-family, Inter), system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Header layout */
.site-header {
  height: var(--header-h);    
  background: #ffffff;
  padding: 12px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Inner container for header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  gap: 16px;
}

/* Logo / name */
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  padding-left: 6px; /* small internal breathing */
}

/* Nav bar */
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 6px;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue-500);
  background: rgba(10,102,255,0.04);
}

/* Layout container for page content */
.wrap { max-width: var(--max); margin: 24px auto; padding: 0 24px; }

/* HERO */
.hero {
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 54px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

/* subtle animated background shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.12;
  mix-blend-mode: screen;
}
.bg-shape.a { width: 520px; height: 520px; right: -80px; top: -120px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
}
.bg-shape.b { width: 360px; height: 360px; left: -80px; bottom: -80px;
  background: linear-gradient(90deg, #00b5ff, rgba(10,102,255,0.6));
}

/* Content */
.kicker {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10,102,255,0.08);
  color: var(--blue-600);
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 13px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.02;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.01em;
}
@media (max-width: 780px) { .hero h1 { font-size: 28px; } }

.muted {
  color: var(--muted);
  font-size: 17px;
  margin-top: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* animated keyword */
.keyword-wrap { display: inline-block; position: relative; padding-left: 8px; }
.keyword {
  display: inline-block;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  color: white;
  margin-left: 8px;
  min-width: 120px;
  text-align: center;
}

/* CTA */
.ctas {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin: 0; /* added */
}
.btn-primary { background: linear-gradient(90deg, var(--blue-500), var(--blue-600)); color: white; }
.btn-ghost { background: transparent; border: 1px solid rgba(11,35,64,0.08); color: var(--navy); }

/* decorative underline */
.underline {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  display: block;
  margin: 18px auto 0;
  width: 50%;
  opacity: 0.15; /* slightly higher */
}

/* rotation animation (JS-controlled) */
.keyword.fade-in { animation: fadeUp 600ms ease both; }
.keyword.fade-out { animation: fadeDown 500ms ease both; }
@keyframes fadeUp { from { transform: translateY(6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-6px); opacity: 0; } }

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Respect user pref for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .keyword,
  .bg-shape { animation: none !important; transition: none !important; }
}

/* Responsive header adjustments */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 6px;
  }
  .main-nav { gap: 12px; flex-wrap: wrap; }
  .wrap { padding: 0 16px; }
  .hero { padding: 28px; min-height: auto; }
}

/* Enable scroll snapping on the page */
html, body {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
  margin: 0;
  overflow-y: auto;
  scroll-padding-top: var(--header-h);
}


/* Each section should fill the viewport and snap */
.hero,
.portfolio-dashboard {
  min-height: calc(100vh - var(--header-h));
  scroll-snap-align: start;
  box-sizing: border-box;
  padding-top: 16px;
}


/* Blog author + publisher styling */
.post .author,
.post .publisher {
  font-size: 14px;
  color: #666;
  margin: 4px 0;
}

.post .publisher {
  font-style: italic;
}





/*.blog-list { max-width: 900px; margin: 32px auto; padding: 0 16px; }*/
/*.post-summary { padding: 18px; border-bottom: 1px solid #eee; }*/
/*.post-summary h3 { margin: 0 0 6px; }*/
/*.post-summary .excerpt { color: #666; }*/
/*.blog-post { max-width: 900px; margin: 32px auto; padding: 0 16px; }*/
/*.blog-post .post { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }*/
/*.blog-post time { color: #888; display: block; margin-bottom: 12px; }*/

/* ===== Blog Styling ===== */

/* Blog list container */
.blog-list {   max-width: 900px;   margin: 40px auto;  padding: 0 16px; }

/* Individual post summary in list */
.post-summary {
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}
.post-summary h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.post-summary h3 a {
  text-decoration: none;
  color: var(--navy);
}
.post-summary h3 a:hover {
  color: var(--blue-500);
}
.post-summary time {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}
.post-summary .excerpt {
  color: #555;
  font-size: 15px;
  margin-bottom: 10px;
}
.read-more {
  font-weight: 600;
  color: var(--blue-500);
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}

/* Single post page */
.blog-post {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}
.blog-post .post {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.blog-post .post h1 {
  margin-top: 0;
  font-size: 28px;
}
.blog-post .post time {
  display: block;
  color: #888;
  margin: 8px 0 16px;
  font-size: 14px;
}
.blog-post .author,
.blog-post .publisher {
  font-size: 14px;
  color: #666;
  margin: 2px 0;
}
.blog-post .publisher {
  font-style: italic;
}



































