/* --- 1. Variáveis e Reset (Mantendo sua identidade) --- */
:root {
  /* Sua Paleta Nova */
  --ink: #1a1814;
  --exink: #19141a;
  --storm: #2e3d4f;
  --slate: #6b7f8e;
  --rain: #8fafc2;
  --moss: #4a5e45;
  --clay: #9c7c5e;
  --ochre: #c4893a;
  --petal: #d4a5a0;
  --dust: #c8bfad;
  --stone: #e8e2d9;

  /* Variáveis de Layout estilo Cloudflare */
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius: 8px;

  /* Efeito Neo-Vidro */
  --neo-shadow-dark: rgba(0, 0, 0, 0.6);
  --neo-shadow-light: rgba(255, 255, 255, 0.05);
  --neo-border: rgba(255, 255, 255, 0.03);
}

/* Formas coloridas que ficam passeando no fundo para mostrar a refração */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    animation: float 12s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    z-index: -1;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    pointer-events: none;
    will-change: transform;
}

.bg-shape.paused {
    animation: none !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .bg-shape {
        animation-duration: 16s;
        opacity: 0.6;
    }
}

.shape1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff007a, #7a00ff);
    top: 10%;
    left: 20%;
    border-color: #19141a;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    bottom: 20%;
    right: 20%;
    animation-delay: -6s;
    border-color: #ffffff;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 60px) scale(1.05); }
}

/* Respeita preferências de movimento reduzido do sistema */
@media (prefers-reduced-motion: reduce) {
    .bg-shape,
    .wavy-text span,
    button,
    a {
        animation: none !important;
        transition: none !important;
    }
}

/* Desativa animações pesadas em dispositivos móveis */
@media (max-width: 768px) {
    .bg-shape {
        animation-duration: 16s;
    }
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink);
  color: var(--stone);
  overflow-x: hidden;
}

/* Overlay de ruído (Mantido do seu original) */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  will-change: opacity;
}

@media (max-width: 768px) {
  .noise-overlay {
    opacity: 0.02;
  }
}

/* Fumaça no fundo (z-index baixo para ficar atrás do texto) */
.smoke-box {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height) );
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
  /* mix-blend-mode: multiply ;*/  
  
}

.smoke-canvas {
  width: 100%;
  height: 100%;
}

.profile-pic-bg {
  position: absolute;
  top: var(--header-height);
  width: 100%;
  height: calc(100vh - var(--header-height) );
  z-index: 0;
  overflow: hidden;
}

.profile-pic-bg img{
  height: 100%;
  width: 30%;
  margin-left: 50%;
  object-fit: cover;
}

/* --- 2. Classes Utilitárias (Layout) --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  
}

/* --- 3. Header Estilo Cloudflare --- */
.cf-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(26, 24, 20, 0.9); /* --ink com transparência */
  backdrop-filter: blur(10px); /* Efeito de vidro */
  border-bottom: 1px solid var(--storm);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.cf-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-img {
  height: 40px;
  width: auto;
}

.cf-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.cf-nav-links a {
  text-decoration: none;
  color: var(--stone);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.cf-nav-links a:not(.cf-btn):hover {
  color: var(--ochre);
}

/* Botões Estilo Cloudflare (mas com suas cores) */
.cf-btn {
  padding: 10px 20px;
  border-radius: 35px; /* neo-vidro: arredondados */
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease-in-out;
  display: inline-block;
  text-align: center;
  
  /* A refração acontece aqui */
  backdrop-filter: url(#liquid-glass-filter) blur(6px);
  -webkit-backdrop-filter: url(#liquid-glass-filter) blur(6px);
  
  /* Sombra dupla: escura embaixo/direita, clara em cima/esquerda (Alto-relevo) */
  box-shadow: 
      10px 10px 20px var(--neo-shadow-dark), 
      -10px -10px 20px var(--neo-shadow-light),
      inset 1px 1px 2px rgba(255, 255, 255, 0.1);
      
  border: 1px solid var(--neo-border);
}

.cf-btn-primary {
  background-color: rgba(196, 137, 58, 0.2); /* var(--ochre) translúcido */
  color: var(--stone);
}

.cf-btn-primary:active, .cf-btn-secondary:active, .cf-btn-primary:focus, .cf-btn-secondary:focus {
  box-shadow: 
      inset 8px 8px 16px var(--neo-shadow-dark), 
      inset -8px -8px 16px var(--neo-shadow-light);
  color: #fff;
  backdrop-filter: url(#liquid-glass-filter) blur(2px);
  -webkit-backdrop-filter: url(#liquid-glass-filter) blur(2px);
  transform: translateY(2px);
}

.cf-btn-primary:hover {
  background-color: rgba(212, 165, 160, 0.3);
  transform: translateY(-2px);
  box-shadow: 
      12px 12px 24px var(--neo-shadow-dark), 
      -12px -12px 24px var(--neo-shadow-light),
      inset 1px 1px 4px rgba(255, 255, 255, 0.2);
}

.cf-btn-secondary {
  background-color: transparent;
  color: var(--stone);
}

.cf-btn-secondary:hover {
  border-color: var(--ochre);
  color: var(--ochre);
  transform: translateY(-2px);
}

.small { padding: 8px 16px; font-size: 0.9rem; }
.large { padding: 15px 40px; font-size: 1.2rem; }

/* --- 4. Hero Section --- */
.cf-hero {
  height: 100vh;
  padding-top: var(--header-height);
  overflow: hidden; /* Evita que conteúdo esticado quebre o tamanho do site */
  display: flex;
  align-items: center;
  position: relative;
  /* Colocamos o conteúdo em uma camada superior à fumaça */
  z-index: 2; 
  /* IMPORTANTE: Faz a seção hero não capturar interações, 
     permitindo que o mouse "atravesse" até a fumaça */
  pointer-events: none; 
}

.cf-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  /* O grid também não deve capturar cliques */
  pointer-events: none;
}

/* Agora, devolvemos a interação APENAS para o que importa: Botões e Links */

.cf-btn {
  /* Isso permite que você clique nos botões normalmente */
  pointer-events: auto; 
}

.hero-label {
  color: var(--ochre);
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.9rem;
  
}

/* Wavy Text - Adaptado para o Hero da Esquerda */
.wavy-text-wrapper {
    margin-bottom: 20px;
}

.wavy-text {
  font-family: 'Sirin Stencil', sans-serif;
  font-size: 5rem; /* Ajustado para caber no grid */
  font-weight: 900;
  display: flex;
  color: var(--stone);
  /* Removido o center justify para alinhar a esquerda */
}

.wavy-text span {
  display: inline-block;
  animation: wave 2s infinite ease-in-out;
  animation-delay: calc(.1s * var(--i));
  will-change: transform, color;
}

@keyframes wave {
  0%, 100% { transform: translateY(0) ; color: var(--stone); }
  50% { transform: translateY(-15px) ; color: var(--ochre); }
}

@media (max-width: 768px) {
  .wavy-text span {
    animation-duration: 2.5s;
  }
  
  @keyframes wave {
    0%, 100% { transform: translateY(0) ; color: var(--stone); }
    50% { transform: translateY(-8px) ; color: var(--ochre); }
  }
}

.hero-description {
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--dust);
  margin-bottom: 40px;
  max-width: 600px;
}

.highlight {
  color: var(--rain);
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

/* --- 5. Banner de Links (Estilo Faixa) --- */
.cf-banner {
  background-color: var(--storm);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.banner-title {
    text-align: center;
    color: var(--rain);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.banner-links a {
  color: var(--dust);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
}

.banner-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--ochre);
  transition: width 0.3s;
}

.banner-links a:hover::after {
  width: 100%;
}

/* --- 6. Grid de Projetos (Estilo Cards) --- */
.cf-section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--stone);
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  color: var(--slate);
  text-align: center;
  margin-bottom: 60px;
  font-size: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cf-card-grid {
  display: grid;
  /* Cria colunas responsivas parecidas com a Cloudflare */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.cf-card {
  background-color: rgba(25, 20, 26, 0.3); /* Transparente para neo-vidro */
  border: 1px solid var(--neo-border);
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
  backdrop-filter: url(#liquid-glass-filter) blur(8px);
  -webkit-backdrop-filter: url(#liquid-glass-filter) blur(8px);
  box-shadow: 
      15px 15px 30px var(--neo-shadow-dark), 
      -10px -10px 20px var(--neo-shadow-light),
      inset 1px 1px 2px rgba(255, 255, 255, 0.1);
      
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cf-card:hover {
  transform: translateY(-5px);
  border-color: var(--ochre);
  box-shadow: 
      20px 20px 40px var(--neo-shadow-dark), 
      -15px -15px 30px var(--neo-shadow-light),
      inset 1px 1px 4px rgba(255, 255, 255, 0.2);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
  filter: grayscale(80%); /* Estilo P&B que você gosta */
}

.cf-card:hover .card-image img {
  filter: grayscale(0%);
}

.card-content {
  background-color: rgba(26, 24, 20, 0.8);
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  color: var(--stone);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.card-content p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  color: var(--ochre);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* --- 7. CTA e Footer --- */
.cf-cta-section {
  padding: 100px 0;
  background: linear-gradient(to right, var(--ink), var(--storm));
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--stone);
}

.cta-content p {
  color: var(--dust);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

footer {
  background-color: var(--exink);
  border-top: 1px solid var(--storm);
  padding: 40px 0;
  color: var(--slate);
  text-align: center;
}

/* --- 8. Responsividade Mobile --- */
.menu-mobile-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-mobile-icon .bar {
    width: 25px;
    height: 3px;
    background-color: var(--stone);
}

@media (max-width: 768px) {
  .cf-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .wavy-text {
    justify-content: center;
    font-size: 3.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Menu Mobile */
  .menu-mobile-icon { display: flex; }
  
  .cf-nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--ink);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--storm);
  }

  .cf-nav-links.active {
    display: flex;
  }

  /* Optimizações de Performance para Mobile */
  /* Reduz duração de transitions */
  .cf-btn,
  .cf-nav-links a,
  .banner-links a,
  .cf-card {
    transition-duration: 0.15s !important;
  }

  /* Remove efeitos hover no touch devices (vai ser aplicado via JS se necessário) */
  .cf-btn:hover {
    transform: none;
  }

  .cf-card:hover {
    transform: none;
  }

  /* Desativa animações de ondulação para economizar bateria */
  @supports (animation-timeline: view()) {
    .wavy-text span {
      animation-play-state: paused;
    }
  }
}