/* ============================================================
   RESET & CSS VARIABLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f7f6;
  --white: #ffffff;
  --black: #0e0e0e;
  --text-primary: #0e0e0e;
  --text-muted: #888888;
  --pill-border: #d8d8d8;
  --pill-active-bg: #0e0e0e;
  --pill-active-text: #ffffff;
  --card-bg: #efefed;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Project slide accent colours */
  --accent-yellow: #f5c518;
  --accent-blue: #3a86ff;
  --accent-green: #2ec4b6;

  font-family: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--bg);
  /* subtle backdrop blur for depth */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo sup {
  font-size: 0.6em;
  vertical-align: super;
  letter-spacing: 0;
}

/* "Hire me" button */
.btn-hire {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-hire:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  display: flex;
  justify-content: center;
  padding: 24px 20px 32px;
}

.hero-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px 48px 44px;
  text-align: center;
  max-width: 660px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

/* Circular avatar */
.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
  /* desaturate to match the B&W photo in reference */
  filter: grayscale(30%);
}

/* Hero text */
.hero-line1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2px;
}

.hero-line2 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.75rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 28px;
}

.hero-role {
  font-style: italic;
}

/* "Book a call" CTA */
.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-cta:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

/* ============================================================
   CATEGORY FILTER PILLS
   ============================================================ */
.filters {
  display: flex;
  justify-content: center;
  padding: 0 20px 28px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--pill-border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pill:hover {
  border-color: #aaa;
  color: var(--text-primary);
}

.pill.active {
  background: var(--pill-active-bg);
  border-color: var(--pill-active-bg);
  color: var(--pill-active-text);
  font-weight: 500;
}

/* ============================================================
   PROJECT / CAROUSEL SECTION
   ============================================================ */
.project-section {
  position: relative;
  padding: 0 20px 60px;
  max-width: 760px;
  margin: 0 auto;
}

.project-track {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 380px;
}

/* Individual slide */
.project-slide {
  display: none;
  position: relative;
  width: 100%;
  min-height: 380px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.project-slide.active {
  display: flex;
}

/* Repeating background text */
.project-bg-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  word-break: break-all;
  color: var(--accent-yellow);
  padding: 24px;
  user-select: none;
  /* wrap text into a dense block */
  word-spacing: -0.02em;
  /* layered text effect */
  text-shadow: 2px 2px 0 rgba(0,0,0,0.04);
}

.project-bg-text--blue  { color: var(--accent-blue); }
.project-bg-text--green { color: var(--accent-green); }

/* Foreground project card */
.project-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 32px 36px;
  width: min(380px, 88%);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
}

.project-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============================================================
   CAROUSEL ARROW BUTTONS
   ============================================================ */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--pill-border);
  background: var(--white);
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s ease, transform 0.15s ease;
}

.arrow:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-50%) scale(1.07);
}

.arrow-left  { left: -18px; }
.arrow-right { right: -18px; }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .navbar {
    padding: 16px 20px;
  }

  .logo {
    font-size: 0.9rem;
  }

  .hero-card {
    padding: 32px 24px 36px;
  }

  .hero-line1 {
    font-size: 1.1rem;
  }

  .hero-line2 {
    font-size: 1.4rem;
  }

  .arrow-left  { left: 6px; }
  .arrow-right { right: 6px; }
}
