﻿:root {
  --paper: #ffffff;
  --mist: #f2f4f7;
  --ink: #05070b;
  --ink-soft: #10151e;
  --muted: #68717d;
  --line: #d9dee7;
  --blue: #1f5eea;
  --blue-dark: #10235f;
  --cyan: #25c9df;
  --ice: #dff8fc;
  --shadow: 0 24px 70px rgba(10, 18, 38, .14);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(31,94,234,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,94,234,.035) 1px, transparent 1px),
    var(--mist);
  background-size: 42px 42px;
  font-family: Doran, Tahoma, Arial, sans-serif;
  line-height: 1.85;
}
body[dir="ltr"] { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

@font-face { font-family: Doran; src: url("fonts/Doran-Thin.ttf") format("truetype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: Doran; src: url("fonts/Doran-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: Doran; src: url("fonts/Doran-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Doran; src: url("fonts/Doran-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Doran; src: url("fonts/Doran-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Doran; src: url("fonts/Doran-ExtraBold.ttf") format("truetype"); font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTcviYwY.woff2") format("woff2"); font-display: swap; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20; padding: 8px 14px; background: var(--blue); color: #fff; }
.skip-link:focus { top: 0; }

.nav { position: sticky; top: 0; z-index: 10; color: #fff; background: rgba(5,7,11,.9); border-bottom: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(18px); }
.nav-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: linear-gradient(140deg, var(--blue), var(--cyan)); border-radius: 50%; font-weight: 900; box-shadow: 0 0 0 5px rgba(37,201,223,.14); }
.nav-links { display: flex; align-items: center; gap: 24px; color: #b8c1cf; font-size: .9rem; }
.nav-links a:hover, .nav-links a:focus { color: var(--cyan); }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .78rem; }
.lang-switch a { padding: 4px 10px; color: #b8c1cf; border-radius: 999px; }
.lang-switch a.active { color: var(--ink); background: #fff; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 98px 0 86px; color: #fff; background: var(--ink); }
.hero::before { content: ""; position: absolute; z-index: -1; width: min(62vw, 760px); aspect-ratio: 1; inset-inline-end: -20%; top: -48%; border-radius: 50%; background: radial-gradient(circle at 35% 55%, rgba(37,201,223,.95) 0 8%, rgba(31,94,234,.9) 30%, rgba(16,35,95,.35) 58%, transparent 72%); filter: blur(1px); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 160px; inset-inline-start: -160px; bottom: -65px; border: 1px solid rgba(37,201,223,.35); border-radius: 50%; transform: rotate(-18deg); box-shadow: 0 0 0 24px rgba(37,201,223,.04), 0 0 0 48px rgba(37,201,223,.025); }
.hero-grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); font-weight: 800; letter-spacing: .08em; font-size: .74rem; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin: 18px 0 24px; font-size: clamp(1.4rem, 6.2vw, 4.1rem); line-height: 1.02; letter-spacing: -.075em; font-weight: 800; }
.hero-lede { max-width: 760px; margin-bottom: 0; color: #bdc8d8; font-size: clamp(1rem, 1.45vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid currentColor; border-radius: 4px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.button.primary:hover, .button.primary:focus { background: #2e70ff; }
.button.secondary { color: #fff; border-color: rgba(255,255,255,.34); background: transparent; }
.button.secondary:hover, .button.secondary:focus { border-color: var(--cyan); color: var(--cyan); }

.hero-card { position: relative; min-height: 340px; padding: 28px; overflow: hidden; color: #fff; background: linear-gradient(145deg, #0d1220, #020305); border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; width: 290px; height: 150px; inset-inline-end: -105px; top: 42px; border: 2px solid rgba(37,201,223,.8); border-radius: 50%; transform: rotate(-22deg); box-shadow: 0 0 0 15px rgba(31,94,234,.16), 0 0 0 30px rgba(37,201,223,.09); }
.hero-card::after { content: ""; position: absolute; width: 20px; height: 20px; inset-inline-end: 80px; top: 95px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 30px 8px rgba(37,201,223,.7); }
.card-kicker, .card-title, .card-meta { position: relative; z-index: 1; }
.card-kicker { color: var(--cyan); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.card-title { max-width: 275px; margin: 110px 0 12px; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.065em; }
.card-meta { color: #c5cfdd; font-size: .9rem; }

.section { padding: 78px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-kicker { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section h2 { margin: 7px 0 0; font-size: clamp(1.9rem, 3vw, 3.7rem); line-height: 1.06; letter-spacing: -.07em; font-weight: 800; }
.section-intro { max-width: 600px; margin-bottom: 0; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.panel { padding: 30px; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(15,29,50,.035); }
.panel p:last-child { margin-bottom: 0; }
.quote { position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, var(--blue-dark), #07102f); border-color: rgba(31,94,234,.5); }
.quote::before, .quote::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.quote::before { width: 250px; height: 250px; inset-inline-end: -80px; top: -90px; border: 1px solid rgba(37,201,223,.65); box-shadow: 0 0 0 18px rgba(37,201,223,.08), 0 0 0 36px rgba(37,201,223,.045); }
.quote::after { width: 18px; height: 18px; inset-inline-end: 94px; top: 66px; background: var(--cyan); box-shadow: 0 0 28px 8px rgba(37,201,223,.55); }
.quote p { position: relative; z-index: 1; max-width: 470px; margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.75; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.stat { padding: 16px; background: var(--mist); border-inline-start: 3px solid var(--blue); }
.stat strong { display: block; color: var(--blue); font-size: 1.9rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .8rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.experience-card, .project-card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 24px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.experience-card::before, .project-card::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; width: 4px; background: linear-gradient(var(--blue), var(--cyan)); }
.experience-card .date, .project-card .date { color: var(--blue); font-size: .75rem; font-weight: 800; }
.experience-card h3, .project-card h3 { margin: 10px 0 8px; font-size: 1.18rem; line-height: 1.28; }
.experience-card .org { color: var(--blue-dark); font-weight: 800; }
.experience-card p, .project-card p { color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 12px; }
.tag { display: inline-flex; padding: 4px 9px; color: var(--blue-dark); background: var(--ice); border: 1px solid rgba(37,201,223,.45); border-radius: 999px; font-size: .7rem; font-weight: 800; }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.skill { padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 3px; font-size: .88rem; }
.skill small { display: block; margin-top: 2px; color: var(--muted); font-size: .7rem; }
.timeline { position: relative; display: grid; gap: 24px; }
.timeline::before { content: ""; position: absolute; inset-block: 8px 8px; inset-inline-start: 8px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-inline-start: 32px; }
.timeline-item::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; width: 17px; height: 17px; border: 4px solid var(--paper); background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 1px var(--blue); }
.timeline-item h3 { margin-bottom: 3px; font-size: 1.08rem; }
.timeline-item .meta { color: var(--blue-dark); font-size: .84rem; font-weight: 800; }
.timeline-item p { color: var(--muted); margin-bottom: 0; font-size: .88rem; }

.contact { padding-bottom: 92px; }
.contact-box { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; overflow: hidden; padding: 36px; color: #fff; background: var(--ink); border: 1px solid rgba(37,201,223,.35); box-shadow: var(--shadow); }
.contact-box::after { content: ""; position: absolute; width: 360px; height: 180px; inset-inline-end: -130px; bottom: -95px; border: 1px solid rgba(37,201,223,.5); border-radius: 50%; box-shadow: 0 0 0 20px rgba(31,94,234,.12); }
.contact-box > * { position: relative; z-index: 1; }
.contact-box .section-kicker { color: var(--cyan) !important; }
.contact-box h2 { max-width: 680px; }
.contact-box p { max-width: 600px; margin-bottom: 0; color: #c2ccda; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-link { color: var(--cyan); font-size: .9rem; }
footer { padding: 24px 0 36px; color: var(--muted); border-top: 1px solid var(--line); font-size: .82rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

@media (max-width: 840px) {
  .hero-grid, .about-grid, .skills-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 62px; }
  .hero-card { min-height: 280px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-inner { min-height: 66px; }
  .brand span:last-child { display: none; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.25rem); }
  .section { padding: 54px 0; }
  .section-head { display: block; }
  .section-intro { margin-top: 12px; }
  .cards, .stats { grid-template-columns: 1fr; }
  .panel, .contact-box { padding: 23px; }
  .contact-box { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
}
