@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap');

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

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  background: #fff;
}

a { color: #111; text-decoration: none; }

/* ── Nav ── */
#site-nav {
  border-bottom: 1px solid #e0e0e0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-logo span { color: #7ed68a; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 14px;
  color: #555;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: #111; font-weight: 500; }

.nav-links .nav-icon {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  color: #555;
}

.nav-links .nav-icon:hover { color: #111; }

.nav-links .nav-icon svg { width: 16px; height: 16px; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 60px);
  max-height: 600px;
  display: flex;
  align-items: center;
  padding: 0 5rem;
  gap: 4rem;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.hero-left { flex: 1; }

.hero-left h1 {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-left h1 .yellow { color: #7ed68a; }
.hero-left h1 .blue { color: #003f6b; }

.hero-left p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-yellow {
  display: inline-block;
  background: #7ed68a;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-yellow:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(126,214,138,0.35);
}

.btn-blue {
  display: inline-block;
  background: #003f6b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
}

.btn-blue:hover { transform: translateY(-1px); }

.hero-link {
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  transition: border-color 0.15s;
}

.hero-link:hover { border-bottom-color: #111; }

.hero-right {
  flex-shrink: 0;
  width: 320px;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right canvas { display: block; }

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #bbb;
  font-size: 22px;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section + .section { border-top: 1px solid #e0e0e0; }

.section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7ed68a;
  margin-bottom: 0.5rem;
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
  color: #111;
}

.card:hover {
  border-color: #7ed68a;
  box-shadow: 0 4px 16px rgba(126,214,138,0.12);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: #7ed68a;
  display: inline-block;
}

.card-link:hover { text-decoration: underline; }

/* tag pills */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 0 4px 4px 0;
}

/* ── CV page ── */
.cv-block { margin-bottom: 3rem; }
.cv-block h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid #e0e0e0;
}

.timeline-item:last-child { border-bottom: 1px solid #e0e0e0; }

.timeline-date {
  font-size: 12px;
  color: #999;
  padding-top: 2px;
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.timeline-content .place {
  font-size: 13px;
  color: #555;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

/* skills section on CV */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  color: #333;
}

/* ── Projects page header ── */
.page-hero {
  border-bottom: 1px solid #e0e0e0;
  padding: 4rem 5rem 3rem;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* project cards with image area */
.project-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
  color: #111;
}

.project-card:hover {
  border-color: #7ed68a;
  box-shadow: 0 4px 16px rgba(126,214,138,0.12);
}

.project-card:hover .project-card-title { color: #7ed68a; }

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ddd;
}

.project-info { padding: 1.25rem; }

.project-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  transition: color 0.15s;
}

.project-card-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #e0e0e0;
  padding: 2rem;
  text-align: center;
  font-size: 13px;
  color: #888;
}

footer a { color: #888; border-bottom: 1px solid #ddd; }
footer a:hover { color: #111; border-color: #111; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 2rem 1.25rem;
    max-height: none;
    gap: 2rem;
  }
  .hero-right { width: 100%; height: 260px; }
  .page-hero { padding: 2.5rem 1.25rem 2rem; }
  .section { padding: 3rem 1.25rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .nav-links { gap: 1rem; }
}
