/* ============================================================
   PORTFOLIO PAGE — portfolio.css
   ============================================================ */

/* ===== HERO ===== */
.portfolio-hero {
  background-color: var(--bg);
  padding: 80px 24px 70px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  animation: fadeIn 0.6s ease both;
}

.portfolio-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.portfolio-hero-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
  animation: fadeInDown 0.5s ease 0.1s both;
}

.portfolio-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.35;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.portfolio-hero-divider {
  width: 56px;
  height: 3px;
  background-color: var(--orange);
  border-radius: 2px;
  margin: 28px auto 0;
  animation: fadeIn 0.8s ease 0.4s both;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-section {
  background-color: var(--bg);
  padding: 70px 24px 90px;
}

.portfolio-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

/* ===== CARD ===== */
.portfolio-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.09);
}

.portfolio-card-logo {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card-logo img {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-logo img {
  transform: scale(1.06);
}

.portfolio-card p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  line-height: 1.4;
}

/* "View Project" CTA — only on clickable cards */
.portfolio-card-cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}

a.portfolio-card { text-decoration: none; cursor: pointer; }
a.portfolio-card:hover .portfolio-card-cta { gap: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .portfolio-hero { padding: 60px 20px 50px; }
}

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