
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  font-size: 62.5%;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background-color: #000000;
  color: #fafafa;
}

 body:not(.page-portfolio) {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body:not(.page-portfolio) section, body:not(.page-portfolio) footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}

section {
  min-height: 100vh;
  padding: 6rem 0;
  margin-bottom: 4rem;
  box-sizing: border-box;
}

section:last-of-type {
  margin-bottom: 0;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 250;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
}

p, li, a, button, span {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button, .cta-button, a.button-like {
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2em 0;
  line-height: 1.5;
  background: none;
  border: none;
  text-decoration: none;
  transition: transform 0.07s cubic-bezier(.32,1.56,.47,1), background 0.13s, filter 0.11s;
  user-select: none;
  -webkit-user-select: none;
}

.button-like:active, .cta-button:active, .nav-item a:active {
  transform: scale(0.97);
  filter: brightness(0.94);
  background: #999999;
  outline: none;
}

button {
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5em;
  color: inherit;
  font-size: 1.6rem;
  cursor: pointer;
  border: 1px solid transparent;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background:#000000;
  z-index: 200;
  transition: all 0.3s ease;
  width: 100%;
}

.navbar {
  width: 100%;
}

header.menu-open .navbar::after {
  width: 0% !important;
}

.navbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  transition: padding 0.3s ease;
}

header.shrink .navbar-header {
  padding: 0.8rem 2rem;
}

.navbar-logo {
  font-size: 2rem;
  font-weight: 300;
  color: #fafafa;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

header.shrink .navbar-logo {
  opacity: 0;
  transform: translateX(-10rem);
  pointer-events: none;
}

header.shrink .menu-label {
  opacity: 0;
  transform: translateX(2rem);
  pointer-events: none;
}

.menu-toggler {
  position: relative;
  z-index: 1005;
}

.menu-icon {
  display: inline-block;
  position: relative;
  width: 3rem;
  height: 3rem;
  margin-left: 1rem;
  transition: transform 0.4s ease;
}

.menu-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  opacity: 1;
  background-color: #fafafa;
  left: 0;
  transform-origin: center;
  transition: all 0.4s ease;
}

.menu-icon span:nth-child(1) { 
  top: calc(50% - 1rem); 
}

.menu-icon span:nth-child(2) { 
  top: 55%; 
  transform: translateY(-50%); 
}

.menu-icon span:nth-child(3) { 
  top: calc(50% + 1rem); 
}

header.menu-open .menu-toggler .menu-icon span {
  background: #000 !important;
}

header.menu-open .menu-icon span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
  top: 50%;
}
header.menu-open .menu-icon span:nth-child(2) { 
  opacity: 0; 
}

header.menu-open .menu-icon span:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg);
  top: 50%;
}

header.shrink .menu-icon {
  transform: scale(1.4);
}

header.menu-open .menu-label {
  opacity: 0;
  pointer-events: none;
  transform: translateX(1rem);
  transition: opacity 0.1s ease, transform 0.3s ease;
}

.navbar-menu {
  position: fixed;
  display: none;
  inset: 0;
  background-color: transparent;
  color: inherit;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.3s ease-out, background-color 0.3s ease, color 0.3s ease;
  z-index: 100;
}

.navbar-menu.open {
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #cfcfcf;
  color: #000;
  opacity: 1;
  transform: translateY(0);
  padding: 2rem;
  z-index: 900;
}

.navbar-menu.open .underline-hover::after {
  background: linear-gradient(
  to right, 
  rgba(0,0,0,0.0) 0%, 
  rgba(0,0,0,0.3) 20%, 
  rgba(0,0,0,0.7) 50%, 
  rgba(0,0,0,1) 100%);
}

.nav-list {
  list-style: none;
  width: 100%;
  max-width: 420px;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nav-item a {
  display: block;
  width: 100%;
  min-width: 180px;
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid #a8a8a8;
}

.nav-item:last-child a {
  border-bottom: 1px solid #a8a8a8;
}

.close-menu {
  position: static;
  align-self: center;
  margin-bottom: 2rem;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: none;
  border: none;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 100vh;
  background: url('/images-real/heroimg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0000000e;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  word-wrap: break-word;
  text-align: center;
}

.hero .catchphrase {
  font-weight: 300;
  margin-top: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 3rem;
  margin: 0 auto;
}

.about, .contact {
  padding: 0 3rem;
}

.about .container, .contact .container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    'text'
    'image';
  align-items: center;
  padding: 6rem 2rem;
}

.about .container  {
  justify-self: center;
  text-align: center;
}

.about .container > div:first-child, .contact .container > div:first-child {
  grid-area: text;
}

.about .container > div:last-child, .contact .container > div:last-child {
  grid-area: image;
}

.contact-content {
  margin: 3rem 1rem;
  align-self: center;
}

.about img, .contact img {
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.recent-projects {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #000000;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.recent-projects > .section-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.recent-projects .container {
  width: 100%;
  max-width: 1200px;
  padding: 0 3rem;
  margin: 0 auto;
}

.recent-projects .project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.recent-projects .project-item .project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid #b8b8b8;
  padding: 2.5rem 1rem;
  transition: transform 0.2s ease;
  position: relative;
}

.recent-projects .project-item:first-child {
  border-top: 1px solid #b8b8b8;
}


.project-hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 clamp(2rem, 4vw, 5rem) 3rem clamp(2rem, 4vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
  color: #cfcfcf;
}

.project-hero-content h1 { 
  margin-bottom: 0; 
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-name {
  font-size: 1.8rem;
  flex: 1;
  color: #cfcfcf;
}

.project-location {
  font-size: 1.4rem;
  color: #cfcfcf;
  flex: 1;
  text-align: center;
}

.project-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.project-link svg {
  width: 2.4rem;
  height: auto;
  fill: #b8b8b8;
  transition: transform 0.6s ease;
}

.showcase-gallery {
  display: none;
  gap: 1rem;
}

.showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.showcase-gallery.mobile-sc {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 2rem;
  align-items: center;
  justify-content: center;
}

.showcase-gallery.mobile-sc-landscape, .showcase-gallery.tablet-sc, .showcase-gallery.desktop-sc {
  display: none;
}

.showcase-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.site-footer {
  background-color: #000;
  border-top: 1px solid #4a4a4a;
  padding: 4rem 2rem;
  margin: 4rem auto;
  color: #cfcfcf;
  scroll-snap-align: start;
}

.site-footer.mobile-footer { 
  display: block; 
}

.site-footer.desktop-footer { 
  display: none; 
}

.footer-grid {
  display: grid;
  grid-template-areas:
    'address'
    'socials'
    'copyright'
    'formalities';
  gap: 2rem;
  text-align: center;
}

.footer-address { 
  grid-area: address; 
  display: none;
}

.footer-socials { 
  grid-area: socials; 
}

.footer-copyright {
  grid-area: copyright;
  font-size: 1.4rem;
}

.footer-formalities {
  grid-area: formalities;
  font-size: 1rem;
}

.footer-formalities p {
  margin: 0;
  display: inline;
}

.footer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.cta-section h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}

.cta-section .cta-button { 
  margin-top: 1.5rem; 
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 1em 2.5em;
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #cfcfcf;
}

.scroll-gallery {
  min-height: 100vh;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vh 3vw;
  gap: 3vh;
}

.scroll-gallery.no-transitions .project-container {
  transition: none !important;
  scroll-behavior: auto !important; 
}

.project-container {
  position: relative;
  min-height: 38vh;
  min-width: 0;
  width: 85vw;
  max-width: 400px;
  aspect-ratio: 16 / 9;
  margin: 4vh 0;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  opacity: 0.55;
  filter: blur(2.5px) grayscale(0.25);
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1), filter 0.36s cubic-bezier(.4, 0, .2, 1), opacity 0.36s cubic-bezier(.4, 0, .2, 1), z-index 0.22s;
  box-shadow: 0 2px 32px 0 #0006;
  overflow: hidden;
}

.project-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-container, .project-container.in-focus, .project-container.clone {
  opacity: 1;
  filter: blur(0) grayscale(0);
  transform: scale(1.15);
  z-index: 4;
}

.project-overlay {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  inset: 0;
  padding: 0 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: opacity 0.4s;
}

.single-project {
  position: absolute;
  bottom: 0;
  right: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light-text {
  color: #fff;
}

.project-overlay h2, .project-overlay svg {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 80%;
  margin: 0.8rem 1rem;
  transition: transform 0.6s ease;
}

.project-overlay:hover svg { 
  transform: translateX(4px); 
}

.project-hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 5vh;
  background: #000;
  overflow: visible;
}

.center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.project-hero-content .hero-info {
  max-width: 600px;
  width: 100%;
  margin-bottom: 4rem;
  text-align: center;
}

.scroll-hint {
  font-size: 3rem;
  color: inherit;
  text-align: center;
  animation: bounce 1.6s infinite;
  margin-top: 2rem;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(6px); 
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-only {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.fade-only.visible {
  opacity: 1;
}

.project-page section {
  padding: 6rem 2rem;
  box-sizing: border-box;
}

.project-page .project-gallery {
  margin-top: 2rem;
}

.show-more-button {
  display: block;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  background: #222;
  color: #cfcfcf;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.show-more-button:hover { 
  background: #444; 
}

.project-page .project-hero-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-top: 4rem;
}

.project-page .cta-section {
  text-align: center;
  margin: 0 auto;
  padding: 2rem 4rem;
}

.project-name {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.project-gallery {
  position: static;
  bottom: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem clamp(2rem, 6vw, 6rem) 6rem clamp(2rem, 6vw, 6rem);
  z-index: 2;
  color: #b8b8b8;
  opacity: 0;
  transform: translateY(20px);
  animation: galleryFadeIn 1s 5.8s forwards;
}

.project-gallery h2 {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

/* .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  justify-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2rem 1rem;
} */

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  row-gap: 1.5rem;
  column-gap: 1.5rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  max-width: 1200px;
}

.gallery-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  background: #000;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s cubic-bezier(.25, 1, 5, 1);
}

.privacy-policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  font-size: 1rem;
  line-height: 1.75;
}

.privacy-policy h1, .privacy-policy h2 {
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-policy ul {
  margin-left: 1.25rem;
  list-style: disc;
}

.privacy-policy .effective-date, .privacy-policy .note {
  color: #666;
  font-style: italic;
  font-size: 0.95rem;
}

.contact-form { 
  margin: 1rem 3rem; 
}

.input-group {
  position: relative;
  margin-bottom: 2.5rem;
  margin-top: 2rem;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 1.4rem 1rem 0.8rem 1rem;
  background: none;
  color: #cfcfcf;
  border: none;
  border-bottom: 1px solid #b8b8b8;
  outline: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
}

.input-group label {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-style: italic;
  font-size: 1.6rem;
  color: #b8b8b8;
  pointer-events: none;
  background: #000;
  padding: 0 0.3rem;
  transition: all 0.6s ease;
}

.input-group.focused label {
  top: -1.2rem;
  left: 0.8rem;
  font-size: 1.2rem;
  color: #b8b8b8;
  background: #000;
}

.section-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}

.section-content.is-visible {
  opacity: 1;
  transform: none;
}

.scroll-trigger {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  filter: blur(3rem);
  transition: all 0.6s ease;
  will-change: opacity, transform, filter, visibility;
}

.scroll-trigger.animate-in {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  filter: blur(0);
}

.scroll-trigger.animate-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.2);
  filter: blur(2rem);
}

body.step-scroll, html.step-scroll {
  height: auto !important;
  min-height: 0 !important;
}

body.step-scroll { 
  scroll-snap-type: y mandatory; 
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.image-modal.active { 
  display: flex; 
  animation: fadeInModal 0.28s cubic-bezier(.46,.03,.52,.96); 
}

@keyframes fadeInModal { 

  from { 
    opacity: 0; 
  } to { 
    opacity: 1; 
  } 

}

.modal-backdrop { 
  position: absolute; 
  inset: 0; 
  z-index: 0; 
}

.modal-content {
  position: relative;
  z-index: 1;
  background: none;
  border-radius: 0.25rem;
  box-shadow: 0 8px 36px 0 #0008;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 88vh;
  padding: 2rem;
}

.modal-img {
  width: 100%;
  height: auto;
  max-width: 80vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.7rem;
  background: #00000050;
}

.modal-caption {
  margin-top: 1.3rem;
  color: #fff;
  text-align: center;
  font-size: 1.4rem;
  font-style: italic;
  max-width: 70vw;
  text-shadow: 0 2px 8px #000c;
}

.rotate-hint {
  display: none;
  margin: 0.2em 0 0 0;
  padding: 0.2em 0.9em 0.2em 0.3em;
  background: none;
  color: #b0b0b0;
  border-radius: 1.5rem;
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.8;
  position: static;
  box-shadow: none;
  align-items: center;
  gap: 0.5em;
  animation: none;
}

.rotate-svg svg {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.3em;
  vertical-align: middle;
  display: inline-block;
}

@keyframes fadeInHint {
  from { 
    opacity: 0; 
    transform: translateY(20px) translateX(-50%);}
  to { 
    opacity: 1; 
    transform: translateY(0) translateX(-50%);}
}

.modal-close {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background: none;
  border: none;
  font-size: 4rem;
  color: #b8b8b8;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  filter: drop-shadow(0 2px 8px #000);
  transition: background 0.18s, color 0.18s;
}

.modal-close:hover, .modal-close:focus {
  color: #fff;
  outline: none;
  font-weight: 500;
}

@media (hover: none) and (pointer: coarse) {
  .underline-hover:active::after, .underline-hover:focus::after {
    width: 0 !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {

   section {
    min-height: calc(100vh - 6rem) !important;
    padding: 2rem 0 !important;
    margin-bottom: 1.5rem !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .navbar-header {
    padding: 1rem;
  }

  .about .container, .contact .container {
    padding: 2rem 1rem !important;
  }

  .about .about-content {
    margin-bottom: 5rem;
  }

  .about img {
    aspect-ratio: 1 / 1;
    max-width: 80%;
  }

  .container {
    padding: 0 1.5rem !important; 
  }

  .hero-content {
    padding: 1.5rem 0.5rem !important;
  }

  .scroll-hint { 
    display: none; 
  }

  .project-hero-section {
    padding: 10rem 0 2rem 0 !important;
    min-height: 90vh;
  }

  .center-wrap { 
    padding: 1rem 0; 
  }

  .project-page .gallery-grid.show-all .gallery-item { 
    display: block; 
  }

  .modal-close {
    top: -0.8rem;
    right: -0.8rem;
    font-size: 2rem;
    width: 2.2rem;
    height: 2.2rem;
  }

  .modal-content { 
    padding: 1rem; 
    max-width: 98vw; 
  }

  .modal-img { 
    max-width: 96vw; 
    max-height: 60vh; 
  }

  .modal-caption { 
    font-size: 1.1rem; 
  }

  body:not(.page-portfolio) {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    scroll-padding-top: 0 !important;
  }

  body:not(.page-portfolio) section, body:not(.page-portfolio) footer {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }

}

@media (max-width: 767px) and (orientation: portrait) {

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid .gallery-item {
    display: block;
  }

  .gallery-grid:not(.show-all) .gallery-item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 767px) and (orientation: landscape) {

 .showcase-gallery.mobile-sc-landscape {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
  }

  .showcase-gallery.mobile-sc, .showcase-gallery.tablet-sc, .showcase-gallery.desktop-sc { 
    display: none !important; 
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .gallery-grid .gallery-item {
    display: block;
  }
  .gallery-grid:not(.show-all) .gallery-item:nth-child(n + 5) {
    display: none;
  }

}

@media (max-width: 1199px) {
  

 .page-portfolio .scroll-gallery {
    scroll-snap-type: none !important;
    scroll-behavior: none !important;
    
  }

  .page-portfolio .scroll-gallery .project-container {
    scroll-snap-align: none  !important;
    scroll-snap-stop: normal !important;
  }
}

@media (min-width: 768px) {

  .container { 
    margin: 0 auto; 
  }

  .about .container, .contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'text image';
    gap: 4rem;
    align-items: center;
  }

  .navbar-header { 
    padding: 1rem 2rem;
  }

  .menu-icon { 
    width: 2.4rem; 
    height: 2.4rem;
  }

  .close-menu { 
    font-size: 3rem; 
    top: 1.5rem; 
    right: 1.5rem; 
  }

  .navbar-logo { 
    font-size: 4rem; 
    margin-left: 6rem; 
  }

  .hero .catchphrase { 
    font-size: 2.4rem; 
  }

  .about .container, .contact .container { 
    font-size: 2.4rem; 
  }

  .project-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .project-location { 
    text-align: center; 
  }

  .project-link { 
    justify-self: flex-end; 
  }

  .showcase-gallery.mobile-sc { 
    display: none; 
  }

  .showcase-gallery.tablet-sc {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
  }

  .showcase-gallery.tablet-sc .showcase-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .project-container {
    width: 85vw;   
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: 8vh 0;
  }

  .single-project {
    bottom: 2rem;
  }

  .light-text {
    color: #fff;
  }

  .dark-text {
    color: #000;
  }

  .dark-text svg path{
    fill: #000;
  }


  .project-page section { 
    padding: 8rem 4rem; 
  }

  .gallery-item {
    aspect-ratio: 2 / 3;
    flex: 0 1 calc((100% - (1 * 1.5rem)) / 2);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'address socials' 'copyright formalities';
    text-align: left;
    gap: 2.5rem 4rem;
    align-items: start;
  }

  .cta-button { 
    justify-self: end; 
    align-self: center; 
  }

  .footer-socials ul { 
    flex-direction: row; 
    justify-content: flex-end; 
    gap: 2rem; 
  }

  .footer-list { 
    flex-direction: row; 
  }

  .footer-formalities { 
    grid-area: formalities;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: baseline;
    font-size: 1.4rem;
    white-space: nowrap;
  }

  .footer-formalities a {
    font-size: inherit;
    line-height: 1.6;
  }

  .footer-copyright { 
    grid-area: copyright;
    font-size: 1.4rem;
  }

}

@media (min-width: 1200px) {

  body { 
    margin: 0; 
    max-width: none; 
  }

  .page-portfolio .scroll-gallery {
    overflow-y: auto;
    height: 100vh;
  }

  a:active, a:focus, button:active, button:focus, .button-like:active, .button-like:focus, .cta-button:active, .cta-button:focus {
    font-weight: 600;
    transition: font-weight 0.09s;
    background: transparent !important;
    outline: none;
  }

  .container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 clamp(3rem, 4vw, 5rem);
  }

  .navbar-menu {
    transform: translateX(100%);
    background-color: transparent;
    color: inherit;
    transition: transform 0.6s ease-out, background-color 0.3s ease, color 0.3s ease;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.6);
    padding: 2rem;
    max-height: none;
    overflow-y: auto;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: 300px;
    z-index: 999;
  }

  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: right;
    transform: translateX(0);
  }

  .nav-item a {
    width: auto;
    text-align: right;
    font-size: 2.4rem;
    padding: 1.5rem 2rem;
    background-color: transparent;
    border: none;
  }

  .nav-item:last-child a { 
    border: none; 
  }

  .navbar-menu:not(.open) .close-menu { 
    display: none; 
  }

  .navbar { 
    position: relative; 
  }

  .navbar::before, .navbar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease, width 0.8s ease;
  }

  .navbar::before {
    top: 0;
    left: -100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(6px);
    z-index: -1;
    transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .navbar::after {
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,1) 100%);
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
  }

  header:not(.shrink) .navbar::before { 
    opacity: 1; 
    transform: translateX(0); }

  header:not(.shrink) .navbar::after { 
    opacity: 1; 
  }

  header:not(.shrink) .navbar:hover::before { 
    left: 0; 
  }

  header:not(.shrink) .navbar:hover::after { 
    width: 100%; 
  }

  .underline-hover::after {
    content: '';
    position: absolute;
    bottom: -0.2em;
    left: 0;
    right: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,1) 100%);
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .underline-hover:hover::after, .underline-hover:focus::after {
    width: 100%;
  }

  .underline-hover svg { 
    transition: transform 0.9s ease; 
  }

  .underline-hover:hover svg { 
    transform: translateX(4px); 
  }

  .cta-button.underline-hover::after {
    height: 2px;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.0) 0%,
      rgba(255,255,255,0.3) 20%,
      rgba(255,255,255,0.7) 50%,
      rgba(255,255,255,1) 100%
    );
  }

  .project-link:hover svg { 
    transform: translateX(4px); 
  }

  .cta-button:hover { 
    transform: translateY(-2px) scale(1.02); 
    color: #cfcfcf; 
  }

  .about .container {
    font-size: 3.2rem; 
  }

  .recent-projects {
    max-width: none;
    width: 100vw;
    padding: 0 2rem;
    margin: 0;
  }

  .recent-projects .project-list {
    display: table;
    width: 100%;
    border-collapse: collapse;
   table-layout: fixed;
    margin: 0;
    padding: 0;
  }

  .recent-projects .project-item {
    display: table-row;
    border-top: 1px solid #b8b8b8;
    border-bottom: 1px solid #b8b8b8;
    transition: transform 0.4s ease;
    position: relative;
    padding: 2.5rem 1rem;
  }

  .recent-projects .project-item:hover {
    transform: scale(1.02);
    z-index: 1;
  }

  .recent-projects .project-item .project-link {
    display: contents;
  } 

  .recent-projects .project-item .project-link > h3,
  .recent-projects .project-item .project-link > .project-location,
  .recent-projects .project-item .project-link > .project-icon {
    display: table-cell;
    vertical-align: middle;
    padding: 2.5rem 1rem;
    width: 33.3333%;
  }

  .recent-projects .project-item .project-link > .project-location {
    text-align: center;
  }

  .recent-projects .project-link > .project-icon {
    text-align: right;
  }

  .showcase.container {
    max-width: none;
    width: 100%;
    padding: 0 2rem;
    margin: 0;
  }

  .showcase-gallery.tablet-sc { 
    display: none; 
  }

  .showcase-gallery.desktop-sc {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
  }

  .showcase-gallery.desktop-sc .showcase-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .scroll-gallery {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    padding: 8vh 3vw;
  }

  .light-text {
    color: #fff;
  }

  .dark-text {
    color: #000;
  }

  .dark-text svg path{
    fill: #000;
  }

  .project-container {
    min-height: 55vh;
    width: 90vw;
    max-width: 1050px;
    aspect-ratio: 16 / 9;
    margin: 4vh 0;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    opacity: 0.55;
    filter: blur(2.5px) grayscale(0.25);
    transform: scale(1);
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    position: relative;
  }

  .project-container img {
    object-fit: cover;
    object-position: center;
  }

  .project-container.in-focus {
    opacity: 1;
    filter: blur(0) grayscale(0);
    transform: scale(1.15);
    z-index: 4;
  }

  .project-container.clone {
    opacity: 0.55 !important;
    filter: blur(2.5px) grayscale(0.25) !important;
    transform: scale(1) !important;
    z-index: 1 !important;
  }

  /* .project-page .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  } */

  .project-hero-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    max-width: 1200px;
    margin: 5rem auto 4rem auto;
    padding: 0 clamp(2rem, 4vw, 5rem) 3rem clamp(2rem, 4vw, 5rem);
  }

  .project-hero-content h2 { 
    font-size: 2.8rem; 
    padding: 1rem; 
  }

  .site-footer.mobile-footer { 
    display: none; 
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: 'address address socials' 'copyright copyright formalities';
    gap: 3rem 6rem;
    align-items: start;
  }

  .gallery-item {
    flex: 0 1 calc((100% - (3 * 1.5rem)) / 4);
  }

  .gallery-item:hover img { 
    transform: scale(1.045); 
  }

  .footer-address { 
    grid-area: address; 
  }

  .footer-socials { 
    grid-area: socials; 
  }

  .footer-copyright { 
    grid-area: copyright; 
  }

  .footer-formalities { 
    grid-area: formalities; 
    justify-self: end; 
  }

  .footer-formalities a {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  .footer-hover-zone {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    z-index: 129;
    pointer-events: auto;
    background: transparent;
  }

  .site-footer.desktop-footer {
    display: block;
    padding: 8rem 6rem;
    opacity: 0;
    transform: translateY(100%);
    scroll-snap-align: none;
    pointer-events: none;
    transition: opacity 0.6s, transform 0.6s;
    position: fixed;
    margin: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    z-index: 130;
    will-change: transform, opacity;
  }

  .footer-scroll-trigger { 
    position: relative; 
    height: 1px; 
    scroll-snap-align: end; 
  }

  body.page-portfolio .site-footer.desktop-footer {
    opacity: 0;
    transform: translateY(100%);
  }

  body.page-portfolio .footer-hover-zone:hover + .site-footer.desktop-footer, body.page-portfolio .site-footer.desktop-footer:hover, body.page-portfolio .site-footer.desktop-footer:focus-within {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-footer.desktop-footer.footer-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

}

@media (min-width: 1200px) and (pointer: coarse) {

  .project-container, .project-container.in-focus, .project-container.clone {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    z-index: auto !important;
  }

  .site-footer.mobile-footer { 
    display: block; 
  }
  
}
