/* portfolio.css — portfolio.html only (main.css linked in HTML) */

body.portfolio-page #main-content {
  overflow-x: clip;
}

body.portfolio-page main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: clip;
}

body.portfolio-page section:not(.portfolio-hero) {
  padding-block: var(--section-pad-y);
  padding-inline: 0;
}

body.portfolio-page .portfolio-services {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
@media (min-width: 768px){
  .why-us-item svg{
    width: 40px;
    height: 40px;
  }
}
/* ===== HERO ===== */
body.portfolio-page .portfolio-hero.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(100px + env(safe-area-inset-top, 0px)) var(--page-gutter) var(--section-pad-y);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0, #ffffff);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.dark body.portfolio-page .portfolio-hero.hero {
  background: linear-gradient(135deg, #0b0f19, #111827, #1f2937);
}

html.light body.portfolio-page .portfolio-hero.hero {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0, #ffffff);
}

body.portfolio-page .hero-content {
  max-width: 820px;
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0 auto;
}

body.portfolio-page .hero-content.container {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.portfolio-hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
}

.portfolio-hero__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.portfolio-hero__stats strong {
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.2;
}

.portfolio-hero__stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glow);
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.portfolio-page .hero h1,
body.portfolio-page .hero-content > p {
  color: var(--text);
}

body.portfolio-page .hero-content > p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: var(--space-sm);
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  body.portfolio-page .portfolio-hero.hero {
    padding-top: calc(88px + env(safe-area-inset-top, 0px) + 48px);
    padding-bottom: var(--section-pad-y-sm);
  }

  body.portfolio-page .hero h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
    line-height: 1.15;
  }

  body.portfolio-page .hero-content > p {
    font-size: 15px;
    text-align: center;
    padding-inline: 0;
  }

  body.portfolio-page .hero-badge {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    padding: 0.45rem 1.1rem;
  }

  .portfolio-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    margin-top: 1.5rem;
  }

  .portfolio-hero__stats li {
    min-width: 0;
    padding: 0.65rem 0.5rem;
  }

  .portfolio-hero__stats strong {
    font-size: 1.15rem;
  }

  .portfolio-hero__stats span {
    font-size: 0.7rem;
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.2s;
}
.reveal-delay-2 {
  transition-delay: 0.4s;
}
.reveal-delay-3 {
  transition-delay: 0.6s;
}

/* ===== SECTIONS COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-header h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== PROJECTS ===== */
.projects-section {
  background: var(--bg);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.project-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s,
    box-shadow 0.4s;
  cursor: pointer;
  margin-top: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}
figure.project-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  margin: 0;
}
figure.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.project-tag-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gradient);
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
}
.project-card:hover figure.project-img img {
  transform: scale(1.1);
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--secondary-strong),
    var(--primary-strong)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay i {
  color: white;
  font-size: 2rem;
  margin-top: 3rem;
}
.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.project-meta__group {
  min-width: 0;
}

.project-meta__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.project-meta__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-meta__list li {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: start;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.project-meta__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}
.project-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.9rem;
}
.project-btn:hover {
  background: var(--secondary);
  color: white;
}
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.project-details.active {
  max-height: 1200px;
}

.project-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
}

.project-link:hover {
  text-decoration: underline;
}

.portfolio-contact__btn {
  margin-top: 1.25rem;
}
.project-details-content {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== WHY CHOOSE US ===== */
.why-us-section {
  background: var(--bg);
}
.why-us-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.why-us-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.why-us-list::-webkit-scrollbar {
  display: none;
}
.why-us-list.reveal {
  opacity: 0;
  transform: translateX(40px);
}
.why-us-list.reveal.active {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.why-us-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.12);
  text-align: center;
  min-width: 260px;
  flex: 0 0 260px;
  scroll-snap-align: start;
}
html.dark .why-us-item {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.why-us-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
  border-color: var(--border-hover);
}
.why-us-item__icon,
.why-us-item i {
  color: white;
  font-size: 1.8rem;
  width: 58px;
  height: 58px;
  background: var(--gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}

.why-us-item__icon svg {
  width: 28px;
  height: 28px;
}
.item-content {
  width: 100%;
}
.item-content span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}
.why-us-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.why-us-arrow.left {
  left: -22px;
}
.why-us-arrow.right {
  right: -22px;
}
.why-us-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ===== MEDIA QUERIES FOR WHY-US ===== */
@media (max-width: 768px) {
  .why-us-container {
    overflow: visible;
  }
  .why-us-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    overflow: visible;
  }
  .why-us-arrow {
    display: none;
  }
  .why-us-item {
    padding: 1rem;
    min-width: auto;
    flex: 1 1 auto;
  }
  .why-us-item i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .item-content span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .why-us-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .why-us-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  .why-us-item i {
    margin-bottom: 0.5rem;
  }
}

/* ===== CLIENT STORIES ===== */
.stories-section {
  background: var(--bg);
}
.happiness-graph {
  max-width: 800px;
  margin: 0 auto;
}
.graph-container {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 15px;
  height: 300px;
  margin-bottom: 2rem;
  padding: 0 2rem;
  position: relative;
}
.graph-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}
.graph-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  width: 70px;
  height: var(--h, 50%);
  background: var(--gradient);
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: all 0.3s;
  min-height: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.graph-bar__name {
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.graph-bar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.graph-bar i {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.bar-label {
  position: absolute;
  bottom: -28px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}

.graph-container {
  padding-bottom: 3.5rem;
}

.graph-legend {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ===== SERVICES ===== */
.services-section {
  background: var(--bg);
}
.services-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.service-showcase-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s;
}
.service-showcase-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}
figure.service-media {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  margin: 0;
}
figure.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.service-showcase-card:hover figure.service-media img {
  transform: scale(1.1);
}
.service-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, var(--overlay-dark));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.service-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--badge-bg);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
}
.service-showcase-info {
  padding: 1.5rem 2rem 2rem;
}
.service-showcase-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.service-showcase-info h3 i {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--secondary);
}
.service-showcase-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.service-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-feature-tag {
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}
.service-feature-tag:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

/* ===== CONTACT SIMPLE ===== */
.contact-section {
  background: var(--surface);
  text-align: center;
}

/* ——— Portfolio mobile / tablet ——— */
@media (max-width: 768px) {
  body.portfolio-page section:not(.portfolio-hero) {
    padding-block: var(--section-pad-y-md);
  }

  body.portfolio-page #particles-canvas {
    display: none;
  }

  .section-header {
    margin-bottom: 2rem;
    padding-inline: 0;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
    line-height: 1.2;
  }

  .section-header p {
    font-size: 15px;
    line-height: 1.65;
    max-width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  figure.project-img {
    height: 200px;
  }

  .project-info {
    padding: 1.15rem 1.25rem;
  }

  .project-info h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .project-info p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .project-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    min-height: 44px;
  }

  .project-link {
    display: block;
    text-align: center;
    margin-top: 0.85rem;
    padding: 0.35rem 0;
  }

  .project-details-content {
    font-size: 0.85rem;
    line-height: 1.65;
  }

  .contact-section .section-header {
    margin-bottom: 1.25rem;
  }

  .portfolio-contact__btn {
    width: 100%;
    max-width: 320px;
  }

  body.portfolio-page .portfolio-services__intro {
    margin-bottom: 0.5rem;
  }

  body.portfolio-page .portfolio-services__title {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  }

  body.portfolio-page .portfolio-services__desc {
    font-size: 15px;
    padding-inline: 0;
  }

  body.portfolio-page .portfolio-services .core-services__viewport {
    border-radius: var(--radius-sm);
  }

  body.portfolio-page .portfolio-services .core-services__card {
    min-width: 0;
    max-width: 100%;
  }

  body.portfolio-page .portfolio-services .pricing-model__grid {
    max-width: 100%;
    padding-inline: 0;
  }

  body.portfolio-page .portfolio-services .pricing-model__card {
    padding: 1.75rem 1.15rem;
  }

  body.portfolio-page .portfolio-services .pricing-model__btn {
    width: 100%;
    max-width: 100%;
  }

  body.portfolio-page .portfolio-services .pricing-model__note {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  body.portfolio-page section:not(.portfolio-hero) {
    padding-block: var(--section-pad-y-sm);
  }

  body.portfolio-page .portfolio-hero.hero {
    padding-top: calc(80px + env(safe-area-inset-top, 0px) + 36px);
    padding-bottom: 28px;
  }

  body.portfolio-page .hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.75rem);
  }

  .portfolio-hero__stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .portfolio-hero__stats li {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .portfolio-hero__stats strong {
    font-size: 1.25rem;
  }

  .portfolio-hero__stats span {
    font-size: 0.8rem;
    margin-top: 0;
  }

  .section-header h2 {
    font-size: 1.35rem;
  }

  figure.project-img {
    height: 180px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .project-meta__list li {
    font-size: 0.85rem;
  }

  body.portfolio-page .portfolio-services .core-services,
  body.portfolio-page .portfolio-services .pricing-model {
    padding-top: var(--section-pad-y-sm);
    padding-bottom: var(--section-pad-y-sm);
  }
}

@media (hover: none) {
  .project-card:hover {
    transform: none;
  }

  .project-card:hover figure.project-img img {
    transform: none;
  }
}

/* Hero load animation */
.hero-anim-1 { animation: portfolioFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.hero-anim-2 { animation: portfolioFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.hero-anim-3 { animation: portfolioFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
.hero-anim-4 { animation: portfolioFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }

@keyframes portfolioFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services block at bottom of portfolio (subset of services.html — no duplicate sections) */
body.portfolio-page .portfolio-services__intro {
  text-align: center;
  margin-bottom: var(--space-md);
}

body.portfolio-page .portfolio-services__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body.portfolio-page .portfolio-services__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.65;
}

body.portfolio-page .portfolio-services__desc a {
  color: var(--secondary);
  font-weight: 600;
}

body.portfolio-page .portfolio-services__desc a:hover {
  text-decoration: underline;
}

body.portfolio-page .portfolio-services .core-services__header {
  display: none;
}

body.portfolio-page .portfolio-services > section {
  padding-left: 0;
  padding-right: 0;
}

body.portfolio-page .portfolio-services .core-services,
body.portfolio-page .portfolio-services .services-details,
body.portfolio-page .portfolio-services .how-we-work,
body.portfolio-page .portfolio-services .pricing-model,
body.portfolio-page .portfolio-services .final-cta {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

/* Only animate the intro title — never hide whole service/pricing sections (mobile empty gap) */
body.portfolio-page .portfolio-services__intro.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.portfolio-page .portfolio-services__intro.reveal.reveal--visible,
body.portfolio-page .portfolio-services__intro.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

body.portfolio-page .portfolio-services .core-services,
body.portfolio-page .portfolio-services .pricing-model,
body.portfolio-page .portfolio-services .pricing-model__note {
  opacity: 1;
  transform: none;
}

body.portfolio-page .portfolio-services .pricing-model__card {
  opacity: 1;
}

body.portfolio-page .portfolio-services .pricing-model__card:not(:hover) {
  transform: none;
}

body.portfolio-page .portfolio-services .pricing-model__card--highlight:not(:hover) {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  body.portfolio-page .portfolio-services__intro.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  body.portfolio-page .portfolio-services .core-services,
  body.portfolio-page .portfolio-services .services-details,
  body.portfolio-page .portfolio-services .how-we-work,
  body.portfolio-page .portfolio-services .pricing-model,
  body.portfolio-page .portfolio-services .final-cta {
    padding-top: var(--section-pad-y-md);
    padding-bottom: var(--section-pad-y-md);
  }
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.portfolio-filter__btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.portfolio-filter__btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.portfolio-filter__btn.is-active,
.portfolio-filter__btn[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: var(--gradient);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent);
}
