/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: #0a0a0a;
  color: #e8e8e8;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* === Typography === */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; }

/* === Navigation === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px);
  transition: background 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid rgba(255,255,255,0);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0; transition: opacity 0.4s;
}
.nav.scrolled .nav-logo { opacity: 1; }
.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.6; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.nav-toggle span {
  display: block; width: 100%; height: 1.5px; background: #e8e8e8;
  position: absolute; left: 0; transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

/* === Hero === */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.1) 40%,
    rgba(10,10,10,0.5) 80%,
    rgba(10,10,10,1) 100%
  );
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7) saturate(1.1);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 0 2rem;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400; letter-spacing: 0.02em;
  line-height: 1.1; margin-bottom: 1rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 300; opacity: 0.8;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; opacity: 0.4; animation: float 2s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === Quote === */
.quote-section {
  padding: 6rem 2rem; text-align: center;
  max-width: 800px; margin: 0 auto;
}
.quote-section blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic; font-weight: 400;
  line-height: 1.8; color: rgba(255,255,255,0.75);
}
.quote-section cite {
  display: block; margin-top: 1.5rem;
  font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.5;
  font-style: normal;
}

/* === Gallery Sections === */
.gallery-section {
  padding: 4rem 2rem 6rem;
  max-width: 1400px; margin: 0 auto;
}
.section-header {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
}
.artwork-count {
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.35;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative; cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  background: #141414;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0, 0.25, 1), opacity 0.4s;
}
.gallery-item img.lazy { opacity: 0; }
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img {
  transform: scale(1.05);
}
.item-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex; flex-direction: column; gap: 0.2rem;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .item-overlay { opacity: 1; }
.item-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 400;
}
.item-year {
  font-size: 0.75rem; opacity: 0.5;
  letter-spacing: 0.05em;
}

/* === About === */
.about-section {
  padding: 6rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: center;
}
.about-image img {
  width: 100%; border-radius: 2px;
  filter: grayscale(0.2);
}
.about-text h2 {
  font-size: 2.2rem; margin-bottom: 1.5rem;
}
.about-text p {
  margin-bottom: 1.2rem; opacity: 0.75;
  font-size: 1rem; line-height: 1.8;
}

/* === Contact === */
.contact-section {
  padding: 6rem 2rem 4rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-section h2 {
  font-size: 2rem; margin-bottom: 2rem;
}
.contact-info {
  display: flex; gap: 3rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.contact-link {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1rem; opacity: 0.6;
  transition: opacity 0.3s;
  letter-spacing: 0.02em;
}
.contact-link:hover { opacity: 1; }
.contact-link svg { flex-shrink: 0; }
.copyright {
  font-size: 0.75rem; opacity: 0.25;
  letter-spacing: 0.05em; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 400px; margin: 0 auto;
}

/* === Lightbox === */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content {
  max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox-content img {
  max-width: 90vw; max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-info {
  margin-top: 1.5rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.3rem;
}
#lightbox-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}
#lightbox-year {
  font-size: 0.8rem; opacity: 0.4;
  letter-spacing: 0.05em;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: white;
  font-size: 2rem; cursor: pointer; opacity: 0.5;
  transition: opacity 0.3s; z-index: 10;
  width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: white;
  font-size: 3rem; cursor: pointer; opacity: 0.3;
  transition: opacity 0.3s; z-index: 10;
  padding: 1rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 0.8; }

/* === Responsive === */
@media (max-width: 900px) {
  .nav-links {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; opacity: 0.8; }
  .nav-toggle { display: block; z-index: 101; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }
  .nav-inner { padding: 1rem 1.5rem; }
  .lightbox-prev, .lightbox-next { font-size: 2rem; }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .gallery-section { padding: 3rem 1rem 4rem; }
  .section-header { margin-bottom: 2rem; }
  .hero h1 { font-size: 2.5rem; }
  .contact-info { flex-direction: column; gap: 1.5rem; align-items: center; }
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.gallery-item {
  animation: fadeUp 0.5s ease both;
}
