/*
 * Shared responsive foundation for the portfolio.
 * New pages should reuse these patterns instead of fixed-width inline layouts.
 */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

button,
.homepage-hero__button {
  border-radius: 12px !important;
}

.project-feature {
  display: flex;
  align-items: center;
  width: 100%;
}

.site-footer h4 {
  line-height: 2;
}

@media (max-width: 991.98px) {
  .project-feature > .col-lg-4,
  .project-feature > .col-lg-8 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .navbar-brand img {
    width: 60px !important;
  }

  .navbar-collapse {
    padding-top: 1rem;
  }

  .project-feature {
    flex-direction: column;
    align-items: stretch !important;
    gap: 2rem;
  }

  .project-feature > .col-lg-4,
  .project-feature > .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    text-align: left !important;
  }

  .project-feature .img-responsive img {
    width: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding-top: 1rem !important;
  }

  .project-feature .h2 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .project-feature .lead {
    font-size: 1.15rem !important;
    line-height: 1.6;
  }

  [id="section"] {
    margin-bottom: 6rem !important;
  }

  .site-footer {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .site-footer h4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }

  .site-footer h4 img {
    width: 110px !important;
    margin: 0.5rem !important;
  }
}

@media (max-width: 374.98px) {
  .homepage-hero__title {
    font-size: 3rem;
  }

  .homepage-hero__skills {
    font-size: 0.72rem;
  }
}
