/* ─── Hero ─── */
.hero {
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.hero__content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
}

.hero__text {
  flex: 1;
}

.hero__title {
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.hero__wave {
  display: inline-block;
  animation: wiggle 1.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

.hero__bio {
  font-size: var(--text-base);
  margin-bottom: var(--space-xl);
}

.hero__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.hero__substack-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ─── Profile Image ─── */
.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent-soft);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  cursor: pointer;
}

.profile-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: var(--shadow-glow);
}

/* ─── Substack Link ─── */
.substack-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.substack-link:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

.substack-link svg {
  width: 16px;
  height: 16px;
}

/* ─── Section Headers ─── */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.section-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--color-card-border), transparent);
}

/* ─── Project Cards ─── */
.projects-grid {
  display: grid;
  gap: var(--space-xl);
}

.project-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-card-border);
}

.project-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--color-text-muted);
  background: linear-gradient(135deg, var(--color-bg-subtle), var(--color-teal-soft));
}

.project-card__body {
  padding: var(--space-lg);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.project-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.project-card__links {
  display: flex;
  gap: var(--space-md);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-teal);
  transition: color var(--transition-fast);
}

.project-card__link:hover {
  color: var(--color-accent);
}

.project-card__link svg {
  width: 16px;
  height: 16px;
}

/* ─── Buy Me a Coffee ─── */
.coffee-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 100;
}

.coffee-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-warm-yellow);
  color: var(--color-text);
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.coffee-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.coffee-btn svg {
  width: 20px;
  height: 20px;
}

/* ─── Footer ─── */
.footer {
  padding: var(--space-2xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-card-border);
}

.footer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--color-accent);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .hero__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__title {
    font-size: var(--text-2xl);
  }

  .hero__links {
    align-items: center;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .coffee-btn span {
    display: none;
  }

  .coffee-float {
    bottom: var(--space-md);
    right: var(--space-md);
  }
}
