/* ============================================================
   PhotographyX — Elevated Minimalist CSS
   Dark, editorial, gallery-grade
============================================================ */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Offset anchors for fixed header */
:target {
  scroll-margin-top: 100px;
}

/* THEME TOKENS */
:root {
  --bg: #0b0b0b;
  --text: #e7e7e7;
  --accent: #ffffff;
  --muted: #8b8b8b;
  --card: #111;
  --line: rgba(255,255,255,0.10);
  --radius: 10px;
}

/* BASE */
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  padding-top: 90px; /* offset for fixed nav */
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--accent);
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* UTILITIES */
.muted {
  color: var(--muted);
  opacity: 0.85;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.skip {
  position: absolute;
  left: -9999px;
}

/* ============================================================
   HEADER
============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(18,18,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 9999;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand__text {
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  text-decoration: none;
  color: var(--text);
  opacity: .85;
  font-size: 0.95rem;
  transition: .25s ease;
}

.nav__links a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav__toggle {
  display: none;
}

/* Compact while scrolling */
.nav--scrolled {
  backdrop-filter: blur(14px) brightness(.92);
  border-bottom-color: rgba(255,255,255,0.05);
}

/* ============================================================
   HERO
============================================================ */

.hero {
  text-align: center;
  padding: 9rem 1rem 6rem;
}

.hero__sub {
  max-width: 650px;
  margin: 1rem auto 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
}

.btn--primary {
  background: var(--accent);
  color: #000;
  padding: 0.78rem 1.5rem;
  border-radius: 6px;
}

.btn--pill {
  padding: .6rem 1.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  font-size: .95rem;
}
.btn--pill:hover {
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   SECTIONS
============================================================ */

.section {
  padding: 4.0rem 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.75rem;
}

/* ============================================================
   GALLERY
============================================================ */

.gallery__container {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 2.5rem;
}

.gallery__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gallery__grid img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  cursor: pointer;
  transition: .25s ease;
}

.gallery__grid img:hover {
  opacity: .9;
  transform: scale(1.02);
}

/* ============================================================
   LIGHTBOX
============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1.5rem;
  z-index: 10000;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.lightbox__caption {
  max-width: 700px;
  text-align: center;
  opacity: .75;
  font-size: 0.95rem;
}

.lightbox__close {
  position: absolute;
  top: 20px; right: 30px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  opacity: .75;
  cursor: pointer;
  transition: .25s;
}
.lightbox__close:hover {
  opacity: 1;
}

/* ============================================================
   ABOUT (now card-style)
============================================================ */

.bullets {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}

.bullets li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: .4rem;
}

.bullets li::before {
  content: "–";
  opacity: .7;
  position: absolute;
  left: 0;
}

/* ============================================================
   CONTACT
============================================================ */

.contact__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact__email {
  color: var(--accent);
  text-decoration: none;
}
.contact__email:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  padding: 3.5rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  opacity: .65;
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer__links a {
  text-decoration: none;
  color: var(--text);
  opacity: .7;
  font-size: .9rem;
}
.footer__links a:hover {
  opacity: 1;
}

.to-top {
  text-decoration: none;
  color: var(--accent);
  font-size: 1.25rem;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--accent);
  }

  .nav__links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: 100%;
  }

  .nav__links.nav__links--visible {
    display: flex;
  }

  .hero {
    padding-top: 7rem;
  }

  .section {
    padding: 5rem 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
