:root {
  --bg: #f7fbfc;
  --surface: #ffffff;
  --surface-2: #eef8fa;
  --text: #17242a;
  --muted: #617078;
  --accent: #11a6bb;
  --accent-2: #087b8a;
  --dark: #0b1f25;
  --line: #dce9ec;
  --shadow: 0 18px 45px rgba(8, 57, 66, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.alt { background: var(--surface-2); }
.dark { background: var(--dark); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(247, 251, 252, .86);
  border-bottom: 1px solid rgba(220,233,236,.8);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { font-size: 1.2rem; font-weight: 900; letter-spacing: .08em; }
.brand span { color: var(--accent); margin-left: 4px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-size: .95rem; color: #405158; font-weight: 650; }
.nav a:hover { color: var(--accent-2); }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }

.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 900; margin: 0 0 14px; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.3rem); line-height: .95; letter-spacing: -.055em; margin: 0 0 24px; }
.hero h1 span { color: var(--accent); }
.hero h2 { font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.3; font-weight: 700; max-width: 780px; margin: 0 0 18px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; font-weight: 800; transition: .25s ease; }
.btn.primary { background: var(--accent); color: white; box-shadow: 0 10px 25px rgba(17,166,187,.25); }
.btn.primary:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn.ghost { border: 1px solid var(--line); background: #fff; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.quick-info { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .95rem; }

.hero-visual { position: relative; }
.portrait-card { position: relative; min-height: 520px; display: grid; place-items: center; }
.portrait-card::before {
  content: ""; position: absolute; width: 410px; height: 410px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #65d3df, var(--accent) 60%, var(--accent-2));
  filter: drop-shadow(0 30px 45px rgba(4,75,85,.2));
}
.portrait-card::after {
  content: ""; position: absolute; inset: 40px 10px 20px 60px; border: 1px solid rgba(17,166,187,.23); border-radius: 44% 56% 60% 40% / 46% 36% 64% 54%; transform: rotate(-10deg);
}
.portrait-ring { position: relative; z-index: 2; width: 345px; height: 345px; border-radius: 50%; overflow: hidden; border: 12px solid white; box-shadow: var(--shadow); background: white; }
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; }
.experience-badge { position: absolute; z-index: 3; right: 0; bottom: 60px; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; width: 190px; box-shadow: var(--shadow); }
.experience-badge strong { display: block; font-size: 2.2rem; color: var(--accent-2); line-height: 1; }
.experience-badge span { color: var(--muted); font-size: .82rem; font-weight: 700; }

.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.section-heading h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.04em; margin: 0; }
.section-heading.center { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-subtitle { color: var(--muted); margin-top: 14px; }
.about-copy { font-size: 1.08rem; color: #405158; }
.mini-stats { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-stats div { background: white; border: 1px solid var(--line); padding: 20px; border-radius: 18px; }
.mini-stats strong { display: block; color: var(--accent-2); font-size: 1.15rem; }
.mini-stats span { color: var(--muted); font-size: .82rem; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); color: var(--accent-2); font-size: 1.35rem; margin-bottom: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }

.dark .eyebrow { color: #66d9e7; }
.dark .section-heading { margin-bottom: 46px; }
.timeline { position: relative; margin-left: 14px; }
.timeline::before { content:""; position:absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: #21424a; }
.timeline-item { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding-left: 38px; margin-bottom: 28px; }
.timeline-dot { position: absolute; left: 0; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: #66d9e7; box-shadow: 0 0 0 6px rgba(102,217,231,.12); }
.timeline-meta { color: #8eb4bd; font-weight: 800; padding-top: 4px; }
.timeline-card { background: #102a31; border: 1px solid #21424a; border-radius: 22px; padding: 26px; }
.timeline-card h3 { margin: 0; font-size: 1.35rem; }
.company { color: #66d9e7; font-weight: 800; margin: 4px 0 12px; }
.timeline-card p:last-child { color: #c1d0d4; margin-bottom: 0; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { background: linear-gradient(180deg, #ffffff 0%, #f7fcfd 100%); border: 1px solid var(--line); border-radius: 28px; padding: 32px; min-height: 260px; }
.work-card span { font-size: 3.8rem; font-weight: 900; color: #d8f1f4; line-height: 1; }
.work-card h3 { margin: 24px 0 10px; font-size: 1.4rem; }
.work-card p { color: var(--muted); }

.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.edu-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.year { display: inline-block; padding: 5px 10px; background: var(--surface-2); color: var(--accent-2); font-weight: 900; border-radius: 999px; font-size: .8rem; }
.edu-card h3 { font-size: 1.08rem; margin: 18px 0 8px; }
.edu-card p { margin: 0 0 8px; font-weight: 750; }
.edu-card small { color: var(--muted); }

.contact-section { background: linear-gradient(135deg, #f7fbfc 0%, #eaf8fa 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact-card { background: white; border: 1px solid var(--line); border-radius: 28px; padding: 12px; box-shadow: var(--shadow); }
.contact-card a, .contact-row { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; }
.contact-card a:hover { background: var(--surface-2); }
.contact-card > * + * { border-top: 1px solid var(--line); }
.contact-card span { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-2); border-radius: 14px; color: var(--accent-2); }
.contact-card small { display: block; color: var(--muted); }
.contact-card strong { font-size: .98rem; }

footer { background: #07171c; color: #a9bdc3; padding: 24px 0; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-wrap p { margin: 0; }
.footer-wrap a { color: #d9edf1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav { position: absolute; top: 72px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); padding: 16px; border-radius: 18px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .hero { min-height: auto; }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-top: 38px; }
  .hero-visual { order: -1; }
  .portrait-card { min-height: 390px; }
  .portrait-card::before { width: 310px; height: 310px; }
  .portrait-ring { width: 270px; height: 270px; }
  .experience-badge { right: 5%; bottom: 20px; }
  .skills-grid, .work-grid, .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-stats { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 72px 0; }
  .hero h1 { font-size: 3.35rem; }
  .skills-grid, .work-grid, .edu-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-meta { padding-top: 0; }
  .quick-info { flex-direction: column; gap: 8px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .experience-badge { right: 0; width: 165px; }
}
