/* ===== PORTFOLIO PAGES ===== */

/* --- Hero --- */
.portfolio-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.portfolio-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-hero--video .portfolio-hero-glow {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
}

.portfolio-hero--social .portfolio-hero-glow {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
}

.portfolio-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 40px;
  transition: all 0.3s;
}

.portfolio-back:hover {
  color: var(--blue-300);
  transform: translateX(-4px);
}

.portfolio-hero-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.portfolio-icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: float 5s ease-in-out infinite;
}

.portfolio-icon-wrapper img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.portfolio-icon--video {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
}

.portfolio-icon--social {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.2);
}

.portfolio-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.portfolio-hero p {
  font-size: 1.15rem;
  color: var(--gray-400);
  line-height: 1.8;
}

/* --- Grid --- */
.portfolio-section {
  padding: 80px 0 120px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.portfolio-card {
  background: rgba(15, 31, 56, 0.5);
  border: 1px solid rgba(91, 164, 217, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 164, 217, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-card-image {
  aspect-ratio: 16 / 10;
  background: rgba(10, 22, 40, 0.6);
  position: relative;
}

.portfolio-card-video {
  aspect-ratio: 16 / 9;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-500);
}

.portfolio-placeholder svg {
  opacity: 0.4;
}

.portfolio-placeholder span {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.6;
}

.portfolio-card-info {
  padding: 24px 28px;
}

.portfolio-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.portfolio-card-info p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 12px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--gray-500);
}

/* --- Empty CTA --- */
.portfolio-empty-cta {
  text-align: center;
  padding: 40px;
  border: 2px dashed rgba(91, 164, 217, 0.12);
  border-radius: 20px;
  background: rgba(15, 31, 56, 0.25);
}

.portfolio-empty-cta p {
  font-size: 1.1rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}

/* --- Internal Links Between Portfolio Pages --- */
.portfolio-internal-links {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(91, 164, 217, 0.08);
  text-align: center;
}

.portfolio-internal-links h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-300);
  margin-bottom: 24px;
}

.portfolio-link-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.portfolio-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: rgba(15, 31, 56, 0.5);
  border: 1px solid rgba(91, 164, 217, 0.1);
  border-radius: 14px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-link-card:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(91, 164, 217, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.portfolio-link-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 130px 0 60px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 60px;
  }

  .portfolio-hero h1 {
    font-size: 2rem;
  }

  .portfolio-link-cards {
    flex-direction: column;
    align-items: center;
  }

  .portfolio-link-card {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
