/* Axencia.co — Portfolio Premium (landing) */

.portfolio-premium .portfolio-category {
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  transform: none;
}

.portfolio-premium .portfolio-category:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.portfolio-premium {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 24px;
  overflow: hidden;
  isolation: isolate;
}

.portfolio-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 20%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 75%, rgba(6, 182, 212, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(99, 102, 241, 0.08), transparent 55%);
}

.portfolio-premium .container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.portfolio-premium .portfolio-header {
  margin-bottom: 40px;
}

.portfolio-premium .portfolio-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

/* Override global .section-tag::before absolute dot — use flex prefix instead */
.portfolio-premium .section-header .section-tag::before,
.portfolio-premium .portfolio-tag::before {
  content: "";
  position: static;
  left: auto;
  top: auto;
  flex-shrink: 0;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.85);
  transform: none;
  animation: pfTagPulse 2.4s ease-in-out infinite;
}

@keyframes pfTagPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.8; }
}

.portfolio-gradient-text {
  background: linear-gradient(135deg, #e2e8f0 0%, #93c5fd 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.portfolio-stat {
  text-align: center;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.portfolio-stat strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #f8fafc, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-stat span {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.95);
  letter-spacing: 0.02em;
}

.portfolio-premium .portfolio-slider-wrap {
  padding: 20px 64px 0;
}

.portfolio-premium .portfolio-slide {
  gap: 20px;
  align-items: stretch;
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.52) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
  opacity: 1;
  transform: none;
}

.portfolio-card-glow {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--pf-accent-gradient, linear-gradient(90deg, #3b82f6, #06b6d4));
  opacity: 0.9;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--pf-accent-glow, rgba(59, 130, 246, 0.12)), transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.38),
    0 0 48px var(--pf-accent-glow, rgba(59, 130, 246, 0.1));
}

.portfolio-card:hover::after {
  opacity: 1;
}

.portfolio-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.portfolio-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--pf-accent-gradient, linear-gradient(135deg, #3b82f6, #06b6d4));
  box-shadow: 0 8px 24px var(--pf-accent-shadow, rgba(59, 130, 246, 0.35));
  color: #fff;
}

.portfolio-card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.portfolio-card-titles h3 {
  margin: 0 0 4px;
  padding: 0;
  border: none;
  font-size: 1.12rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.portfolio-card-count {
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.9);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.portfolio-card--ecom {
  --pf-accent-gradient: linear-gradient(135deg, #f59e0b, #f97316);
  --pf-accent-glow: rgba(249, 115, 22, 0.14);
  --pf-accent-shadow: rgba(249, 115, 22, 0.35);
  --pf-mark-bg: rgba(249, 115, 22, 0.16);
  --pf-mark-color: #fdba74;
}

.portfolio-card--edu {
  --pf-accent-gradient: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --pf-accent-glow: rgba(139, 92, 246, 0.14);
  --pf-accent-shadow: rgba(139, 92, 246, 0.35);
  --pf-mark-bg: rgba(139, 92, 246, 0.16);
  --pf-mark-color: #c4b5fd;
}

.portfolio-card--health {
  --pf-accent-gradient: linear-gradient(135deg, #10b981, #14b8a6);
  --pf-accent-glow: rgba(16, 185, 129, 0.14);
  --pf-accent-shadow: rgba(16, 185, 129, 0.35);
  --pf-mark-bg: rgba(16, 185, 129, 0.16);
  --pf-mark-color: #6ee7b7;
}

.portfolio-card--travel {
  --pf-accent-gradient: linear-gradient(135deg, #06b6d4, #0ea5e9);
  --pf-accent-glow: rgba(6, 182, 212, 0.14);
  --pf-accent-shadow: rgba(6, 182, 212, 0.35);
  --pf-mark-bg: rgba(6, 182, 212, 0.16);
  --pf-mark-color: #67e8f9;
}

.portfolio-card--finance {
  --pf-accent-gradient: linear-gradient(135deg, #eab308, #f59e0b);
  --pf-accent-glow: rgba(234, 179, 8, 0.14);
  --pf-accent-shadow: rgba(234, 179, 8, 0.35);
  --pf-mark-bg: rgba(234, 179, 8, 0.16);
  --pf-mark-color: #fde047;
}

.portfolio-card--tech {
  --pf-accent-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
  --pf-accent-glow: rgba(59, 130, 246, 0.14);
  --pf-accent-shadow: rgba(59, 130, 246, 0.35);
  --pf-mark-bg: rgba(59, 130, 246, 0.16);
  --pf-mark-color: #93c5fd;
}

.portfolio-card--default {
  --pf-accent-gradient: linear-gradient(135deg, #64748b, #94a3b8);
  --pf-accent-glow: rgba(100, 116, 139, 0.14);
  --pf-accent-shadow: rgba(100, 116, 139, 0.35);
  --pf-mark-bg: rgba(100, 116, 139, 0.16);
  --pf-mark-color: #cbd5e1;
}

.portfolio-premium .portfolio-list {
  padding: 8px 12px 16px;
  flex: 1;
}

.portfolio-premium .portfolio-list li {
  padding: 0;
  margin: 0 0 6px;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-premium .portfolio-list li:last-child {
  margin-bottom: 0;
}

.portfolio-client {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.28s ease, transform 0.28s ease;
}

.portfolio-client:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.pf-client-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pf-mark-color, #93c5fd);
  background: var(--pf-mark-bg, rgba(59, 130, 246, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-client:hover .pf-client-mark {
  transform: scale(1.06);
  box-shadow: 0 0 16px var(--pf-accent-glow, rgba(59, 130, 246, 0.2));
}

.pf-client-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pf-client-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-client-meta {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.85);
}

.pf-client-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease, color 0.28s ease, background 0.28s ease;
}

.portfolio-client:hover .pf-client-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}

.portfolio-premium .portfolio-nav {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #bfdbfe;
  font-size: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.portfolio-premium .portfolio-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.portfolio-premium .portfolio-nav:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.45);
  color: #e0f2fe;
}

.portfolio-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.portfolio-progress {
  width: min(280px, 70%);
  height: 3px;
  border-radius: 100px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.portfolio-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
  transition: width 0.15s linear;
}

.portfolio-premium .portfolio-dots {
  margin-top: 0;
}

.portfolio-premium .portfolio-dot {
  width: 8px;
  height: 8px;
}

.portfolio-premium .portfolio-dot.active {
  width: 32px;
}

.portfolio-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(135deg, #93c5fd 0%, #22d3ee 100%);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.35);
}

.portfolio-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Light theme */
[data-theme="light"] .portfolio-premium .portfolio-stat,
:root:not([data-theme="dark"]) .portfolio-premium .portfolio-stat {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .portfolio-card,
:root:not([data-theme="dark"]) .portfolio-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .portfolio-card-titles h3,
:root:not([data-theme="dark"]) .portfolio-card-titles h3 {
  color: #1e293b;
}

[data-theme="light"] .pf-client-name,
:root:not([data-theme="dark"]) .pf-client-name {
  color: #334155;
}

[data-theme="light"] .portfolio-client:hover,
:root:not([data-theme="dark"]) .portfolio-client:hover {
  background: rgba(59, 130, 246, 0.06);
}

@media (max-width: 900px) {
  .portfolio-stats {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .portfolio-premium .portfolio-slider-wrap {
    padding: 12px 0 0;
  }

  .portfolio-premium .portfolio-slide {
    gap: 16px;
  }

  .portfolio-card-head {
    padding: 18px 18px 14px;
  }
}
