/* ═══════════════════════════════════════════════════
   Peter G. Varisano — Portfolio Styles
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e4df;
  --text2: #9a958e;
  --accent: #c4a35a;
  --accent2: #8b7332;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(196,163,90,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-star {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 12px;
  margin-bottom: 32px;
  opacity: 0.6;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-bio {
  max-width: 640px;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-scroll {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.3s;
}

.hero-scroll:hover { color: var(--accent); }

.hero-arrow {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  animation: bobble 2s ease-in-out infinite;
}

@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Section ── */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}

.section-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 40px;
}

/* ── Filter Bar ── */

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: var(--accent2);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  font-weight: 500;
}

/* ── Gallery Grid ── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.art-card.hidden {
  display: none;
}

.art-card img {
  width: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s;
}

.art-card:hover img { opacity: 0.9; }

.art-info {
  padding: 16px 20px;
}

.art-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--text);
}

.art-meta {
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 0.5px;
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.96);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 40px;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  cursor: default;
}

.lightbox-caption {
  margin-top: 20px;
  text-align: center;
}

.lightbox-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 4px;
}

.lightbox-meta {
  font-size: 13px;
  color: var(--text2);
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 28px;
  color: var(--text2);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
  z-index: 10;
}

.lightbox-close:hover { color: var(--text); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: var(--text2);
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
  transition: color 0.2s;
  z-index: 10;
}

.lightbox-nav:hover { color: var(--text); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ── About / Timeline ── */

.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.timeline {
  margin-bottom: 48px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  flex-shrink: 0;
  width: 80px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--accent);
  padding-top: 2px;
}

.timeline-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.timeline-text strong {
  color: var(--text);
  font-weight: 500;
}

.about-text {
  margin-bottom: 40px;
}

.about-text p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

.note {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  text-align: center;
  line-height: 1.7;
  margin-top: 32px;
}

/* ── Footer ── */

footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 12px;
  color: var(--text2);
  border-top: 1px solid var(--border);
  opacity: 0.6;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  .section { padding: 60px 16px; }
  .about { padding: 60px 16px 80px; }
}

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }

  .lightbox { padding: 20px; }
  .lightbox-nav { display: none; }

  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-year { width: auto; }

  .filter-bar { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 12px; }
}
