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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Times New Roman", Times, serif;
  background: #fafaf8;
  color: #2c2c2c;
  line-height: 1.6;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 1.5rem 2rem;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0ddd8;
}

nav a {
  text-decoration: none;
  color: #2c2c2c;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #888;
}

nav a.active {
  border-bottom: 1px solid #2c2c2c;
  padding-bottom: 2px;
}

/* ── Hero / Home ── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: #777;
  font-style: italic;
  max-width: 500px;
}

.hero .portfolio-links {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
}

.hero .portfolio-links a {
  text-decoration: none;
  color: #2c2c2c;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.hero .portfolio-links a:hover {
  border-bottom-color: #2c2c2c;
}

/* ── Page Header ── */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.page-header p {
  font-size: 1rem;
  color: #999;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── Photo Grid ── */
.gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  columns: 3;
  column-gap: 1.2rem;
}

.gallery img {
  width: 100%;
  display: block;
  margin-bottom: 1.2rem;
  filter: none;
  transition: opacity 0.3s ease;
}

.gallery img:hover {
  opacity: 0.85;
}

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.visible {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #bbb;
  letter-spacing: 0.1em;
  border-top: 1px solid #e0ddd8;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery {
    columns: 2;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 550px) {
  .gallery {
    columns: 1;
    padding: 1rem;
  }

  nav {
    gap: 1.5rem;
    padding: 1rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .portfolio-links {
    flex-direction: column;
    gap: 1.2rem;
  }
}
