:root {
  --bg-primary: #f9f9f7; 
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;

  --text-primary: #0f172a; 
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --border: #e5e7eb;

  /* acentos sutis */
  --accent-soft: #cbd5e1;
  --accent-strong: #0f172a;
  --header-height: 80px;
  --font-primary: "Manrope", sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #020617;
  --bg-secondary: #020617;
  --bg-card: #0f172a;

  --text-primary: #f8fafc; 
  --text-secondary: #94a3b8; 
  --text-muted: #64748b;

  --border: #1e293b;

  --accent-soft: #1e293b;
  --accent-strong: #f8fafc;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

/* === CONTAINERS === */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Para Seções de Conteúdo */
.container-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* === HEADER === */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 200;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  background: color-mix(in srgb, var(--bg-secondary), transparent 10%);
  backdrop-filter: blur(10px);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  z-index: 201;
}
.nav {
  display: none;
}
.header__actions {
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 201;
}
.desktop-only {
  display: none !important;
}

/* Mobile Menu */
.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 201;
  padding: 5px;
}
.bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: 0.3s ease;
}
body.menu-open .mobile-menu-btn .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.menu-open .mobile-menu-btn .bar:nth-child(2) {
  opacity: 0;
}
body.menu-open .mobile-menu-btn .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-secondary);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  padding-top: 80px;
}
body.menu-open .mobile-menu-overlay {
  transform: translateX(0);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.mobile-link {
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.3s;
}
.mobile-cta {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

/* === BUTTONS & THEME === */
.theme-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-btn:hover {
  background: var(--accent-soft);
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: none;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover{
  background: var(--accent-soft);
   transform: translateY(-2px);
}

[data-theme="dark"] .btn:hover {
  background: var(--border);
}

.btn--primary {
  background-color: var(--text-primary);
  color:  var(--bg-primary);
   border: 1px solid var(--border);
}
[data-theme="dark"] .btn--primary {
  border: 1px solid var(--border);
  ;}

.btn--primary-dark {
  background-color: #0f172a;
  color: white;
  border: 1px solid transparent;
}
.btn--primary-dark:hover {
  background-color: #000;
  transform: translateY(-2px);
}
[data-theme="dark"] .btn--primary-dark {
  color: white;
}
.btn--outline {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background-color: var(--accent-soft);
}

.btn--text {
  color: var(--text-primary);
  font-weight: 700;
  border: 1px solid var(--border);
}

[data-theme="dark"] .btn--text{
  color: var(--text-primary);

}

.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--brand-purple);
    width: 0%;
    z-index: 205;
    transition: width 0.1s linear;
}

.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--text-primary);
    width: 0%;
    z-index: 205;
    transition: width 0.1s linear;
}

.nav__link {
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: width 0.3s ease-in-out;
}
.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}
.nav__link.active {
    color: var(--brand-purple);
}
/* === HERO SECTION === */
.hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero__split-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}
.hero__side {
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 50;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100%;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.hero__text {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
  transition: color 0.3s ease;
  text-shadow: 0 0 30px var(--bg-primary);
}
.hero__side--left .hero__text {
  color: var(--text-primary);
}
.hero__side--right .hero__text {
  color: var(--text-secondary);
}
.hero__subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.hero__image-area {
  position: relative;
  width: 280px;
  aspect-ratio: 4 / 5;
  z-index: 10;
  margin: -10px 0;
  flex-shrink: 0;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}
.img-base,
.img-paint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}
.img-paint {
  z-index: 2;
  clip-path: inset(0% 0% 0% 100%);
  will-change: clip-path;
}
body.state-realistic .hero__side--left .hero__text {
  color: var(--brand-purple);
}
body.state-realistic .hero__side--right {
  opacity: 0.3 !important;
}
body.state-paint .hero__side--right .hero__text {
  color: var(--brand-yellow);
}
body.state-paint .hero__side--left {
  opacity: 0.3 !important;
}
.hero__actions-center {
  text-align: center;
  position: relative;
  z-index: 60;
}

/* === SEÇÕES GERAIS === */
.section {
  padding: 80px 0;
  transition: background-color 0.3s ease;
}
.section--alt {
  background-color: var(--bg-secondary);
}
.section--center {
  text-align: center;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-weight: 800;
  transition: color 0.3s;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.center-btn {
  text-align: center;
  margin-top: 40px;
}
.text-left {
  text-align: left;
}

/* Grid de Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-purple);
}
.project-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.project-card__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.project-card__content h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.project-card__content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}
.tags {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}
.btn-link {
  color: var(--brand-purple);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-link:hover {
  text-decoration: underline;
}

/* === DIFERENCIAL=== */
.differential-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.differential-text {
  text-align: left;
}
.differential-text .section-desc {
  margin: 0;
  margin-bottom: 20px;
  max-width: 90%;
}

.differential-icons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.diff-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  flex: 1;
  min-width: 140px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.diff-item:hover {
  transform: translateY(-5px);
  border-color: var(--brand-purple);
}
.diff-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.diff-item h4 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

/*icons*/
.project-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.8;
    padding: 10px; 
    margin: -10px;
    cursor: pointer;
}

.icon-link img,
.icon-link svg {
    width: 32px;
    height: 32px;
    display: block;
}

.icon-link:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.1);
    color: var(--text-primary);
}

/* =========================================
   FIX: ÍCONES E GITHUB (CLARO/ESCURO)
   ========================================= */

/* Estilo Base dos Links de Ícone */
.icon-link { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-muted); 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    opacity: 0.8; 
    padding: 10px; 
    margin: -10px; 
    cursor: pointer; 
}

.icon-link:hover { 
    opacity: 1; 
    color: var(--text-primary); 
}

.icon-link img, 
.icon-link svg { 
    width: 32px; 
    height: 32px; 
    display: block; 
}

/* --- LIGHT MODE --- */
[data-theme="light"] .icon-bw { 
    filter: grayscale(100%) opacity(0.8); 
    transition: filter 0.3s ease, transform 0.3s ease;
}
[data-theme="light"] .icon-link:hover .icon-bw { 
    filter: none;
    opacity: 1; 
    transform: scale(1.1);
}

/* --- DARK MODE --- */

[data-theme="dark"] .icon-bw { 
    filter: invert(1) grayscale(100%) opacity(0.8); 
    transition: filter 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .icon-link:hover .icon-bw { 
    filter: invert(1) grayscale(0%) opacity(1); 
    transform: scale(1.1);
}


/* =========================================
   SEÇÃO SKILLS (Hard & Soft)
   ========================================= */

/* --- Carrossel Infinito (Hard Skills) --- */
.tech-marquee {
    width: 100%;
    position: relative;
    max-width: 100vw; /* Garante que não estoure a tela */
    overflow: hidden;
    padding: 20px 0;
    /* Máscara para suavizar as bordas laterais */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-left 20s linear infinite;
}

/* Pausa a animação ao passar o mouse */
.tech-track:hover {
    animation-play-state: paused;
}

.tech-group {
    display: flex;
    gap: 40px;
    align-items: center;
}

.tech-group img {
    height: 50px;
    width: auto;
    /* Começa cinza para não brigar com a atenção */
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.tech-group img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Animação do Carrossel */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Nuvem de Tags (Soft Skills) --- */
.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center; /* Centraliza na Home */
}

.skill-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border);
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-3px);
    background-color: var(--accent-soft);
    border-color: var(--text-primary);
}

[data-theme="dark"] .tech-group .icon-bw {
    filter: invert(1) grayscale(100%) opacity(0.6);
}
[data-theme="dark"] .tech-group .icon-bw:hover {
    filter: invert(1) grayscale(0%) opacity(1);
}


/* Highlight Section */
.section--highlight {
  background: var(--bg-highlight);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.highlight-content {
  text-align: center;
  max-width: 800px;
}
.tag-highlight {
  display: inline-block;
  background: var(--brand-yellow);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.highlight-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.highlight-text p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Footer */
.about-text {
  max-width: 700px;
  margin: 0 auto 30px auto;
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
/* Footer */
.footer { 
    padding: 80px 0 40px 0; 
    border-top: 1px solid var(--border); 
    background-color: var(--bg-primary); 
    transition: background-color 0.3s; 
    overflow: hidden;
}

.footer__container { 
    display: flex; 
    flex-direction: column; 
    gap: 60px; 
}

/* Wrapper para alinhar lado a lado no desktop */
.footer__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.footer__cta {
    max-width: 100%;
}

.footer__cta h2 { 
    font-size: 3rem; 
    margin-bottom: 16px; 
    color: var(--text-primary); 
    line-height: 1.1;
}

.footer__cta p { 
    color: var(--text-secondary); 
    margin-bottom: 30px; 
    font-size: 1.2rem; 
    max-width: 500px;
    margin-left: auto; 
    margin-right: auto; 
}

.footer__socials { 
    display: flex; 
    gap: 24px; 
    justify-content: center; 
}

.social-link { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    text-decoration: none; 
    border-bottom: 2px solid transparent; 
    transition: all 0.3s; 
}
.social-link:hover { 
    border-color: var(--brand-purple); 
    color: var(--brand-purple); 
}

/* Container da Imagem do Footer */
.footer__image {
    width: 100%;
    max-width: 300px;
    position: relative;
}

.footer__image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; 
    transition: filter 0.3s ease, transform 0.3s ease;
}


[data-theme="light"] .footer__image img {
    filter: invert(1) brightness(0); 
    
}

[data-theme="dark"] .footer__image img {
    filter: none;
    
}

.footer__image img:hover {
    transform: scale(1.05) rotate(3deg);
}

.footer__copy { 
    text-align: center; 
    border-top: 1px solid var(--border); 
    padding-top: 30px; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

/* ================= RESPONSIVO FOOTER ================= */
@media (min-width: 768px) {
    .footer__row {
        flex-direction: row; /* Lado a lado */
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer__cta {
        max-width: 50%;
    }

    .footer__cta p {
        margin-left: 0;
        margin-right: 0;
    }

    .footer__socials {
        justify-content: flex-start;
    }
    
    .footer__image {
        max-width: 350px;
    }
}
.ux-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (min-width: 768px) {
  /* Ajuste do padding lateral do container de conteúdo */
  .container-content {
    padding-left: 32px;
    padding-right: 32px;
  }

  .projects-grid,
  .ux-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .differential-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .differential-text {
    flex: 1;
    padding-right: 40px;
  }
  .differential-icons {
    flex: 1;
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  /* Ajuste desktop */
  .container-content {
    padding-left: 40px;
    padding-right: 40px;
  }

  .nav {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  .nav__link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
  }
  .nav__link:hover {
    color: var(--brand-purple);
  }
  .desktop-only {
    display: inline-block !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .mobile-menu-overlay {
    display: none !important;
  }
  .hero__split-layout {
    flex-direction: row;
    gap: 0;
  }
  .hero__side {
    flex: 1;
    min-width: 250px;
    padding: 0 20px;
  }
  .hero__side--left {
    text-align: right;
  }
  .hero__side--right {
    text-align: left;
  }
  .hero__text {
    font-size: 4.5rem;
  }
  .hero__image-area {
    width: 400px;
    margin: 0 30px;
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
