/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 5rem 0 3rem;
}

.hero-text { flex: 1; }

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #0d1117;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-dim); opacity: 1; }

/* Profile photo */
.hero-photo {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.hero-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.photo-placeholder {
  display: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-photo img[style*="display:none"] + .photo-placeholder,
.hero-photo img:not([src]) + .photo-placeholder {
  display: flex;
}

/* Bio */
.bio-card { border-left: 3px solid var(--accent); }
.bio-text  { color: var(--text-muted); line-height: 1.8; margin-top: 0.5rem; }

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skills-grid .card h3 { margin-bottom: 0.25rem; }

/* Links grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}

.link-card p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.1rem; }

.link-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.link-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  .hero { flex-direction: column-reverse; align-items: flex-start; padding-top: 3rem; }
  .hero-photo { width: 100px; height: 100px; }
  .hero-photo img, .photo-placeholder { width: 100px; height: 100px; }
}
