:root {
  --primary: #07C42C;
  --primary-rgb: 7, 196, 44;
}

.diego-matrix-theme {
  background: #000;
}

#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: screen;
}

.preloader {
  display: none !important;
}

.effectFade {
  opacity: 1;
  visibility: visible;
}

.tf-header,
main#wrapper,
.header-inner,
.section-hero-v1,
.section-selected-work,
.section-service-2,
.section-process,
.section-about-me,
.section-tech-stack,
.section-brand,
.section-award,
.section-testimonial,
.section-pricing,
.section-faq,
.section-cta,
.tf-footer {
  position: relative;
  z-index: 1;
}

.tf-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 80;
  pointer-events: none;
}

.tf-header .header-inner {
  width: min(1320px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 10px 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  box-shadow: 0 18px 60px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  pointer-events: auto;
}

.tf-header .header-inner .row {
  align-items: center;
}

.tf-header .nav-menu-main {
  gap: clamp(18px, 2vw, 34px);
}

.tf-header .nav-menu-main .item-link {
  color: rgba(255,255,255,.9);
}

.tf-header .nav-menu-main .item-link:hover {
  color: var(--primary);
}

.logo-site img,
.logo-custom img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.25) brightness(1.1);
}

.section-hero-v1 .davies-large {
  letter-spacing: -0.08em;
  text-shadow: 0 0 42px rgba(7,196,44,.2);
}

.section-hero-v1 .bg-video::after,
.section-about-me .s-img-bg::after,
.section-selected-work .bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.72)),
    radial-gradient(circle at 65% 20%, rgba(255,255,255,.16), transparent 34%);
  pointer-events: none;
}

.section-hero-v1 .bg-video,
.section-selected-work .bg-img,
.section-about-me .s-img-bg {
  position: absolute;
}

.tf-btn,
.tf-btn-2,
.wg-plan,
.testimonial-v01,
.wg-service-2,
.wg-process {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.text-primary,
.section-hero-v1 .text-primary {
  color: var(--primary) !important;
}

.bg-primary,
.br-line.bg-primary {
  background-color: var(--primary) !important;
}

.wg-service-2 .image img,
.section-selected-work img,
.davies-video video,
.section-award img,
.testimonial-v01 img {
  filter: grayscale(.35) contrast(1.1);
}

.diego-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(0,0,0,.64);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(7,196,44,.28);
  backdrop-filter: blur(16px);
}

.diego-whatsapp svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.diego-whatsapp:hover {
  background: var(--primary);
  color: #000;
}

.section-project-types {
  position: relative;
  overflow: hidden;
}

.section-project-types .bg-img {
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
}

.section-project-types .bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2), #000 86%);
}

.project-text-grid {
  margin-top: 48px;
}

.project-text-card {
  min-height: 430px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 82% 12%, rgba(7,196,44,.22), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.project-text-card .project-number {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.project-text-card h5 {
  max-width: 11ch;
}

.project-text-card p,
.project-text-card li {
  color: rgba(255,255,255,.68);
}

.project-text-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-text-card li::before {
  content: "//";
  color: var(--primary);
  margin-right: 8px;
}

.diego-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.08) !important;
}

.diego-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 5vw, 64px);
}

.diego-tool-card {
  min-height: 190px;
  padding: 28px 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 70% 10%, rgba(7,196,44,.2), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.diego-tool-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(7,196,44,.18));
}

.diego-tool-card span {
  color: #fff;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: 0;
}

.diego-tool-card:hover {
  transform: translateY(-8px);
  border-color: rgba(7,196,44,.55);
  background:
    radial-gradient(circle at 70% 10%, rgba(7,196,44,.32), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
}

.section-cta {
  overflow: hidden;
  isolation: isolate;
}

.section-cta .bg-img {
  z-index: -1;
  height: 120%;
  overflow: hidden;
}

.section-cta .bg-img img {
  min-height: 100%;
  object-fit: cover;
  transform: translateY(-28%) scale(1.05);
  animation: diegoCtaGlowScroll 9s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes diegoCtaGlowScroll {
  0% {
    transform: translateY(-40%) scale(1.06);
    opacity: .82;
  }
  50% {
    transform: translateY(-18%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(-32%) scale(1.08);
    opacity: .88;
  }
}

.cta-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.direct-contact {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  text-align: center;
}

.direct-contact.direct-contact-clean {
  max-width: 620px;
  margin: clamp(52px, 6vw, 90px) 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
}

.direct-contact-clean p {
  margin-bottom: 22px;
}

.contact-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 0 28px rgba(7,196,44,.35);
}

.contact-inline-link::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform .3s ease;
}

.contact-inline-link:hover {
  color: #fff;
}

.contact-inline-link:hover::after {
  transform: scaleX(1.55);
}

.direct-contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.diego-footer-wordmark {
  padding: 40px 0 18px;
  overflow: hidden;
}

.diego-footer-wordmark span {
  display: block;
  color: #fff;
  font-size: clamp(88px, 21vw, 300px);
  line-height: .8;
  font-weight: 700;
  letter-spacing: -.08em;
  text-align: center;
}

.tf-footer .footer-menu-list a[href*="instagram"],
.tf-footer .footer-menu-list a[href*="behance"],
.tf-footer .footer-menu-list a[href*="wa.me"] {
  color: #fff;
}

.section-service-2 .main-image img {
  object-fit: cover;
}

.section-service-2 .image-2 img {
  object-fit: cover;
}

.section-faq {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,.98) 42%, #000 100%),
    radial-gradient(circle at 50% 112%, rgba(7,196,44,.18), transparent 34%);
}

.section-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.88) 100%),
    radial-gradient(circle at 50% 108%, rgba(7,196,44,.12), transparent 42%);
  pointer-events: none;
}

.section-faq .container {
  position: relative;
  z-index: 2;
}

.section-faq .accordion-faq_list {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.72);
  box-shadow: 0 28px 90px rgba(0,0,0,.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section-faq .accordion-faq_item,
.section-faq .accordion-action,
.section-faq .accordion-content {
  position: relative;
  z-index: 2;
}

.section-faq .accordion-text,
.section-faq .accordion-content {
  text-shadow: 0 1px 20px rgba(0,0,0,.8);
}

.service-catalog-intro {
  max-width: 720px;
  margin: 22px auto 0;
}

.section-service-catalog .s-header {
  text-align: center;
  justify-content: center;
}

.section-service-catalog .s-header h2 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.service-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 72px);
}

.service-catalog-card {
  min-height: 520px;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 82% 10%, rgba(7,196,44,.16), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  position: relative;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.service-catalog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: .65;
}

.service-catalog-card.is-featured {
  border-color: rgba(7,196,44,.5);
  box-shadow: 0 0 50px rgba(7,196,44,.12);
}

.service-catalog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(7,196,44,.55);
}

.service-catalog-card .service-index {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.service-catalog-card h5 {
  color: #fff;
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1;
  letter-spacing: 0;
}

.service-catalog-card p {
  min-height: 84px;
  color: rgba(255,255,255,.66);
}

.service-catalog-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 auto;
  padding: 0;
  list-style: none;
}

.service-catalog-card li {
  color: rgba(255,255,255,.88);
  line-height: 1.35;
}

.service-catalog-card li::before {
  content: "//";
  color: var(--primary);
  margin-right: 8px;
}

.service-catalog-card .tf-btn {
  margin-top: 10px;
}

@media (max-width: 991px) {
  .diego-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tf-header {
    inset: 12px 0 auto;
  }

  .tf-header .header-inner {
    width: min(100vw - 24px, 1320px);
    border-radius: 28px;
  }

  .section-hero-v1 .davies-large {
    letter-spacing: -0.05em;
  }

  .cta-copy-col {
    align-items: center;
  }

  .cta-copy-col h2 {
    text-align: center !important;
  }

  .direct-contact.direct-contact-clean {
    margin: 36px auto 0;
    text-align: center;
  }

  .section-cta .bg-img img {
    transform: translateY(-20%) scale(1.18);
  }

  .diego-tool-card {
    min-height: 150px;
  }

  .service-catalog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
  }

  .service-catalog-card {
    min-height: auto;
    padding: 24px;
  }

  .service-catalog-card h5 {
    font-size: 32px;
  }

  .service-catalog-card p {
    min-height: auto;
  }

  .section-service-catalog .s-header h2 {
    font-size: clamp(48px, 14vw, 72px);
    text-align: center;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .service-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#goTop {
  left: 22px;
  right: auto;
  bottom: 22px;
}

@media (min-width: 992px) {
  #goTop {
    left: 40px;
    right: auto;
  }
}
