/* ===================================================
   Portfolio Page — our-projects.css
   =================================================== */

/* ── Page Hero ─────────────────────────────────── */
.port-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-color);
  padding: 120px 0 60px;
}

.port-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.port-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.pb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-color);
  top: -200px;
  right: -100px;
  opacity: 0.18;
  animation: pbFloat1 14s ease-in-out infinite;
}
.pb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-color);
  bottom: -100px;
  left: -60px;
  opacity: 0.14;
  animation: pbFloat2 18s ease-in-out infinite;
}
@keyframes pbFloat1 {
  0%,100% { transform: scale(1) translate(0,0); }
  50%      { transform: scale(1.1) translate(-30px,20px); }
}
@keyframes pbFloat2 {
  0%,100% { transform: scale(1) translate(0,0); }
  50%      { transform: scale(1.08) translate(25px,-20px); }
}

.port-hero-content {
  position: relative;
  z-index: 2;
}

.port-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.port-breadcrumb a {
  color: var(--body-text-color);
  text-decoration: none;
  transition: color 0.2s;
}
.port-breadcrumb a:hover { color: var(--primary-color); }
.port-breadcrumb i { font-size: 9px; color: var(--body-text-color); }
.port-breadcrumb span { color: var(--primary-color); }

.port-hero-title {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.port-hero-title span { color: var(--primary-color); }

.port-hero-sub {
  font-size: 16px;
  color: var(--body-text-color);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Stats */
.port-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.port-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.port-stat-num {
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}
.port-stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--body-text-color);
}
.port-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(117,205,217,0.2);
}

/* ── Filter Tabs ────────────────────────────────── */
.port-filters-wrap {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(117,205,217,0.1);
  border-bottom: 1px solid rgba(117,205,217,0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 90;
}

.port-filters {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.port-filters::-webkit-scrollbar { display: none; }

.pf-btn {
  background: none;
  border: none;
  color: var(--body-text-color);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 28px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
  font-family: "Gotham";
}
.pf-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.pf-btn:hover,
.pf-btn.active { color: var(--primary-color); }
.pf-btn.active::after { width: 100%; }

/* ── Projects Grid ──────────────────────────────── */
.port-section {
  padding: 60px 0 80px;
  background: var(--bg-color);
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Featured card spans all 3 columns */
.port-card--featured {
  grid-column: 1 / -1;
}
.port-card--featured .port-card-img {
  height: 480px;
}
.port-card--featured .port-card-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* Card base */
.port-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-radius: 4px;
  cursor: pointer;
}
.port-card-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
}
.port-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.port-card:hover .port-card-img img {
  transform: scale(1.06);
}

/* Overlay */
.port-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.97) 0%,
    rgba(10, 22, 40, 0.7) 50%,
    rgba(10, 22, 40, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.port-card:hover .port-card-overlay { opacity: 1; }

.port-card-top { display: flex; justify-content: flex-end; }

/* Category tags */
.port-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(117,205,217,0.15);
  color: var(--primary-color);
  border: 1px solid rgba(117,205,217,0.3);
}
.port-tag--design {
  background: rgba(77,191,163,0.15);
  color: var(--accent-color);
  border-color: rgba(77,191,163,0.3);
}
.port-tag--branding {
  background: rgba(240,168,104,0.15);
  color: var(--secondary-color);
  border-color: rgba(240,168,104,0.3);
}
.port-tag--dev {
  background: rgba(117,205,217,0.12);
  color: #a78bfa;
  border-color: rgba(167,139,250,0.3);
}

.port-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.port-card-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
  line-height: 1.2;
}

.port-card-desc {
  font-size: 13px;
  color: rgba(232,244,246,0.75);
  line-height: 1.65;
  margin: 0;
}

/* Tech stack chips */
.port-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.port-tech span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  color: rgba(232,244,246,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Links */
.port-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.port-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.port-link:hover { transform: translateY(-2px); }

.port-link--github {
  background: rgba(255,255,255,0.1);
  color: var(--heading-color);
  border: 1px solid rgba(255,255,255,0.15);
}
.port-link--github:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.port-link--live {
  background: var(--primary-color);
  color: var(--bg-color);
  border: 1px solid var(--primary-color);
}
.port-link--live:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

/* Empty state */
.port-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 0;
  color: var(--body-text-color);
}
.port-empty i { font-size: 3rem; opacity: 0.3; }
.port-empty p { font-size: 15px; margin: 0; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 991px) {
  .port-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .port-card--featured {
    grid-column: 1 / -1;
  }
  .port-card--featured .port-card-img {
    height: 360px;
  }
  .port-stat-divider { height: 30px; }
}

@media (max-width: 767px) {
  .port-hero { min-height: auto; padding: 100px 0 50px; }
  .port-stats { gap: 1.5rem; }
  .port-stat-divider { display: none; }
}

@media (max-width: 576px) {
  .port-grid {
    grid-template-columns: 1fr;
  }
  .port-card--featured .port-card-img { height: 260px; }
  /* Always show overlay on mobile */
  .port-card-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(10,22,40,0.95) 0%,
      rgba(10,22,40,0.4) 60%,
      transparent 100%
    );
  }
  .port-card-top { display: none; }
  .pf-btn { padding: 16px 18px; font-size: 11px; }
}
