/* ========================================
   PORTFÓLIO - CRISTECH TECNOLOGIA
======================================== */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
}

.portfolio-page {
  --pf-bg: #0b080e;
  --pf-surface: #17111b;
  --pf-surface-2: #211724;
  --pf-text: #fff5fa;
  --pf-muted: #bbaebd;
  --pf-border: rgba(255, 157, 208, 0.16);
  --pf-pink: #ff4da3;
  --pf-pink-light: #ff9bcc;

  background: var(--pf-bg);
  color: var(--pf-text);
  width: 100%;
  min-height: 100vh;
  overflow: clip;
  font-family: "Poppins", Arial, sans-serif;
}

.portfolio-page *,
.portfolio-page *::before,
.portfolio-page *::after {
  box-sizing: border-box;
}

.portfolio-page a {
  text-decoration: none;
}

.portfolio-page button {
  font: inherit;
}

.portfolio-page [hidden] {
  display: none !important;
}

.pf-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.portfolio-page :is(a, button):focus-visible {
  outline: 3px solid var(--pf-pink);
  outline-offset: 4px;
}

.portfolio-page svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* ========================================
   TEMA CLARO
======================================== */

body.light .portfolio-page,
body.light-theme .portfolio-page,
body.light-mode .portfolio-page,
body.tema-claro .portfolio-page,
body[data-theme="light"] .portfolio-page,
html[data-theme="light"] .portfolio-page,
html.light .portfolio-page {
  --pf-bg: #fff8fc;
  --pf-surface: #ffffff;
  --pf-surface-2: #fff0f7;
  --pf-text: #241420;
  --pf-muted: #715a6a;
  --pf-border: rgba(171, 44, 110, 0.15);
  --pf-pink: #c91c77;
  --pf-pink-light: #a80c62;
}

/* ========================================
   BOTÕES E TEXTOS
======================================== */

.pf-overline,
.pf-eyebrow,
.pf-category {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--pf-pink);
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    transform 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.pf-btn:hover {
  transform: translateY(-3px);
}

.pf-btn-primary {
  background: linear-gradient(135deg, #ff4da3, #d62b85);
  color: #fff;
  box-shadow: 0 10px 35px rgba(225, 45, 134, 0.2);
}

.pf-btn-outline {
  border: 1px solid var(--pf-border);
  color: var(--pf-text);
  background: var(--pf-surface);
}

.pf-btn-outline:hover {
  border-color: var(--pf-pink);
}

/* ========================================
   HERO
======================================== */

.pf-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 670px;
  padding: 125px 0 100px;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 82% 35%,
      rgba(226, 42, 139, 0.16),
      transparent 43%
    ),
    var(--pf-bg);
}

.pf-hero-content {
  position: relative;
  z-index: 2;
}

.pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  background: var(--pf-surface-2);
  border: 1px solid var(--pf-border);
  border-radius: 100px;
}

.pf-hero h1 {
  max-width: 920px;
  margin: 27px 0 20px;
  font-size: clamp(2.7rem, 6.5vw, 5.6rem);
  font-weight: 850;
  line-height: 1.09;
  letter-spacing: -2.5px;
}

.pf-hero h1 span,
.pf-section-heading h2 span,
.pf-cta h2 span,
.pf-featured h3 span {
  color: var(--pf-pink);
}

.pf-hero p {
  max-width: 660px;
  color: var(--pf-muted);
  line-height: 1.85;
  font-size: 1.08rem;
}

.pf-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.pf-hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 55px;
  color: var(--pf-muted);
  font-size: 0.85rem;
}

.pf-hero-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-hero-info svg {
  color: var(--pf-pink);
  width: 17px;
}

.pf-hero-glow {
  position: absolute;
  right: -120px;
  top: 70px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(230, 49, 145, 0.12);
  filter: blur(110px);
  z-index: -1;
  pointer-events: none;
}

/* ========================================
   SEÇÃO PROJETOS
======================================== */

.pf-section {
  padding: 100px 0 120px;
}

.pf-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}

.pf-section-heading h2 {
  margin: 12px 0 15px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -1.5px;
}

.pf-section-heading p {
  max-width: 600px;
  margin: 0;
  color: var(--pf-muted);
  line-height: 1.8;
}

.pf-project-total {
  white-space: nowrap;
  color: var(--pf-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding-bottom: 7px;
}

/* FILTROS */

.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.pf-filter {
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
  color: var(--pf-muted);
  cursor: pointer;
  transition: 0.25s;
}

.pf-filter:hover,
.pf-filter.active {
  background: #db277f;
  color: white;
  border-color: #db277f;
}

.pf-results {
  margin: 0 0 23px;
  font-size: 0.82rem;
  color: var(--pf-muted);
}

/* ========================================
   GRID E CARDS
======================================== */

.pf-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pf-project {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: 21px;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.pf-project:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 163, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.13);
}

.pf-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  min-height: 420px;
}

.pf-featured-content,
.pf-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pf-featured-content {
  padding: clamp(28px, 4vw, 55px);
}

.pf-card-content {
  flex: 1;
  padding: 26px;
}

.pf-project-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 27px;
}

.pf-number {
  font-size: 0.78rem;
  letter-spacing: 1.6px;
  color: var(--pf-muted);
}

.pf-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  color: var(--pf-muted);
}

.pf-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
}

.pf-project h3 {
  margin: 13px 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.25;
}

.pf-featured h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.pf-project p {
  color: var(--pf-muted);
  line-height: 1.8;
  font-size: 0.9rem;
  margin: 0;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.pf-tags span {
  padding: 7px 11px;
  font-size: 0.72rem;
  border-radius: 7px;
  color: var(--pf-muted);
  background: var(--pf-surface-2);
  border: 1px solid var(--pf-border);
}

.pf-details {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 25px 0 0;
  color: var(--pf-pink);
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
}

.pf-details:hover {
  gap: 15px;
}

/* ========================================
   PRÉVIAS VISUAIS DOS PROJETOS
======================================== */

.pf-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 27px;
  min-height: 235px;
}

.pf-featured .pf-preview {
  min-height: 400px;
}

.pf-preview-gaia {
  background:
    radial-gradient(circle at 80% 20%, #764766, transparent 60%), #332034;
}

.pf-preview-store {
  background: linear-gradient(145deg, #5a2d53, #241224);
}

.pf-preview-food {
  background: linear-gradient(145deg, #4c293d, #1e121d);
}

.pf-preview-menu {
  background: linear-gradient(145deg, #733653, #241321);
}

/* MOCKUP SITE GAIA */

.pf-browser {
  width: min(100%, 490px);
  background: #f6f0ed;
  color: #30222a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 28px 65px #0006;
  transform: rotate(-2deg);
}

.pf-browser-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  font-size: 10px;
  background: #fff;
}

.pf-dots {
  display: flex;
  gap: 5px;
}

.pf-dots i {
  width: 7px;
  height: 7px;
  background: #dfb0c6;
  border-radius: 50%;
}

.pf-gaia-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 38px 25px;
  color: #fff;
  background: linear-gradient(115deg, #4b2d48, #b74d7c);
}

.pf-gaia-banner > span {
  font-size: 9px;
  letter-spacing: 1.5px;
}

.pf-gaia-banner strong {
  max-width: 300px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}

.pf-line {
  height: 6px;
  width: 75%;
  border-radius: 20px;
  background: #ffffff63;
}

.pf-line.short {
  width: 48%;
}

.pf-preview-button {
  padding: 10px 13px;
  border-radius: 6px;
  background: #e9b4ce;
  color: #44283a;
  font-size: 10px;
  font-weight: bold;
}

.pf-gaia-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
}

.pf-gaia-bottom div {
  text-align: center;
  padding: 15px 3px;
  border-radius: 6px;
  background: #f6dbe8;
  font-size: 10px;
  font-weight: bold;
}

/* MOCKUPS DE SISTEMAS */

.pf-small-screen {
  width: min(100%, 310px);
  background: #17151d;
  color: white;
  border: 1px solid #ffffff27;
  border-radius: 12px;
  box-shadow: 0 20px 45px #0005;
  padding: 16px;
  transform: rotate(-2deg);
}

.pf-screen-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #ff99ca;
  font-size: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ffffff25;
}

.pf-screen-title {
  font-size: 15px;
  font-weight: bold;
  margin: 15px 0;
}

.pf-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}

.pf-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  border-radius: 7px;
  background: #382339;
}

.pf-metrics small {
  font-size: 9px;
  color: #d6a7c0;
}

.pf-metrics b {
  font-size: 12px;
}

.pf-table-line {
  margin-top: 8px;
  height: 10px;
  border-radius: 3px;
  background: #ffffff12;
}

.pf-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.pf-order-grid > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 118px;
  padding: 10px 7px;
  background: #332633;
  border: 1px solid #ffffff19;
  border-radius: 6px;
}

.pf-order-grid small {
  font-size: 8px;
  color: #ff99ca;
}

.pf-order-grid strong {
  font-size: 10px;
}

.pf-order-grid span {
  font-size: 9px;
  color: #f8c3da;
}

/* MOCKUP CARDÁPIO */

.pf-phone {
  width: 178px;
  min-height: 245px;
  padding: 14px;
  background: #fff7f9;
  border: 6px solid #211620;
  border-radius: 26px;
  color: #30202c;
  box-shadow: 0 20px 45px #0005;
  transform: rotate(6deg);
}

.pf-phone-notch {
  width: 48px;
  height: 7px;
  margin: -7px auto 16px;
  border-radius: 0 0 8px 8px;
  background: #211620;
}

.pf-phone > small {
  display: block;
  color: #bb2575;
  font-size: 8px;
  font-weight: bold;
}

.pf-phone > strong {
  display: block;
  margin: 6px 0;
  font-size: 17px;
}

.pf-phone > span {
  display: inline-block;
  padding: 5px 9px;
  margin-bottom: 12px;
  border-radius: 6px;
  font-size: 10px;
  background: #f8d5e5;
}

.pf-menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #ebd5e0;
}

.pf-menu-row i {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e37ea9, #8a375e);
}

.pf-menu-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pf-menu-row b {
  font-size: 10px;
}

.pf-menu-row small {
  font-size: 8px;
  color: #816b79;
}

/* ========================================
   PROCESSO
======================================== */

.pf-process {
  padding: 110px 0;
  background: var(--pf-surface);
  border-top: 1px solid var(--pf-border);
  border-bottom: 1px solid var(--pf-border);
}

.pf-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pf-process-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--pf-border);
  background: var(--pf-bg);
  border-radius: 16px;
}

.pf-process-card > span {
  position: absolute;
  right: 25px;
  top: 22px;
  color: var(--pf-muted);
  font-size: 0.75rem;
}

.pf-process-card > svg {
  width: 35px;
  height: 35px;
  color: var(--pf-pink);
}

.pf-process-card h3 {
  margin: 23px 0 10px;
  font-size: 1.15rem;
}

.pf-process-card p {
  margin: 0;
  color: var(--pf-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ========================================
   CTA
======================================== */

.pf-cta {
  padding: 100px 0;
}

.pf-cta-box {
  padding: 80px 28px;
  text-align: center;
  border: 1px solid var(--pf-border);
  border-radius: 25px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(240, 51, 153, 0.14),
      transparent 65%
    ),
    var(--pf-surface);
}

.pf-cta h2 {
  max-width: 800px;
  margin: 16px auto;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.18;
}

.pf-cta p {
  max-width: 530px;
  margin: 0 auto 30px;
  color: var(--pf-muted);
  line-height: 1.8;
}

/* ========================================
   MODAL DE DETALHES
======================================== */

.pf-dialog {
  width: min(560px, calc(100% - 30px));
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
  color: var(--pf-text);
  box-shadow: 0 25px 80px #0008;
}

.pf-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.pf-dialog:not([open]) {
  display: none;
}

.pf-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

#pf-dialog-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--pf-border);
  border-radius: 9px;
  background: var(--pf-surface-2);
  color: var(--pf-text);
  cursor: pointer;
}

.pf-close-fallback {
  font-size: 22px;
}

#pf-dialog-close:has(svg) .pf-close-fallback {
  display: none;
}

.pf-dialog h2 {
  margin: 20px 0 15px;
  font-size: 1.8rem;
}

.pf-dialog h3 {
  margin-top: 25px;
  font-size: 1.05rem;
}

.pf-dialog p,
.pf-dialog li {
  color: var(--pf-muted);
  line-height: 1.8;
}

.pf-dialog ul {
  padding-left: 22px;
  margin-bottom: 28px;
}

.pf-dialog li {
  margin-bottom: 7px;
}

/* ========================================
   RESPONSIVO - TABLET
======================================== */

@media (max-width: 980px) {
  .pf-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .pf-process-grid {
    gap: 12px;
  }

  .pf-process-card {
    padding: 23px;
  }
}

/* ========================================
   RESPONSIVO - CELULAR
======================================== */

@media (max-width: 700px) {
  .pf-container {
    width: calc(100% - 32px);
  }

  .pf-hero {
    min-height: auto;
    padding: 105px 0 75px;
  }

  .pf-hero h1 {
    font-size: clamp(2.35rem, 9vw, 3.5rem);
    letter-spacing: -1.3px;
  }

  .pf-hero p {
    font-size: 0.97rem;
  }

  .pf-hero-info {
    margin-top: 34px;
    gap: 12px;
    flex-direction: column;
  }

  .pf-section,
  .pf-process,
  .pf-cta {
    padding: 70px 0;
  }

  .pf-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .pf-project-grid,
  .pf-process-grid {
    grid-template-columns: 1fr;
  }

  .pf-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .pf-featured .pf-preview {
    min-height: 280px;
    grid-row: 1;
  }

  .pf-featured-content {
    padding: 27px;
  }

  .pf-project-total {
    font-size: 0.72rem;
  }

  .pf-preview {
    min-height: 235px;
  }

  .pf-filter {
    padding: 10px 13px;
    font-size: 0.8rem;
  }

  .pf-cta-box {
    padding: 55px 20px;
  }

  .pf-dialog {
    padding: 23px;
  }
}

@media (max-width: 400px) {
  .pf-hero h1 {
    font-size: 2.15rem;
  }

  .pf-btn {
    width: 100%;
  }

  .pf-featured-content,
  .pf-card-content {
    padding: 22px;
  }

  .pf-project h3 {
    font-size: 1.45rem;
  }

  .pf-browser {
    transform: none;
  }

  .pf-gaia-banner {
    padding: 25px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-page *,
  .portfolio-page *::before,
  .portfolio-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
