/* ── NAV ── */
.portfolio-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ── PORTFOLIO HEADER ── */
.portfolio-header {
  padding: 100px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 6vw, 100px);
  line-height: 0.92;
  letter-spacing: 1px;
  color: var(--fg);
  margin: 16px 0 32px;
}

.portfolio-sub {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 560px;
  line-height: 1.7;
}

/* ── PORTFOLIO GRID ── */
.portfolio-grid-section {
  padding: 0 80px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ── PORTFOLIO CARD ── */
.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.portfolio-card:hover {
  border-color: rgba(255,182,39,0.4);
  transform: translateY(-4px);
}

/* ── CARD PREVIEW (top half) ── */
.card-preview {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Gang Pack Preview */
.gang-pack-preview {
  background: #1A1A1A;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}

.gpreview-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.glogo-wrap {
  flex-shrink: 0;
}

.glogo-svg {
  width: 48px;
  height: 48px;
}

.gtext-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: #FFB627;
}

.gtagline {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}

.gpreview-colors {
  display: flex;
  gap: 6px;
}

.gpreview-colors span {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.gpreview-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gpreview-strip span {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Loading Screen Preview */
.loading-preview {
  background: #0a0a0a;
  padding: 0;
}

.lscreen {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lscreen-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255,51,51,0.12) 0%, transparent 70%),
    #0a0a0a;
}

.lscreen-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lscreen-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,51,51,0.15) 0%, transparent 70%);
  top: -40px;
}

.lscreen-logo-area { position: relative; z-index: 1; }

.lscreen-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 6px;
  color: #FF3333;
  position: relative;
  z-index: 1;
}

.lscreen-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}

.lscreen-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,51,51,0.3);
  position: relative;
  z-index: 1;
}

.lscreen-status {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.lscreen-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.lscreen-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 65%;
  background: #FF3333;
  border-radius: 2px;
  animation: load 3s ease-in-out infinite;
}

@keyframes load {
  0% { width: 10%; }
  50% { width: 75%; }
  100% { width: 10%; }
}

/* Syndicate Preview */
.syndicate-preview {
  background: #060616;
  padding: 24px;
}

.sprev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 6px;
  color: #00e5ff;
}

.sdivider {
  width: 80px;
  height: 1px;
  background: rgba(0,229,255,0.2);
}

.slinks {
  display: flex;
  gap: 8px;
}

.slinks span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #00e5ff;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Shadow Lords Preview */
.shadow-preview {
  background: #0a0a0a;
  padding: 0;
}

.shprev {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shbg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,182,39,0.08) 0%, transparent 70%);
}

.shcontent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sh-icon { position: relative; z-index: 1; }

.shname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 5px;
  color: rgba(255,182,39,0.9);
}

.shtag {
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255,182,39,0.4);
}

/* Velocity RP Preview */
.velocity-preview {
  background: #111;
  padding: 0;
}

.vprev {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vspeed-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 20px,
    rgba(255,182,39,0.03) 20px,
    rgba(255,182,39,0.03) 21px
  );
  animation: speedlines 0.5s linear infinite;
}

@keyframes speedlines {
  from { transform: translateX(0); }
  to { transform: translateX(42px); }
}

.vcontent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.vlogo {
  display: flex;
  gap: 2px;
}

.vletter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #FFB627;
  animation: vwave 2s ease-in-out infinite;
}

.vletter:nth-child(1) { animation-delay: 0s; }
.vletter:nth-child(2) { animation-delay: 0.08s; }
.vletter:nth-child(3) { animation-delay: 0.16s; }
.vletter:nth-child(4) { animation-delay: 0.24s; }
.vletter:nth-child(5) { animation-delay: 0.32s; }
.vletter:nth-child(6) { animation-delay: 0.40s; }
.vletter:nth-child(7) { animation-delay: 0.48s; }
.vletter:nth-child(8) { animation-delay: 0.56s; }

@keyframes vwave {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.vsub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(255,182,39,0.6);
}

.vdivider {
  width: 60px;
  height: 1px;
  background: rgba(255,182,39,0.3);
}

.vtag {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
}

/* Noir City Preview */
.noir-preview {
  background: #000;
  padding: 24px;
}

.nprev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.nlogo-wrap svg { display: block; }

.ndivider {
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.nbadges {
  display: flex;
  gap: 6px;
}

.nbadges span {
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 7px;
  border-radius: 3px;
}

/* Ghost Protocol Preview */
.ghost-preview {
  background: #0d0d12;
  padding: 24px;
}

.gprev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.gglow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.gname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.gtag {
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

/* Nova Preview */
.nova-preview {
  background: #0a0800;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.novabg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,182,39,0.08) 0%, transparent 70%);
}

.novaprev {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.nova-icon { display: block; }

.novaname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 6px;
  color: #FFB627;
}

.novatag {
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255,182,39,0.4);
}

/* ── CARD INFO (bottom half) ── */
.card-info {
  padding: 28px 32px 32px;
}

.card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.1;
}

.card-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-delivery {
  font-size: 11px;
  color: rgba(255,182,39,0.5);
  letter-spacing: 1px;
}

/* ── CTA SECTION ── */
.portfolio-cta {
  padding: 120px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,182,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 1px;
  color: var(--fg);
  margin: 16px 0 20px;
}

.cta-sub {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,182,39,0.25);
}

.cta-note {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .portfolio-nav { padding: 20px 40px; }
  .portfolio-header { padding: 80px 40px 60px; }
  .portfolio-grid-section { padding: 0 40px 80px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-cta { padding: 80px 40px; }
}

@media (max-width: 640px) {
  .portfolio-nav { padding: 16px 24px; }
  .portfolio-header { padding: 60px 24px 40px; }
  .portfolio-grid-section { padding: 0 24px 60px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-cta { padding: 60px 24px; }
}