/* ================================================================
   ECEM GÜLER — Portfolio Site  v2
   ================================================================
   Fonts:
   · --font-display → Helvetica Neue / system sans
   · --font-mono    → 403 Obrinda
   ================================================================ */

/* ----------------------------------------------------------------
   @font-face — 403 Obrinda
   ---------------------------------------------------------------- */
@font-face {
  font-family: 'Obrinda';
  src: url('../fonts/403Obrinda-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Obrinda';
  src: url('../fonts/403Obrinda-LightSlant.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Obrinda';
  src: url('../fonts/403Obrinda-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Obrinda';
  src: url('../fonts/403Obrinda-Slant.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Obrinda';
  src: url('../fonts/403Obrinda-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Obrinda';
  src: url('../fonts/403Obrinda-MediumSlant.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Obrinda';
  src: url('../fonts/403Obrinda-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Obrinda';
  src: url('../fonts/403Obrinda-BoldSlant.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ----------------------------------------------------------------
   Tokens
   ---------------------------------------------------------------- */
:root {
  --bg:       #F7F6F1;
  --text:     #C23530;   /* tuğla kırmızı — sitenin dili */
  --muted:    #9E2C28;   /* daha derin kırmızı — ikincil metin */
  --accent:   #C23530;   /* aktif durumlar — --text ile aynı */
  --border:   #E0DED8;
  --ph:       #D8D5CE;

  --font-display: 'Obrinda', Georgia, serif;
  --font-mono:    'Obrinda', Georgia, serif;

  --pad:  clamp(20px, 3vw, 48px);
  --gap:  clamp(10px, 1.2vw, 18px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur:  0.25s;

  --nav-h: 92px;
  --site-w: 900px;   /* max genişlik — sayfayı ortalar */
}

/* ----------------------------------------------------------------
   Reset
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  background: var(--bg);        /* dış alan da aynı renk */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;

  /* Sayfayı ortala — Sacha Maric gibi içe çekilmiş, dar layout */
  max-width: var(--site-w);
  margin: 0 auto;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ================================================================
   SITE NAV  —  Sacha Maric inspired
   ================================================================ */
.site-nav {
  padding: 68px var(--pad) 20px;
}

/* Row 1: name sol · lang sağ */
.site-nav__top {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: 10px;
}

.site-nav__lang {
  display: flex;
  align-items: center;
  gap: 5px;
}
.site-nav__lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur);
  padding: 0;
}
.site-nav__lang-btn.active { color: var(--text); }
.site-nav__lang-sep { font-family: var(--font-mono); font-size: 11px; color: var(--border); }

.site-nav__name {
  font-family: var(--font-mono);
  font-size: 28px;
  letter-spacing: 0.18em;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  -webkit-text-stroke: 0.5px currentColor;
  paint-order: stroke fill;
}

.site-nav__detail {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
}

/* Row 2: navigation links — sola hizalı */
.site-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 10px;
}
.site-nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--muted);
  transition: color var(--dur);
  white-space: nowrap;
  -webkit-text-stroke: 0.3px currentColor;
  paint-order: stroke fill;
}
.site-nav__link:hover  { color: var(--text); }
.site-nav__link.active { color: var(--accent); }
.site-nav__sep {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--border);
  padding: 0 6px;
  user-select: none;
}

/* ================================================================
   HOMEPAGE — tipografik an + fotoğraf
   ================================================================ */

/* Büyük başlık — Caukin "PROJECTS" eşdeğeri */
.home-display {
  padding: 12px var(--pad) 0;
  overflow: hidden;
}
.home-display span {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(52px, 11vw, 108px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.88;
  color: var(--text);
  -webkit-text-stroke: 1px currentColor;
  paint-order: stroke fill;
}

.home {
  padding: clamp(36px, 5vw, 52px) clamp(64px, 12vw, 140px) 16px;
  overflow: hidden;
}

.home img {
  width: 100%;
  height: 58vh;
  object-fit: cover;
  display: block;
}

/* Placeholder — fotoğraf eklenince kaldır */
.home__ph {
  width: 100%;
  height: 58vh;
  background: #1C1B18;
}

/* Minimal bio metin — ortalanmış, yeni katman yok */
.home-note {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 2;
  color: #0A0A0A;   /* siyah — tek siyah metin sitede */
  padding: 8px clamp(64px, 12vw, 140px) 36px;
  text-align: left;
  letter-spacing: 0.04em;
}
.home-note em {
  font-style: italic;
}

/* ================================================================
   SPLIT LAYOUT  —  Work & Personal pages
   ================================================================ */
.split {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--nav-h));
}

/* LEFT panel — sticky list */
.split__left {
  padding: 32px 24px 32px var(--pad);
  position: sticky;
  top: 0;
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  align-self: start;
}

.split__left-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: block;
}

.project-list { list-style: none; }

.project-link {
  display: block;
  padding: 14px 0;
  cursor: pointer;
  transition: opacity var(--dur);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}
.project-link:hover { opacity: 0.4; }
.project-link.active { opacity: 1; }
.project-link.active .project-link__name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}

.project-link__name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
  -webkit-text-stroke: 0.4px currentColor;
  paint-order: stroke fill;
}

/* RIGHT panel — yatay filmstrip + altta sabit metin */
.split__right {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
}

/* Aktif projenin adı — fotoğrafların önünde büyük tipografik an */
.group-label {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(20px, 2.5vw, 40px) 4px 0;
}
.group-label span {
  font-family: var(--font-mono);
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.88;
  color: var(--text);
  -webkit-text-stroke: 1px currentColor;
  paint-order: stroke fill;
  white-space: nowrap;
}

.photo-group {
  display: none;
}

@keyframes slideFromRight {
  from { transform: translateX(56px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.photo-group.active {
  display: flex;
  flex-direction: row;
  align-items: flex-end;   /* taban çizgisinde hizala — jagged skyline */
  gap: clamp(10px, 1.5vw, 20px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: clamp(80px, 22vh, 180px) var(--pad) 48px 32px;
  width: 100%;
  scrollbar-width: none;
  animation: slideFromRight 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.photo-group.active::-webkit-scrollbar { display: none; }

/* Grid layout — Daddy Cool gibi uzun seriler için */
.photo-group--grid.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(6px, 1vw, 12px);
  overflow-x: hidden;
  overflow-y: auto;
  align-items: start;
  padding: 32px;
}
.photo-group--grid .ph-item {
  width: auto;
  flex-shrink: unset;
}
.photo-group--grid .ph-item__frame,
.photo-group--grid .ph-item:nth-child(3n+1) .ph-item__frame,
.photo-group--grid .ph-item:nth-child(3n+2) .ph-item__frame,
.photo-group--grid .ph-item:nth-child(3n)   .ph-item__frame {
  height: auto;
  aspect-ratio: 3 / 4;
}

/* Seri metni — fotoğraf şeridinin altında sabit */
.series-text {
  display: none;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  max-height: 30vh;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.series-text.active {
  display: block;
}
.series-text__inner {
  padding: 20px 32px 40px;
  max-width: 680px;
}
.series-text__title {
  display: none;
}
.series-text__body p {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 2;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.series-text__body p:last-child { margin-bottom: 0; }

/* Dil geçişi */
.series-text__tr {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Photo items — değişken yükseklik, editorial ritim */
.ph-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 190px;
}

/* Her 3. elemana farklı yükseklik — 200 / 310 / 175 döngüsü */
.ph-item__frame {
  display: block;
  width: 100%;
  height: 250px;
  cursor: zoom-in;
  overflow: hidden;
}
.ph-item:nth-child(3n+1) .ph-item__frame { height: 200px; }
.ph-item:nth-child(3n+2) .ph-item__frame { height: 310px; }
.ph-item:nth-child(3n)   .ph-item__frame { height: 175px; }

.ph-item__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s var(--ease);
}
.ph-item:hover .ph-item__frame img { opacity: 0.75; }

/* Placeholder */
.ph-item__frame .img-ph {
  width: 100%;
  height: 100%;
  background: var(--ph);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #AAA8A2;
}

/* Fotoğraf altı yazı */
.ph-caption {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ----------------------------------------------------------------
   Sub-navigation — Documentary → Diary / Analog
   ---------------------------------------------------------------- */
.sub-project-list {
  list-style: none;
  padding-left: 14px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.sub-project-list.expanded {
  max-height: 300px;
}

.project-link--sub {
  padding: 6px 0;
}
.project-link--sub .project-link__name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.project-link--sub:hover .project-link__name {
  color: var(--text);
}
.project-link--sub.active .project-link__name {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}

/* ================================================================
   FİLMSTRİP PAGE — sol panel olmadan doğrudan şerit (still life vb.)
   ================================================================ */
.filmstrip-page {
  min-height: calc(100vh - var(--nav-h) - 80px);
  display: flex;
  align-items: flex-start;
}

.filmstrip {
  display: flex;
  flex-direction: row;
  align-items: flex-end;   /* taban çizgisinde hizala */
  gap: clamp(10px, 1.5vw, 20px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 48px var(--pad);
  width: 100%;
  scrollbar-width: none;
  animation: slideFromRight 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.filmstrip::-webkit-scrollbar { display: none; }

/* ================================================================
   LİGHTBOX
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: default;
}
.lightbox__close {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.lightbox__close:hover { color: var(--text); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 20px;
  transition: color 0.2s;
  z-index: 1;
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--text); }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 112px);
  padding: 56px var(--pad) clamp(72px, 10vw, 120px);
  align-items: start;
}

.about__img {
  position: sticky;
  top: 24px;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--ph);
}
.about__img img { width: 100%; height: 100%; object-fit: cover; }

.about__text h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 36px;
}
.about__text p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.about__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 40px;
  margin-bottom: 10px;
}
.about__text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--dur);
}
.about__text a:hover { opacity: 0.5; }
.about__clients {
  margin-top: 40px;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 2;
  color: var(--muted);
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact {
  padding: clamp(48px, 8vw, 96px) var(--pad) clamp(72px, 10vw, 120px);
}

.contact__display {
  overflow: hidden;
}
.contact__display span {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(52px, 11vw, 108px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.88;
  color: var(--text);
  -webkit-text-stroke: 1px currentColor;
  paint-order: stroke fill;
}

.contact__info {
  margin-top: clamp(28px, 4.5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__item {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3.8vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  -webkit-text-stroke: 0.5px currentColor;
  paint-order: stroke fill;
  transition: opacity var(--dur);
}
.contact__item:hover { opacity: 0.45; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: 24px var(--pad) 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer span,
.site-footer a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer a:hover { color: var(--text); transition: color var(--dur); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about__img { position: relative; top: 0; aspect-ratio: 4/3; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .photo-group.active { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --nav-h: 72px; }
  .split { grid-template-columns: 1fr; }
  .split__left {
    position: relative;
    height: auto;
    padding: 24px var(--pad);
  }
  .split__right { padding: 24px var(--pad); }
  .photo-group.active { grid-template-columns: repeat(2, 1fr); }
  .site-nav__detail { display: none; }
}
