/* Ziddi Techies .COM — Full Agency Portfolio & Case Studies Visual Architecture */

:root {
  --ink: #070911;
  --ink-2: #0a0d18;
  --panel: #101426;
  --panel-2: #151a2e;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f7fb;
  --muted: #adb3c8;
  --dim: #7c849e;
  --violet: #8b5cf6;
  --violet-2: #d946ef;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #a78bfa 0%, #d946ef 52%, #22d3ee 118%);
  --grad-soft: linear-gradient(140deg, rgba(139, 92, 246, 0.20), rgba(34, 211, 238, 0.08));
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1180px;
  --shadow: 0 22px 60px -24px rgba(0, 0, 0, 0.85);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Breadcrumb Navigation */
.crumb {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dim, #7c849e);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crumb a {
  color: var(--muted, #adb3c8);
  transition: color 0.2s ease;
  text-decoration: none;
}
.crumb a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Portfolio Header Section */
.portfolio-header {
  padding: clamp(54px, 7vw, 92px) 0 38px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  position: relative;
}
.portfolio-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  max-width: 22ch;
  color: #ffffff;
}
.portfolio-header .lede {
  font-size: 1.15rem;
  color: var(--muted, #adb3c8);
  max-width: 68ch;
  line-height: 1.65;
  margin: 0;
}

/* Fast Stats Bar */
.portfolio-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.stat-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(160deg, #12162a, #0a0d18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  opacity: 0.75;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 16px 36px -12px rgba(139, 92, 246, 0.3);
}
.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}
.stat-card span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #adb3c8;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Client Filter Toolbar */
.portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #adb3c8;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.5);
  transform: translateY(-1px);
}
.filter-btn.is-active {
  background: var(--grad);
  color: #070911 !important;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 24px -6px rgba(217, 70, 239, 0.55);
}

/* Multi-Client Cards Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}
.client-card {
  background: linear-gradient(160deg, #13172e, #0a0d1a);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg, 26px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
}
.client-card:hover {
  border-color: rgba(167, 139, 250, 0.45);
  transform: translateY(-6px);
  box-shadow: var(--shadow, 0 22px 60px -24px rgba(0, 0, 0, 0.85));
}
.client-card.featured-card {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, #181d38, #0c1024);
  border-color: rgba(167, 139, 250, 0.38);
}
.client-card.featured-card:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 25px 70px -20px rgba(34, 211, 238, 0.3);
}

/* Card Body Content */
.client-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}
.client-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.client-card-title-row h3 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.2;
  color: #ffffff;
  font-family: var(--font-head);
}
.client-card-title-row .client-url {
  font-size: 0.78rem;
  color: #d9c8ff;
  font-family: monospace;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.client-card-title-row .client-url:hover {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-card-desc {
  font-size: 0.90rem;
  color: var(--muted, #adb3c8);
  margin: 0;
  line-height: 1.6;
}

/* Scope Pills */
.scope-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}
.scope-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #cbb6ff;
  letter-spacing: 0.02em;
}

/* Highlights Box inside Card */
.client-highlights-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.highlight-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.80rem;
  color: var(--muted, #adb3c8);
  line-height: 1.5;
}
.highlight-line b {
  color: #ffffff;
  font-weight: 600;
}
.highlight-line i {
  color: #22d3ee;
  font-style: normal;
  font-weight: 700;
  flex-shrink: 0;
}

/* Card Footer */
.client-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

/* Case Study Single Detail Page Styles */
.cs-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 36px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}
.cs-meta-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cs-meta-box small {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim, #7c849e);
  font-weight: 700;
}
.cs-meta-box b {
  font-size: 0.98rem;
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.media-card {
  background: linear-gradient(160deg, #13172e, #0a0d1a);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius, 18px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.8);
}
.media-card-img {
  position: relative;
  overflow: hidden;
  background: #080a14;
  height: 240px;
}
.media-card-img.square {
  height: 280px;
}
.media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.media-card:hover .media-card-img img {
  transform: scale(1.04);
}
.media-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.media-card-tag {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 8px;
  display: inline-block;
}
.media-card-body h3 {
  font-size: 1.22rem;
  margin: 0 0 8px;
  line-height: 1.25;
  color: #ffffff;
  font-family: var(--font-head);
}
.media-card-body p {
  font-size: 0.88rem;
  color: var(--muted, #adb3c8);
  margin: 0;
  line-height: 1.55;
}
.scope-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #cbb6ff;
}
.scope-num {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: #22d3ee;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .portfolio-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .portfolio-stats-bar {
    grid-template-columns: 1fr;
  }
  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .client-card-title-row {
    flex-direction: column;
    gap: 6px;
  }
}
