.portfolio-main {
  display: grid;
  gap: 28px;
}

.portfolio-section,
.portfolio-hero,
.portfolio-cta,
.portfolio-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portfolio-hero,
.portfolio-cta {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 53, 94, 0.08), rgba(60, 242, 255, 0.05)),
    var(--panel);
}

.portfolio-hero::before,
.portfolio-cta::before {
  content: "";
  position: absolute;
  inset: auto -90px -90px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 242, 255, 0.14), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: stretch;
}

.portfolio-hero-copy,
.portfolio-hero-panel,
.portfolio-cta-content,
.portfolio-cta-actions {
  position: relative;
  z-index: 1;
}

.portfolio-hero h1,
.portfolio-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.03;
}

.portfolio-lead {
  margin: 0;
  max-width: 68ch;
  font-size: 1.02rem;
}

.portfolio-hero-actions,
.portfolio-cta-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.project-actions .portfolio-btn {
  flex: 1 1 0;
  min-width: 150px;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.portfolio-btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(255, 255, 255, 0.04);
}

.portfolio-btn:active {
  transform: translateY(0) scale(0.995);
}

.portfolio-btn-primary {
  color: #081018;
  background: linear-gradient(135deg, #ff7ab8, #3cf2ff);
  box-shadow: 0 0 18px rgba(60, 242, 255, 0.16);
}

.portfolio-btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.portfolio-hero-panel {
  display: grid;
  gap: 14px;
}

.mini-stat {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mini-stat-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-stat strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.portfolio-section {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.portfolio-section::after {
  content: "";
  position: absolute;
  inset: auto auto -80px -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 184, 0.08), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.about-grid,
.stack-grid,
.projects-grid,
.journey-grid {
  display: grid;
  gap: 20px;
}

.about-grid,
.journey-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.portfolio-card {
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(12, 12, 18, 0.72);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 70px rgba(0, 0, 0, 0.44),
    0 0 24px rgba(60, 242, 255, 0.06);
}

.portfolio-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.portfolio-card p {
  margin: 0;
}

.stack-tags,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stack-tags span,
.project-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card > p {
  flex: 1 1 auto;
}

.project-card .project-meta {
  margin-top: 18px;
}

.project-card .project-actions {
  margin-top: auto;
  padding-top: 24px;
}

.project-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7ef9ff;
  border: 1px solid rgba(60, 242, 255, 0.26);
  background: rgba(60, 242, 255, 0.10);
  box-shadow: 0 0 12px rgba(60, 242, 255, 0.12);
}

.alt-badge {
  color: #ff9bc7;
  border-color: rgba(255, 122, 184, 0.26);
  background: rgba(255, 122, 184, 0.10);
  box-shadow: 0 0 12px rgba(255, 122, 184, 0.12);
}

.neutral-badge {
  color: #ffd27d;
  border-color: rgba(255, 210, 125, 0.24);
  background: rgba(255, 210, 125, 0.10);
  box-shadow: 0 0 12px rgba(255, 210, 125, 0.10);
}

.live-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.live-status-live {
  color: #7ef9ff;
  border-color: rgba(60, 242, 255, 0.24);
  background: rgba(60, 242, 255, 0.10);
  box-shadow: 0 0 12px rgba(60, 242, 255, 0.10);
}

.live-status-cache {
  color: #ffd27d;
  border-color: rgba(255, 210, 125, 0.24);
  background: rgba(255, 210, 125, 0.10);
  box-shadow: 0 0 12px rgba(255, 210, 125, 0.08);
}

.live-status-warning {
  color: #ff9bc7;
  border-color: rgba(255, 122, 184, 0.24);
  background: rgba(255, 122, 184, 0.10);
  box-shadow: 0 0 12px rgba(255, 122, 184, 0.08);
}

.featured-project {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(60, 242, 255, 0.08), rgba(255, 122, 184, 0.05)),
    rgba(12, 12, 18, 0.78);
}

.featured-project::before {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 242, 255, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.portfolio-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portfolio-cta p {
  margin: 0;
}

.projects-status {
  margin: -4px 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

#projects-grid {
  transition: opacity 0.15s ease;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: skeleton-loading 1.4s infinite;
}

@keyframes skeleton-loading {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1080px) {
  .portfolio-hero,
  .stack-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-cta {
    display: grid;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .journey-grid,
  .stack-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .portfolio-main {
    gap: 18px;
  }

  .portfolio-hero,
  .portfolio-section,
  .portfolio-cta {
    padding: 22px;
    border-radius: 24px;
  }

  .portfolio-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-hero h1,
  .portfolio-cta h2 {
    font-size: clamp(2rem, 9vw, 2.9rem);
    line-height: 1.04;
  }

  .portfolio-lead {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .about-grid,
  .journey-grid,
  .stack-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-card {
    padding: 18px;
    border-radius: 20px;
  }

  .portfolio-hero-actions,
  .project-actions,
  .portfolio-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .project-actions .portfolio-btn,
  .portfolio-hero-actions .portfolio-btn,
  .portfolio-cta-actions .portfolio-btn,
  .portfolio-btn {
    width: 100%;
  }

  .stack-tags,
  .project-meta {
    gap: 8px;
  }

  .stack-tags span,
  .project-meta span {
    font-size: 0.76rem;
  }
}


/* =========================
   Coming soon project card
   ========================= */

.coming-soon-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.coming-soon-card p {
  flex-grow: 1;
}

.project-actions-placeholder {
  margin-top: auto;
  padding-top: 24px;
}

.portfolio-btn-disabled {
  width: 100%;
  justify-content: center;
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}
