/* ═══════════════════════════════════════════
   PORTFOLIO PAGE STYLES
   Specific to pages/portfolio.html
   Primary color: #008fb5 (--it-blue)
   ═══════════════════════════════════════════ */

/* ── Portfolio Hero ── */
.port-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/background.jpg') center / cover no-repeat;
}

.port-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 108, 138, 0.82) 50%, rgba(26, 26, 46, 0.88) 50%);
}

.port-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 720px;
  padding: 2rem;
}

.port-hero-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--white);
  opacity: 0.9;
}

.port-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.port-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--it-blue);
  background: var(--white);
  border: 2px solid var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.port-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.port-hero-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Projects Section ── */
.port-projects {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.port-projects-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

/* ── Filter Buttons ── */
.port-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.port-filter-btn {
  padding: 0.55rem 1.3rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.port-filter-btn:hover {
  border-color: var(--it-blue);
  color: var(--it-blue);
}

.port-filter-btn.active {
  background: var(--it-blue);
  color: var(--white);
  border-color: var(--it-blue);
  box-shadow: 0 3px 12px rgba(0, 143, 181, 0.3);
}

/* ── Project Grid ── */
.port-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ── Project Card ── */
.port-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.port-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.port-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--light);
  overflow: hidden;
}

.port-card-thumb img,
.port-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.port-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%);
}

.port-card-thumb-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--it-blue);
  opacity: 0.4;
}

.port-card-body {
  padding: 1.5rem;
}

.port-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.port-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.port-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--it-blue);
  margin-bottom: 1.25rem;
}

.port-card-tag svg {
  width: 16px;
  height: 16px;
}

.port-card-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 1.5rem;
  background: var(--it-blue);
  color: var(--white);
  border: 2px solid var(--it-blue);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 143, 181, 0.25);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.port-card-btn:hover {
  background: #007a9e;
  box-shadow: 0 5px 16px rgba(0, 143, 181, 0.4);
  transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .port-hero {
    min-height: 35vh;
  }

  .port-hero-content {
    padding: 2.5rem 1rem;
  }

  .port-hero-icon {
    width: 44px;
    height: 44px;
  }

  .port-hero-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .port-projects {
    padding: 3rem 1rem;
  }

  .port-projects-title {
    font-size: 1.6rem;
  }

  .port-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .port-filters::-webkit-scrollbar {
    display: none;
  }

  .port-filter-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
  }

  .port-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .port-card-body {
    padding: 1.25rem;
  }

  .port-card-title {
    font-size: 1.1rem;
  }
}