/* ═══════════════════════════════════════════════════════════
   PORTFOLIO PAGE — Hero, Filter, Grid, Cards, Overlay
   Agencia OZ — css/portfolio.css
   Deps: base.css (NOTE: portfolio uses LIGHT theme)
   ═══════════════════════════════════════════════════════════ */

/* ─── LIGHT THEME OVERRIDES ──────────────────────────────── */
.portfolio-page {
  background-color: var(--white);
  color: var(--charcoal);
}

/* ─── PORTFOLIO NAV (dark navy, not shared-pages solid) ──── */
.portfolio-page nav {
  background-color: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: none;
}

/* ─── PORTFOLIO HERO ─────────────────────────────────────── */
.portfolio-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
}

.portfolio-hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.portfolio-hero p {
  font-size: 1.3rem;
  color: var(--light-gray);
  font-weight: 300;
}

/* ─── PORTFOLIO SECTION ──────────────────────────────────── */
.portfolio-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ─── FILTER PILLS (light theme) ─────────────────────────── */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio-filters .filter-pill {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--warm-gray);
  background-color: var(--white);
  color: var(--charcoal);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.portfolio-filters .filter-pill:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.portfolio-filters .filter-pill.active {
  background-color: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

/* ─── PORTFOLIO GRID ─────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

/* ─── PORTFOLIO ITEM ─────────────────────────────────────── */
.portfolio-item {
  position: relative;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: portfolioFadeIn 0.5s ease-out;
}

.portfolio-item.hidden {
  display: none;
}

@keyframes portfolioFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.portfolio-image svg {
  width: 60px;
  height: 60px;
  opacity: 0.6;
  color: rgba(255, 255, 255, 0.8);
}

/* ─── PORTFOLIO OVERLAY ──────────────────────────────────── */
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(135deg, rgba(181, 114, 75, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-category-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.portfolio-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.portfolio-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* ─── PORTFOLIO FOOTER (light theme) ─────────────────────── */
.portfolio-page footer {
  background-color: var(--charcoal);
  color: var(--light-gray);
  padding: 2rem;
  margin-top: 4rem;
  border-top: none;
}

.portfolio-page .footer-socials a {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--light-gray);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-page .footer-socials a:hover {
  color: var(--copper);
  box-shadow: none;
  transform: none;
}

.portfolio-page .footer-socials a svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.portfolio-page .footer-socials a:hover svg {
  stroke: var(--copper);
}

/* ─── RESPONSIVE (portfolio-specific) ────────────────────── */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .portfolio-hero h1 { font-size: 2.5rem; }
  .portfolio-section { padding: 3rem 1.5rem; }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .portfolio-item { height: 300px; }
  .portfolio-hero {
    padding: 4rem 1.5rem;
  }
  .portfolio-hero h1 { font-size: 2rem; }
  .portfolio-hero p { font-size: 1.1rem; }
  .portfolio-filters { gap: 0.75rem; }
  .portfolio-filters .filter-pill { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .portfolio-item { height: 280px; }
  .portfolio-hero {
    padding: 3rem 1rem;
  }
  .portfolio-hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  .portfolio-hero p { font-size: 1rem; }
  .portfolio-section { padding: 2rem 1rem; }
  .portfolio-filters { gap: 0.5rem; margin-bottom: 2rem; }
  .portfolio-filters .filter-pill { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .portfolio-title { font-size: 1.25rem; }
  .portfolio-overlay { padding: 1.5rem; }
}
