/* ============================================================
   ROOT & RESET
   ============================================================ */

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* spacing */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;

  --r-sm: 0.375rem;
  --r-md: 0.625rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;

  /* shared dark theme */
  --bg:      #0d0d0d;
  --fg:      #f0f0f0;
  --mute:    #c0c0c0;

  /* marble accents */
  --mb-purple: #9333ea;
  --mb-cyan:   #22d3ee;
  --mb-grid:   rgba(130, 60, 210, 0.06);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


/* ============================================================
   SHARED NAV
   ============================================================ */

.site-nav {
  padding: var(--s5) var(--s8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* left side: wordmark (home) or back link (sub-pages) */
.site-nav-brand {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #777;
}

.site-nav-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.875rem;
  font-weight: 500;
  color: #999;
  transition: color 0.15s;
}
.site-nav-back:hover { color: var(--fg); }

/* right side: About pill — margin-left:auto pushes it to the far right */
.site-nav-about {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #d8d8d8;
  padding: 5px 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  transition: background 0.15s, border-color 0.15s;
}
.site-nav-about:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

/* marble-tinted nav */
.site-nav--marble .site-nav-back { color: #a0b8d8; }
.site-nav--marble .site-nav-back:hover { color: #e0eeff; }
.site-nav--marble .site-nav-about {
  color: #c8ddf0;
  border-color: rgba(160,184,216,0.35);
}
.site-nav--marble .site-nav-about:hover {
  background: rgba(160,184,216,0.08);
  border-color: rgba(160,184,216,0.6);
  color: #e0eeff;
}


/* ============================================================
   SHARED FOOTER
   ============================================================ */

.site-footer {
  width: 100%;
  padding: var(--s8) 0 var(--s12);
  font-size: 0.8rem;
  color: #777;
  text-align: center;
}


/* ============================================================
   HOME PAGE
   ============================================================ */

.page-home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.home-hero {
  flex: 1;
  padding: var(--s12) var(--s8) var(--s16);
  max-width: 880px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--s4);
}

.home-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--mute);
  margin-bottom: var(--s12);
}

/* project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s4);
  max-width: 620px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  padding: var(--s6);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-card:hover { transform: translateY(-4px); }

.project-card--pdf {
  background: #0c1a3d;
  border-color: #1a3270;
}
.project-card--pdf:hover {
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.22);
}

.project-card--marble {
  background: #0d0820;
  border-color: #2a1860;
}
.project-card--marble:hover {
  box-shadow: 0 16px 48px rgba(147, 51, 234, 0.22);
}

.card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: var(--s4);
  width: fit-content;
}
.project-card--pdf   .card-badge { background: rgba(37,99,235,.15);  color: #93b4fd; }
.project-card--marble .card-badge { background: rgba(147,51,234,.15); color: #c084fc; }

.project-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--s2);
  color: var(--fg);
}

.project-card p {
  font-size: 0.875rem;
  color: #b0bfd8;
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--s5);
}
.project-card--marble p { color: #c8b8f0; }

.card-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.project-card--pdf    .card-link { color: #93b4fd; }
.project-card--marble .card-link { color: #c084fc; }

.card-link svg { transition: transform 0.2s; flex-shrink: 0; }
.project-card:hover .card-link svg { transform: translateX(3px); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: var(--s3);
  display: block;
}
.card-icon--marble { border-radius: 14px; }


/* ============================================================
   EASY PDF SIGNER PAGE
   ============================================================ */

.page-pdf {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.pdf-hero {
  padding: var(--s10) var(--s8) var(--s8);
  max-width: 680px;
}

.pdf-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: var(--s4);
}

.pdf-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: var(--s5);
}

.pdf-lead {
  font-size: 1.05rem;
  color: var(--mute);
  max-width: 50ch;
  line-height: 1.7;
  margin-bottom: var(--s8);
}

.pdf-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: #2563eb;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pdf-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.pdf-cta svg { flex-shrink: 0; transition: transform 0.2s; }
.pdf-cta:hover svg { transform: translateX(3px); }

.pdf-features {
  padding: var(--s10) var(--s8) var(--s6);
  max-width: 680px;
}

.pdf-features-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: var(--s5);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.55;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(37,99,235,0.2);
  color: #60a5fa;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pdf-bottom-cta {
  padding: var(--s4) var(--s8) var(--s12);
  max-width: 680px;
}

.pdf-sub {
  margin-top: var(--s3);
  font-size: 0.8125rem;
  color: var(--mute);
}


/* ============================================================
   MAD MARBLE PAGE
   ============================================================ */

.page-marble {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.page-marble::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--mb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--mb-grid) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

.page-marble::after {
  content: '';
  position: fixed;
  top: -180px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(147,51,234,0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.page-marble > * { position: relative; z-index: 1; }

.marble-hero {
  padding: var(--s10) var(--s8) var(--s8);
  max-width: 700px;
}

.marble-eyebrow {
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mb-cyan);
  margin-bottom: var(--s4);
}

.marble-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--s5);
  background: linear-gradient(135deg, #fff 0%, #d8b4fe 45%, var(--mb-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.marble-lead {
  font-size: 1.05rem;
  color: #ddd8f8;
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: var(--s8);
}

.marble-chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s8);
}

.chip {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(147,51,234,0.35);
  color: #ddd0ff;
}

.marble-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: #b47ef0;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1.5px solid #7c3aed;
  cursor: default;
  opacity: 0.75;
  user-select: none;
}

.marble-features {
  padding: var(--s4) var(--s8) var(--s8);
  max-width: 700px;
}

.marble-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.marble-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 0.9375rem;
  color: #ddd8f8;
  line-height: 1.55;
}

.ndot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mb-cyan);
  box-shadow: 0 0 8px var(--mb-cyan);
  flex-shrink: 0;
  margin-top: 7px;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.page-about {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.about-content {
  flex: 1;
  padding: var(--s12) var(--s8) var(--s8);
  max-width: 720px;
}

.about-intro {
  margin-bottom: var(--s16);
}

.about-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: var(--s4);
}

.about-intro h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--s5);
  color: var(--fg);
}

.about-bio {
  font-size: 1.05rem;
  color: var(--mute);
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: var(--s8);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #93b4fd;
  transition: color 0.15s;
}
.linkedin-link:hover { color: #c7d8fe; }
.linkedin-icon { flex-shrink: 0; border-radius: 4px; }



/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  .site-nav { padding: var(--s4) var(--s5); }
  .home-hero { padding: var(--s8) var(--s5) var(--s12); }
  .site-footer { padding: var(--s4) var(--s5) var(--s6); }

  .pdf-hero, .pdf-features, .pdf-bottom-cta { padding-left: var(--s5); padding-right: var(--s5); }
  .marble-hero, .marble-features { padding-left: var(--s5); padding-right: var(--s5); }
  .about-content { padding-left: var(--s5); padding-right: var(--s5); }

  .about-project-card { flex-direction: column; gap: var(--s4); }
  .about-card-icon { width: 48px; height: 48px; }
}
