:root {
  --orange: #f97316;
  --dark: #262624;
  --dark2: #1c1c1a;
  --dark3: #313130;
  --light: #f5f0eb;
  --muted: #9e9b95;
  --font-display: "Syne", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-body);
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark2);
}
::-webkit-scrollbar-thumb {
  background: var(--dark3);
  border-radius: 4px;
  border: 2px solid var(--dark2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--dark3) var(--dark2);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6vw;
  background: rgba(38, 38, 36, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span {
  color: var(--light);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}
.nav-cta {
  background: var(--orange);
  color: var(--dark);
  padding: 0.5rem 1.3rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* DRAWER */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(28, 28, 26, 0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition:
    background 0.35s,
    backdrop-filter 0.35s;
}
.mobile-drawer.open {
  background: rgba(28, 28, 26, 0.7);
  backdrop-filter: blur(6px);
  pointer-events: all;
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--dark2);
  border-left: 1px solid rgba(249, 115, 22, 0.15);
  padding: 5.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}
.mobile-drawer-panel a {
  display: block;
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 115, 22, 0.08);
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.mobile-drawer-panel a:hover {
  color: var(--orange);
  padding-left: 1.6rem;
}
.mobile-drawer-panel .drawer-cta {
  margin-top: 1.5rem;
  background: var(--orange);
  color: var(--dark);
  border-radius: 2px;
  text-align: center;
  font-weight: 700;
  border-bottom: none;
  padding: 1rem;
}

/* PAGE HERO */
.page-hero {
  padding: 9rem 6vw 5rem;
  background: var(--dark2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 80% at 90% 50%,
    rgba(249, 115, 22, 0.1) 0%,
    transparent 65%
  );
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 0%,
    transparent 100%
  );
}
.hero-inner {
  position: relative;
  max-width: 700px;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.page-hero p {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.8rem;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 0.22rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* FILTER */
.filter-wrap {
  padding: 0 6vw;
  background: var(--dark);
  position: sticky;
  top: 64px;
  z-index: 50;
  border-bottom: 1px solid rgba(249, 115, 22, 0.08);
}
.filter-inner {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
}
.filter-btn {
  padding: 0.42rem 1.05rem;
  border-radius: 2px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--orange);
  color: var(--light);
}
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--dark);
}

/* PROJECTS */
.projects-section {
  padding: 3.5rem 6vw 7rem;
}
.projects-count {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.projects-count strong {
  color: var(--orange);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.project-card {
  background: var(--dark3);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
}
.project-card.hidden {
  display: none !important;
}
.project-img-wrap {
  overflow: hidden;
  position: relative;
}
.project-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition:
    filter 0.35s,
    transform 0.35s;
}
.project-card:hover .project-img {
  filter: grayscale(0%);
  transform: scale(1.04);
}
.private-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(38, 38, 36, 0.88);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--orange);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.24rem 0.6rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 0.32rem;
}
.project-body {
  padding: 1.8rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.tag-cat {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
}
.tag-type,
.tag-year {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}
.tech-stack {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.tech-pill {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.58rem;
  border-radius: 20px;
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.18);
  color: var(--muted);
}
.project-testimonial {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  background: rgba(249, 115, 22, 0.06);
  border-left: 2px solid var(--orange);
  border-radius: 0 4px 4px 0;
}
.project-testimonial p {
  font-size: 0.82rem;
  color: var(--light);
  font-style: italic;
  line-height: 1.55;
}
.project-testimonial span {
  display: block;
  font-size: 0.7rem;
  color: var(--orange);
  font-weight: 600;
  margin-top: 0.35rem;
  font-style: normal;
}
.project-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.3rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: gap 0.2s;
}
.project-link:hover {
  gap: 0.65rem;
}
.project-private-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
}
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
  display: none;
}
.no-results.show {
  display: block;
}
.no-results strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--light);
  display: block;
  margin-bottom: 0.5rem;
}

/* CTA */
.cta-band {
  z-index: 100;
  position: relative;
  background: var(--dark2);
  border-top: 1px solid rgba(249, 115, 22, 0.12);
  padding: 5rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.cta-band h2 em {
  font-style: normal;
  color: var(--orange);
}
.cta-band p {
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: 420px;
  line-height: 1.65;
}
.btn-primary {
  background: var(--orange);
  color: var(--dark);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.35);
}

/* FOOTER */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(249, 115, 22, 0.12);
  padding: 2.4rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
footer nav {
  position: relative;
  background: none;
  border: none;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--orange);
  text-decoration: none;
}
.footer-logo span {
  color: var(--light);
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--orange);
}
.footer-copy {
  color: var(--muted);
  font-size: 0.79rem;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WHATSAPP */
.wa-fab {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  animation: none;
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow:
      0 4px 32px rgba(37, 211, 102, 0.75),
      0 0 0 10px rgba(37, 211, 102, 0.08);
  }
}
.wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--dark);
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark);
}
.wa-popup {
  position: fixed;
  bottom: 6rem;
  right: 1.8rem;
  z-index: 200;
  width: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s;
}
.wa-popup.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.wa-header {
  background: #075e54;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.wa-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wa-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.wa-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.wa-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
  display: inline-block;
}
.wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.2s;
}
.wa-close:hover {
  color: #fff;
}
.wa-body {
  background: #ece5dd;
  padding: 1rem 1rem 1.2rem;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.wa-bubble {
  background: #fff;
  border-radius: 0 8px 8px 8px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  color: #303030;
  line-height: 1.5;
  max-width: 85%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.wa-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -7px;
  border-width: 0 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}
.wa-time {
  font-size: 0.65rem;
  color: #888;
  margin-top: 0.3rem;
  text-align: right;
}
.wa-footer {
  background: #f0f0f0;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wa-input {
  flex: 1;
  background: #fff;
  border: none;
  outline: none;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #303030;
  resize: none;
  line-height: 1.4;
  max-height: 100px;
}
.wa-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.15s;
}
.wa-send:hover {
  background: #20b85a;
  transform: scale(1.08);
}
.wa-send svg {
  fill: #fff;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .filter-wrap {
    top: 56px;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 2.4rem;
  }
  .hero-stats {
    gap: 1.8rem;
  }
  .filter-btn {
    font-size: 0.72rem;
    padding: 0.38rem 0.8rem;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}