/* ─────────────────────────────────────────────────────
   portfolio.css — Styles for portfolio.html
───────────────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────── */
.portfolio-hero {
  background: linear-gradient(135deg, #060f2e 0%, #0a0a1a 60%, #0d1b4b 100%);
  padding: 9rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 75% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.portfolio-hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.portfolio-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 40%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Main wrapper ─────────────────────────────────── */
.portfolio-main {
  background: #0a0a1a;
  padding: 3rem 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.portfolio-intro p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Grid ─────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* ── Card ─────────────────────────────────────────── */
.portfolio-card {
  background: linear-gradient(160deg, #0f1735 0%, #0d122b 100%);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Image wrap */
.portfolio-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.portfolio-card__img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card__img-wrap img {
  transform: scale(1.05);
}

/* Overlay */
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 46, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.2rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.portfolio-card__overlay-cta {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(99, 102, 241, 0.85);
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

/* Body */
.portfolio-card__body {
  padding: 1.6rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
}

/* Tags */
.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ptag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.ptag--web   { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.ptag--seo   { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.ptag--local { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.ptag--brand { background: rgba(239, 68, 68, 0.12);  color: #fca5a5; border-color: rgba(239,68,68,0.3); }

/* Title */
.portfolio-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

/* Description */
.portfolio-card__desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* Results strip */
.portfolio-card__results {
  display: flex;
  gap: 1.5rem;
  padding: 0.9rem 1rem;
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  margin-top: auto;
}

.presult {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.presult__num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #a5b4fc;
  line-height: 1;
}

.presult__label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA Button */
.portfolio-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ── Bottom CTA banner ────────────────────────────── */
.portfolio-cta-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(16,185,129,0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
}

.portfolio-cta-banner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}

.portfolio-cta-banner p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    padding: 8rem 1.25rem 4rem;
  }

  .portfolio-card__body {
    padding: 1.3rem 1.3rem 1.5rem;
  }

  .portfolio-cta-banner {
    padding: 2.5rem 1.25rem;
  }
}
