/* ============================================================
   site.css — index.html + aboutme.html only. Navbar, homepage
   hero, project cards, and the about-page layout. Loaded after
   base.css. Case-study-only styling lives in case-study.css.
   Rules below are ordered by where they first appear on the page:
   navbar, then index.html's hero and project cards, then
   aboutme.html's about section.
   ============================================================ */

/* Navbar */

.navbar {
    font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.nav-logo {
    max-height: 4rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__link {
  color: var(--color-brand-black);
  text-decoration: none;
}

.navbar__link:hover {
  color: var(--color-brand-yellow);
}

/* Hero (index.html) */

.hero-section {
  padding: 8rem 0;
}

.hero-section__content {
  text-align: left;
}

.hero-section p {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 32px;
}

/* Project cards (index.html) */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 0.1rem;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease-out;
}

.project-card:hover .project-card__image {
  transform: scale(1.04) rotate(-1.5deg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.project-card__title {
  margin-bottom: 0;
}

/* Tags (project card / about-page skill chips) */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  background-color: var(--color-tag-bg);
  color: var(--color-text-muted);
  font-size: 1rem;
  text-decoration: none;
}

.tag svg {
  flex-shrink: 0;
}

/* About (aboutme.html) */

.about-section {
  padding: 5rem 0;
}

/* auto sizes the photo column to its own (capped) width with no
   wasted space; the text column claims all the rest */
.about-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
}

/* the About me column should fill its grid track; only the
   profile card keeps its own fixed width */
.about-container > .column:not(.about-card) {
  max-width: none;
}

.about-card {
  max-width: 340px;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* RESPONSIVE (widest breakpoint first) */

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

  .about-container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 560px) {
  .project-grid {
    gap: 1.5rem;
  }

  .about-section {
    padding: 3rem 0;
  }

  .hero-section {
    padding: 0;
  }

  .hero-section p {
    font-size: 1.25rem;
  }
}
