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

:root {
  --blue: #38bdf8;
  --blue-dark: #0ea5e9;
  --blue-light: #e0f6ff;
  --black: #0f172a;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  font-size: 15px;
}

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

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAV */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

nav::-webkit-scrollbar { display: none; }

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: max-content;
  width: 100%;
}

.nav-name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.nav-name span { color: var(--blue-dark); }

.nav-links { display: flex; gap: 1.8rem; list-style: none; white-space: nowrap; }
.nav-links a { font-size: 0.85rem; color: var(--gray); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--blue-dark); }

/* HERO */
.hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--border); }

.hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero-text { flex: 1; }

.hero-greeting {
  font-size: 0.85rem;
  color: var(--blue-dark);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-greeting::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero-moniker { font-size: 1rem; color: var(--blue-dark); font-weight: 500; margin-bottom: 1.2rem; }

.hero-bio { font-size: 0.95rem; color: var(--gray); line-height: 1.75; max-width: 480px; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.25rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; transition: all 0.15s;
  cursor: pointer; border: none; font-family: inherit;
}

.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: var(--blue-dark); }

.btn-ghost { background: transparent; color: var(--black); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue-dark); color: var(--blue-dark); }

/* PROFILE PHOTO */
.hero-photo-wrap {
  flex-shrink: 0;
  position: relative;
  width: 200px;
  height: 200px;
}

/* spinning dashed ring */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--blue);
  animation: spin 12s linear infinite;
}

/* solid accent ring */
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--blue-dark);
  border-bottom-color: var(--blue-dark);
  animation: spin 6s linear infinite reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-dark), 0 8px 32px rgba(14,165,233,0.2);
  position: relative;
  z-index: 1;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.photo-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  letter-spacing: 0.04em;
  z-index: 2;
  border: 2px solid var(--white);
  white-space: nowrap;
}

.status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: #16a34a; background: #f0fdf4;
  border: 1px solid #bbf7d0; padding: 0.25rem 0.7rem;
  border-radius: 99px; margin-top: 1rem; font-weight: 500;
}

.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a; animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* SECTIONS */
.section { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }

.section-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 1.5rem;
}

/* ABOUT */
.about-text { font-size: 0.95rem; color: var(--gray); line-height: 1.8; }
.about-text p { margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--black); font-weight: 600; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-top: 2rem;
}

.stat { background: var(--white); padding: 1.2rem 1rem; text-align: center; }
.stat-n { font-size: 1.6rem; font-weight: 700; color: var(--black); line-height: 1; margin-bottom: 0.3rem; }
.stat-n span { color: var(--blue-dark); }
.stat-l { font-size: 0.72rem; color: var(--gray); font-weight: 500; line-height: 1.3; }

/* EXPERIENCE */
.exp-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 1.5rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; }
.exp-period { font-size: 0.78rem; color: var(--gray); padding-top: 2px; line-height: 1.4; }
.exp-role { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.exp-org { font-size: 0.82rem; color: var(--blue-dark); font-weight: 500; margin-bottom: 0.6rem; }
.exp-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }
.exp-desc li { list-style: none; padding-left: 1rem; position: relative; margin-bottom: 0.25rem; }
.exp-desc li::before { content: '·'; position: absolute; left: 0; color: var(--blue-dark); font-weight: 700; }

/* SKILLS */
.skills-groups { display: flex; flex-direction: column; gap: 1.25rem; }

.skill-row { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: start; }
.skill-row-label { font-size: 0.78rem; color: var(--gray); font-weight: 500; padding-top: 4px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  font-size: 0.78rem; font-weight: 500;
  padding: 0.25rem 0.65rem; border-radius: 5px;
  background: var(--gray-light); color: var(--black);
  border: 1px solid var(--border);
}

.chip-blue { background: var(--blue-light); color: var(--blue-dark); border-color: #bae6fd; }

/* EDUCATION */
.edu-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 1.5rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:last-child { border-bottom: none; }
.edu-year { font-size: 0.78rem; color: var(--gray); padding-top: 2px; }
.edu-degree { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.edu-school { font-size: 0.82rem; color: var(--blue-dark); font-weight: 500; margin-bottom: 0.5rem; }
.edu-note { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* CONTACT */
.contact-copy {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 440px;
  line-height: 1.75;
}

.contact-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.contact-row:first-child { border-top: 1px solid var(--border); }
.contact-row:hover { color: var(--blue-dark); }
.contact-row-left { display: flex; align-items: center; gap: 1rem; }
.contact-type { font-size: 0.75rem; color: var(--gray); font-weight: 500; width: 60px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-val { font-size: 0.92rem; font-weight: 500; }
.contact-arrow { font-size: 0.9rem; color: var(--gray); }
.contact-row:hover .contact-arrow { color: var(--blue-dark); }
.contact-row-static { cursor: default; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2rem 0; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-name { font-size: 0.82rem; font-weight: 600; }
.footer-copy { font-size: 0.78rem; color: var(--gray); }

@media (max-width: 640px) {
  .hero-inner { flex-direction: column-reverse; align-items: center; }
  .hero-photo-wrap { width: 150px; height: 150px; }
  .hero-photo { width: 150px; height: 150px; }
  .hero h1 { font-size: 1.8rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .exp-item, .edu-item, .skill-row { grid-template-columns: 1fr; gap: 0.4rem; }
}
