@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Newsreader:wght@600;700&display=swap");

:root {
  --surface: #f9f9f7;
  --panel: #ffffff;
  --text: #000000;
  --muted: #111111;
  --accent: #2f5c8f;
  --accent-strong: #23466c;
  --border: #e4e0d6;
  --shadow-soft: 0 6px 18px rgba(23, 38, 50, 0.07);
  --shadow-strong: 0 10px 26px rgba(23, 38, 50, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px 70px;
}

header {
  background: linear-gradient(120deg, rgba(10, 16, 35, 0.72), rgba(23, 44, 68, 0.6)),
    url("docs/WhatsApp Image 2025-09-30 at 13.34.12.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f4f7fb;
  padding: 32px 0 26px;
  border-bottom: none;
}

header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

header h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

nav a {
  display: inline-flex;
  align-items: center;
  color: #e7edf7;
  padding: 6px 0;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

nav a.active,
nav a[aria-current="page"] {
  color: #ffffff;
  border-color: #ffffff;
}

main {
  padding: 52px 0 34px;
}

main .container > * + * {
  margin-top: 32px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: var(--text);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
  margin: 6px 0 12px;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8edfa;
  color: var(--accent-strong);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
}

.hero,
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 28px;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}

.hero {
  box-shadow: none;
}

.hero p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-layout {
  align-items: center;
}

.hero-figure {
  margin: 0;
  text-align: center;
}

.hero-figure img {
  max-width: 280px;
  width: 100%;
}
.hero.hero-photo {
  position: relative;
  color: #f8fafc;
  border: none;
  overflow: hidden;
  min-height: 360px;
  padding: 64px 32px;
}

.hero.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 19, 43, 0.75), rgba(28, 37, 65, 0.5));
  z-index: 1;
}

.hero.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("docs/WhatsApp Image 2025-09-30 at 13.34.12.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 0;
}

.hero.hero-photo * {
  position: relative;
  z-index: 2;
}

.hero.hero-photo p {
  color: #e5e7eb;
  max-width: 620px;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 11px 15px;
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(35, 70, 108, 0.14);
  text-decoration: none;
  background: var(--accent);
  color: #ffffff;
}

.mail-btn {
  background: #6e3fe2;
  border-color: #6e3fe2;
}

.mail-btn:hover {
  background: #5b2fcb;
  border-color: #5b2fcb;
  box-shadow: 0 10px 20px rgba(91, 47, 203, 0.18);
}

.projects ul {
  padding-left: 18px;
  margin: 0;
}

.projects li {
  margin-bottom: 8px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: center;
}

.about-photo {
  margin: 0;
  text-align: right;
}

.about-photo img {
  width: 100%;
  max-width: 260px;
  height: auto;
  box-shadow: var(--shadow-soft);
}

.centered {
  text-align: center;
}

figure {
  margin: 18px auto;
  text-align: center;
}

figure img {
  max-width: 240px;
  border-radius: 0;
  box-shadow: none;
}

figcaption {
  margin-top: 8px;
  color: #677389;
}

.photo-legend {
  margin-top: 10px;
  text-align: center;
  color: #677389;
}

.blog-photos figure {
  margin: 0;
}

.blog-photos figure.rotate-right {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.blog-photos figure a {
  display: block;
}

.blog-photos figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.blog-photos .figure-fill {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-photos .figure-fill img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-photos figure.rotate-right img {
  transform: rotate(90deg);
  max-height: 420px;
  width: auto;
}

.cv-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.cv-header {
  padding: 0 0 10px;
  background: transparent;
  border-bottom: none;
  font-weight: 700;
  color: var(--text);
}

.cv-frame {
  width: 100%;
  height: 720px;
  border: none;
  display: block;
  object-fit: contain;
}

.cv-wrapper.cv-large .cv-frame {
  height: 114vh;
  max-height: 1690px;
}

.cv-wrapper.cv-poster .cv-frame {
  height: 792px;
}

.page-404 {
  max-width: 640px;
  margin: 0 auto;
}

.page-404 img {
  max-width: 280px;
  width: 100%;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}

footer {
  text-align: center;
  padding: 18px 0 26px;
  color: #6b7280;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-figure {
    order: -1;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    text-align: center;
  }

  .about-photo img {
    max-width: 220px;
  }

  nav {
    width: 100%;
  }

  nav a {
    padding: 9px 12px;
    width: fit-content;
  }
}


.inline-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47, 92, 143, 0.45);
  background: linear-gradient(transparent 60%, rgba(47, 92, 143, 0.12) 60%);
  padding: 0 2px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease, text-decoration-color 0.2s ease;
}

.inline-link:hover {
  color: var(--accent-strong);
  text-decoration-color: var(--accent-strong);
  background: rgba(47, 92, 143, 0.18);
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 21, 38, 0.82);
  z-index: 999;
}

.image-modal.is-open {
  display: flex;
}

.image-modal__content {
  position: relative;
  max-width: min(95vw, 1400px);
  max-height: calc(95vh - 32px);
  display: flex;
}

.image-modal__img {
  max-width: 95vw;
  max-height: calc(95vh - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: var(--shadow-strong);
  background: #0b1627;
}

.image-modal__img[data-zoom-size="reduced"] {
  max-width: 82vw;
  max-height: 82vh;
}

.image-modal__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, background 0.15s ease;
}

.image-modal__close:hover {
  background: #1f2a44;
  transform: translateY(-1px);
}

body.modal-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .blog-photos .map-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

