/* =========================================
   PORTFOLIO PAGE
   ========================================= */

/* Hero */
.port-hero {
  padding: calc(var(--nav-height) + 80px) 0 60px;
  text-align: center;
}

.port-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 20px;
}

.port-hero .section-subtitle {
  margin: 0 auto;
  text-align: center;
}

/* Grid */
.port-section {
  padding: 20px 0 80px;
}

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

/* Card */
.port-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.port-card:hover {
  border-color: rgba(0, 102, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.12);
}

/* Image area */
.port-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d1526;
}

.port-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.port-card:hover .port-img-wrap img {
  transform: scale(1.03);
}

/* Placeholder */
.port-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1526 0%, #0f1a30 100%);
  border-bottom: 1px solid var(--border-color);
}

.port-placeholder-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Overlay */
.port-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.port-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}

.port-visit:hover {
  background: var(--accent-cyan);
  color: #070b14;
}

/* Footer */
.port-footer {
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.port-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.port-industry {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.port-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.port-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 50px;
  background: rgba(0, 102, 255, 0.12);
  color: var(--accent-cyan);
  white-space: nowrap;
}

/* Many More */
.port-more-row {
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, rgba(0,102,255,0.06) 0%, rgba(0,212,255,0.04) 100%);
  border: 1px solid rgba(0,102,255,0.15);
  border-radius: var(--radius-lg);
  padding: 36px 48px;
  margin-top: 28px;
}

.port-more-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.port-more-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.port-more-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  line-height: 1.4;
}

.port-more-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.port-more-right {
  flex: 1;
}

.port-more-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.port-more-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.port-more-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 5px 12px;
}

.port-more-tag svg {
  opacity: 0.6;
}

/* CTA */
.port-cta-section {
  padding: 60px 0 100px;
}

.port-cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(0,102,255,0.08) 0%, rgba(0,212,255,0.06) 100%);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
}

.port-cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.port-cta-box p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* Homepage "View All" CTA */
.clients-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Responsive */
@media (max-width: 900px) {
  .port-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .port-more-row {
    flex-direction: column;
    gap: 28px;
    padding: 36px 28px;
    text-align: center;
  }

  .port-more-divider {
    width: 60px;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .port-overlay {
    opacity: 1 !important;
    background: rgba(7, 11, 20, 0.5) !important;
  }
}

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

  .port-cta-box {
    padding: 40px 24px;
  }
}
