*, *::before, *::after { box-sizing: border-box; }

:root {
  --accent:     #4ea1ff;
  --border:     #2a2a2d;
  --text-base:  #e6e6e6;
  --text-muted: #a1a1aa;
  --text-body:  #d4d4d8;
  --bg:         #0f0f10;
  --radius:     4px;
  --max-width:  1050px;
  --timeline-x: 200px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-base);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto 90px;
  padding: 0 16px;
}

.header {
  border-bottom: 1px solid var(--border);
  padding: 40px 0 30px;
  margin-bottom: 25px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

h1 { font-size: 28px; font-weight: 600; margin: 0 0 6px; }

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.social-links { display: flex; gap: 14px; }
.social-links a { font-size: 20px; color: var(--accent); }
.social-links a:hover { opacity: 0.8; text-decoration: none; }

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 42px 0 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

#about,
.project-item p,
.exp-content li { color: var(--text-body); }

.experience-section {
  position: relative;
}
.experience-section::before {
  content: "";
  position: absolute;
  left: var(--timeline-x);
  top: 75px;
  bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}

.exp-row {
  display: grid;
  grid-template-columns: 180px 40px 1fr;
  align-items: flex-start;
  margin-bottom: 40px;
}

.exp-date {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  padding-right: 20px;
  margin-top: 2px;
  white-space: nowrap;
}

.exp-divider { display: flex; justify-content: center; padding-top: 6px; }

.exp-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.exp-content h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.3; }
.exp-content h4 { font-size: 14px; color: var(--text-muted); font-weight: 400; margin: 0 0 8px; }
.exp-content ul { margin: 6px 0 0 18px; padding: 0; }
.exp-content li { margin-bottom: 6px; }

.project-item { margin-bottom: 24px; }
.project-item h3 { font-size: 16px; margin: 0 0 6px; }
.project-item p  { font-size: 15px; margin: 0 0 10px; }

.edu-item { margin-bottom: 12px; }
.edu-item h3 { font-size: 16px; margin: 0 0 4px; }
.edu-institution { font-size: 15px; color: var(--text-body); margin: 0 0 2px; }
.edu-meta { font-size: 13px; color: var(--text-muted); margin: 0; }

@media (max-width: 768px) {
  .header-inner { flex-direction: column; text-align: center; }
  .social-links { justify-content: center; }
  .profile-img  { width: 100px; height: 100px; }
  .container    { padding: 0 14px; }
  .experience-section::before,
  .exp-divider  { display: none; }
  .exp-row { grid-template-columns: 1fr; gap: 2px; }
  .exp-date { text-align: left; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
