/* Basic reset + nicer defaults */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7f8;
  color: #1f2937;
  line-height: 1.5;
}

/* Reusable layout container */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.site-title {
  margin: 0;
  font-size: 26px;
}

.tagline {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 14px;
}

/* Nav - NEW STYLES FOR HOMEPAGE */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-left {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.7;
}

.nav-cta {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  transition: background 0.2s ease, transform 0.08s ease;
}

.nav-cta:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 36px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

/* Homepage sections */
#about {
  padding: 60px 0 40px;
  max-width: 980px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

#about h1 {
  font-size: 42px;
  margin: 0 0 20px;
  color: #111827;
}

#about p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.7;
  max-width: 700px;
}

#projects {
  padding: 40px 20px;
  max-width: 980px;
  margin: 0 auto;
}

#projects h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

#contact {
  padding: 40px 20px;
  max-width: 980px;
  margin: 0 auto;
}

#contact h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

#contact p {
  font-size: 16px;
  line-height: 1.8;
}

#contact a {
  color: #2563eb;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Project cards */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #111827;
}

.card p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
}

/* Pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #4338ca;
}

/* Status pill for "In progress" */
.status-pill {
  display: inline-block;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #92400e;
  font-weight: 600;
}

/* Card link */
.card-link {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  font-weight: 700;
  color: #111827;
  transition: opacity 0.2s ease;
}

.card-link:hover {
  opacity: 0.7;
}

/* Contact section */
.contact-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  max-width: 500px;
}

.contact-list span {
  font-weight: 700;
}

.contact-list a {
  text-decoration: none;
  color: #2563eb;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 24px 20px;
  margin-top: 60px;
  text-align: center;
}

footer p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 24px 20px;
  margin-top: 60px;
  text-align: center;
}

.footer p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* Case study specific styles */
.project-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 20px;
}

.bullets {
  padding-left: 24px;
  color: #4b5563;
}

.bullets li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.bullets strong {
  color: #111827;
}

/* Make it mobile-friendly */
@media (max-width: 768px) {
  /* Homepage nav becomes vertical on mobile */
  header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
  }

  .nav-left {
    font-size: 20px;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-right a {
    font-size: 14px;
  }

  .nav-cta {
    padding: 6px 12px;
    font-size: 14px;
  }

  /* Add padding to body so content isn't hidden under fixed nav */
  body {
    padding-top: 60px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 14px;
  }

  #about h1 {
    font-size: 32px;
  }

  #about p {
    font-size: 16px;
  }

  .card {
    padding: 20px;
  }
}
