body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  margin: 0;
  background: #f9fafb;
  color: #1b1a1a;
}

.container_1 {
  margin: 0 auto;
  padding: 0 7vw;
}

.container_portfolio {
  margin: 0 auto;
  padding: 0 7vw;
}

/* NAVIGATION */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  min-height: 70px;
}
.nav-logo {
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

/* Hide nav-logo on mobile */
@media (max-width: 600px) {
  .nav-logo {
    display: none;
  }
}
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start; /* keep the logo aligned left */
    gap: 8px;
    width: 100%;
    margin-top: 25px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-end;  /* push links to the right */
  }
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: #484343;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-link.active,
.nav-link:focus {
  font-weight: 600;
  border-bottom: 2px solid #1b1a1a;
}
.nav-link:hover {
  border-bottom: 2px solid #bbb;
}

/* MAIN HEADING */
.main-content {
  padding-bottom: 90px;
}

.main-heading {
  font-size: 5.3rem;
  font-weight: 600;
  margin: 38px 0 40px 0;
  line-height: 1.18;
  letter-spacing: -4.2px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  text-align: left;
}

/* HERO IMAGE (matches grid width, not edge-to-edge) */
.hero-image-standard {
  max-width: 1400px;
  margin: 0 auto 38px auto;
  display: flex;
  justify-content: center;
}
.hero-image-standard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: #ececec;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

@media (max-width: 1000px) {
  .hero-image-standard {
    max-width: 98vw;
  }
  .hero-image-standard img {
    height: 220px;
  }
}
@media (max-width: 600px) {
  .main-heading {
    font-size: 1.4rem;
    margin: 17px 0 16px 0;
  }
  .hero-image-standard img {
    height: 95px;
    min-height: 50px;
  }
  .hero-image-standard {
    margin-bottom: 24px;
  }
}

/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  background: none;
}

.portfolio-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  background: #ececec;
  border-radius: 0;
}

@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px 0;
  }
  .portfolio-item img {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .portfolio-item img {
    height: 36vw;
    min-height: 90px;
  }
}

/* FOOTER */
.footer {
  background: #232323;
  color: #fff;
  padding: 60px 0 60px 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}
.footer-grid {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-left {
  flex: 1 1 300px;
}
.footer-logo {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 36px;
}
.footer-contact-block p {
  margin: 0 0 10px 0;
  font-size: 1.08rem;
}
.footer-right {
  flex: 2 1 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}
.footer-socials {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-socials img {
  width: 36px;
  height: 36px;
  transition: opacity 0.2s;
}
.footer-socials a:hover img {
  opacity: 0.7;
}
.footer-links {
  display: flex;
  gap: 26px;
  margin-bottom: 10px;
}
.footer-links a {
  color: #5a5555;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.8;
}
.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-copy {
  font-size: 1rem;
  color: #5a5555;
  opacity: 0.8;
  text-align: right;
}
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
    padding: 0 6vw;
  }
  .footer-right { align-items: flex-start; text-align: left; }
  .footer-copy { text-align: left; }
}


/* === Portfolio Page Mobile Fixes === */

/* Header: bigger & normal spacing */
@media (max-width: 600px) {
  .main-heading {
    font-size: 2.2rem;       /* bigger for mobile */
    letter-spacing: -0.5px;  /* more natural spacing */
    line-height: 1.2;
    margin: 20px 0 22px 0;
  }
}

/* Prevent image cropping on mobile */
@media (max-width: 600px) {
  .portfolio-item img {
    height: auto;            /* remove fixed height */
    min-height: unset;       /* allow natural scaling */
    width: 100%;             /* full width */
    object-fit: contain;     /* fit inside without cropping */
  }
}


@media (max-width: 600px) {
  .hero-image-standard img {
    width: 100%;
    height: auto;                /* remove forced crop */
    object-fit: contain;         /* show full image */
    max-height: 60vh;            /* optional: prevent it from being too tall */
  }
  .hero-image-standard {
    margin-bottom: 24px;
  }
}


@media (max-width: 600px) {
  .container_portfolio {
    padding-left: 2vw;   /* reduce side spacing */
    padding-right: 2vw;
    padding-top: 2vw;
  }

    /* Reduce grid spacing */
    .portfolio-grid {
      gap: 10px; /* less vertical gap between items */
      margin-top: 0;
      margin-bottom: 0;
    }
}

@media (max-width: 600px) {
  .hero-image-standard {
    display: none;
  }
}
