﻿/* Import Russo One font for Tarkov title */
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');
/* Import Fredoka font for Fresh Market title */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

/* =================================
   LOADING SCREEN
   ================================= */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  width: 160px;
  filter: invert(0.7);
  animation: logo-pulse 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes logo-pulse {
  0%, 100% {
    transform: scale(0.75);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

/* =================================
   BASE STYLES (default = desktop large, >=1280px)
   ================================= */

.html,
body {
  font-family: var(--body-font-family);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  display: flex;
}

.body {
  padding-top: 100px;
}

.portfolio-section {
  background: var(--ni-background);
  background-blend-mode: overlay, luminosity;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  min-height: 100vh;
  position: relative;
}

/* =================================
   HEADER
   ================================= */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background-color: var(--ni-header-footer);
  max-width: 100%;
  flex-wrap: wrap;
  z-index: 2;
}

.headerBox {
  display: flex;
  max-width: 100%;
  padding: 25px 89px;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
}

.logo {
  object-fit: contain;
  object-position: center;
  width: auto;
  height: 25px;
  max-height: 25px;
  display: block;
  filter: brightness(0) saturate(100%) invert(75%) sepia(15%) saturate(312%) hue-rotate(26deg) brightness(88%) contrast(91%);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  gap: 34px;
  margin: auto 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
}

.nav-link {
  text-decoration: none;
  color: var(--ni-header-button);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  transform: scale(1.1);
}

.nav-underline {
  display: none;
  background: var(--ni-underline);
  border: 1px solid var(--ni-underline);
}

.nav-underline.active {
  display: block;
}

/* Menu SVG button — hidden on desktop, shown on mobile */
.menu-svg {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.menu-svg:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-svg:active {
  transform: scale(0.95);
}

.menu-svg img {
  height: 18px;
  width: 18px;
  filter: brightness(0) saturate(100%) invert(75%) sepia(15%) saturate(312%) hue-rotate(26deg) brightness(88%) contrast(91%);
  transition: all 0.3s ease;
}

.menu-svg:hover img {
  filter: brightness(0) saturate(100%) invert(100%);
}

/* =================================
   TYPOGRAPHY
   ================================= */

.headerTypography {
  font-family: var(--heading-font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--h6-font-size);
  color: var(--ni-footer-header);
}

.subTitleTypography {
  font-family: var(--heading-font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--h3-font-size);
  color: var(--ni-footer-text);
}

.textTypography {
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  color: var(--ni-footer-header);
  padding-left: 89px;
  padding-right: 89px;
}

.aboutsubheader {
  font-family: var(--heading-font-family);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-semibold);
  color: var(--ni-main-title);
}

.aboutpunchline {
  font-family: var(--heading-font-family);
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-semibold);
  color: var(--ni-main-title);
}

.footerTitleTypography {
  font-family: var(--heading-font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--h4-font-size);
  color: var(--ni-light-text);
  margin: 0;
  text-transform: uppercase;
}

.footerTextTypography {
  font-family: var(--body-font-family);
  font-size: var(--h5-font-size);
  color: var(--ni-footer-text);
}

/* =================================
   MAIN TITLE
   ================================= */

.main-title {
  align-self: center;
  max-width: 100%;
  z-index: 0;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
  color: var(--ni-main-title);
  font-family: var(--heading-font-family);
  font-size: var(--h0-font-size);
  margin-top: 55px;
  margin-bottom: 0;
  padding-left: 89px;
  padding-right: 89px;
  letter-spacing: 21px;
}

.title-line-1,
.title-line-2,
.title-line-3 {
  display: block;
  text-align: center;
}

.title-line-1::after,
.title-line-2::after {
  content: none;
}

.no-break {
  white-space: nowrap;
}

.hold-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.title-line-3 {
  line-height: 1.1;
}

/* =================================
   CAROUSEL
   ================================= */

.carousel-container {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 34px;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-content {
  display: inline-flex;
  white-space: nowrap;
}

.carousel-content span {
  padding: 0 15px;
  opacity: 0.5;
  color: var(--ni-header-button);
  display: inline-block;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.3s;
}

/* =================================
   MAIN CONTENT
   ================================= */

.main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

/* =================================
   FOOTER
   ================================= */

.footer {
  position: relative;
  background: var(--ni-header-footer);
  display: flex;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  max-width: 100%;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
}

.fundo-footer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("Assets/GroupoPoligonosMobile.svg");
  background-repeat: repeat;
  background-size: 10% auto;
  opacity: 20%;
  z-index: 1;
}

.footer-sections {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding-top: 55px;
  padding-bottom: 55px;
  z-index: 1;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: center;
  gap: 34px;
}

.footer-title {
  margin: 0;
}

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 21px;
  text-align: left;
}

.get-in-touch-grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 21px;
  text-align: left;
}

.social-media-grid a,
.get-in-touch-grid a {
  text-decoration: underline;
  color: var(--ni-light-text);
  cursor: pointer;
}

.social-media-grid a:hover,
.underline:hover {
  color: var(--ni-header-button);
}

.underline {
  text-decoration: underline;
  color: var(--ni-light-text);
  cursor: pointer;
}

/* =================================
   IMAGE GRID
   ================================= */

.container-image-grid {
  padding: 55px 89px;
  z-index: 1;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;
}

.image-item {
  text-align: center;
  transition: transform 0.5s ease;
  cursor: pointer;
  position: relative;
}

.image-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.image-item:hover {
  transform: scale(1.02);
}

.image-item:active {
  transform: scale(0.98);
}

.image-container {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  box-sizing: border-box;
  position: relative;
  border-radius: 1%;
}

/* Remove background for Tarkov card */
.image-item:first-child .image-container {
  background-color: transparent;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide project name labels — hover overlay shows them on desktop */
.image-item p {
  display: none;
}

/* Russo One font for Tarkov project title */
.image-item:first-child p {
  font-family: 'Russo One', sans-serif;
  font-weight: normal;
}

/* Fredoka font for Fresh Market project title */
.image-item:nth-child(2) p {
  font-family: 'Fredoka', sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
}

/* Bold for Cauzito logo and drawings */
.image-item:nth-child(4) p,
.image-item:nth-child(5) p,
.image-item:nth-child(6) p,
.image-item:nth-child(7) p,
.image-item:nth-child(8) p,
.image-item:nth-child(9) p {
  font-weight: bold;
}

/* =================================
   HOVER OVERLAY — only on devices that support real hover (desktop/mouse)
   ================================= */

@media (hover: hover) and (pointer: fine) and (min-width: 1280px) {
  .image-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1%;
  }

  .image-item:hover::after {
    opacity: 1;
  }

  .image-item::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--ni-light-text);
    font-size: var(--h7-font-size);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
    white-space: nowrap;
  }

  .image-item:hover::before {
    opacity: 1;
  }

  .image-item:first-child::before {
    content: "ESCAPE FROM TARKOV";
    font-family: 'Russo One', sans-serif;
    font-weight: normal;
  }

  .image-item:nth-child(2)::before {
    content: "FRESH MARKET APP";
    font-family: 'Fredoka', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
  }

  .image-item:nth-child(3)::before {
    content: "MARKETPLACE CONCEPT UI";
    font-family: 'Nunito', var(--heading-font-family), sans-serif;
  }

  .image-item:nth-child(4)::before {
    content: "Cauzito's Live Stream Logo";
    font-weight: bold;
  }

  .image-item:nth-child(5)::before {
    content: "Killjoy - Drawing";
    font-weight: bold;
  }

  .image-item:nth-child(6)::before {
    content: "Skull - Drawing";
    font-weight: bold;
  }

  .image-item:nth-child(7)::before {
    content: "Zed - Drawing";
    font-weight: bold;
  }

  .image-item:nth-child(8)::before {
    content: "Thresh - Drawing";
    font-weight: bold;
  }

  .image-item:nth-child(9)::before {
    content: "Yggdrasil - Drawing";
    font-weight: bold;
  }
}

/* =================================
   PROJECT FILTER SECTION
   ================================= */

.project-filter-section {
  background: transparent;
  padding: 60px 89px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
  transition: transform 0.3s ease;
}

.project-filter-container {
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--foundation-greynormal-hover);
  border: 2px solid transparent;
  color: var(--ni-light-text);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--heading-font-family);
  font-size: var(--h7-font-size);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn[data-filter="all"] {
  position: relative;
}

.filter-btn[data-filter="all"] span {
  position: relative;
  pointer-events: none;
}

.all-btn-border {
  position: absolute;
  left: -2px;
  top: -2px;
  fill: none;
  pointer-events: none;
  overflow: visible;
}

.all-btn-hl-line {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0s;
}

.filter-btn[data-filter="all"].active .all-btn-hl-line {
  opacity: 1;
  transition: opacity 0s linear 0.3s;
  animation: all-btn-laser 1.2s linear 0.3s infinite;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ni-header-button);
  color: var(--ni-main-background);
  border-color: var(--ni-header-button);
  transform: translateY(-2px);
}

.filter-btn:not(.active):hover {
  background: #7a7570;
  border-color: #7a7570;
}

.image-item.hidden {
  display: none;
}

/* =================================
   HAMBURGER MENU
   ================================= */

.hamburger-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform var(--menu-transition-duration) ease;
}

.hamburger-menu::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  height: 100%;
  background: url("Assets/FundoHamburguer.svg");
  background-repeat: repeat;
  background-size: 60% auto;
  background-position: center;
  opacity: 60%;
}

.hamburger-menu.active {
  display: block;
  transform: translateX(0);
}

.hamburger-menu.hidden {
  transform: translateX(100%);
}

.hamburger-menu .active-underline {
  height: 2px;
  width: 100%;
  margin-top: 2px;
}

.contact-underline,
.about-underline,
.work-underline {
  height: 2px;
  background-color: var(--ni-underline);
  width: 100%;
  margin-top: 2px;
  display: none;
}

.hamburger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
  z-index: 10001;
}

.hamburger-menu li {
  z-index: 10001;
}

.hamburger-menu a {
  color: var(--ni-header-button);
  text-decoration: none;
  z-index: 10001;
}

.disable-pointer-events {
  pointer-events: none;
}

#hamburgerMenu {
  pointer-events: auto;
}

.no-scroll {
  overflow-y: scroll;
  overflow-x: hidden;
  touch-action: none;
}

/* =================================
   ABOUT PAGE
   ================================= */

.hold-titleAbout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  padding-bottom: 55px;
  padding-left: 89px;
  padding-right: 89px;
  box-sizing: border-box;
  z-index: 1;
}

#aboutImage {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  z-index: 1;
  display: block;
  margin: auto;
}

/* =================================
   TOGGLE SWITCH
   ================================= */

.toggle-switch {
  display: inline-block;
  position: absolute;
  right: 10px;
  top: 110px;
  cursor: pointer;
  z-index: 1;
}

/* =================================
   TRIANGLE BACKGROUND ANIMATION
   ================================= */

#triangle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.08;
}

.tri-overlay {
  width: 100vw;
  height: 100vh;
  position: absolute;
  z-index: 1;
  background: radial-gradient(circle, transparent 0%, rgba(28, 28, 28, 0.82) 100%);
}

.tri-container {
  display: grid;
  grid-template-columns: repeat(10, 200px);
  grid-template-rows: repeat(6, 230px);
  transform: translate(-3%, -4%);
}

.tri-shape {
  width: 200px;
  height: 230px;
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.tri-shape:nth-child(n+11) { transform: translate(-50%, -25%); }
.tri-shape:nth-child(n+21) { transform: translate(0%,   -50%); }
.tri-shape:nth-child(n+31) { transform: translate(-50%, -75%); }
.tri-shape:nth-child(n+41) { transform: translate(0%,  -100%); }
.tri-shape:nth-child(n+51) { transform: translate(-50%, -125%); }

.home-page #triangle-bg {
  z-index: 1;
}

.home-page .header {
  z-index: 2;
}

.home-page .main-content,
.home-page .footer {
  position: relative;
}

/* =================================
   LOCK / UNLOCK BUTTON
   ================================= */

.tri-lock-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: color 0.2s ease;
}

.tri-lock-btn:hover,
.tri-lock-btn--locked {
  color: #ffffff;
}

.tri-lock-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Mobile lock button — hidden on desktop */
.tri-lock-btn-mobile {
  display: none;
}

/* =================================
   RESPONSIVE — Tablet (769px–1279px)
   ================================= */

@media (min-width: 769px) and (max-width: 1279px) {
  .header {
    height: 70px;
  }

  .body {
    padding-top: 70px;
  }

  .headerBox {
    padding: 15px 55px;
  }

  .logo {
    height: 20px;
    max-height: 20px;
  }

  .nav-links {
    gap: 21px;
  }

  .nav-underline {
    margin-top: 1px;
    height: 0;
  }

  .headerTypography {
    font-size: var(--h7-font-size);
  }

  .footerTitleTypography {
    font-size: var(--h5-font-size);
  }

  .footerTextTypography {
    font-size: var(--h6-font-size);
  }

  .textTypography {
    font-size: var(--h7-font-size);
    padding-left: 55px;
    padding-right: 55px;
  }

  .main-title {
    margin-top: 34px;
    margin-bottom: 0;
    padding-left: 55px;
    padding-right: 55px;
    letter-spacing: 13px;
  }

  .carousel-container {
    margin-top: 21px;
    margin-bottom: 34px;
  }

  .carousel-content span {
    padding: 0 8px;
  }

  .footer-sections {
    flex-direction: column;
    gap: 200px;
    padding-top: 150px;
    padding-bottom: 150px;
    justify-content: center;
  }

  .footer-section {
    gap: 21px;
  }

  .social-media-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    text-align: center;
    justify-items: center;
  }

  .get-in-touch-grid {
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
  }

  .container-image-grid {
    padding-left: 55px;
    padding-right: 55px;
    padding-bottom: 55px;
    padding-top: 0;
  }

  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .image-container {
    aspect-ratio: 3 / 4;
  }

  /* Fresh Market SVG — centered on tablet */
  .image-item:nth-child(2) .image-container img {
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
  }

  /* Marketplace SVG — centered on tablet */
  .image-item:nth-child(3) .image-container img {
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
  }

  .image-item p {
    display: block;
  }

  .project-filter-section {
    padding: 40px;
  }

  .project-filter-container {
    max-width: 800px;
  }

  .filter-buttons {
    gap: 15px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: var(--h8-font-size);
  }

  .hamburger-menu {
    width: 380px;
    height: 500px;
    clip-path: polygon(100% 0%, 100% 100%, 30% 0%);
    z-index: 10000;
  }

  .hamburger-menu::before {
    z-index: 9999;
  }

  .hamburger-menu ul {
    padding-right: 40px;
    padding-top: 70px;
    padding-left: 140px;
  }

  .hamburger-menu li {
    margin: 20px 0;
  }

  .hold-titleAbout {
    padding-bottom: 34px;
    padding-left: 55px;
    padding-right: 55px;
  }

  .toggle-switch {
    display: inline-block;
    position: absolute;
    right: 10px;
    top: 70px;
    z-index: 1;
  }
}

/* =================================
   RESPONSIVE — Sub-950px (tablet 2-col grid)
   ================================= */

@media (min-width: 769px) and (max-width: 950px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-item p {
    display: block;
  }
}

/* =================================
   RESPONSIVE — Mobile Large (430px–768px)
   ================================= */

@media (min-width: 430px) and (max-width: 768px) {
  .header {
    height: 70px;
  }

  .body {
    padding-top: 70px;
  }

  .headerBox {
    padding: 15px 30px;
  }

  .logo {
    height: 18px;
    max-height: 18px;
  }

  .nav-links,
  .nav-item,
  .nav-link {
    display: none;
  }

  .menu-svg {
    display: flex;
  }

  .headerTypography {
    font-size: var(--h8-font-size);
  }

  .footerTitleTypography {
    font-size: var(--h6-font-size);
  }

  .footerTextTypography {
    font-size: var(--h7-font-size);
  }

  .textTypography {
    font-size: var(--h8-font-size);
    padding-left: 21px;
    padding-right: 21px;
  }

  .main-title {
    font-size: var(--h0-font-size);
    letter-spacing: 10px;
    margin-top: 25px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .title-line-1,
  .title-line-2,
  .title-line-3 {
    display: block;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  .title-line-1::after,
  .title-line-2::after {
    content: none;
  }

  .carousel-container {
    margin-top: 21px;
    margin-bottom: 21px;
  }

  .carousel-content span {
    padding: 0 5px;
  }

  .footer-sections {
    flex-direction: column;
    gap: 150px;
    padding-top: 120px;
    padding-bottom: 120px;
    justify-content: center;
  }

  .footer-section {
    gap: 21px;
  }

  .fundo-footer {
    background-size: 20% auto;
    opacity: 30%;
  }

  .social-media-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 21px;
    text-align: center;
    justify-items: center;
  }

  .get-in-touch-grid {
    grid-template-rows: repeat(2, 1fr);
    gap: 21px;
    text-align: center;
  }

  .container-image-grid {
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 20px;
    padding-top: 0;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .image-container {
    aspect-ratio: 3 / 4;
  }

  .image-container img {
    object-position: top;
  }

  /* Fresh Market SVG — centered on mobile large */
  .image-item:nth-child(2) .image-container img {
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  /* Marketplace SVG — centered on mobile large */
  .image-item:nth-child(3) .image-container img {
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  .image-item p {
    display: block;
  }

  .project-filter-section {
    padding: 30px 20px;
  }

  .project-filter-container {
    max-width: 600px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: var(--h9-font-size);
  }

  .filter-btn:hover,
  .filter-btn.active {
    transform: translateY(-1px);
  }

  .hamburger-menu {
    width: 380px;
    height: 500px;
    clip-path: polygon(100% 0%, 100% 100%, 30% 0%);
    z-index: 10000;
  }

  .hamburger-menu::before {
    z-index: 9999;
  }

  .hamburger-menu ul {
    padding-right: 40px;
    padding-top: 70px;
    padding-left: 140px;
  }

  .hamburger-menu li {
    margin: 20px 0;
  }

  .hold-titleAbout {
    padding-bottom: 21px;
    padding-left: 21px;
    padding-right: 21px;
  }

  .toggle-switch {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
  }

  .tri-lock-btn:not(.tri-lock-btn-mobile) {
    display: none;
  }

  .tri-lock-btn-mobile {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 15px;
    width: 32px;
    height: 32px;
    color: #b0a898;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .tri-lock-btn-mobile:hover,
  .tri-lock-btn-mobile.tri-lock-btn--locked {
    color: #b0a898;
  }
}

/* =================================
   RESPONSIVE — Mobile (<=430px)
   ================================= */

@media (max-width: 430px) {
  .header {
    height: 70px;
  }

  .body {
    padding-top: 70px;
  }

  .headerBox {
    padding: 15px 21px;
  }

  .logo {
    height: 18px;
    max-height: 18px;
  }

  .nav-links,
  .nav-item,
  .nav-link {
    display: none;
  }

  .menu-svg {
    display: flex;
  }

  .headerTypography {
    font-size: var(--h8-font-size);
  }

  .footerTitleTypography {
    font-size: var(--h6-font-size);
  }

  .footerTextTypography {
    font-size: var(--h7-font-size);
  }

  .textTypography {
    font-size: var(--h8-font-size);
    padding-left: 21px;
    padding-right: 21px;
  }

  .main-title {
    font-size: var(--h0-font-size);
    letter-spacing: 8px;
    margin-top: 21px;
    padding-left: 21px;
    padding-right: 21px;
  }

  /* On mobile: DESIGNER & UX inline, VINICIUS PIM on its own line */
  .title-line-1,
  .title-line-2 {
    display: inline;
  }

  .title-line-1::after {
    content: " ";
  }

  .title-line-3 {
    display: block;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  .carousel-container {
    margin-top: 21px;
    margin-bottom: 21px;
  }

  .carousel-content span {
    padding: 0 5px;
  }

  .footer-sections {
    flex-direction: column;
    gap: 150px;
    padding-top: 120px;
    padding-bottom: 120px;
    justify-content: center;
  }

  .footer-section {
    gap: 21px;
  }

  .fundo-footer {
    background-size: 20% auto;
    opacity: 30%;
  }

  .social-media-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 21px;
    text-align: center;
    justify-items: center;
  }

  .get-in-touch-grid {
    grid-template-rows: repeat(2, 1fr);
    gap: 21px;
    text-align: center;
  }

  .container-image-grid {
    padding-left: 21px;
    padding-right: 21px;
    padding-bottom: 21px;
    padding-top: 0;
  }

  .image-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .image-container {
    aspect-ratio: 3 / 4;
  }

  .image-container img {
    object-position: top;
  }

  /* Fresh Market SVG — centered on mobile */
  .image-item:nth-child(2) .image-container img {
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  /* Marketplace SVG — centered on mobile */
  .image-item:nth-child(3) .image-container img {
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  .image-item p {
    display: block;
  }

  .project-filter-section {
    padding: 30px 20px;
  }

  .project-filter-container {
    max-width: 600px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: var(--h9-font-size);
  }

  .filter-btn:hover,
  .filter-btn.active {
    transform: translateY(-1px);
  }

  .hamburger-menu {
    width: 340px;
    height: 450px;
    clip-path: polygon(100% 0%, 100% 100%, 25% 0%);
    z-index: 10000;
  }

  .hamburger-menu::before {
    z-index: 1;
  }

  .hamburger-menu ul {
    padding-right: 20px;
    padding-top: 65px;
    padding-left: 80px;
    z-index: 2;
  }

  .hamburger-menu li {
    margin: 18px 0;
    z-index: 2;
  }

  .hamburger-menu a {
    z-index: 2;
  }

  .hold-titleAbout {
    padding-bottom: 21px;
    padding-left: 21px;
    padding-right: 21px;
  }

  .toggle-switch {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 50px;
  }

  .tri-lock-btn:not(.tri-lock-btn-mobile) {
    display: none;
  }

  .tri-lock-btn-mobile {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 15px;
    width: 32px;
    height: 32px;
    color: #b0a898;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .tri-lock-btn-mobile:hover,
  .tri-lock-btn-mobile.tri-lock-btn--locked {
    color: #b0a898;
  }
}
