/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f9f8f7;
  --card: #ffffff;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --text: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --border: #e8e4de;
  --green-bg: #ecfdf5;
  --green-text: #065f46;
  --max-w: 960px;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(249, 248, 247, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-name {
  font-size: 17px; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 450; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

/* ===== SECTIONS ===== */
.section {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}

/* ===== HERO ===== */
.hero {
  padding-top: 120px; padding-bottom: 80px;
  display: grid; grid-template-columns: 1fr 340px; gap: 48px;
  align-items: center;
}
.hero-kicker {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.hero h1 {
  font-size: 44px; font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 16px; color: var(--text);
}
.hero-sub {
  font-size: 17px; color: var(--text-secondary); line-height: 1.6;
  max-width: 480px; margin-bottom: 24px;
}
.hero-pills {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
}
.pill {
  font-size: 13px; font-weight: 500; padding: 6px 14px;
  border-radius: 100px; background: var(--card);
  border: 1px solid var(--border); color: var(--text-secondary);
  white-space: nowrap;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500; transition: background 0.2s;
  border: none; cursor: pointer;
}
.hero-cta:hover { background: #4338ca; text-decoration: none; color: #fff; }
.hero-photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}

/* ===== SECTION HEADINGS ===== */
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.section-title {
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 36px; color: var(--text);
}

/* ===== PROJECTS ===== */
.projects-section { padding-top: 64px; padding-bottom: 80px; }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}
.project-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.project-card h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 10px; line-height: 1.3;
}
.project-card p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 16px; flex: 1;
}
.project-tech {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.tech-tag {
  font-size: 11px; font-weight: 500; padding: 3px 10px;
  border-radius: 100px; background: var(--accent-light);
  color: var(--accent);
}
.project-link {
  font-size: 13px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto;
}
.project-link:hover { text-decoration: underline; }
.project-link .arrow { transition: transform 0.2s; }
.project-link:hover .arrow { transform: translateX(3px); }

/* ===== ABOUT ===== */
.about-section { padding-top: 64px; padding-bottom: 80px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  align-items: start;
}
.about-prose { font-size: 16px; line-height: 1.75; color: var(--text-secondary); }
.about-prose p { margin-bottom: 16px; }
.about-prose strong { color: var(--text); font-weight: 500; }

.fact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; position: sticky; top: 88px;
}
.fact-card h4 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}
.fact-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.fact-row:last-child { border-bottom: none; }
.fact-label { color: var(--text-muted); font-weight: 450; }
.fact-value { color: var(--text); font-weight: 500; text-align: right; }
.fact-visa {
  margin-top: 16px; padding: 10px 14px;
  background: var(--green-bg); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--green-text); font-weight: 500;
  line-height: 1.5;
}

/* ===== CONTACT ===== */
.contact-section {
  padding-top: 64px; padding-bottom: 100px;
  text-align: center;
}
.contact-section .section-title { margin-bottom: 16px; }
.contact-sub {
  font-size: 16px; color: var(--text-secondary);
  max-width: 480px; margin: 0 auto 32px;
}
.contact-links {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; transition: all 0.2s;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text);
}
.contact-btn:hover {
  border-color: var(--accent); color: var(--accent);
  text-decoration: none;
}
.contact-btn.primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.contact-btn.primary:hover { background: #4338ca; color: #fff; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px; text-align: center;
  font-size: 13px; color: var(--text-muted);
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 100px; padding-bottom: 48px; }
  .hero-photo {
    width: 160px; height: 160px; aspect-ratio: 1;
    border-radius: 50%; margin: 0 auto;
    order: -1;
  }
  .hero-text { text-align: center; }
  .hero h1 { font-size: 34px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-pills { justify-content: center; }
  .hero-cta { margin: 0 auto; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .fact-card { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .section { padding-left: 16px; padding-right: 16px; }

  .nav-inner { padding: 0 16px; height: 56px; }
  .nav-name { font-size: 15px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }

  .hero { padding-top: 88px; padding-bottom: 40px; gap: 24px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-photo { width: 130px; height: 130px; }
  .hero-pills { gap: 8px; }
  .pill { font-size: 12px; padding: 5px 12px; }
  .hero-cta { width: 100%; justify-content: center; padding: 14px 24px; }

  .section-title { font-size: 24px; margin-bottom: 24px; }
  .projects-section { padding-top: 48px; padding-bottom: 48px; }
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-card { padding: 22px 20px; }
  .project-card h3 { font-size: 17px; }
  .project-card p { font-size: 13px; }

  .about-section { padding-top: 48px; padding-bottom: 48px; }
  .about-prose { font-size: 15px; }
  .fact-card { padding: 20px; }
  .fact-row { font-size: 13px; flex-wrap: wrap; gap: 4px; }
  .fact-value { text-align: left; }
  .fact-visa { font-size: 12px; }

  .contact-section { padding-top: 48px; padding-bottom: 64px; }
  .contact-sub { font-size: 15px; }
  .contact-links { flex-direction: column; align-items: center; gap: 12px; }
  .contact-btn { width: 100%; max-width: 280px; justify-content: center; }
}
