﻿/* Minimal premium palette with dark mode support */
:root {
  color-scheme: dark;
  --bg: #070d18;
  --surface: #111827;
  --surface-soft: #171f34;
  --text: #eef2ff;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --accent: #60a5fa;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  --radius: 32px;
  --max-width: 1180px;
  --transition: 180ms ease;
  --readable-font: 'Lexend', Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f6f9ff;
  --text: #0f172a;
  --muted: #52606d;
  --border: rgba(79, 93, 114, 0.12);
  --accent: #2563eb;
  --shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
}

html {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  background: var(--bg);
}

html.readable-mode {
  font-family: var(--readable-font);
  font-size: 1.02rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 24px 56px;
}

.site-header {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  position: sticky;
  top: 16px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

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

.logo {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.eyebrow,
.section-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

.logo {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
}

.theme-toggle,
.nav-toggle,
.button,
.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.theme-toggle:hover,
.nav-toggle:hover,
.button:hover,
.control-button:hover,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.button:focus-visible,
.control-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.button-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.75);
}

.hero,
.section,
.contact-panel {
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  padding: 36px;
  margin-top: 40px;
}

.hero {
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1.2fr minmax(280px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.hero-text,
.section p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-panel {
  display: grid;
  place-items: center;
}

.profile-card {
  width: min(100%, 380px);
  padding: 24px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 60px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .profile-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
}

.profile-image-frame {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #111827;
}

.profile-image-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.profile-details {
  margin-top: 22px;
}

.profile-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.profile-subtitle {
  margin: 0;
  color: var(--muted);
}

.profile-meta {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.section-header {
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 10px 0 0;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card-soft {
  padding: 24px;
  border-radius: 26px;
  background: var(--surface-soft);
}

html[data-theme="dark"] .card-soft {
  background: rgba(255, 255, 255, 0.04);
}

.list-simple {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.list-simple li::before {
  content: '';
  color: var(--accent);
  display: inline-block;
  width: 1rem;
}

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

.timeline-item {
  padding: 22px;
  border-radius: 26px;
  background: var(--surface-soft);
}

.timeline-meta,
.timeline-date {
  margin: 0;
  font-weight: 600;
}

.timeline-date {
  color: var(--accent);
  margin-top: 6px;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.pill-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  z-index: 30;
  transition: left var(--transition);
}

.skip-link:focus-visible {
  left: 16px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-icon {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: currentColor;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.control-button {
  min-width: 88px;
  padding: 10px 14px;
  font-size: 0.95rem;
}

.theme-toggle.control-button {
  min-width: 100px;
}

.nav-toggle {
  min-width: 92px;
  padding: 10px 14px;
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 18px;
  }

  .header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .header-controls,
  .nav-toggle {
    width: 100%;
  }

  .header-controls {
    justify-content: space-between;
  }
}

.control-button[aria-pressed="true"] {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  min-width: 120px;
}

@media (max-width: 900px) {
  .site-header {
    padding: 18px 18px;
  }

  .header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .header-controls,
  .header-actions {
    justify-content: stretch;
  }

  .header-actions {
    justify-content: space-between;
  }
}

.privacy-banner {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(20px);
}

.privacy-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.privacy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.85);
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  width: min(620px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.75rem;
  cursor: pointer;
}

.modal-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.85;
}

html.readable-mode .hero-copy h1,
html.readable-mode .section-header h2,
html.readable-mode .hero-text,
html.readable-mode .section p,
html.readable-mode .timeline-item p,
html.readable-mode .profile-details,
html.readable-mode .list-simple li,
html.readable-mode .theme-toggle,
html.readable-mode .button,
html.readable-mode .control-button {
  line-height: 1.95;
}

html.readable-mode .theme-toggle,
html.readable-mode .button,
html.readable-mode .control-button {
  padding: 16px 22px;
}

html.readable-mode .hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

@media (max-width: 960px) {
  .hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: sticky;
    top: 0;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding: 20px 18px 48px;
  }

  .site-header {
    padding: 16px 18px;
  }

  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: rgba(15, 23, 42, 0.96);
    transform: translateY(-110%);
    transition: transform 240ms ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
  }

  .primary-nav.open {
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 14px 0;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .theme-toggle {
    order: 3;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .hero {
    padding-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .section,
  .hero,
  .contact-panel {
    padding: 28px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .header-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .language-switcher {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}
