/* ─── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #080e1f;
  color: #dde3f5;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;

  /* Subtle star-field texture via radial gradients */
  background-image:
    radial-gradient(1px 1px at 12%  18%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 34%  72%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px 1px at 55%  31%, rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1px 1px at 73%  85%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 88%  14%, rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1px 1px at 22%  55%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 67%  47%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px 1px at 92%  63%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 44%  90%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at  5%  82%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(40, 60, 120, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(20, 40,  90, 0.20) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ─── Typography ─────────────────────────────────────────────────── */
h1, h2, h3 {
  color: #eef1ff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 600; margin-bottom: 1.5rem; }

a {
  color: #7ba7f7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #a8c8ff; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.hero,
.page-hero,
.section,
.header-inner,
.footer-inner {
  width: min(760px, 92%);
  margin-inline: auto;
}

/* ─── Header ─────────────────────────────────────────────────────── */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(100, 130, 210, 0.12);
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0; /* prevent extra spacing around img */
}

/* Header logo - transparent PNG, no background rectangle */
.logo-main {
  display: block;
  height: 64px;   /* desktop: readable and polished, not dominating */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Split header (about page) */
.header-inner--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-nav a:not(.cta-btn) {
  font-size: 0.9rem;
  color: #7ba7f7;
  white-space: nowrap;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(100, 130, 210, 0.10);
}

.hero h1 {
  /* visually hidden - logo carries the brand name visually */
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.tagline {
  font-size: 1rem;
  color: #7ba7f7;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-summary {
  font-size: 1.05rem;
  color: #b8c6e8;
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* ─── Page hero (inner pages) ────────────────────────────────────── */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(100, 130, 210, 0.10);
}

.page-hero h1 {
  margin-bottom: 0.4rem;
}

/* ─── Sections ───────────────────────────────────────────────────── */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(100, 130, 210, 0.10);
}
.section:last-of-type {
  border-bottom: none;
}

/* ─── CTA buttons ────────────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: rgba(80, 120, 220, 0.18);
  border: 1px solid rgba(100, 150, 240, 0.40);
  border-radius: 6px;
  color: #a8c4ff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cta-btn:hover {
  background: rgba(80, 120, 220, 0.32);
  border-color: rgba(140, 180, 255, 0.65);
  color: #d0e2ff;
}

.cta-btn--linkedin {
  background: rgba(10, 102, 194, 0.18);
  border-color: rgba(10, 102, 194, 0.45);
  color: #7fb3f5;
}
.cta-btn--linkedin:hover {
  background: rgba(10, 102, 194, 0.32);
  border-color: rgba(10, 102, 194, 0.75);
  color: #b8d4ff;
}

.linkedin-icon {
  flex-shrink: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ─── Focus grid ─────────────────────────────────────────────────── */
.focus-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.focus-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 130, 210, 0.14);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  transition: background 0.2s, border-color 0.2s;
}
.focus-grid li:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(100, 150, 240, 0.28);
}

.focus-icon {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.focus-grid strong {
  color: #d0daff;
  font-size: 0.95rem;
}

.focus-grid span {
  color: #8fa5d0;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ─── About / background body ────────────────────────────────────── */
.background-body p {
  color: #b0c0e0;
  margin-bottom: 1rem;
  max-width: 65ch;
}

.about-link {
  display: block;
  margin-top: 0.25rem;
}

/* ─── Experience list ────────────────────────────────────────────── */
.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.exp-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 130, 210, 0.14);
  border-radius: 8px;
}

.exp-list strong {
  color: #d0daff;
  font-size: 0.95rem;
}

.exp-list span {
  color: #8fa5d0;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ─── Credentials ────────────────────────────────────────────────── */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.credential {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 130, 210, 0.14);
  border-radius: 6px;
  padding: 0.85rem 1.2rem;
  min-width: 200px;
}

.credential strong {
  color: #d0daff;
  font-size: 0.9rem;
}

.credential span {
  color: #7a94c8;
  font-size: 0.85rem;
}

/* ─── Contact section ────────────────────────────────────────────── */
.contact-note {
  color: #9aafd4;
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(100, 130, 210, 0.10);
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}

.site-footer p {
  font-size: 0.8rem;
  color: #3d5080;
  letter-spacing: 0.02em;
}

/* Legal entity attribution and sibling brand: present but quiet. */
.site-footer .footer-legal,
.site-footer .footer-sibling {
  font-size: 0.72rem;
  color: #35486f;
}

.site-footer a {
  color: #4a6090;
}
.site-footer a:hover {
  color: #7ba7f7;
}

/* ─── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .logo-main { height: 72px; }  /* mobile: bigger than desktop, fits viewport */

  .hero { padding: 3rem 0 2.5rem; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }

  .focus-grid { grid-template-columns: 1fr; }
  .credentials { flex-direction: column; }
  .credential { min-width: unset; }

  /* About page header: stack logo above nav */
  .header-inner--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-nav {
    gap: 1rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Accessibility utilities ──────────────────────────────────── */
.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;
}
