* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: #f8f2ea;
  background-color: #000000;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 32px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
}

.site-header .logo,
.site-header .menu-button {
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 45px;
  width: auto;
  display: block;
}

.menu-button {
  display: none;
}

.header-contact {
  pointer-events: auto;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(248, 242, 234, 0.7);
  color: #f8f2ea;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.header-contact-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #f8f2ea;
  position: relative;
}

.header-contact-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 1px solid #f8f2ea;
}

.header-contact-label {
  text-transform: uppercase;
  display: none;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: none;
  transform: scale(1.02);
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.hero-bg-layer.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
}

.hero-center-text {
  position: relative;
  z-index: 5;
  max-width: 720px;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center-text p {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.hero-center-text h1 {
  font-size: clamp(28px, 3.8vw, 54px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.hero-bottom-nav {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 960px);
  padding: 0 40px;
  gap: 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  z-index: 5;
}

.hero-bottom-nav a,
.hero-bottom-nav span {
  color: #f8f2ea;
  position: relative;
}

.hero-bottom-nav a {
  text-decoration: none;
}

.hero-bottom-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #f8f2ea;
  transition: width 0.45s ease;
}

.hero-bottom-nav a:hover::after {
  width: 100%;
}

.hero-bottom-nav a.is-active {
  font-weight: 600;
}

.hero-bottom-nav a.is-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f8f2ea;
  margin-right: 8px;
  transform: translateY(1px);
}

.hero-bottom-nav--static {
  pointer-events: none;
}

.hero-bottom-nav--static span {
  opacity: 0.92;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.hero-bottom-cta {
  position: relative;
  margin-top: 30px;
  z-index: 9;
}

.works-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(248, 242, 234, 0.44);
  background: rgba(10, 10, 10, 0.22);
  color: #f8f2ea;
  text-decoration: none;
  letter-spacing: 0.22em;
  font-size: 12px;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.works-link:hover {
  transform: translateY(-4px);
  background: rgba(248, 242, 234, 0.14);
  border-color: rgba(248, 242, 234, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.works-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.works-link::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  opacity: 0.65;
  pointer-events: none;
}

.hero-bottom-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 50px;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
}

.hero-bottom-ticker::before,
.hero-bottom-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 1;
}

.hero-bottom-ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
}

.hero-bottom-ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
}

.hero-bottom-ticker__track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  padding: 0 24px;
  color: rgba(248, 242, 234, 0.96);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  animation: hero-ticker 42s linear infinite;
  opacity: 0.9;
}

.hero-bottom-ticker__track span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero-bottom-ticker__track span::after {
  content: "•";
  margin-left: 42px;
  opacity: 0.38;
}

.gallery-body {
  background-color: #000000;
  color: #f8f2ea;
  overflow: hidden;
}

.gallery-main {
  transition: filter 0.3s ease;
  min-height: 100vh;
  padding: 96px 4vw 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-title-block h1 {
  font-size: 26px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gallery-kicker {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(248, 242, 234, 0.78);
}

.gallery-grid {
  position: relative;
  width: 100%;
  height: 80vh;
  margin: 0;
}

.gallery-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate(var(--tx, 0), var(--ty, 0)) scale(1);
  opacity: 0;
  cursor: pointer;
  transition: transform 1.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, box-shadow 1.9s cubic-bezier(0.22, 1, 0.36, 1);
  animation: gallery-pop 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.gallery-item:nth-child(4n + 1) {
  animation-name: gallery-pop, gallery-drift-a;
  animation-duration: 0.9s, 22.5s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1), ease-in-out;
  animation-delay: var(--delay, 0s), 1.2s;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards, both;
}

.gallery-item:nth-child(4n + 2) {
  animation-name: gallery-pop, gallery-drift-b;
  animation-duration: 0.9s, 25.5s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1), ease-in-out;
  animation-delay: var(--delay, 0s), 1.2s;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards, both;
}

.gallery-item:nth-child(4n + 3) {
  animation-name: gallery-pop, gallery-drift-c;
  animation-duration: 0.9s, 21s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1), ease-in-out;
  animation-delay: var(--delay, 0s), 1.2s;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards, both;
}

.gallery-item:nth-child(4n + 4) {
  animation-name: gallery-pop, gallery-drift-d;
  animation-duration: 0.9s, 24s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1), ease-in-out;
  animation-delay: var(--delay, 0s), 1.2s;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards, both;
}

.gallery-item img {
  display: block;
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 1.2s ease;
  transform: scale(1);
  transform-origin: center center;
}

.works-body {
  overflow: hidden;
}

.works-body .gallery-main {
  min-height: 100vh;
  justify-content: center;
  padding: 72px 0 40px;
}

.works-seo-cloud {
  position: relative;
  width: min(92vw, 1320px);
  min-height: 180px;
  margin: 0 auto 12px;
  pointer-events: none;
}

.works-seo-note {
  position: absolute;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 242, 234, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  color: rgba(248, 242, 234, 0.78);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.works-seo-note h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(248, 242, 234, 0.92);
}

.works-seo-note p {
  font-size: 12px;
  line-height: 1.55;
}

.works-seo-note--a {
  top: 0;
  left: 2%;
  transform: rotate(-4deg);
}

.works-seo-note--b {
  top: 20px;
  left: 39%;
  transform: rotate(3deg);
}

.works-seo-note--c {
  top: -4px;
  right: 1%;
  transform: rotate(-2deg);
}

.works-seo-ghost {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 242, 234, 0.28);
  white-space: nowrap;
}

.works-seo-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seo-content {
  position: absolute;
  inset: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.works-marquee {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  padding: 72px 0;
}

.works-marquee::before,
.works-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.works-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0));
}

.works-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0));
}

.works-marquee__inner {
  display: flex;
  width: max-content;
  animation: works-scroll-right 95s linear infinite;
  will-change: transform;
}

.works-marquee__lane {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  overflow: visible;
}

.works-card {
  flex: 0 0 auto;
}

.works-card:nth-child(5n + 1) {
  transform: rotate(-4deg);
}

.works-card:nth-child(5n + 2) {
  transform: translateY(8px) rotate(3deg);
}

.works-card:nth-child(5n + 3) {
  transform: translateY(-10px) rotate(-2deg);
}

.works-card:nth-child(5n + 4) {
  transform: translateY(6px) rotate(4deg);
}

.works-card:nth-child(5n + 5) {
  transform: translateY(-6px) rotate(-3deg);
}

.works-card img {
  display: block;
  width: clamp(180px, 14vw, 258px);
  height: clamp(264px, 20vw, 378px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.works-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.04);
}

@keyframes gallery-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--tx, 0), var(--ty, 0)) scale(0.1);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--tx, 0), var(--ty, 0)) scale(1);
  }
}
@keyframes gallery-drift-a {
  0% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) - 3px), calc(var(--ty, 0) + 3px));
  }
  50% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) + 4px), calc(var(--ty, 0) - 2px));
  }
  100% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) - 2px), calc(var(--ty, 0) + 2px));
  }
}

@keyframes gallery-drift-b {
  0% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) + 2px), calc(var(--ty, 0) - 3px));
  }
  50% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) - 4px), calc(var(--ty, 0) + 3px));
  }
  100% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) + 3px), calc(var(--ty, 0) - 2px));
  }
}

@keyframes gallery-drift-c {
  0% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) - 3px), calc(var(--ty, 0) - 3px));
  }
  50% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) + 3px), calc(var(--ty, 0) + 4px));
  }
  100% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) - 2px), calc(var(--ty, 0) + 1px));
  }
}

@keyframes gallery-drift-d {
  0% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) + 3px), calc(var(--ty, 0) + 2px));
  }
  50% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) - 3px), calc(var(--ty, 0) - 4px));
  }
  100% {
    transform: translate(-50%, -50%) translate(calc(var(--tx, 0) + 2px), calc(var(--ty, 0) + 3px));
  }
}

.social-float {
  position: fixed;
  right: 64px;
  top: 44px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
}

.social-pill--whatsapp {
  background: transparent;
}

.social-pill--instagram {
  background: transparent;
}

.social-pill--linkedin {
  background: transparent;
}
.social-pill img {
  width: 21px;
  height: 21px;
  display: block;
  filter: brightness(0) invert(1); /* ikonları beyaza çevir */
}

@media (max-width: 900px) {
  .social-float {
    right: 20px;
    top: 26px;
  }
}

@media (max-width: 900px) {
  /* Ana sayfa hero arka planları için mobil versiyon görselleri kullan */
  .hero-bg-layer[data-name="bg1"] {
    background-image: url("bg/bg1 - mobil.jpg") !important;
  }

  .hero-bg-layer[data-name="bg2"] {
    background-image: url("bg/bg1 - mobil (1).jpg") !important;
  }

  .hero-bg-layer[data-name="bg3"] {
    background-image: url("bg/bg1 - mobil (2).jpg") !important;
  }

  .site-header {
    padding: 20px 20px;
  }

  .hero-bottom-nav {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
  }

  .hero-bottom-nav a {
    font-size: 13px;
  }

  .hero-bottom-nav span {
    font-size: 13px;
  }

  .hero-bottom-cta {
    margin-top: 22px;
  }

  .works-link {
    min-width: 162px;
    padding: 12px 22px;
    font-size: 11px;
  }

  .hero-bottom-ticker {
    bottom: 44px;
  }

  .hero-bottom-ticker::before,
  .hero-bottom-ticker::after {
    width: 56px;
  }

  .hero-bottom-ticker__track {
    gap: 26px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .hero-bottom-ticker__track span::after {
    margin-left: 26px;
  }

  .gallery-main {
    padding: 104px 5vw 64px;
  }

  .gallery-grid {
    height: 440px;
  }

  .gallery-item img {
    width: 100px;
    height: 150px;
  }

  .works-body .gallery-main {
    padding: 80px 0 24px;
  }

  .works-seo-cloud {
    min-height: 164px;
    margin-bottom: 4px;
  }

  .works-seo-note {
    max-width: 240px;
    padding: 12px 14px;
  }

  .works-seo-note h2 {
    font-size: 11px;
  }

  .works-seo-note p {
    font-size: 11px;
  }

  .works-marquee::before,
  .works-marquee::after {
    width: 56px;
  }

  .works-marquee__lane {
    gap: 10px;
    padding-right: 10px;
  }

  .works-card img {
    width: clamp(120px, 22vw, 164px);
    height: clamp(176px, 31vw, 240px);
  }

  .works-marquee {
    padding: 48px 0;
  }
}

@media (max-width: 900px) {
  /* Galeri sayfalarında (gallery-body) navigasyon yukarıda, içerik altta kaydırmalı olsun */
  .gallery-body {
    overflow-y: auto;
  }

  .gallery-body .hero-bottom-nav {
    position: fixed;
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 320px;
    padding: 10px 18px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
  }

  .gallery-body .hero-bottom-nav a {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .gallery-body .gallery-main {
    min-height: auto;
    padding: 104px 6vw 40px;
    justify-content: flex-start;
  }

  .gallery-body .gallery-grid {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
  }

  .gallery-body .gallery-item {
    position: static;
    top: auto;
    left: auto;
    transform: none !important;
    opacity: 1;
    animation: none;
    cursor: default;
  }

  .gallery-body .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  }

  /* Mobilde kartlara tıklayınca/hover olunca öne gelme efektini kapat */
  .gallery-item:hover,
  .gallery-body .gallery-item:hover {
    transform: none !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
    animation-play-state: running;
    z-index: auto !important;
  }

  .works-body {
    overflow-y: auto;
  }

  .works-body .gallery-main {
    min-height: auto;
    justify-content: flex-start;
    padding: 92px 14px 28px;
  }

  .works-main {
    display: flex;
    flex-direction: column;
  }

  .works-seo-cloud {
    min-height: auto;
    width: 100%;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
    pointer-events: auto;
    order: 2;
  }

  .works-seo-note,
  .works-seo-note--a,
  .works-seo-note--b,
  .works-seo-note--c {
    position: static;
    max-width: none;
    transform: none;
  }

  .works-seo-ghost {
    position: static;
    transform: none;
    white-space: normal;
    line-height: 1.6;
    text-align: center;
    padding: 4px 10px 0;
  }

  .works-marquee {
    overflow: visible;
    padding: 0;
    order: 1;
  }

  .works-marquee::before,
  .works-marquee::after {
    display: none;
  }

  .works-marquee__inner {
    animation: none;
    width: 100%;
    display: block;
  }

  .works-marquee__lane {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    padding-right: 0;
  }

  .works-marquee__lane[aria-hidden="true"] {
    display: none;
  }

  .works-card,
  .works-card:nth-child(5n + 1),
  .works-card:nth-child(5n + 2),
  .works-card:nth-child(5n + 3),
  .works-card:nth-child(5n + 4),
  .works-card:nth-child(5n + 5) {
    transform: none;
  }

  .works-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4.4;
  }

  .works-card:hover img {
    transform: none;
    filter: none;
  }
}

@keyframes works-scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes page-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
