/* ==========================================================================
   Huseyin Abdik — Photography Portfolio
   Design system: monochrome, editorial, archival caption system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* color */
  --ink: #0d0d0c;
  --paper: #faf9f6;
  --paper-pure: #ffffff;
  --surface-dark: #111110;
  --line: #d9d6cf;
  --line-dark: #2c2b29;
  --mid: #6e6c66;
  --mid-on-dark: #9a9892;

  /* type */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  /* layout */
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1400px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-name {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-name span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mid);
  letter-spacing: 0.08em;
  display: block;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px var(--gutter);
    gap: 28px;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 16px; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background: var(--surface-dark);
  color: var(--paper-pure);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero .eyebrow { color: var(--mid-on-dark); margin-bottom: 14px; }

.hero h1 {
  font-size: clamp(40px, 8vw, 96px);
  line-height: 0.98;
  color: var(--paper-pure);
}

.hero-tagline {
  font-family: var(--body);
  font-size: clamp(15px, 1.6vw, 19px);
  color: #d8d6d0;
  max-width: 480px;
  margin-top: 18px;
  font-weight: 300;
}

/* ==========================================================================
   Entry tiles (Documentary / Fine Art) on home
   ========================================================================== */

.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.entry {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
}

.entry:last-child { border-right: none; }

.entry img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.6s ease;
  filter: grayscale(15%);
}

.entry:hover img { transform: scale(1.045); filter: grayscale(0%); }

.entry-overlay {
  position: relative;
  z-index: 2;
  padding: 28px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 70%);
  color: var(--paper-pure);
}

.entry-overlay .eyebrow { color: #cfcdc6; }

.entry-overlay h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-top: 8px;
}

@media (max-width: 760px) {
  .entries { grid-template-columns: 1fr; }
  .entry { border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 4/3.4; }
}

/* ==========================================================================
   Section intro (used on Documentary / Fine Art landing pages)
   ========================================================================== */

.section-intro {
  padding: 72px var(--gutter) 40px;
  border-bottom: 1px solid var(--line);
}

.section-intro h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-top: 10px;
}

.section-intro p {
  max-width: 540px;
  margin-top: 16px;
  color: var(--mid);
  font-weight: 300;
  font-size: 16px;
}

/* ==========================================================================
   Project grid (landing pages: 2 covers)
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
}

.project-card:nth-child(even) { border-right: none; }

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.project-card:hover img { transform: scale(1.04); }

/* corner crop marks — signature hover detail */
.project-card::before,
.project-card::after,
.frame::before,
.frame::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--paper-pure);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}
.project-card::before, .frame::before { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.project-card::after, .frame::after { bottom: 16px; right: 16px; border-left: none; border-top: none; }
.project-card:hover::before, .project-card:hover::after,
.frame:hover::before, .frame:hover::after { opacity: 0.85; }

.project-card-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 75%);
  color: var(--paper-pure);
}

.project-card-label .eyebrow { color: #d4d2cb; }
.project-card-label h3 { font-size: clamp(22px, 3vw, 34px); margin-top: 6px; }

@media (max-width: 760px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card { border-right: none; aspect-ratio: 4/5; }
}

/* ==========================================================================
   Project detail page
   ========================================================================== */

.project-header {
  padding: 56px var(--gutter) 0;
}

.back-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.back-link:hover { color: var(--ink); }

.project-title {
  margin-top: 22px;
  font-size: clamp(38px, 7vw, 80px);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 22px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-statement {
  max-width: 640px;
  padding: 36px var(--gutter) 8px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: #2a2a28;
}

.carousel {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.carousel-stage {
  position: relative;
  height: 78vh;
  background: var(--paper);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.carousel-slide figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-pure);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  opacity: 0.85;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.06); }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }

.carousel-counter {
  text-align: center;
  padding: 16px var(--gutter) 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mid);
}

@media (max-width: 760px) {
  .carousel-stage { height: 56vh; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 17px; }
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px var(--gutter) 70px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.project-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}
.project-nav a:hover { color: var(--ink); }
.project-nav .next-title {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0;
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-content {
  max-width: 680px;
  padding: 64px var(--gutter) 90px;
  border-top: 1px solid var(--line);
}

.about-portrait-small {
  width: 220px;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--line);
}
.about-portrait-small img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-content h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.about-content .lede {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
}

.about-content .body-copy {
  margin-top: 18px;
  color: #2a2a28;
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.cv-button:hover { background: var(--ink); color: var(--paper-pure); }
.cv-button svg { width: 14px; height: 14px; }

.about-contact {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.about-contact .contact-link {
  font-size: clamp(22px, 3vw, 32px);
}
.about-contact .contact-row {
  margin-top: 14px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .about-portrait-small { width: 160px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-hero {
  min-height: calc(100vh - var(--nav-h) - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
}

.contact-hero .eyebrow { margin-bottom: 18px; }

.contact-link {
  font-family: var(--display);
  font-size: clamp(32px, 7vw, 76px);
  line-height: 1.15;
  display: inline-block;
  position: relative;
  width: fit-content;
}

.contact-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.contact-link:hover::after { transform: scaleX(1); }

.contact-row {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mid);
}
.contact-row a:hover { color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--surface-dark);
  color: var(--mid-on-dark);
  padding: 40px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.footer-copy,
.footer-legal {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--mid-on-dark);
  margin: 0;
}

.footer-legal { margin-top: 8px; }
.footer-legal a { color: var(--mid-on-dark); }
.footer-legal a:hover { color: var(--paper-pure); }

.footer-icons {
  display: flex;
  gap: 14px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-pure);
  color: var(--surface-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { transform: scale(1.08); opacity: 0.82; }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,8,7,0.96);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-pure);
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Placeholder notice (build-time only — remove once real photos are in)
   ========================================================================== */

.placeholder-banner {
  background: #fff7e0;
  border-bottom: 1px solid #e6d68f;
  color: #5c4d10;
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  padding: 8px var(--gutter);
  letter-spacing: 0.03em;
}
