@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  color-scheme: dark;
  --color-bg: #0b0f1a;
  --color-bg-secondary: #111827;
  --color-surface: rgba(17, 24, 39, 0.88);
  --color-card: rgba(255, 255, 255, 0.96);
  --color-accent: #7dd3fc;
  --color-accent-strong: #38bdf8;
  --color-text: #e5e7eb;
  --color-text-dark: #111827;
  --color-muted: #94a3b8;
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.55);
  --shadow-md: 0 10px 30px -15px rgba(15, 23, 42, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at 15% 10%, rgba(167, 139, 250, 0.2), transparent 40%),
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar a:hover {
  background: rgba(125, 211, 252, 0.18);
  color: white;
  transform: translateY(-1px);
}

.content {
  position: relative;
  z-index: 1;
  padding: 48px 24px 80px;
}

.page-home .content {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  padding-top: calc(40px + 100vh);
}

.inner-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 40px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.fade-on-scroll {
  position: fixed;
  inset: 0;
  height: 100vh;
  background-image: url('../image_resources/backgrounds/01-hero-cover.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.welcome-section {
  text-align: center;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--color-text-dark);
  margin-bottom: 32px;
}

.welcome-section h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
}

.professional-and-background {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.expanded-profile,
.photo-caption,
.about-text,
.contact-intro,
.contact-header,
.hero-card,
.metric-card,
.service-card,
.highlight-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-dark);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.expanded-profile h3 {
  font-family: 'Lora', serif;
  margin-top: 24px;
}

.photo-and-caption {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.professional-photo {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.photo-caption {
  text-align: center;
}

.site-navigation {
  margin-top: 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 20px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--color-muted);
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  color: #0b1020;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px -18px rgba(15, 23, 42, 0.6);
}

.button-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.metric-card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.hero-card {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}

.hero-bio h2 {
  margin: 0 0 8px;
}

.section-block {
  display: grid;
  gap: 24px;
}

.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card h3,
.highlight-card h3 {
  margin-top: 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.highlight-card ul {
  padding-left: 18px;
  margin: 0;
}

.callout {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.navigation-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.nav-item {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.75);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.nav-item:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.6);
  background: rgba(30, 41, 59, 0.9);
}

.nav-item span {
  font-weight: 700;
}

.nav-item p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.95rem;
}

.nav-item img {
  width: 48px;
}

.blog-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  color: var(--color-text-dark);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.article-toc {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.article-toc h2 {
  margin-top: 0;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.article-toc a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.article-toc span {
  color: var(--color-muted);
  font-weight: 500;
}

.blog-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.4);
  border-color: rgba(56, 189, 248, 0.35);
}

.blog-summary {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 70%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 70%, rgba(0, 0, 0, 0) 100%);
}

.blog-summary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  pointer-events: none;
}

.article-date {
  color: #1f4d7a;
}

.blog-image {
  width: 100%;
  height: auto;
  max-width: 240px;
  max-height: min(260px, 30vh);
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.75) 75%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.75) 75%, rgba(0, 0, 0, 0) 100%);
}

.overlay {
  background: rgba(3, 7, 18, 0.85);
  display: none;
  position: fixed;
  inset: 0;
  padding: 32px 24px;
  overflow-y: auto;
  z-index: 200;
}

.overlay-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--color-text-dark);
  margin: 48px auto;
  max-width: 960px;
  padding: 32px;
}

.section-intro {
  display: grid;
  gap: 16px;
  padding: 0;
  background: transparent;
  color: var(--color-text-dark);
  border-left: none;
}

.section-intro p {
  margin: 0;
  padding: 16px 18px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
}

pre {
  background-color: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-sm);
}

.contact-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-header img {
  width: 48px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.contact-form form {
  display: grid;
  gap: 16px;
}

.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 1rem;
  padding: 12px 14px;
}

.contact-form button {
  background: linear-gradient(120deg, #38bdf8, #6366f1);
  font-weight: 600;
}

.contact-form button:hover {
  filter: brightness(0.95);
}

.page-home {
  background: radial-gradient(circle at 10% 10%, rgba(14, 116, 144, 0.35), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(79, 70, 229, 0.35), transparent 55%),
    var(--color-bg);
}

.page-contact .inner-content {
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.88)),
    url('../image_resources/backgrounds/03-contact-bg.png');
  background-size: cover;
  background-position: center;
}

@media (max-width: 960px) {
  .page-home .content {
    padding-top: calc(32px + 100vh);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .professional-and-background {
    grid-template-columns: 1fr;
  }

  .blog-post {
    grid-template-columns: 1fr;
  }

  .inner-content {
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .page-home .content {
    padding-top: calc(24px + 100vh);
  }

  .navbar {
    justify-content: flex-start;
    padding: 12px 16px;
    overflow-x: auto;
  }

  .navbar a {
    padding: 8px 12px;
    white-space: nowrap;
  }

  .content {
    padding: 32px 16px 64px;
  }

  .welcome-section {
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

h1,
h2,
h3,
h4 {
  font-family: 'Lora', serif;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 16px;
}

.section {
  margin-left: 16px;
}

.subsection {
  margin-left: 32px;
}

.contact-header h1 {
  margin: 0;
}

.contact-intro {
  text-align: center;
}

.inner-content > h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 24px;
}
