:root {
  --bg: #0b0f19;
  --bg-alt: #0f1526;
  --surface: #131a2b;
  --surface-2: #1a2338;
  --border: #232d45;
  --text: #eef1f8;
  --text-dim: #9aa4bf;
  --accent: #5b8cff;
  --accent-2: #7c5cff;
  --radius: 14px;
  --max-width: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
}
.nav__brand span { color: var(--accent); }

.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--text); }

.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--accent-2); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* HERO */
.hero {
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow, .section__eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero__text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.accent { color: var(--accent); }

.hero__sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero__availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.hero__actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 16px 36px; font-size: 1rem; }

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.6rem; color: var(--text); }
.hero__stats span { color: var(--text-dim); font-size: 0.85rem; }

.hero__visual { position: relative; height: 400px; }

.hero__blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--accent), transparent 60%);
  filter: blur(60px);
  opacity: 0.35;
}

.hero__card {
  position: relative;
  top: 40%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.hero__card-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
}
.hero__card-row:last-child { border-bottom: none; }
.hero__card-row span:first-child { color: var(--text); }

/* SECTIONS */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }

.center { text-align: center; }
.section h2.center, .section__eyebrow.center { margin-left: auto; margin-right: auto; }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 40px;
}

/* ABOUT */
.about__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.about__photo-frame {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
  overflow: hidden;
}
.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content p { color: var(--text-dim); margin-bottom: 18px; }
.about__content strong { color: var(--text); }

.about__cv-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.about__cv-link:hover { color: var(--accent-2); }

.about__langs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.about__langs div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  min-width: 90px;
}
.about__langs span { font-weight: 600; font-size: 0.9rem; }
.about__langs em { color: var(--text-dim); font-style: normal; font-size: 0.8rem; }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ENGAGEMENT */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}

.engagement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
.engagement-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.engagement-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 14px; }
.engagement-card__for { font-size: 0.85rem; font-style: italic; margin-bottom: 0; }

.engagement-card--featured { border-color: var(--accent); }
.engagement-card--featured h3 { color: var(--accent); }

.engagement-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}
.engagement-card__meta span:first-child { color: var(--text-dim); }
.engagement-card__meta span:last-child { color: var(--text); font-weight: 600; text-align: right; }
.engagement-card__meta:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 14px; }

/* CASE STUDIES */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.case-study-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.case-study-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.case-study-card h3 { font-size: 1.1rem; }
.case-study-card__meta { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

.case-study-card__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.case-study-card__row span:first-child { color: var(--text-dim); }
.case-study-card__row span:last-child { color: var(--text); font-weight: 600; text-align: right; }

.case-study-card__block h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.case-study-card__block p { font-size: 0.95rem; }

.case-study-card__result {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.skill-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.skill-card p { color: var(--text-dim); font-size: 0.95rem; }

.skill-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(91,140,255,0.12), var(--surface) 60%);
}
.skill-card--featured h3 { color: var(--accent); }

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline__date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.timeline__body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline__meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 12px; }
.timeline__body ul { display: flex; flex-direction: column; gap: 8px; }
.timeline__body li {
  position: relative;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.timeline__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
}
.timeline__highlight { color: var(--text); }
.timeline__highlight::before { background: var(--accent); }

/* EDUCATION */
.edu__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.edu-list, .cert-list { margin-top: 8px; }
.edu-list li, .cert-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.edu-list li:last-child, .cert-list li:last-child { border-bottom: none; }
.edu-list span, .cert-list span { color: var(--text-dim); font-size: 0.85rem; }

.pub-note { margin-top: 20px; color: var(--text-dim); font-size: 0.9rem; }
.pub-note strong { color: var(--text); }

/* CONTACT */
.contact__sub {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 40px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.contact-card__label {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-card__value {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 280px; order: -1; }
  .about__inner { grid-template-columns: 1fr; }
  .about__photo-frame { max-width: 220px; }
  .skills-grid, .services-grid, .case-study-grid, .engagement-grid { grid-template-columns: repeat(2, 1fr); }
  .edu__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .skills-grid, .services-grid, .case-study-grid, .engagement-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
}
