.home-page {
  background: #242629;
  color: #d7d7d8;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.home-page a {
  border-bottom: 0;
}

.home-page a:hover {
  color: #eeeeee !important;
}

.home-page .button:hover,
.home-page button:hover,
.home-page input[type="submit"]:hover,
.home-page input[type="reset"]:hover,
.home-page input[type="button"]:hover {
  box-shadow: inset 0 0 0 2px #eeeeee;
  color: #eeeeee !important;
}

.home-header {
  align-items: center;
  background: #1f2224;
  backdrop-filter: blur(14px);
  display: flex;
  height: 4.5em;
  justify-content: space-between;
  left: 0;
  padding: 0 5vw;
  position: fixed;
  top: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  z-index: 10002;
}

.home-header.is-scrolled {
  background: #1f2224;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.home-brand {
  align-items: center;
  display: inline-flex;
  height: 100%;
}

.home-brand img {
  display: block;
  height: 2.7em;
  width: auto;
}

.home-nav {
  align-items: center;
  background: transparent;
  box-shadow: none;
  display: flex;
  gap: 1.5em;
}

.home-nav a {
  align-items: center;
  border-radius: 3px;
  color: #f4f4f4;
  display: flex;
  font-size: 0.84em;
  letter-spacing: 0.03em;
  padding: 0;
  position: relative;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-nav a::after {
  background: #527d68;
  bottom: -0.35em;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
  width: 100%;
}

.home-nav a:hover {
  background: transparent;
  color: #eeeeee !important;
}

.home-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-nav .nav-client {
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.65);
  color: #ffffff;
  padding: 0.7em 1em;
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.home-nav .nav-client::after {
  display: none;
}

.home-nav .nav-client:hover {
  box-shadow: inset 0 0 0 1px #527d68, 0 10px 26px rgba(82, 125, 104, 0.22);
  transform: translateY(-2px);
}

.home-menu-button {
  align-items: center;
  background: #1f2224 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  box-shadow: none !important;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 16px;
  top: 15px;
  width: 42px;
  z-index: 10006;
}

.home-menu-button:hover {
  background: #2b2e31 !important;
}

.home-menu-button[aria-expanded="true"] {
  background: #2b2e31 !important;
}

.home-menu-button span {
  background: #ffffff;
  display: block;
  height: 2px;
  margin: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 24px;
}

.home-menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.home-menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.home-menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.home-hero {
  align-items: center;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  padding: 9em 5vw 5em;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  background-image: url("../images/Fundo.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(31, 34, 36, 0.92) 0%, rgba(31, 34, 36, 0.76) 46%, rgba(31, 34, 36, 0.42) 100%),
    linear-gradient(0deg, rgba(31, 34, 36, 0.82), rgba(31, 34, 36, 0.22));
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #eeeeee;
  display: block;
  font-size: 0.78em;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 1.4em;
}

.hero-content h1 {
  color: #ffffff;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 0.35em;
}

.hero-content p {
  color: #d7d7d8;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
  margin: 0 0 2em;
  max-width: 620px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.home-page .button.primary {
  background: #527d68;
  box-shadow: none;
  color: #ffffff !important;
  transition: background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.home-page .button:not(.primary) {
  box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.55);
  color: #f4f4f4 !important;
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.home-page .button.primary:hover {
  background: #426b57;
  box-shadow: 0 14px 32px rgba(82, 125, 104, 0.28);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.home-page .button:not(.primary):hover {
  box-shadow: inset 0 0 0 1px #eeeeee, 0 12px 26px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.home-page .button:hover:active,
.home-page button:hover:active,
.home-page input[type="submit"]:hover:active,
.home-page input[type="reset"]:hover:active,
.home-page input[type="button"]:hover:active {
  background-color: rgba(238, 238, 238, 0.12);
  color: #ffffff !important;
}

.hero-scroll {
  bottom: 2em;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll span {
  background: linear-gradient(#eeeeee, rgba(238, 238, 238, 0));
  display: block;
  height: 4em;
  width: 1px;
}

.home-section,
.portfolio-strip,
.contact-band {
  padding: 6.5em 5vw;
}

.intro-section {
  align-items: stretch;
  display: grid;
  gap: 2em;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
}

.section-copy,
.section-heading {
  max-width: 900px;
}

.section-copy h2,
.section-heading h2,
.contact-band h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

.section-copy p,
.contact-band p {
  color: #aeb0b1;
  font-size: 1.08em;
  line-height: 1.9;
  margin: 0;
  max-width: 720px;
}

.intro-card,
.experience-grid article,
.testimonial-card {
  background: #2b2e31;
  border: 1px solid #36383c;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.intro-card:hover,
.experience-grid article:hover,
.testimonial-card:hover {
  border-color: rgba(82, 125, 104, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

.intro-card {
  align-content: end;
  display: grid;
  padding: 2em;
}

.intro-card strong {
  color: #ffffff;
  display: block;
  font-size: 1.5em;
  font-weight: 300;
  margin-bottom: 0.6em;
}

.intro-card span {
  color: #aeb0b1;
  line-height: 1.8;
}

.portfolio-strip {
  background: #1f2224;
  border-bottom: 1px solid #36383c;
  border-top: 1px solid #36383c;
  display: grid;
  justify-items: center;
  padding-left: 1.2vw;
  padding-right: 1.2vw;
}

.portfolio-grid {
  display: grid;
  gap: 0.65em;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 2.5em;
  max-width: 100%;
  width: 100%;
}

.portfolio-gallery-card {
  aspect-ratio: 1;
  background: #2b2e31;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  display: block;
  height: auto;
  line-height: normal;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition: box-shadow 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  white-space: normal;
}

.portfolio-gallery-card::after {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 34%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.35s ease;
}

.portfolio-gallery-card:hover {
  box-shadow: 0 0 0 1px rgba(238, 238, 238, 0.7), 0 16px 36px rgba(0, 0, 0, 0.34);
  opacity: 0.96;
  transform: translateY(-4px);
}

.portfolio-gallery-card:hover::after {
  opacity: 1;
}

.portfolio-gallery-card img {
  filter: saturate(0.86) contrast(1.03);
  display: block;
  height: 100%;
  object-fit: cover;
  transition: filter 0.45s ease, transform 0.7s ease;
  width: 100%;
}

.portfolio-gallery-card:hover img {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.08);
}

.portfolio-open-button {
  display: flex;
  margin: 2em auto 0;
  max-width: 240px;
  justify-content: center;
}

@media screen and (min-width: 981px) {
  .portfolio-strip .section-heading {
    max-width: min(1800px, 94vw);
    width: 100%;
  }

  .portfolio-grid {
    gap: 0.55em;
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: min(1800px, 94vw);
  }

  .portfolio-gallery-card {
    aspect-ratio: 1;
    grid-column: auto;
    grid-row: auto;
  }

  .portfolio-gallery-card:nth-child(n + 7) {
    display: block;
  }
}

@media screen and (min-width: 1800px) {
  .portfolio-strip .section-heading,
  .portfolio-grid {
    max-width: min(2140px, 96vw);
  }

  .portfolio-grid {
    gap: 0.65em;
  }
}

.portfolio-empty {
  color: #aeb0b1;
  grid-column: 1 / -1;
  margin: 0;
}

.portfolio-empty strong {
  color: #ffffff;
}

.portfolio-modal-open {
  overflow: hidden;
}

.portfolio-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 10005;
}

.portfolio-modal.is-open {
  display: block;
}

.portfolio-modal-backdrop {
  background: rgba(12, 13, 14, 0.88);
  inset: 0;
  position: absolute;
}

.portfolio-modal-panel {
  background: #1f2224;
  border: 1px solid #36383c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: min(86vh, 760px);
  left: 50%;
  max-width: min(980px, calc(100vw - 2em));
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.portfolio-modal-close {
  background: rgba(31, 34, 36, 0.82) !important;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.35) !important;
  color: #ffffff !important;
  font-size: 1.45em;
  height: 44px;
  line-height: 44px;
  padding: 0;
  position: absolute;
  right: 1rem;
  text-align: center;
  top: 1rem;
  width: 44px;
  z-index: 2;
}

.portfolio-modal-close:hover {
  background: #2b2e31 !important;
  box-shadow: inset 0 0 0 1px #eeeeee !important;
}

.portfolio-modal-stage {
  align-items: center;
  background: #151719;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  min-height: 0;
  padding: 1.4rem 0;
}

.portfolio-modal-stage img {
  display: block;
  height: 100%;
  margin: 0 auto;
  max-height: 54vh;
  object-fit: contain;
  width: 100%;
  max-width: min(100%, 720px);
}

.portfolio-modal-arrow {
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 3.1em;
  height: 100%;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease;
  width: 56px;
}

.portfolio-modal-arrow:hover {
  background: rgba(238, 238, 238, 0.08) !important;
  color: #8fb49f !important;
}

.portfolio-modal-footer {
  background: #242629;
  border-top: 1px solid #36383c;
  padding: 0.9rem 1rem;
}

#portfolioModalCounter {
  color: #eeeeee;
  display: block;
  font-size: 0.85em;
  letter-spacing: 0.14em;
  margin-bottom: 0.8em;
}

.portfolio-modal-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25em;
}

.portfolio-modal-thumb {
  aspect-ratio: 1;
  background: #151719;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(238, 238, 238, 0.15);
  display: block;
  flex: 0 0 64px;
  height: auto;
  line-height: normal;
  opacity: 0.55;
  overflow: hidden;
  padding: 0;
  transition: box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  width: 64px;
}

.portfolio-modal-thumb.is-active {
  box-shadow: inset 0 0 0 2px #527d68;
  opacity: 1;
}

.portfolio-modal-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.portfolio-modal-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.experience-grid {
  display: grid;
  gap: 1.2em;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5em;
}

.testimonials-grid {
  display: grid;
  gap: 1.2em;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5em;
}

.testimonial-card {
  padding: 2em;
}

.testimonial-card p {
  color: #d7d7d8;
  line-height: 1.8;
  margin: 0 0 1.4em;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  color: #ffffff;
  font-weight: 600;
}

.testimonial-card span {
  color: #8fb49f;
  font-size: 0.9em;
  margin-top: 0.3em;
}

.experience-grid article {
  padding: 2em;
}

.experience-grid i {
  color: #eeeeee;
  display: block;
  font-size: 1.6em;
  margin-bottom: 1em;
  transition: color 0.24s ease, transform 0.24s ease;
}

.experience-grid article:hover i {
  color: #8fb49f;
  transform: translateY(-2px);
}

.experience-grid h3 {
  color: #ffffff;
  font-size: 1.4em;
  font-weight: 300;
  letter-spacing: 0;
  margin-bottom: 0.6em;
}

.experience-grid p {
  color: #aeb0b1;
  line-height: 1.8;
  margin: 0;
}

.contact-band {
  align-items: center;
  background: #2b2e31;
  border-top: 1px solid #36383c;
  display: flex;
  gap: 2em;
  justify-content: space-between;
}

.home-footer {
  align-items: center;
  background: #1f2224;
  border-top: 1px solid #36383c;
  display: flex;
  gap: 1em;
  justify-content: space-between;
  padding: 1.5em 5vw;
}

.home-footer p {
  color: #707071;
  margin: 0;
}

.home-footer a {
  color: #aeb0b1;
}

@media screen and (max-width: 980px) {
  .home-menu-button {
    display: inline-flex;
  }

  .home-nav {
    align-items: stretch;
    background: #1f2224;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100vh;
    justify-content: flex-start;
    padding: 5.2em 1em 1em;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    width: min(270px, 82vw);
    z-index: 10005;
  }

  .home-nav.is-open {
    transform: translateX(0);
  }

  .home-nav a {
    padding: 0.95em 1em;
  }

  .home-nav a::after {
    display: none;
  }

  .home-nav a:hover {
    background: #2b2e31;
  }

  .home-nav .nav-client {
    box-shadow: none;
    margin-top: 0.6em;
  }

  .intro-section,
  .experience-grid,
  .testimonials-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    gap: 0.45em;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 560px) {
  .home-header {
    justify-content: center;
    padding: 0 74px;
  }

  .home-brand {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .home-brand img {
    height: 2.1em;
  }

  .home-hero {
    min-height: 92vh;
    padding: 7em 1.2em 4em;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(36, 38, 41, 0.92), rgba(36, 38, 41, 0.52));
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .home-section,
  .portfolio-strip,
  .contact-band {
    padding: 4.5em 1.2em;
  }

  .portfolio-grid {
    gap: 0.35em;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-gallery-card:nth-child(n + 7) {
    display: none;
  }

  .portfolio-modal-panel {
    height: 100vh;
    max-width: 100vw;
  }

  .portfolio-modal-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 0.5em 0;
  }

  .portfolio-modal-stage img {
    max-height: 58vh;
  }

  .portfolio-modal-arrow {
    font-size: 2.4em;
    padding: 0;
    width: 42px;
  }

  .portfolio-modal-close {
    height: 40px;
    line-height: 40px;
    right: 0.8em;
    top: 0.8em;
    width: 40px;
  }

  .portfolio-modal-thumb {
    flex-basis: 54px;
    width: 54px;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5em 1.2em;
  }
}
