/* Projelerimiz revision — intentionally isolated from the existing home hero. */
.main-nav {
  gap: clamp(13px, 1.45vw, 24px);
}

.nav-inner {
  gap: 24px;
}

.product-card--reklamli .product-card-image img {
  object-fit: contain;
  background: #eef1f3;
}

.projects-hero {
  min-height: 410px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 28%, rgba(34, 88, 132, .42), transparent 34%),
    linear-gradient(115deg, #04101d 0%, #071b30 58%, #0d3150 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.projects-hero::after {
  content: "";
  width: 360px;
  height: 360px;
  border: 70px solid rgba(255, 255, 255, .045);
  position: absolute;
  top: -190px;
  right: 8%;
  transform: rotate(24deg);
}

.projects-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 56%);
}

.projects-hero-inner {
  z-index: 2;
  padding-block: 88px;
  position: relative;
}

.projects-hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(46px, 6vw, 78px);
  letter-spacing: -.048em;
  line-height: 1.02;
}

.projects-hero p {
  max-width: 790px;
  margin: 0;
  color: #c9d6e0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.projects-gallery-section {
  background: linear-gradient(180deg, #fff 0%, #f5f7f9 100%);
}

.project-gallery-grid {
  columns: 3;
  column-gap: 22px;
}

.project-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(7, 24, 42, .09);
  overflow: hidden;
}

.project-card-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.project-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e9edf0;
}

.project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 29, 0);
  transition: background .38s ease;
}

.project-card img {
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}

.project-zoom {
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: var(--white);
  background: rgba(4, 16, 29, .7);
  display: grid;
  place-items: center;
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease, background .35s ease;
}

.project-card-copy {
  display: block;
  padding: 20px 22px 22px;
  transition: transform .38s ease;
}

.project-card-copy small,
.project-card-copy strong {
  display: block;
}

.project-card-copy small {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.project-card-copy strong {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.28;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover img {
    transform: scale(1.03);
  }

  .project-card:hover .project-card-media::after {
    background: rgba(4, 16, 29, .16);
  }

  .project-card:hover .project-zoom {
    opacity: 1;
    transform: translateY(0);
  }

  .project-card:hover .project-card-copy {
    transform: translateY(-3px);
  }
}

.project-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .62s ease var(--reveal-delay, 0ms),
    transform .62s ease var(--reveal-delay, 0ms);
}

.project-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-lightbox[hidden] {
  display: none;
}

.project-lightbox {
  z-index: 100;
  position: fixed;
  inset: 0;
  padding: 70px 90px 58px;
  color: var(--white);
  background: rgba(2, 8, 15, .96);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transition: opacity .24s ease;
  touch-action: pan-y;
}

.project-lightbox.is-open {
  opacity: 1;
}

.lightbox-open {
  overflow: hidden;
}

.project-lightbox-figure {
  min-width: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.project-lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.project-lightbox-figure figcaption {
  color: #d7e1e9;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.project-lightbox-close,
.project-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.project-lightbox-close:hover,
.project-lightbox-nav:hover {
  border-color: rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .15);
}

.project-lightbox-close {
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  position: absolute;
  top: 22px;
  right: 24px;
}

.project-lightbox-nav {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 36px;
}

.project-lightbox-count {
  position: absolute;
  bottom: 20px;
  right: 26px;
  color: #9fb0be;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.home-projects-section {
  background: var(--soft);
}

.home-projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.home-projects-heading .section-heading {
  margin-bottom: 34px;
}

.home-projects-heading .button {
  flex: none;
  margin-bottom: 34px;
}

.home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.home-project-card {
  min-height: 250px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.home-project-card:first-child {
  grid-column: span 2;
}

.home-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .4s ease;
}

.home-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 16, 29, .82));
}

.home-project-card span {
  z-index: 2;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
}

.home-project-card:hover img {
  transform: scale(1.025);
}

.qr-access-section {
  padding: 0 0 88px;
  background: var(--soft);
}

.qr-access-card {
  max-width: 960px;
  margin-inline: auto;
  padding: 38px 46px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 7px;
  background: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(38px, 7vw, 78px);
  box-shadow: 0 18px 50px rgba(7, 24, 42, .12);
}

.qr-access-copy {
  max-width: 530px;
}

.qr-access-copy h2 {
  margin: 0 0 15px;
  color: var(--navy);
  font-size: clamp(30px, 3.2vw, 43px);
  letter-spacing: -.04em;
  line-height: 1.08;
}

.qr-access-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.qr-access-media {
  width: 220px;
  text-align: center;
}

.qr-access-image-wrap {
  padding: 12px;
  border: 1px solid #e3e7eb;
  background: var(--white);
}

.qr-access-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 0;
  opacity: 1;
  filter: none;
}

.qr-access-media small {
  margin-top: 10px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
}

@supports (animation-timeline: view()) {
  .qr-access-card {
    animation-name: contentReveal;
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 8% cover 24%;
  }
}

@media (max-width: 900px) {
  .project-gallery-grid {
    columns: 2;
  }

  .home-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-project-card:first-child {
    grid-column: span 2;
  }

  .project-lightbox {
    padding: 72px 18px 72px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .project-lightbox-nav {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 560px) {
  .projects-hero {
    min-height: 370px;
  }

  .projects-hero-inner {
    padding-block: 68px;
  }

  .projects-hero h1 {
    font-size: 47px;
  }

  .project-gallery-grid {
    columns: 1;
  }

  .project-card {
    margin-bottom: 16px;
  }

  .project-card-copy {
    padding: 17px 18px 19px;
  }

  .project-card-copy strong {
    font-size: 18px;
  }

  .project-zoom {
    width: 38px;
    height: 38px;
    opacity: 1;
    transform: none;
  }

  .home-projects-heading {
    display: block;
  }

  .home-projects-heading .section-heading {
    margin-bottom: 24px;
  }

  .home-projects-heading .button {
    width: 100%;
    margin: 0 0 26px;
  }

  .home-project-grid {
    grid-template-columns: 1fr;
  }

  .home-project-card,
  .home-project-card:first-child {
    grid-column: auto;
    min-height: 245px;
  }

  .qr-access-section {
    padding-bottom: 58px;
  }

  .qr-access-card {
    padding: 30px 22px 28px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 26px;
  }

  .qr-access-copy {
    text-align: center;
  }

  .qr-access-copy h2 {
    font-size: 32px;
  }

  .qr-access-copy p {
    font-size: 15px;
  }

  .qr-access-media {
    width: 190px;
  }

  .project-lightbox {
    padding: 74px 12px 110px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 5px;
  }

  .project-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .project-lightbox-nav {
    width: 42px;
    height: 52px;
    border-radius: 4px;
  }

  .project-lightbox-figure img {
    max-height: calc(100svh - 220px);
  }

  .project-lightbox-figure figcaption {
    font-size: 12px;
  }

  .project-lightbox-count {
    bottom: 82px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-reveal {
    opacity: 1;
    transform: none;
  }
}
