/* ============================================================
   Portfolio – Custom Styles
   Extends Beautiful Jekyll without overriding core theme CSS
   ============================================================ */

/* ─── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── Hero Intro ─────────────────────────────────────────── */

.hero-intro {
  margin: 2rem 0 2.5rem 0;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 60%, #f5f0ff 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 80, 215, 0.1);
  box-shadow: 0 2px 24px rgba(0, 80, 215, 0.07);
  position: relative;
  overflow: hidden;
}

.hero-intro::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 80, 215, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  color: #0f172a;
  margin: 0 0 0.85rem 0;
  line-height: 1.2;
}

.hero-bio {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 0.75rem 0;
}

.hero-bio strong {
  color: #0050d7;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.hero-btn {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.hero-btn-primary {
  background: #0050d7;
  color: #fff;
  border: 2px solid #0050d7;
}

.hero-btn-primary:hover {
  background: #003fa8;
  border-color: #003fa8;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 80, 215, 0.32);
}

.hero-btn-secondary {
  background: transparent;
  color: #0050d7;
  border: 2px solid rgba(0, 80, 215, 0.35);
}

.hero-btn-secondary:hover {
  background: #0050d7;
  color: #fff;
  border-color: #0050d7;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ─── Featured Section ───────────────────────────────────── */

.featured-section {
  margin: 0 0 2.5rem 0;
}

.featured-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
}

.featured-subtitle {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 1.5rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.featured-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(15, 15, 15, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 80, 215, 0.12);
  border-color: rgba(0, 80, 215, 0.18);
  text-decoration: none;
  color: inherit;
}

.featured-card-tag {
  display: inline-block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.tag-ts {
  background: #fef3c7;
  color: #92400e;
}

.tag-ai {
  background: #dbeafe;
  color: #1e40af;
}

.tag-platform {
  background: #dcfce7;
  color: #166534;
}

.featured-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0 0 0.6rem 0;
  line-height: 1.35;
}

.featured-card-desc {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  flex: 1;
}

.featured-card-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0050d7;
  margin-top: auto;
}

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

/* ─── "All Product Work" divider title ───────────────────── */

.all-work-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: #0f172a;
  margin: 0 0 1.25rem 0;
  padding-top: 0.5rem;
  border-top: 2px solid #e5e7eb;
}

/* ─── Footer Contact Bar ─────────────────────────────────── */

.footer-contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.25rem;
  padding: 0.75rem 0 0.85rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.footer-contact-link {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s ease;
}

.footer-contact-link:hover {
  color: #0050d7;
  text-decoration: none;
}

.footer-contact-icon {
  font-style: normal;
  opacity: 0.75;
}

.footer-contact-sep {
  color: #9ca3af;
  padding: 0 0.35rem;
  font-size: 0.85rem;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-intro {
    padding: 1.5rem 1.35rem;
  }

  .hero-name {
    font-size: 1.65rem;
  }

  .hero-bio {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero-btn {
    text-align: center;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .footer-contact-sep {
    display: none;
  }
}
