/* =========================================================================
   Daylin Diaz — Fotoğraf Portfolyosu
   Tasarım yönü (Junior Designer varsayımı):
   "Stüdyo Editorial" — moda dergisi / galeri duvarı hissi, fotoğraflar hero,
   sıcak kağıt-beyazı zemin + is karası mürekkep + pas turuncu accent.
   Imza detay: galeri görsellerinde gri tondan renge geçen hover + film grenli
   doku overlay (fotoğrafçılık temasına sadık, jenerik degrade/emoji yok).
   ========================================================================= */

:root {
  --bg: #f3f0ea;
  --bg-alt: #eae4d6;
  --ink: #17140f;
  --ink-soft: #6b6459;
  --ink-faint: #a39c8d;
  --accent: #b34a2c;
  --accent-dim: #8a3a22;
  --line: #ddd5c4;
  --dark: #171310;
  --cream: #f6f2ea;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Archivo", -apple-system, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Film grain dokusu — tüm sayfa üzerinde sabit, düşük opaklıkta       */
/* ------------------------------------------------------------------ */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  animation: grain-shift 8s steps(8) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 2%); }
  50% { transform: translate(2%, -1%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------------ */
/* Özel imleç (yalnızca hassas işaretçili masaüstünde)                 */
/* ------------------------------------------------------------------ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  pointer-events: none;
  z-index: 9500;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s var(--ease-soft), transform 0.35s var(--ease-soft), background 0.3s;
}

.cursor-dot.is-active {
  opacity: 1;
  transform: scale(1);
}

.cursor-dot.is-dark {
  border-color: var(--cream);
  color: var(--cream);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ------------------------------------------------------------------ */
/* Preloader                                                           */
/* ------------------------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-soft), visibility 0.7s;
}

.preloader span {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 56px);
  color: var(--cream);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: preloader-in 1s var(--ease-out) 0.15s forwards;
}

@keyframes preloader-in {
  from { opacity: 0; letter-spacing: 0.3em; }
  to { opacity: 1; letter-spacing: 0.08em; }
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Nav                                                                 */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--cream);
  transition: background 0.4s var(--ease-soft), color 0.4s var(--ease-soft), padding 0.4s;
}

.nav.is-scrolled {
  background: rgba(243, 240, 234, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease-out);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-soft);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.08);
  animation: kenburns 12s linear forwards;
}

@keyframes kenburns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.16) translate(-1%, -1%); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,16,0.15) 0%, rgba(23,19,16,0.15) 40%, rgba(23,19,16,0.86) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 72px;
  color: var(--cream);
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-heading {
  font-size: clamp(48px, 11vw, 148px);
  line-height: 0.94;
  color: var(--cream);
  max-width: 16ch;
}

.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(246,242,234,0.78);
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(246,242,234,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 1px;
  height: 34px;
  background: rgba(246,242,234,0.5);
  overflow: hidden;
  position: relative;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: cue-drop 1.8s var(--ease-soft) infinite;
}

@keyframes cue-drop {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

@media (max-width: 720px) {
  .scroll-cue { display: none; }
}

/* ------------------------------------------------------------------ */
/* Reveal-on-scroll yardımcı sınıfı                                    */
/* ------------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* ------------------------------------------------------------------ */
/* Section genel                                                      */
/* ------------------------------------------------------------------ */
section {
  padding: clamp(72px, 11vw, 140px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ------------------------------------------------------------------ */
/* Galeri                                                              */
/* ------------------------------------------------------------------ */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s var(--ease-soft), color 0.3s, border-color 0.3s;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  aspect-ratio: 3 / 4;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.is-hidden-filter {
  display: none;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(0.9) contrast(1.02);
  transform: scale(1.01);
  transition: filter 0.7s var(--ease-soft), transform 0.9s var(--ease-soft);
}

.gallery-item:hover img {
  filter: grayscale(0) contrast(1.04) saturate(1.05);
  transform: scale(1.06);
}

.gallery-item .item-index {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cream);
  background: rgba(23,19,16,0.55);
  padding: 4px 8px;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover .item-index {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(23,19,16,0.82));
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.gallery-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 40px 0;
}

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(15,13,10,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox figure {
  margin: 0;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.lightbox img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(246,242,234,0.7);
  min-height: 16px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(246,242,234,0.3);
  color: var(--cream);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(246,242,234,0.1);
  border-color: var(--cream);
}

.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 26px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ------------------------------------------------------------------ */
/* About                                                               */
/* ------------------------------------------------------------------ */
.about-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.about-copy .section-kicker { margin-bottom: 18px; }

.about-bio {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 48ch;
}

.about-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--accent);
}

.stat-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .about-section { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; }
}

/* ------------------------------------------------------------------ */
/* Servisler                                                           */
/* ------------------------------------------------------------------ */
.services-section {
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg-alt);
  padding: 36px 28px;
  transition: background 0.4s var(--ease-soft);
}

.service-card:hover {
  background: var(--cream);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.service-card h3 {
  margin-top: 20px;
  font-size: 22px;
}

.service-card p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* İletişim                                                            */
/* ------------------------------------------------------------------ */
.contact-section {
  background: var(--dark);
  color: var(--cream);
}

.contact-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-heading {
  font-size: clamp(38px, 6vw, 72px);
  max-width: 14ch;
  color: var(--cream);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.contact-list a,
.contact-list span {
  position: relative;
  width: fit-content;
}

.contact-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.contact-list a:hover::after { width: 100%; }

.contact-note {
  color: rgba(246,242,234,0.55);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 24px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--dark);
  color: rgba(246,242,234,0.5);
  padding: 24px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(246,242,234,0.12);
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  color: rgba(246,242,234,0.5);
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--cream);
}
