/* =====================================================================
   Yağız Bingül PHOTOGRAPHY — ORTAK STİL DOSYASI
   Tüm sayfalar bu dosyayı kullanır. Renkleri/boşlukları :root'tan ayarlayın.
   ===================================================================== */

:root {
  --bg: #ffffff;            /* sayfa arka planı */
  --text: #1a1a1a;          /* ana yazı */
  --muted: #9a9a9a;         /* soluk yazı */
  --line: #e8e8e8;          /* ince çizgiler */
  --accent: #1a1a1a;        /* vurgu (buton vs.) */
  --gap: 10px;              /* görseller arası boşluk */
  --maxw: 1600px;           /* içerik maks. genişlik */
  --font: "Helvetica Neue", Arial, sans-serif;
  --serif: "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* =========================  PRELOADER (yüklenme ekranı)  ========================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader .pl-logo {
  font-size: 15px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}
/* logonun altında soldan dolan ince çizgi animasyonu */
.preloader .pl-logo::after {
  content: "";
  position: absolute;
  left: 0; bottom: -10px;
  height: 1px; width: 100%;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  animation: load-line 1.1s var(--ease) infinite;
}
@keyframes load-line {
  0%   { transform: scaleX(0);   transform-origin: left; }
  50%  { transform: scaleX(1);   transform-origin: left; }
  51%  { transform: scaleX(1);   transform-origin: right; }
  100% { transform: scaleX(0);   transform-origin: right; }
}

/* Sayfa açılış: içerik baştan hafif saydam, yüklenince belirir */
.page {
  opacity: 0;
  transition: opacity .8s var(--ease);
}
body.loaded .page { opacity: 1; }

/* =========================  HEADER  ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  padding: 26px 24px 16px;
  text-align: center;
  border-bottom: 1px solid transparent;
  transition: padding .35s var(--ease), border-color .35s var(--ease);
}
/* aşağı kaydırınca header küçülür */
header.shrink { padding: 14px 24px 12px; border-color: var(--line); }

.logo {
  display: inline-block;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  transition: font-size .35s var(--ease), letter-spacing .35s var(--ease);
}
header.shrink .logo { font-size: 17px; letter-spacing: 4px; }

nav.main {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
nav.main a {
  position: relative;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 4px;
  color: var(--text);
}
/* alttan beliren çizgi */
nav.main a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
nav.main a:hover::after,
nav.main a.active::after { transform: scaleX(1); }

/* Mobil menü butonu */
.menu-toggle {
  display: none;
  position: absolute;
  top: 24px;
  right: 20px;
  width: 26px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  margin: 5px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================  SAYFA GÖVDESİ  ========================= */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 14px 60px;
}

/* Sayfa başlığı (iç sayfalarda) */
.page-head {
  text-align: center;
  padding: 36px 20px 30px;
}
.page-head h1 {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.page-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .5px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================  GALERİ  ========================= */
.gallery {
  column-count: 3;
  column-gap: var(--gap);
}
.gallery.two { column-count: 2; }
.gallery .item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #f2f2f2;           /* görsel yüklenene kadar gri zemin */
}
/* görsel fade-in: yüklenince belirir */
.gallery .item img {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.gallery .item img.loaded { opacity: 1; transform: scale(1); }
.gallery .item:hover img.loaded { transform: scale(1.04); }

.gallery .item .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery .item:hover .caption { opacity: 1; transform: translateY(0); }

/* video/motion için oynat ikonu */
.gallery .item.video::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%,-50%) scale(.9);
  border: 1.5px solid #fff;
  border-radius: 50%;
  opacity: .9;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.gallery .item.video::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-46%,-50%);
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  z-index: 2;
  opacity: .95;
  transition: transform .35s var(--ease);
}
.gallery .item.video:hover::after { transform: translate(-50%,-50%) scale(1.05); background: rgba(255,255,255,.12); }

/* =========================  SCROLL REVEAL  =========================
   .reveal olan her blok görünüme girince aşağıdan belirir */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================  ABOUT  ========================= */
.about {
  max-width: 1000px;
  margin: 10px auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 20px;
}
.about .portrait { overflow: hidden; background: #f2f2f2; }
.about .bio h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 18px;
}
.about .bio p { color: #444; font-size: 15px; margin-bottom: 14px; }
.about .bio .tags {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================  CONTACT  ========================= */
.contact {
  max-width: 620px;
  margin: 10px auto;
  padding: 20px;
  text-align: center;
}
.contact .lead { color: #444; font-size: 15px; margin-bottom: 30px; }
.contact form { text-align: left; }
.contact .field { margin-bottom: 18px; }
.contact label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.contact input,
.contact textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  transition: border-color .3s var(--ease);
}
.contact input:focus,
.contact textarea:focus { outline: none; border-color: var(--text); }
.contact textarea { resize: vertical; min-height: 110px; }
.contact button {
  margin-top: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 34px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.contact button:hover { opacity: .8; transform: translateY(-1px); }
.contact .form-msg {
  margin-top: 20px;
  font-size: 13px;
  color: #2a7a3a;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.contact .form-msg.show { opacity: 1; }
.contact .info {
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
}
.contact .info a:hover { color: var(--text); }

/* =========================  FOOTER  ========================= */
footer {
  text-align: center;
  padding: 60px 20px 70px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
footer h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}
footer .social {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
footer .social a { color: var(--text); }
footer .social a:hover { opacity: .5; }

/* =========================  LIGHTBOX  ========================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255,255,255,.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw;
  max-height: 86vh;
  width: auto;
  transform: scale(.97);
  transition: transform .35s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox .lb-btn {
  position: absolute;
  background: none;
  border: none;
  color: #111;
  font-size: 34px;
  cursor: pointer;
  padding: 10px 16px;
  user-select: none;
  transition: opacity .3s var(--ease);
}
.lb-close { top: 18px; right: 24px; font-size: 26px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-btn:hover { opacity: .45; }

/* =========================  RESPONSIVE  ========================= */
@media (max-width: 1000px) {
  .gallery { column-count: 2; }
  .about { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .gallery, .gallery.two { column-count: 1; }
  .menu-toggle { display: block; }
  nav.main {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
  }
  nav.main.show { display: flex; }
}

/* hareketi azalt tercihine saygı */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .page, .gallery .item img { opacity: 1 !important; transform: none !important; }
}
