/* ─── PORTFOLIO CARDS — Dragonfly Aerial Solutions ─── */
/* Scoped under .pf-* prefix to avoid conflicts         */

/* ── TOKENS (portfolio-scoped) ── */
.pf-section {
  --pf-card:       #111220;
  --pf-card-hi:    #141526;
  --pf-border:     rgba(255,255,255,0.06);
  --pf-border-hi:  rgba(0,210,200,0.28);
  --pf-teal:       #00D2C8;
  --pf-teal-2:     #00A89F;
  --pf-gold:       #EAA020;
  --pf-text:       #D8DCE8;
  --pf-muted:      rgba(216,220,232,0.42);
  --pf-faint:      rgba(216,220,232,0.18);
}

/* ── SECTION HEADER ── */
.pf-header { margin-bottom: 48px; }

.pf-header-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.pf-header-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--pf-teal) 0%, rgba(0,210,200,0.06) 100%);
}

.pf-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pf-teal);
  white-space: nowrap;
}

.pf-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--pf-text);
}

.pf-title em {
  font-style: normal;
  color: var(--pf-teal);
}

.pf-subtitle {
  font-size: 0.8rem;
  color: var(--pf-muted);
  font-weight: 300;
  margin-top: 10px;
  max-width: 480px;
  line-height: 1.7;
}

/* ── GRID ── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 960px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pf-grid { grid-template-columns: 1fr; } }

/* ── CARD ── */
.pf-card {
  background: var(--pf-card);
  border: 1px solid var(--pf-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.3,1),
              box-shadow 0.4s cubic-bezier(0.2,0.8,0.3,1),
              border-color 0.4s ease,
              background 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: pf-card-in 0.6s cubic-bezier(0.2,0.8,0.3,1) forwards;
}

.pf-card:nth-child(1) { animation-delay: 0.05s; }
.pf-card:nth-child(2) { animation-delay: 0.12s; }
.pf-card:nth-child(3) { animation-delay: 0.19s; }
.pf-card:nth-child(4) { animation-delay: 0.26s; }
.pf-card:nth-child(5) { animation-delay: 0.33s; }
.pf-card:nth-child(6) { animation-delay: 0.40s; }

@keyframes pf-card-in {
  to { opacity: 1; transform: translateY(0); }
}

.pf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--pf-teal) 40%, var(--pf-teal-2) 70%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

.pf-card:hover {
  background: var(--pf-card-hi);
  border-color: var(--pf-border-hi);
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(0,210,200,0.1),
    0 30px 70px rgba(0,0,0,0.55),
    0 0 50px rgba(0,210,200,0.05);
}

.pf-card:hover::before { opacity: 1; }

/* corner brackets */
.pf-bracket {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.pf-bracket-tl { top: 6px; left: 6px; }
.pf-bracket-tr { top: 6px; right: 6px; transform: scaleX(-1); }
.pf-bracket-bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.pf-bracket-br { bottom: 6px; right: 6px; transform: scale(-1); }

.pf-card:hover .pf-bracket { opacity: 1; }
.pf-card:hover .pf-bracket-tl { transform: translate(-1px,-1px); }
.pf-card:hover .pf-bracket-tr { transform: scaleX(-1) translate(-1px,-1px); }
.pf-card:hover .pf-bracket-bl { transform: scaleY(-1) translate(-1px,-1px); }
.pf-card:hover .pf-bracket-br { transform: scale(-1) translate(-1px,-1px); }

/* index chip */
.pf-index {
  position: absolute;
  top: 12px; left: 14px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--pf-teal);
  z-index: 10;
  background: rgba(8,9,16,0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(0,210,200,0.2);
}

/* viz area */
.pf-viz {
  height: 210px;
  position: relative;
  overflow: hidden;
}
.pf-viz svg { width: 100%; height: 100%; display: block; }
.pf-viz--tall { height: 240px; }

/* card body */
.pf-body {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--pf-border);
}

.pf-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pf-teal);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-cat::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,210,200,0.25), transparent);
}

.pf-card-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pf-text);
  margin-bottom: 9px;
  line-height: 1.2;
}

.pf-desc {
  font-size: 0.75rem;
  color: var(--pf-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 16px;
}

.pf-desc strong {
  color: var(--pf-text);
  font-weight: 500;
}

/* card footer */
.pf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--pf-border);
}

.pf-formats { display: flex; flex-wrap: wrap; gap: 4px; }

.pf-fmt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  color: var(--pf-faint);
  letter-spacing: 0.04em;
  transition: color 0.2s, border-color 0.2s;
}
.pf-card:hover .pf-fmt { color: rgba(216,220,232,0.32); }
.pf-fmt.hi {
  background: rgba(0,210,200,0.07);
  border-color: rgba(0,210,200,0.18);
  color: rgba(0,210,200,0.7);
}
.pf-card:hover .pf-fmt.hi { background: rgba(0,210,200,0.12); color: var(--pf-teal); }

.pf-foot-right { flex-shrink: 0; text-align: right; }

.pf-price {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pf-gold);
  white-space: nowrap;
}

.pf-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-muted);
  text-decoration: none;
  margin-top: 5px;
  transition: color 0.2s, gap 0.2s;
  justify-content: flex-end;
}
.pf-cta svg { width: 10px; height: 10px; transition: transform 0.2s; }
.pf-cta:hover { color: var(--pf-teal); gap: 9px; }
.pf-cta:hover svg { transform: translateX(2px); }

/* section footer note */
.pf-footer-note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}
.pf-footer-note::before,
.pf-footer-note::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pf-border);
}
.pf-footer-note span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-faint);
  white-space: nowrap;
}

/* ── SVG ANIMATIONS ── */
@keyframes pf-scan {
  0%   { transform: translateY(-250px); opacity: 0; }
  6%   { opacity: 0.65; }
  94%  { opacity: 0.65; }
  100% { transform: translateY(250px); opacity: 0; }
}
@keyframes pf-ring-out {
  0%   { r: 5; opacity: 0.8; }
  100% { r: 22; opacity: 0; }
}
@keyframes pf-dot-breathe {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1; }
}
@keyframes pf-dash-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -180; }
}
@keyframes pf-bar-up {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes pf-glow-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.9; }
}
@keyframes pf-anomaly-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

.pf-a-scan    { animation: pf-scan 5.5s linear infinite; }
.pf-a-ring    { animation: pf-ring-out 2.4s ease-out infinite; }
.pf-a-ring.d1 { animation-delay: 0.6s; }
.pf-a-ring.d2 { animation-delay: 1.2s; }
.pf-a-ring.d3 { animation-delay: 1.8s; }
.pf-a-dot     { animation: pf-dot-breathe 2.4s ease-in-out infinite; }
.pf-a-dot.d1  { animation-delay: 0.4s; }
.pf-a-dot.d2  { animation-delay: 0.8s; }
.pf-a-dot.d3  { animation-delay: 1.2s; }
.pf-a-dash    { animation: pf-dash-flow 12s linear infinite; }
.pf-a-dash.slow  { animation-duration: 18s; animation-direction: reverse; }
.pf-a-dash.vslow { animation-duration: 24s; }
.pf-a-bar     { animation: pf-bar-up 1.1s cubic-bezier(0.34,1.3,0.64,1) both; transform-origin: bottom; }
.pf-a-bar.d1  { animation-delay: 0.08s; }
.pf-a-bar.d2  { animation-delay: 0.16s; }
.pf-a-bar.d3  { animation-delay: 0.24s; }
.pf-a-bar.d4  { animation-delay: 0.32s; }
.pf-a-glow    { animation: pf-glow-pulse 4s ease-in-out infinite; }
.pf-a-anomaly { animation: pf-anomaly-pulse 3s ease-in-out infinite; transform-origin: center; }
.pf-a-anomaly.d1 { animation-delay: 1s; }
.pf-a-anomaly.d2 { animation-delay: 2s; }
