/* ==========================================================================
   portfolio.css — Portfolio-specific page layouts
   ========================================================================== */

/* ---------- Hero Section ---------- */
.hero {
  padding: var(--space-4xl) 0;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.hero-headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-accent);
  box-shadow: var(--shadow-glow);
  background-color: var(--bg-surface);
}

.hero-headshot-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  border: 3px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-size-3xl);
}

.hero-text h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: var(--font-size-lg);
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.hero-about {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: var(--font-size-3xl);
  }

  .hero-role {
    font-size: var(--font-size-base);
  }

  .hero-about {
    font-size: var(--font-size-base);
  }
}

/* ---------- Projects Section ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card .card-image,
.project-card .card-image-placeholder {
  height: 180px;
}

.project-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-tags {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.project-card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.project-card-oneliner {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-family: var(--font-mono);
}

.project-card-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.project-card-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: auto;
}

/* ---------- Tag Filters ---------- */
.tag-filters {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.tag-filter {
  padding: 0.35rem 0.9rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.tag-filter:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tag-filter.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* ---------- Speaking Section ---------- */
.speaking-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

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

.speaking-card .card {
  display: flex;
  gap: var(--space-xl);
  width: 100%;
  align-items: flex-start;
}

.speaking-image {
  width: 200px;
  min-width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
}

.speaking-image-placeholder {
  width: 200px;
  min-width: 200px;
  height: 140px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  border: 1px dashed var(--border-color);
}

.speaking-info {
  flex: 1;
}

.speaking-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-family: var(--font-mono);
}

.speaking-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.speaking-audience {
  font-size: var(--font-size-sm);
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.speaking-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

.speaking-links {
  display: flex;
  gap: var(--space-sm);
}

@media (max-width: 768px) {
  .speaking-card .card {
    flex-direction: column;
  }

  .speaking-image,
  .speaking-image-placeholder {
    width: 100%;
    min-width: unset;
    height: 180px;
  }
}

/* ---------- Contact Section ---------- */
.contact-links {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  min-width: 140px;
}

.contact-link:hover {
  border-color: var(--border-accent);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.contact-icon {
  font-size: var(--font-size-2xl);
}

.contact-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* ---------- Resume Page ---------- */
.resume-container {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.resume-updated {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-lg);
}

.resume-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.resume-embed {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #fff;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 50;
  font-size: 1.2rem;
}

.scroll-top:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.scroll-top.visible {
  display: flex;
}
