/* ===========================================
   PORTFOLIO PAGE — Premium Redesign
   =========================================== */

/* ── HERO ANIMATIONS ──────────────────────── */
@keyframes pf-fade-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pf-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pf-slide-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pf-bg-drift {
  0%   { transform: scale(1) translate(0px, 0px); }
  33%  { transform: scale(1.04) translate(-6px, -4px); }
  66%  { transform: scale(1.02) translate(4px, -6px); }
  100% { transform: scale(1) translate(0px, 0px); }
}

/* ── HERO ─────────────────────────────────── */
.pf-hero {
  padding: 11rem 0 8rem;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

/* Background image layer */
.pf-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/src/css/assets/portfolio_hero_bg.png');
  background-size: cover;
  background-position: center;
  animation: pf-bg-drift 18s ease-in-out infinite;
  will-change: transform;
}

/* Multi-directional gradient overlay for depth + readability */
.pf-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(247, 250, 255, 0.88) 40%,
      rgba(230, 240, 255, 0.55) 70%,
      rgba(210, 230, 255, 0.18) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.0) 0%,
      rgba(255,255,255,0.75) 100%
    );
}

/* Decorative blue glow accent */
.pf-hero-glow {
  position: absolute;
  top: -4rem;
  right: -6rem;
  width: 52rem;
  height: 32rem;
  background: radial-gradient(ellipse at 70% 30%, rgba(0, 92, 171, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pf-float 8s ease-in-out infinite;
}

/* Thin accent line on bottom */
.pf-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 92, 171, 0.35), transparent);
}

.pf-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .pf-hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
  }
}

.pf-hero-text {
  max-width: 680px;
}

/* ── Eyebrow ──────────────────────────────── */
.pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 2rem;
  opacity: 0;
  animation: pf-fade-up 0.7s ease 0.1s forwards;
}

.pf-eyebrow-light {
  color: rgba(255, 255, 255, 0.7);
}

/* Eyebrow pill badge */
.pf-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 92, 171, 0.08);
  border: 1px solid rgba(0, 92, 171, 0.18);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2rem;
  opacity: 0;
  animation: pf-fade-up 0.7s ease 0.1s forwards;
}

.pf-eyebrow-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pf-float 2.5s ease-in-out infinite;
}

/* ── Title ────────────────────────────────── */
.pf-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: pf-fade-up 0.8s ease 0.2s forwards;
}

@media (min-width: 640px) {
  .pf-title { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .pf-title { font-size: 4.25rem; }
}

.pf-title-accent {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

/* Underline accent on the blue text */
.pf-title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), rgba(0, 92, 171, 0.3));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: pf-underline-in 0.6s ease 0.9s forwards;
}

@keyframes pf-underline-in {
  to { transform: scaleX(1); }
}

/* ── Subtitle ─────────────────────────────── */
.pf-subtitle {
  font-size: 1.0625rem;
  color: var(--secondary);
  max-width: 520px;
  line-height: 1.7;
  opacity: 0;
  animation: pf-fade-up 0.8s ease 0.35s forwards;
}

/* ── Hero Stats ───────────────────────────── */
.pf-hero-stats {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.pf-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  opacity: 0;
  animation: pf-slide-right 0.7s ease forwards;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 92, 171, 0.1);
  border-radius: 1rem;
  padding: 1.2rem 1.6rem;
  box-shadow: 0 4px 24px -8px rgba(0, 92, 171, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 92, 171, 0.2);
}

.pf-stat:nth-child(1) { animation-delay: 0.45s; }
.pf-stat:nth-child(2) { animation-delay: 0.58s; }
.pf-stat:nth-child(3) { animation-delay: 0.71s; }

@media (min-width: 1024px) {
  .pf-hero-stats {
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
  }

  .pf-stat {
    text-align: right;
    min-width: 140px;
  }
}

.pf-stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
}

.pf-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* ── FEATURED PROJECT ─────────────────────── */
.pf-featured-section {
  padding: 4rem 0 6rem;
  background: var(--surface);
}

.pf-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.pf-featured-label span {
  color: #f59e0b;
  font-size: 1.125rem !important;
  font-variation-settings: 'FILL' 1;
}

.pf-featured-card {
  background: var(--surface-container-lowest);
  border-radius: 2rem;
  overflow: hidden;
  display: grid;
  border: 1px solid rgba(192, 199, 214, 0.1);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pf-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -20px rgba(0, 92, 171, 0.18);
}

@media (min-width: 1024px) {
  .pf-featured-card {
    grid-template-columns: 3fr 2fr;
  }
}

.pf-featured-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f4fa;
}

@media (min-width: 1024px) {
  .pf-featured-img-wrap {
    aspect-ratio: unset;
    min-height: 420px;
  }
}

.pf-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.pf-featured-card:hover .pf-featured-img-wrap img {
  transform: scale(1.04);
}

.pf-featured-img-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}

.pf-featured-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  gap: 2rem;
}

.pf-featured-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pf-featured-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}

.pf-featured-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  line-height: 1.2;
}

.pf-featured-desc {
  font-size: 0.9375rem;
  color: var(--secondary);
  line-height: 1.65;
}

.pf-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pf-tag {
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
}

.pf-featured-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .pf-featured-actions { flex-direction: row; }
}

.pf-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pf-visit-btn:hover {
  background: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(0, 92, 171, 0.4);
}

.pf-visit-btn span {
  font-size: 1.125rem !important;
}

/* ── FILTER TOOLBAR ───────────────────────── */
.pf-grid-section {
  padding: 3rem 0 8rem;
  background: var(--surface-container-low);
}

.pf-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .pf-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1.5px solid rgba(192, 199, 214, 0.3);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 20px -8px rgba(0, 92, 171, 0.4);
}

.filter-pill-count {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255,255,255,0.25);
  border-radius: 99px;
  padding: 0.1em 0.5em;
  min-width: 1.4em;
  text-align: center;
  line-height: 1.4;
}

.filter-pill.active .filter-pill-count {
  background: rgba(255,255,255,0.25);
}

.filter-pill:not(.active) .filter-pill-count {
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
}

.pf-count {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  flex-shrink: 0;
}

/* ── PORTFOLIO GRID ──────────────────────── */
.pf-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Project Card */
.pf-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(192, 199, 214, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.4s ease forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.pf-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.14);
}

.pf-card-preview {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f0f4fa;
}

.pf-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pf-card:hover .pf-card-preview img {
  transform: scale(1.07);
}

/* Card Status Badge */
.pf-card-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pf-card-status-badge.demo {
  background: rgba(249, 115, 22, 0.85); /* Premium Orange */
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pf-card-status-badge.a-venda {
  background: rgba(16, 185, 129, 0.85); /* Premium Emerald Green */
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pf-card-status-badge.vendido {
  background: rgba(185, 16, 16, 0.85); /* Premium Red */
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
} 

.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 25, 65, 0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pf-card:hover .pf-card-overlay {
  opacity: 1;
}

.pf-card-overlay-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.25s ease;
  transform: translateY(8px);
  transition: transform 0.35s ease, background 0.25s ease;
}

.pf-card:hover .pf-card-overlay-link {
  transform: translateY(0);
}

.pf-card-overlay-link:hover {
  background: var(--primary);
  color: white;
}

.pf-card-overlay-link span {
  font-size: 1rem !important;
}

.pf-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.pf-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pf-card-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.pf-card-year {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 500;
}

.pf-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
}

.pf-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(192, 199, 214, 0.15);
}

.pf-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--surface-container-low);
  color: var(--on-surface-variant);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

/* Empty State */
.pf-empty {
  text-align: center;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pf-empty span {
  font-size: 3rem !important;
  color: var(--outline-variant);
}

.pf-empty h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-surface);
}

.pf-empty p {
  color: var(--secondary);
}

/* ── CTA ──────────────────────────────────── */
.pf-cta-section {
  padding: 7rem 0;
  background: var(--surface);
}

.pf-cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #003f80 100%);
  border-radius: 2rem;
  padding: 6rem 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 92, 171, 0.45);
}

.pf-cta-glow-1 {
  position: absolute;
  top: -5rem; right: -5rem;
  width: 22rem; height: 22rem;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  filter: blur(50px);
}

.pf-cta-glow-2 {
  position: absolute;
  bottom: -5rem; left: -5rem;
  width: 18rem; height: 18rem;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  filter: blur(50px);
}

.pf-cta-content {
  position: relative;
  z-index: 1;
}

.pf-cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .pf-cta-title { font-size: 3.5rem; }
}

.pf-cta-desc {
  font-size: 1.0625rem;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.pf-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pf-cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}
