/* ─────────────────────────────────────────────────────────────
   style.css — Photography Portfolio
   ───────────────────────────────────────────────────────────── */

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

:root {
  --black:  #0a0a0a;
  --dark:   #1a1a1a;
  --muted:  #888;
  --light:  #c8c8c8;
  --white:  #f5f5f0;
  --accent: #e8d5b0;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}


/* ─── CURSOR ─────────────────────────────────────────────── */

.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
body:has(a:hover) .cursor,
body:has(.gallery-item:hover) .cursor {
  width: 12px;
  height: 12px;
  background: var(--white);
}


/* ─── NAV ─────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  mix-blend-mode: difference;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity .3s;
}
.nav-links a:hover { opacity: 1; }


/* ─── HERO ─────────────────────────────────────────────────── */

.hero {
  padding: 120px 48px 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp .6s .2s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp .6s .35s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── GALLERY ─────────────────────────────────────────────── */

.gallery { padding: 32px 48px 80px; }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 32px 0 48px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 20px;
  cursor: none;
  transition: all .3s;
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--black);
  background: var(--accent);
  border-color: var(--accent);
}

/* Masonry grid */
.grid {
  columns: 3;
  column-gap: 16px;
}
@media (max-width: 900px) { .grid { columns: 2; } }
@media (max-width: 540px) { .grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94), filter .5s;
  filter: grayscale(15%);
}
.gallery-item:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* Hover overlay — bottom title */
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.gallery-item:hover .overlay { opacity: 1; }

.overlay-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  transform: translateY(8px);
  transition: transform .4s;
}
.gallery-item:hover .overlay-title { transform: translateY(0); }

.overlay-cat {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  transform: translateY(8px);
  transition: transform .4s .05s;
  opacity: 0;
}
.gallery-item:hover .overlay-cat {
  opacity: 1;
  transform: translateY(0);
}

/* EXIF tags — top left on hover */
.exif-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s .05s, transform .35s .05s;
  z-index: 2;
}
.gallery-item:hover .exif-bar {
  opacity: 1;
  transform: translateY(0);
}
.exif-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 4px 9px 4px 7px;
  width: fit-content;
}
.exif-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.exif-icon svg { width: 13px; height: 13px; display: block; }
.exif-value {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  white-space: nowrap;
}

/* Placeholder card shown when image file is not found */
.photo-placeholder {
  width: 100%;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 60px 24px;
  border: 1px dashed rgba(255,255,255,0.08);
}
.photo-placeholder .ph-icon { font-size: 2rem; opacity: 0.3; }
.ph-filename { color: var(--accent); opacity: 0.7; }

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


/* ─── LIGHTBOX ────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.lightbox-info { text-align: center; }
.lightbox-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
}
.lightbox-cat {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}
.lightbox-close {
  position: fixed;
  top: 32px; right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: none;
  opacity: 0.6;
  transition: opacity .3s;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: none;
  transition: all .3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.1); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }


/* ─── ABOUT ───────────────────────────────────────────────── */

.about {
  padding: 80px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 28px;
}
.about-text p {
  font-size: 0.8rem;
  line-height: 2;
  color: var(--light);
  opacity: 0.7;
  margin-bottom: 16px;
  max-width: 820px;
}


/* ─── FOOTER ──────────────────────────────────────────────── */

footer {
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ─── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 700px) {
  nav,
  .hero,
  .section-header,
  .gallery,
  .about,
  footer { padding-left: 24px; padding-right: 24px; }
}
