/* --------------- Portfolio List Page --------------- */

.right-side .pf-hero.section-padding,
.right-side .pf-filters.section-padding,
.right-side .pf-grid-section.section-padding,
.right-side .pf-showcase.section-padding,
.right-side .pf-stats.section-padding,
.right-side .pf-cta.section-padding {
  padding-left: 80px;
  padding-right: 80px; }

@media (max-width: 991px) {
  .right-side .pf-hero.section-padding,
  .right-side .pf-filters.section-padding,
  .right-side .pf-grid-section.section-padding,
  .right-side .pf-showcase.section-padding,
  .right-side .pf-stats.section-padding,
  .right-side .pf-cta.section-padding {
    padding-left: 48px;
    padding-right: 48px; } }

@media (max-width: 767px) {
  .right-side .pf-hero.section-padding,
  .right-side .pf-filters.section-padding,
  .right-side .pf-grid-section.section-padding,
  .right-side .pf-showcase.section-padding,
  .right-side .pf-stats.section-padding,
  .right-side .pf-cta.section-padding {
    padding-left: 24px;
    padding-right: 24px; } }

/* Hero */
.pf-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 45%, #1e1e1e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 320px; }
  .pf-hero::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(248, 68, 56, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none; }

.pf-hero-inner {
  position: relative;
  z-index: 1; }

.pf-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 40px; }
  .pf-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s; }
    .pf-breadcrumb a:hover {
      color: #fff; }
  .pf-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px; }
  .pf-breadcrumb span:last-child {
    color: var(--main-color); }

.pf-hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap; }

.pf-label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--main-color);
  border: 1px solid rgba(248, 68, 56, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px; }

.pf-hero-text h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 600; }
  .pf-hero-text h1 .accent {
    color: var(--main-color); }
  .pf-hero-text p {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55); }

.pf-hero-meta {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0; }
  .pf-hero-meta .meta-item .num {
    display: block;
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    color: #fff; }
  .pf-hero-meta .meta-item .lbl {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px; }
  .pf-hero-meta .meta-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1); }

/* Filters */
.pf-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.pf-filters-bar .filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s; }
  .pf-filters-bar .filter-btn:hover,
  .pf-filters-bar .filter-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff; }

/* Works box — light section like homepage */
.pf-works-box {
  padding: 48px 56px 56px;
  color: #212121; }
  @media (max-width: 767px) {
    .pf-works-box {
      padding: 32px 24px 40px; } }

.pf-works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap; }
  .pf-works-head h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    margin: 0; }
  .pf-works-head p {
    max-width: 420px;
    font-size: 15px;
    line-height: 1.65;
    color: #777;
    margin: 0; }

/* Masonry grid */
.pf-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px; }
  @media (max-width: 991px) {
    .pf-masonry {
      grid-template-columns: repeat(6, 1fr); } }
  @media (max-width: 575px) {
    .pf-masonry {
      grid-template-columns: 1fr; } }

.pf-item-xl {
  grid-column: span 8; }
  @media (max-width: 991px) {
    .pf-item-xl {
      grid-column: span 6; } }

.pf-item-lg {
  grid-column: span 7; }
  @media (max-width: 991px) {
    .pf-item-lg {
      grid-column: span 6; } }

.pf-item-md {
  grid-column: span 5; }
  @media (max-width: 991px) {
    .pf-item-md {
      grid-column: span 6; } }

.pf-item-sm {
  grid-column: span 4; }
  @media (max-width: 991px) {
    .pf-item-sm {
      grid-column: span 3; } }
  @media (max-width: 575px) {
    .pf-item-sm {
      grid-column: span 1; } }

.pf-item-link {
  display: block;
  color: inherit;
  text-decoration: none; }

.pf-item-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10; }
  .pf-item-square {
    aspect-ratio: 1; }
  .pf-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s; }

.pf-item:hover .pf-item-img img {
  transform: scale(1.04); }

.pf-tags {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s; }
  .pf-tags span {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 30px;
    background: #fff;
    color: #212121;
    font-weight: 500; }

.pf-item:hover .pf-tags {
  opacity: 1;
  visibility: visible; }

.pf-view {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #212121;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.35s; }

.pf-item:hover .pf-view {
  opacity: 1;
  transform: translateY(0); }

.pf-award-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--main-color);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2; }
  .pf-award-badge i {
    font-size: 10px; }

.pf-item-info {
  padding-top: 16px; }
  .pf-item-info .pf-item-cat {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--main-color);
    margin-bottom: 6px; }
  .pf-item-info h5 {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 6px;
    transition: color 0.3s; }
  .pf-item-info p {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.5; }

.pf-item:hover .pf-item-info h5 {
  color: var(--main-color); }

.pf-load-more .butn-bord {
  color: #212121;
  border-color: rgba(0, 0, 0, 0.2); }
  .pf-load-more .butn-bord:hover {
    border-color: var(--main-color);
    color: var(--main-color); }

.pf-item.is-filter-hidden {
  display: none !important; }

.pf-filter-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.72); }
  .pf-filter-empty:not(.is-filter-hidden) {
    display: block; }

.pf-load-more.is-loading .butn-bord {
  opacity: 0.65;
  pointer-events: none; }

.pf-load-more[hidden] {
  display: none !important; }

/* Stats */
.pf-stats-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 32px; }
  @media (max-width: 991px) {
    .pf-stats-box {
      grid-template-columns: repeat(2, 1fr);
      gap: 32px; } }
  @media (max-width: 575px) {
    .pf-stats-box {
      grid-template-columns: 1fr; } }

.pf-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08); }
  @media (max-width: 991px) {
    .pf-stat {
      border-right: none; } }
  .pf-stat:last-child {
    border-right: none; }
  .pf-stat strong {
    display: block;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    color: var(--main-color);
    line-height: 1;
    margin-bottom: 10px; }
  .pf-stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4; }

/* Container alignment */
.right-side .pf-hero .container,
.right-side .pf-filters .container,
.right-side .pf-grid-section .container,
.right-side .pf-showcase .container,
.right-side .pf-stats .container,
.right-side .pf-cta .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0; }

.right-side .pf-hero .row.sm-marg,
.right-side .pf-filters .row.sm-marg,
.right-side .pf-grid-section .row.sm-marg,
.right-side .pf-showcase .row.sm-marg,
.right-side .pf-stats .row.sm-marg,
.right-side .pf-cta .row.sm-marg {
  margin-left: 0;
  margin-right: 0; }

.right-side .pf-hero .row.sm-marg > .col-12,
.right-side .pf-filters .row.sm-marg > .col-12,
.right-side .pf-grid-section .row.sm-marg > .col-12,
.right-side .pf-showcase .row.sm-marg > .col-12,
.right-side .pf-stats .row.sm-marg > .col-12,
.right-side .pf-cta .row.sm-marg > .col-12 {
  padding-left: 0;
  padding-right: 0; }

/* Showcase grid */
.pf-showcase-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .pf-showcase-intro h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    font-weight: 600;
    color: #fff;
    margin: 0; }
  .pf-showcase-intro p {
    max-width: 420px;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.48); }

.pf-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; }
  @media (max-width: 991px) {
    .pf-showcase-grid {
      grid-template-columns: 1fr; } }

.pf-showcase-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "num tag action"
    "title title action"
    "url url action";
  gap: 10px 18px;
  align-items: center;
  min-height: 168px;
  padding: 28px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
  .pf-showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(248, 68, 56, 0.16) 0%, transparent 58%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: -1; }
  .pf-showcase-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--main-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease; }
  .pf-showcase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(248, 68, 56, 0.35);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    color: #fff;
    text-decoration: none; }
    .pf-showcase-card:hover::before {
      opacity: 1; }
    .pf-showcase-card:hover::after {
      transform: scaleY(1); }

.pf-showcase-card--wide {
  grid-column: 1 / -1;
  min-height: 190px;
  padding: 34px 36px;
  background: linear-gradient(135deg, rgba(248, 68, 56, 0.12) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.02) 100%); }
  .pf-showcase-card--wide .pf-showcase-title {
    font-size: clamp(24px, 3vw, 34px); }

.pf-showcase-num {
  grid-area: num;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.28); }

.pf-showcase-tag {
  grid-area: tag;
  justify-self: start;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--main-color);
  border: 1px solid rgba(248, 68, 56, 0.28);
  background: rgba(248, 68, 56, 0.08);
  padding: 6px 12px;
  border-radius: 999px; }

.pf-showcase-title {
  grid-area: title;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease; }

.pf-showcase-card:hover .pf-showcase-title {
  color: #fff; }

.pf-showcase-url {
  grid-area: url;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.42); }

.pf-showcase-action {
  grid-area: action;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.3s ease; }
  .pf-showcase-action i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease; }

.pf-showcase-card:hover .pf-showcase-action {
  color: #fff; }
  .pf-showcase-card:hover .pf-showcase-action i {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    transform: translate(2px, -2px); }

@media (max-width: 767px) {
  .pf-showcase-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num tag"
      "title title"
      "url url"
      "action action";
    gap: 12px;
    padding: 24px 22px;
    min-height: 0; }
  .pf-showcase-action {
    align-self: start;
    margin-top: 4px; }
  .pf-showcase-action span {
    display: none; }
  .pf-showcase-action i {
    width: 42px;
    height: 42px; } }

