:root {
  --bg: #f7f5f4;
  --surface: #ffffff;
  --ink: #1e2a33;
  --muted: #5b6770;
  --line: #e6e2df;
  --green: #8fd6a4;
  --green-soft: #e3f3e7;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 800; max-width: 13ch; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; max-width: 18ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.dot { color: var(--green); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--green { background: var(--green); color: var(--ink); }
.btn--sm { padding: 10px 20px; }
.link-arrow { font-weight: 600; display: inline-flex; gap: 10px; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow span { transition: transform .15s; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.logo__mark { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.07em; }
.logo__b { position: relative; }
.logo__b::after {
  content: ""; position: absolute; right: -0.06em; bottom: 0.12em;
  width: 0.36em; height: 0.5em; background: var(--green);
  border-radius: 0 999px 999px 0;
}
.logo__sub { font-size: 0.85rem; font-weight: 600; margin-top: -2px; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 0.95rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--muted); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; padding: 56px 0 24px; }
.hero__arc {
  position: absolute; right: -28vw; top: 40px;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green-soft), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero .wrap { position: relative; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin: 28px 0 36px; }
.lead::before {
  content: ""; display: block; width: 100px; height: 3px; border-radius: 3px;
  background: var(--green); margin-bottom: 24px;
}
.hero__actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

/* Sections */
.section { padding: 56px 0; }
.section--work + .section { padding-top: 64px; }
#iletisim { margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
}
.card::before {
  content: ""; display: block; width: 28px; height: 3px; border-radius: 3px;
  background: var(--green); margin-bottom: 22px;
}
.card p { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }

/* Work */
.section--work { background: var(--surface); border-block: 1px solid var(--line); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.filter[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { cursor: pointer; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.tile__img {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
}
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile__img img, .tile:focus-visible .tile__img img { transform: scale(1.04); }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 0; }
.tile__meta h3 { font-size: 1.05rem; }
.tile__meta span { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__body { border-left: 1px solid var(--line); padding-left: 60px; }
.about__body p { color: var(--muted); font-size: 1.05rem; margin: 0 0 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.stats dt { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.stats dd { margin: 0; color: var(--muted); }

/* CTA */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: 28px;
  padding: 48px 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta::after {
  content: ""; position: absolute; right: 10%; top: 40%; width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; position: relative; }
.cta .btn { position: relative; z-index: 1; }
.cta > div { position: relative; z-index: 1; }
.cta__contact { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 0; }
.cta__contact a {
  font-size: 1.05rem; font-weight: 600; color: var(--green);
  border-bottom: 1px solid transparent;
}
.cta__contact a:hover { border-bottom-color: var(--green); }
.cta__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.btn--wa { background: #25d366; color: #0b2e1a; }
.btn--wa svg { flex-shrink: 0; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; padding-right: 72px; }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 40px 0; color: var(--muted); font-size: 0.9rem; }
.footer a:hover { color: var(--ink); }

/* Lightbox */
.lightbox {
  width: min(1100px, 100% - 32px); max-height: calc(100% - 32px);
  border: 0; border-radius: 22px; padding: 0; background: var(--surface); color: var(--ink);
  display: none; grid-template-columns: 1.6fr 1fr; overflow: hidden;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(20, 28, 34, 0.75); backdrop-filter: blur(4px); }
.lightbox__media { position: relative; background: var(--bg); display: grid; place-items: center; min-height: 300px; }
.lightbox__media img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; }
.lightbox__info { padding: 40px 36px; overflow-y: auto; }
.lightbox__info h3 { font-size: 1.7rem; margin-bottom: 14px; }
.lightbox__info p { color: var(--muted); }
.lightbox__count { font-size: 0.85rem; }
.lightbox__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 1.4rem; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--ink); font-size: 1.5rem; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__nav[hidden] { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__body { border-left: 0; padding-left: 0; }
  .lightbox[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox__info { padding: 28px 24px; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .hero { padding: 32px 0 16px; }
  .section { padding: 48px 0; }
  .section--work + .section { padding-top: 48px; }
  .cta__actions, .cta__actions .btn { width: 100%; justify-content: center; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .footer { padding-bottom: 88px; }
  .footer__links { padding-right: 0; }
  .cards, .grid { grid-template-columns: 1fr; }
  .stats div + div { padding-left: 14px; }
  .stats dt { font-size: 1.5rem; }
  .cta { padding: 36px 24px; }
}
