:root {
  --nexus-bg-glass: rgba(0, 0, 0, 0.46);
  --nexus-bg-glass-strong: rgba(0, 0, 0, 0.62);
  --nexus-border: rgba(73, 222, 197, 0.24);
  --nexus-border-strong: rgba(73, 222, 197, 0.5);
  --nexus-text: #d8fbff;
  --nexus-text-soft: rgba(216, 251, 255, 0.88);
  --nexus-accent: #49dec5;
  --nexus-accent-2: #91f5ff;
  --nexus-shadow: 0 0 30px rgba(73, 222, 197, 0.12);
  --nexus-radius: 28px;
  --nexus-width: min(1200px, 92vw);
}

body.page-template-page-portfolio,
body.page-template-page-portfolio-php,
body.page-portfolio {
  background: #000;
}

body.page-template-page-portfolio #portfolio-page-content,
body.page-template-page-portfolio-php #portfolio-page-content,
body.page-portfolio #portfolio-page-content {
  position: relative;
  width: 100%;
  z-index: 1;
}

body.page-template-page-portfolio #menu,
body.page-template-page-portfolio-php #menu,
body.page-portfolio #menu {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(10px);
}

body.admin-bar.page-template-page-portfolio #menu,
body.admin-bar.page-template-page-portfolio-php #menu,
body.admin-bar.page-portfolio #menu {
  top: 32px;
}

.nexus-portfolio-page .content-padding {
  width: var(--nexus-width);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0;
  text-align: center;
  background: transparent;
}

.nexus-portfolio-page .section-shell {
  position: relative;
  width: 100%;
}

.nexus-portfolio-page h1,
.nexus-portfolio-page h2,
.nexus-portfolio-page h3,
.nexus-portfolio-page p,
.nexus-portfolio-page li,
.nexus-portfolio-page a,
.nexus-portfolio-page span {
  color: var(--nexus-text);
}

.nexus-portfolio-page h1,
.nexus-portfolio-page h2,
.nexus-portfolio-page h3,
.nexus-portfolio-page .nexus-section-title {
  font-family: "Sora", "Poppins", sans-serif;
}

.nexus-portfolio-page p,
.nexus-portfolio-page li,
.nexus-portfolio-page a,
.nexus-portfolio-page .nexus-button,
.nexus-portfolio-page .nexus-tag {
  font-family: "Poppins", sans-serif;
}

.nexus-section-kicker {
  color: var(--nexus-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  vertical-align: middle;
}
.nexus-icon {
    vertical-align: middle;
}

.nexus-section-heading {
  max-width: 920px;
  margin: 0 auto 2.75rem;
}

.nexus-section-title {
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
  line-height: 1.04;
  font-weight: 700;
  margin: 0.4rem 0 1rem;
  justify-content: center;
}

.nexus-section-text {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.72;
  color: var(--nexus-text-soft);
}

.nexus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--nexus-border-strong);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.nexus-button:hover {
  transform: translateY(-2px);
}

.nexus-button--primary {
  background: linear-gradient(135deg, rgba(73, 222, 197, 0.22), rgba(145, 245, 255, 0.1));
  box-shadow: var(--nexus-shadow);
}

.nexus-button--primary:hover {
  background: linear-gradient(135deg, rgba(73, 222, 197, 0.34), rgba(145, 245, 255, 0.16));
  border-color: rgba(145, 245, 255, 0.72);
}

.nexus-button--secondary {
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.nexus-button--secondary:hover {
  background: rgba(73, 222, 197, 0.1);
}

/* Hero */

.nexus-portfolio-hero {
  padding: 8rem 0 2.4rem;
}

.nexus-portfolio-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.nexus-portfolio-hero__title {
  max-width: 15ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  line-height: 1.03;
}

.nexus-portfolio-hero__text {
  max-width: 840px;
}

.nexus-portfolio-hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* Summary cards */

.nexus-portfolio-summary {
  padding: 0 0 2.75rem;
}

.nexus-portfolio-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.nexus-portfolio-summary-card,
.nexus-case-card,
.nexus-capability-card,
.nexus-portfolio-cta__inner,
.nexus-portfolio-fit__list {
  padding: 1.5rem;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius);
  background: var(--nexus-bg-glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--nexus-shadow);
  text-align: left;
}

.nexus-portfolio-summary-card h3,
.nexus-case-card h2,
.nexus-case-card h3,
.nexus-capability-card h3,
.nexus-portfolio-fit__list h3 {
  margin: 0 0 0.75rem;
  color: var(--nexus-accent-2);
  line-height: 1.08;
}

.nexus-portfolio-summary-card h3,
.nexus-capability-card h3,
.nexus-portfolio-fit__list h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.nexus-portfolio-summary-card p,
.nexus-case-card p,
.nexus-capability-card p,
.nexus-portfolio-fit__list p {
  margin: 0;
  color: var(--nexus-text-soft);
  line-height: 1.7;
}

/* Case studies */

.nexus-portfolio-case {
  padding: 1rem 0 0;
}

.nexus-portfolio-case__grid {
  display: grid;
  gap: 1.5rem;
}

.nexus-case-card--featured {
  padding: 1.8rem;
}

.nexus-case-card__header {
  margin-bottom: 1.4rem;
}

.nexus-case-card__header h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.nexus-case-card__lead {
  max-width: 860px;
}

.nexus-case-card__content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.nexus-case-card__block {
  padding: 1.2rem;
  border: 1px solid rgba(73, 222, 197, 0.18);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.24);
}

.nexus-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.nexus-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--nexus-border);
  background: rgba(0, 0, 0, 0.34);
  color: var(--nexus-text-soft);
  font-size: 0.95rem;
}

/* Bullet list */

.nexus-bullet-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.nexus-bullet-list li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.6;
  color: var(--nexus-text-soft);
}

.nexus-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nexus-accent);
  box-shadow: 0 0 12px rgba(73, 222, 197, 0.4);
}

/* Capabilities */

.nexus-portfolio-capabilities {
  padding: 4rem 0 0;
}

.nexus-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* Fit */

.nexus-portfolio-fit {
  padding: 4rem 0 0;
}

.nexus-portfolio-fit__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.nexus-portfolio-fit__intro {
  text-align: left;
}

.nexus-portfolio-fit__intro .nexus-section-title,
.nexus-portfolio-fit__intro .nexus-section-text {
  text-align: left;
  justify-content: flex-start;
  margin-left: 0;
  margin-right: 0;
}

/* CTA */

.nexus-portfolio-cta {
  padding: 4rem 0 4.75rem;
}

.nexus-portfolio-cta__inner {
  text-align: center;
  padding: 2.6rem clamp(1.2rem, 2.6vw, 3rem);
  background: var(--nexus-bg-glass-strong);
}

.nexus-portfolio-cta__inner .nexus-section-text {
  max-width: 760px;
}
.nexus-icon-portfolio{
  fill:none;
  min-width:64px;
  max-width:64px;
  min-height:64px;
}
.nexus-icon-portfolio-filled{
  fill:#c6f6f7;
    min-width: 48px;
    max-width: 54px;
    min-height: 64px;
}
.portfolio-card-header{
  width:100%;
}
/* Responsive */

@media (max-width: 1100px) {
  .nexus-case-card__content {
    grid-template-columns: 1fr;
  }

  .nexus-portfolio-fit__inner,
  .nexus-portfolio-summary__grid,
  .nexus-capabilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.admin-bar.page-template-page-portfolio #menu-mobile,
  body.admin-bar.page-template-page-portfolio-php #menu-mobile,
  body.admin-bar.page-portfolio #menu-mobile {
    top: 46px;
  }

  .nexus-portfolio-hero {
    padding: 6.8rem 0 2rem;
  }

  .nexus-portfolio-hero__actions .nexus-button {
    width: 100%;
    max-width: 360px;
  }

  .nexus-case-card,
  .nexus-portfolio-summary-card,
  .nexus-capability-card,
  .nexus-portfolio-fit__list,
  .nexus-portfolio-cta__inner {
    border-radius: 22px;
  }
}

@media (max-width: 520px) {
  .nexus-section-title {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
  }

  .nexus-case-card__header h2 {
    font-size: 1.75rem;
  }
}

.nexus-case-card__block h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
  font-size: clamp(1.15rem, 1.45vw, 1.5rem);
  line-height: 1.02;
}

.nexus-case-card__block h3 svg {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: 28px;
  min-height: 28px;
  margin-top: 0.08rem;
}

.nexus-case-card__block {
  padding: 1.15rem 1.05rem;
}

.nexus-case-card__block p,
.nexus-case-card__block li {
  font-size: 0.96rem;
  line-height: 1.68;
}

@media (max-width: 768px) {
  .nexus-case-card__block {
    padding: 1.1rem 1rem;
  }

  .nexus-case-card__block h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nexus-portfolio-hero__title {
    max-width: none;
    font-size: clamp(2.05rem, 9vw, 3rem);
  }

  .nexus-portfolio-hero__text {
    max-width: 34ch;
    line-height: 1.65;
  }

  .nexus-portfolio-summary-card {
    padding: 1.2rem 1rem;
  }

  .nexus-portfolio-summary-card h3 {
    font-size: 1.15rem;
    line-height: 1.08;
  }

  .nexus-case-card--featured {
    padding: 1.3rem 1rem;
  }

  .nexus-case-card__lead {
    line-height: 1.6;
  }

  .nexus-tag {
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
  }

  .nexus-portfolio-cta__inner .nexus-section-title {
    max-width: 10ch;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  .nexus-portfolio-hero__title {
    font-size: clamp(1.95rem, 10vw, 2.6rem);
  }
}
