@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --cor-primaria: #00a6fb;
  --cor-secundaria: #1b1d24;
  --color-background: #171717;
  --color-button-bg: #e9ecef;
  --color-text: #ECEAF0;
  --color-text-2: rgb(214, 212, 216);
  --color-text-dark: #171717;
  --grey: #e9ecef;

  --bg: #171717;
  --card-bg: #1C1C1C;
  --card-border: #2A2A2A;
  --text-primary: #E8EAF0;
  --text-muted: #8B93A7;
  --accent: #00a6fb;
  --accent-soft: #2A2A2A;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  font-family: "Manrope", sans-serif;
  timeline-scope: --p1, --p2, --p3, --p4;
  margin: 0;
  color: var(--color-text);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

section {
  width: 100%;
  min-height: 100dvh;
  padding-left: 12%;
  padding-right: 12%;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.button-style-1 {
  padding: 12px 22px;
  background: var(--cor-primaria, #007bff);
  color: white;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background 500ms ease;
  border-radius: 8px;
}

.button-style-2 {
  padding: 12px 22px;
  background: var(--color-button-bg);
  color: var(--color-text-dark);
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background 500ms ease, outline-color 1000ms ease, outline-offset 1000ms ease;
  border-radius: 8px;
  outline: 2px solid transparent;
  outline-offset: 0px;
}

.button-style-1:hover {
  background: var(--color-background);
  outline: 2px solid var(--cor-primaria);
  outline-offset: 0px;
}

.button-style-2:hover {
  background: transparent;
  outline: 2px solid var(--color-button-bg);
  outline-offset: 0px;
  color: var(--color-text);
}

.hero-svg {
  width: 60%;
  height: auto;
}

.hs-05__copy-2 {
  display: flex;
  justify-content: center;
}

/* Mobile Config */
@media (max-width: 768px) {
    html, body {
        scroll-snap-type: none;
        scroll-behavior: auto;
        overscroll-behavior: auto;
    }

    body {
        timeline-scope: none;
    }

    * {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    section {
        min-height: 100svh;
        padding-left: 5%;
        padding-right: 5%;
    }
}
/* End Mobile Config */

/* Header */
.logo {
  width: 220px;
  height: auto;
}

li, a, button {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}

header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-left: 12%;
  padding-right: 12%;
  width: 100%;
  z-index: 9999;
}

.nav__links {
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__links li {
  display: inline-block;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 20px;
  padding-right: 20px;
}

.nav__links li a {
  transition: all 0.3s ease 0s;
}

.nav__links li a:hover, .active {
  color: var(--cor-primaria);
}

button {
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: 25px;
  padding-right: 25px;
  background-color: var(--cor-primaria);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  color: var(--color-text-dark);
}

button:hover {
  background-color: var(--cor-secundaria);
}

.menu-btn {
  color: var(--color-text);
  display: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

.menu-btn:hover,
.menu-btn:focus,
.menu-btn:active {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.menu-btn i {
  background: transparent !important;
  font-size: 24px;
}

@media (max-width: 1250px) {
  html.menu-open,
  body.menu-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
  }

  header {
    padding-left: 5% !important;
    padding-right: 5% !important;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    left: 0;
    top: 0;
  }

  header.menu-open {
    background-color: var(--color-background);
  }

  .logo {
    width: 160px;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    position: relative;
    z-index: 10000;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: -100%;
    background-color: var(--color-background);
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    z-index: 9998;
    transform: none;
    margin: 0;
    padding: 0;
    touch-action: none;
    overscroll-behavior: contain;
  }

  .cta {
    display: block;
    position: fixed;
    bottom: 50px;
    left: -100%;
    transform: translateX(-50%);
    transition: left 0.3s ease;
    z-index: 9999;
    white-space: nowrap;
    text-align: center;
  }

  .menu-open .nav__links {
    left: 0;
  }

  .menu-open .cta {
    left: 50%;
  }

  .nav__links li {
    margin: 15px 0;
  }
}
/* End Header */

/* Menu Highlight */
@keyframes menu-active-link {
  0%, 25% { 
    color: var(--color-text); 
    opacity: 0.9;
  }
  45%, 55% { 
    color: var(--cor-primaria); 
    opacity: 1;
  }
  75%, 100% { 
    color: var(--color-text); 
    opacity: 0.9;
  }
}

.nav__links a[data-section="home"],
.nav__links a[data-section="services"],
.nav__links a[data-section="projects"],
.nav__links a[data-section="about"] {
  animation-name: menu-active-link;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-range: cover 0% cover 100%;
}

.nav__links a[data-section="home"] { animation-timeline: --p1; }
.nav__links a[data-section="services"] { animation-timeline: --p2; }
.nav__links a[data-section="projects"] { animation-timeline: --p3; }
.nav__links a[data-section="about"] { animation-timeline: --p4; }
/* End Menu Hightlight*/

/* Dot Nav*/
#home { 
  view-timeline-name: --p1; 
  view-timeline-axis: block; 
}

#services { 
  view-timeline-name: --p2; 
  view-timeline-axis: block; 
}

#projects { 
  view-timeline-name: --p3; 
  view-timeline-axis: block; 
}

#about { 
  view-timeline-name: --p4; 
  view-timeline-axis: block; 
}

.fps-dot--1 { animation-timeline: --p1; }
.fps-dot--2 { animation-timeline: --p2; }
.fps-dot--3 { animation-timeline: --p3; }
.fps-dot--4 { animation-timeline: --p4; }

.fps-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

@media (max-width: 768px) {
    .fps-rail {
        display: none;
    }
}

.fps-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 30px;
  min-height: 30px;
  text-decoration: none;
}

.fps-label {
  position: absolute;
  right: 36px;
  color: var(--color-text);
  background: var(--cor-secundaria);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(8px);
}

.fps-link:hover .fps-label {
  opacity: 1;
  transform: translateX(0);
}

.fps-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.3;
  transition: background-color 0.3s ease;
  
  animation-name: fps-active-dot;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-range: cover 0% cover 100%;
}

@keyframes fps-active-dot {
  0%, 25% { 
    transform: scale(1); 
    opacity: 0.3; 
  }
  45%, 55% { 
    transform: scale(1.8); 
    opacity: 1; 
    background-color: var(--cor-primaria); 
  }
  75%, 100% { 
    transform: scale(1); 
    opacity: 0.3; 
  }
}
/* End Dot Nav */

/* Hero */
.hs-05 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(122, 122, 122, 0.04) 31px 32px), var(--color-background);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-text);
  box-sizing: border-box;
  min-width: 0;
}

.hs-05__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hs-05 h2 {
  margin: 0 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hs-05 h2 em {
  color: var(--cor-primaria);
  font-style: normal;
}
.hs-05 h2 em::before {
  content: '> ';
  opacity: 0.6;
}
.hs-05 p {
  margin: 0 0 24px;
  font-size: 1.26rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
  width: 80%;
}
.hs-05__cta {
  display: table;
  margin: 1.5rem auto 0;
  padding: 12px 22px;
  background: var(--cor-primaria);
  color: #000;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s;
}

.hs-05__cta:hover {
  background: var(--color-background);
  color: white;
  box-shadow: inset 0 0 0 1px #FFF;
}
.hs-05__line {
  color: #5fff8c;
  text-shadow: 0 0 8px rgba(95,255,140,0.5);
}
.hs-05__prompt {
  color: #ffb348;
  text-shadow: 0 0 8px rgba(255,179,72,0.5);
  margin-right: 6px;
}
.hs-05__out {
  color: #88a890;
  opacity: 0.9;
  padding-left: 14px;
}
.hs-05__ok {
  color: #5fff8c;
  padding-left: 14px;
  font-weight: 700;
}
.hs-05__cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #5fff8c;
  vertical-align: text-bottom;
  animation: hs-05-blink 1s steps(2) infinite;
}
@keyframes hs-05-blink {
  to {
    opacity: 0;
  }
}
@media (max-width: 720px) {
  .hs-05 {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs-05__cursor {
    animation: none;
  }
}
/*SVG CSS*/
#progress-bar {
  clip-path: inset(0 100% 0 0);
  animation: fill 6s ease-in-out forwards;
}
#label {
  opacity: 0;
  animation: fade-in .6s ease-out 6s forwards;
}
#keyboard {
  animation: blink 1.4s steps(1, end) infinite;
}

@keyframes fill    { to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes blink {
  0%       { fill: #00a6fb; }
  50%,100% { fill: #737a80; }
}

@media (prefers-reduced-motion: reduce) {
  #progress-bar { animation: none; clip-path: none; }
  #label        { animation: none; opacity: 1; }
  #keyboard     { animation: none; fill: #00a6fb; }
}

/* Services */
  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0 auto;
  }

  .services__more {
    color: var(--color-text-2);
    font-size: 1rem;
    text-align: center;
    max-width: 480px;
  }

  .services__more a {
    color: var(--cor-primaria);
    text-decoration: underline;
  }

  .services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 423px));
    gap: 42px;
    justify-content: center;
    width: 100%;
  }

  @media (max-width: 860px) {
    .services__grid { grid-template-columns: 1fr; }
  }

  .services__card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 28px 26px 28px;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; 
    transition: border-color 0.7s ease, transform 0.7s ease;
  }

  .services__card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    color: var(--cor-primaria) !important;
    display: block !important;
  }

  .services__card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    width: 100% !important;
    text-align: left !important;
    display: block !important;
  }

  .services__card__lead {
    color: var(--color-text-2);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.55;
    margin: 0 0 20px;
  }

  .services__card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
  }

  .services__tag {
    font-size: 0.82rem;
    background: var(--accent-soft);
    color: var(--color-text-2);
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .services__card__list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex-grow: 1;
  }

  .services__card__list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 10px;
  }

  .services__card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  .services__card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #e9ecef;
    color: var(--color-text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .services__card__cta:hover {
    background: var(--accent);
    color: #FFF;
  }
/*Services End */

/* Projects */
.projects-section {
    --projects-bg: #0A0C10;
    --projects-border: #232733;
    --projects-text: #F1F3F8;
    --projects-text-muted: #8B93A7;
    --projects-accent: #3EA6FF;
    --projects-accent-soft: rgba(62, 166, 255, 0.12);
 
    font-family: 'Inter', sans-serif;
    color: var(--projects-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
 
  .projects-section *,
  .projects-section *::before,
  .projects-section *::after {
    box-sizing: border-box;
  }
 
  /* trilho que desliza horizontalmente */
  .projects-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
 
  .projects-slider__track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
  }
 
  .projects-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    min-height: 440px;
  }
 
  .projects-slide__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
  }
 
  .projects-slide__tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--projects-accent);
    letter-spacing: 0.02em;
    margin-bottom: 14px;
  }
 
  .projects-slide__info h3 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
  }
 
  .projects-slide__info p {
    color: var(--color-text-2);
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 46ch;
  }
 
  .projects-slide__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
  }
 
  .projects-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--card-bg);
    border: solid 1px var(--card-border);
    color: var(--color-text);
    padding: 5px 10px;
    border-radius: 6px;
  }
 
  .projects-slide__cta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--projects-accent);
    color: var(--projects-accent);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
  }
 
  .projects-slide__cta:hover {
    background: var(--projects-accent);
    color: var(--projects-bg);
  }
 
  /* MOCKUP */
  .projects-slide__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    min-width: 0;
  }
 
  .projects-slide__img {
    width: 85%;
    margin: 0 auto;
    height: auto;
    display: block;
  }
 
  .projects-mock-placeholder {
    width: 100%;
    aspect-ratio: 16 / 11;
    border: 1px dashed var(--projects-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--projects-text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-align: center;
    padding: 20px;
  }
 
  /*  CONTROLES  */
  .projects-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }
 
  .projects-arrow {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: var(--projects-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
  }
 
  .projects-arrow:hover {
    border-color: var(--projects-accent);
    color: var(--projects-accent);
  }
 
  .projects-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: var(--projects-text) !important;
    fill: none !important;
  }
 
  .projects-arrow:hover svg {
    stroke: var(--projects-accent) !important;
  }
 
  .projects-dots {
    display: flex;
    gap: 8px;
  }
 
  .projects-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }
 
  .projects-dot.is-active {
    background: var(--projects-accent);
    transform: scale(1.25);
  }
 
  /* MOBILE */
  @media (max-width: 760px) {
    .projects-slide {
      grid-template-columns: 1fr;
      gap: 28px;
      min-height: auto;
    }
 
    .projects-slide__visual {
      order: -1;
      min-height: 260px;
    }
 
    .projects-slide__info h3 {
      font-size: 1.5rem;
    }
  }
/* End Projects*/

/* About */
.about-section {
    --about-accent: #3EA6FF;
    --about-text-muted: #8B93A7;
    --about-border: #232733;
 
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
 
  .about-section *,
  .about-section *::before,
  .about-section *::after {
    box-sizing: border-box;
  }
 
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
 
  .about-photo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }
 
  .about-photo {
    width: 70%;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 14px;
    display: block;
  }
 
  .about-photo-placeholder {
    width: 85%;
    aspect-ratio: 4 / 5;
    border: 1px dashed var(--about-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--about-text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-align: center;
    padding: 20px;
  }
 
  /* ============ TEXTO ============ */
  .about-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
  }
 
  .about-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--about-accent);
    letter-spacing: 0.02em;
    margin-bottom: 14px;
  }
 
  .about-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 16px;
  }
 
  .about-content p {
    font-size: 1.11rem;
    font-weight: 300;
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 52ch;
  }
 
  .about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
 
  /* ============ MOBILE ============ */
  @media (max-width: 760px) {
    .about-grid {
      grid-template-columns: 1fr;
      gap: 28px;
    }
 
    .about-photo-wrap {
      order: -1;
    }
 
    .about-content h2 {
      font-size: 1.5rem;
    }
  }
  /* End About */