/* =============================================
   EUGENE ZHYVCHIK PHOTOGRAPHY
   Minimalist — Light — Clean
   ============================================= */

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

:root {
  --white:   #ffffff;
  --off:     #f6f5f3;
  --light:   #ebebeb;
  --mid:     #aaaaaa;
  --dark:    #555555;
  --black:   #111111;
  --nav-h:   64px;
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--black);
}

/* ---- NAV ---- */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-name {
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--black);
  text-transform: uppercase;
  line-height: 1;
}

.nav-tagline {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--mid);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.225em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.25s;
}

.nav-links a:hover { opacity: 0.45; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- HERO / CAROUSEL ---- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.slide.active { opacity: 1; }

.slide-inner {
  width: 100%;
  height: 100%;
}

.slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Arrows — rounded square iOS style */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: border-color 0.2s, background 0.2s;
}

.arrow:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.25);
}

.arrow-prev { left: 24px; }
.arrow-next { right: 24px; }

/* Caption bar — bottom of hero */
.caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  z-index: 10;
}

.cap-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cap-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.counter {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
}

#curr { color: var(--white); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  animation: bob 2s ease-in-out infinite;
}

.scroll-cue:hover { color: var(--black); }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}

@media (max-width: 640px) {
  .arrow-prev { left: 12px; }
  .arrow-next { right: 12px; }
  .caption-bar { padding: 40px 20px 20px; }
}

/* ---- PORTFOLIO ---- */

.section-portfolio {
  padding: 100px 40px 80px;
  background: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 3.36rem;
  font-weight: 100;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
  line-height: 1;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 40px;
}

.filter {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.225em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-align: center;
}

.filter:hover { color: var(--black); }

.filter.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* Grid */
.grid {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--light);
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.grid-overlay { display: none; }

/* ---- ABOUT / CONTACT ---- */

.section-about {
  background: var(--white);
  border-top: 1px solid var(--light);
}

.ac-wrap {
  padding: 100px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Col 1 — Photo */
.ac-img-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ac-img-col img {
  width: 70%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: grayscale(8%) saturate(0.9);
}

/* Col 2 — Bio */
.ac-bio-col {
  text-align: center;
  width: 100%;
}

.ac-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
  line-height: normal;
}

.ac-bio-col p {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 14px;
  width: 100%;
  display: block;
}

.ac-bio-col p:last-child { margin-bottom: 0; }

/* Col 3 — Contact */
.ac-contact-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  height: 100%;
}

.ac-contact-col .ac-label {
  text-align: center;
}

.ac-contact-link {
  display: block;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
  word-break: break-all;
}

.ac-contact-link:hover { opacity: 0.45; }

.ac-contact-sublabel {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .ac-wrap {
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto;
    gap: 48px;
  }
  .ac-contact-col {
    grid-column: 2;
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
  }
  .ac-contact-col .ac-label { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .ac-wrap {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 40px;
  }

  .ac-img-col {
    justify-content: center;
  }

  .ac-img-col img {
    width: 55%;
    aspect-ratio: 2/3;
  }

  .ac-bio-col {
    text-align: left;
  }

  .ac-bio-col .ac-label {
    text-align: left;
  }

  .ac-bio-col p {
    font-size: 0.85rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .ac-contact-col {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ac-contact-col .ac-label {
    text-align: left;
  }
}

/* ---- CONTACT ---- */

.section-contact {
  padding: 100px 40px;
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-label {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  width: 60px;
  flex-shrink: 0;
}

.contact-info a {
  font-size: 0.85rem;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info a:hover { color: var(--black); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.field input,
.field textarea {
  background: none;
  border: none;
  border-bottom: 1px solid var(--light);
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--black);
  outline: none;
  width: 100%;
  transition: border-color 0.25s;
  resize: none;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--black); }

.btn-send {
  align-self: flex-start;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 12px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-send:hover { opacity: 0.75; }

.form-ok {
  display: none;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ---- FOOTER ---- */

footer {
  padding: 28px 40px;
  border-top: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--mid);
  text-transform: uppercase;
}

footer ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

footer a {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--black); }

/* ---- LIGHTBOX ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  display: block;
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--mid);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}

.lb-close:hover { color: var(--black); }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  z-index: 10;
}

.lb-arrow:hover { border-color: var(--black); background: var(--white); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .grid-col:last-child { display: none; }
  .section-title { font-size: 4rem; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.68rem; }
}

@media (max-width: 640px) {
  .ac-photo { height: 50vh; }
  .ac-text-row,
  .ac-contact-row { padding: 60px 20px; }
}

@media (max-width: 640px) {
  #nav { padding: 0 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light);
    padding: 8px 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 24px;
    font-size: 0.7rem;
  }

  .nav-burger { display: flex; }

  .slide { padding: 16px 48px; }

  .arrow-prev { left: 2px; }
  .arrow-next { right: 2px; }

  .counter { right: 20px; }
  .scroll-cue { right: 20px; }

  .grid-col:not(:first-child) { display: none; }

  .section-portfolio,
  .section-about,
  .section-contact { padding: 72px 20px; }

  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { width: 160px; }

  .field-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    height: calc(100vw * 0.5625 + var(--nav-h));
  }

  .slide {
    padding: 0;
  }

  .slide-inner {
    width: 100%;
    height: 100%;
  }

  .slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Keep caption bar at the very bottom of the hero */
  .caption-bar {
    padding: 30px 16px 14px;
  }

  .cap-title { font-size: 0.8rem; }
  .cap-sub, .counter { font-size: 0.55rem; }

  .arrow { width: 36px; height: 36px; }
  .arrow-prev { left: 8px; }
  .arrow-next { right: 8px; }
}
