/* Reset / base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  background: #000;
  color: #fff;
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Layout container */
.header-inner,
.projects-inner,
.about-inner,
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #fff; /* Faixa branca */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 400px;
}

.main-nav a {
  font-family: "Heebo", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #111; /* texto escuro */
  text-decoration: none;
  margin-left: 28px;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #666;
}

/* Animação leve ao rolar */
.site-header.scrolled {
  background-color: #fafafa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: url("images/bg-texture.jpg") center/cover no-repeat;
  padding-top: 300px; /* espaço abaixo do header */
}

.hero-inner {
  color: #fff;
  margin-left: 520px;
  max-width: 900px;
  padding-bottom: 120px; /* cria espaço extra interno */
}

/* Texto e estilos */
.hero-greeting {
  font-family: "Heebo", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #ddd;
  margin-bottom: 1px;
  padding: 0 10px;
}

.hero-name {
  font-family: "Heebo", sans-serif;
  font-weight: 100;
  font-size: 55px;
  line-height: 1.1;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
  color: #fff;
}

.hero-name strong {
  font-weight: 700;
  color: #fff;
}

.hero-skills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 380px;
  margin-left: 267px;
}

/* Linhas com gradiente da esquerda para direita */
.skill-line {
  display: flex;
  align-items: center;
  height: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,0.25) 0%, rgba(0,0,0,0) 100%);
  position: relative;
  overflow: hidden;
}

.skill-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #fff;
}

.skill-line span {
  position: relative;
  padding-left: 12px;
  font-family: "Heebo", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #bfbfbf;
}

/* Link */
.talk-link {
  display: inline-block;
  margin-top: 150px;
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;

  position: relative;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

/* Projects section */
.projects {
  padding-top: 80px;
  padding-bottom: 80px;
}
.projects-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5px;
  align-items: start;
}

/* texto lateral */
.projects-intro h3 {
  font-weight: 500;
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.muted {
  color: #9a9a9a;
  font-size: 14px;
}

/* imagens abaixo do texto lateral */
.projects-intro-images {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 35px;
}

.projects-intro-images img {
  width: 100%;
  object-fit: cover;
  background: #111;
  aspect-ratio: 4 / 3; /* ou 3/2, 16/9 etc */
}

/* === GRID PRINCIPAL DOS PROJETOS === */
.projects-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 6fr; /* controla as 3 colunas */
  grid-auto-rows: auto;
  column-gap: 5px; /* espaço horizontal entre colunas */
  row-gap: 5px;    /* espaço vertical entre linhas */
  align-items: start;
}

/* --- Correção: imagens dos projetos sempre preenchem a tile --- */
.projects-grid .tile {
  position: relative;
  overflow: hidden;
}

.projects-grid .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle; /* remove espaço embaixo da imagem */
}

/* === BLOCO PADRÃO DAS IMAGENS === */
.tile {
  overflow: hidden;
  background: #111;
  display: block;
  position: relative;
}

.tile img {
  transform-origin: center;
  transition: transform 0.45s ease;
}

/* Garante que as imagens das tiles preencham totalmente o espaço definido */
.t1 img,
.t2 img,
.t3 img,
.t4 img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* cobre todo o espaço, cortando se necessário */
  display: block;
}

.tile img:hover {
  transform: scale(1.05);
}

/* === POSICIONAMENTO INDIVIDUAL === */

/* imagem principal (project 1) */
.t1 {
  grid-column: 1 / 2;
  grid-row: span 2;   /* ocupa duas linhas */
  height: 550px;      /* altura fixa */
  width: 400px;
}

/* project 2 */
.t2 {
  grid-column: 2 / 3;
  grid-row: 1;
  height: 380px;
  width: 360px;
}

/* project 3 */
.t3 {
  grid-column: 2 / 3;
  grid-row: span 2;
  height: 240px; /* pode ajustar livremente */
  width: 360px;
}

/* project 4 */
.t4 {
  grid-column: 1 / 2;
  grid-row: 3;
  height: 350px;
}

/* About section */
.about {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
}
.about-inner {
  padding: 10px 10px;
}

.about h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
}
.emphasis {
  color: #fff;
  font-weight: 800;
}

.about-copy p {
  color: #cfcfcf;
  font-size: 17px;
  margin-bottom: 12px;
  max-width: 860px;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex-shrink: 0;
  width: 400px;  /* ajuste conforme o tamanho da sua imagem */
  opacity: 0.7;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px; /* opcional, para bordas suaves */
}


/* ===== CONTATO ===== */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;     /* centraliza horizontalmente */
  justify-content: center; /* centraliza verticalmente */
  text-align: center;      /* centraliza o texto */
  padding: 120px 0;        /* aumenta o tamanho da seção */
  background: #000;        /* mantém o fundo preto */
}

/* Logo no rodapé */
.footer-logo {
  margin-top: 5px;
}

/* Texto */
.contact-text h4 {
  font-size: 35px;
  margin-bottom: 2px; /* diminui espaço entre o título e o subtítulo */
  line-height: 1.2;   /* aproxima as linhas dentro do título */
}

.contact-text .small {
  font-size: 18px;
  color: #9d9d9d;
  margin-bottom: 24px;
}

/* Ícones de contato */
.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 8px;
}

.contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.contact-icons a:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Estilo das imagens PNG */
.contact-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* deixa branco, se quiser o estilo igual ao SVG */
  transition: filter 0.3s ease;
}

.contact-icons a:hover img {
  filter: brightness(1) invert(0); /* ou ajuste se quiser mudar no hover */
}

.hero,
.about {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  background-image: url('imagens/background-hero.png');
}
.about {
  background-image: url('imagens/background-about.png');
}

.hero::before,
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.hero > *,
.about > * {
  position: relative;
  z-index: 2;
}

/* ===== Menu (compatível com .menu e .main-nav) ===== */
.header-inner .menu,
.header-inner .main-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.header-inner .menu ul,
.header-inner .main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* mantém o logo à esquerda e todos os itens (incluindo MENU) à direita */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* garante que os links fiquem lado a lado */
.header-inner .menu ul,
.header-inner .main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* remove o margin-right do primeiro item */
.header-inner .menu ul li:first-child,
.header-inner .main-nav ul li:first-child {
  margin-right: 0;
}


/* links */
.header-inner .menu a,
.header-inner .main-nav a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-family: "Heebo", sans-serif; /* sua fonte principal */
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, font-weight 0.12s ease;
}

/* hover */
.header-inner .menu a:hover,
.header-inner .main-nav a:hover {
  color: #666;
}

/* Classe ativa — alto peso (força com !important caso outro seletor esteja competindo) */
.header-inner .menu a.active,
.header-inner .main-nav a.active {
  font-weight: 700 !important;
  color: #000;
}

/* rolagem suave (se já existe, não faz mal manter) */
html {
  scroll-behavior: smooth;
}

/* ===================== */
/* ===== RESPONSIVO ===== */
/* ===================== */

/* TABLET (até 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {

  /* HEADER */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1100;
  }

  .menu-toggle span {
    background: #111;
    height: 3px;
    width: 100%;
    margin-bottom: 6px;
    border-radius: 2px;
    transition: 0.3s;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Menu lateral no tablet */
.header-inner .menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 500px;
  height: 500px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: 60px; /* distância da borda direita */
  transition: right 0.3s ease;
  z-index: 1000;
}

.header-inner .menu.active {
  right: 0;
}

/* Lista vertical e espaçada */
.header-inner .menu ul {
  display: flex;
  flex-direction: column;
  gap: 55px; /* espaçamento maior entre os textos */
  text-align: right;
  align-items: flex-end;
}

.header-inner .menu a {
  font-size: 28px;  /* fonte maior */
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-inner .menu a:hover {
  color: #666;
}

  .logo-img {
    margin-right: 0;
  }

  /* HERO */

  .hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding-top: 200px; margin-top: 0;
  min-height: 90vh;   /* ocupa quase toda a tela */
}
  .hero-inner {
    margin-left: 0;
    text-align: center;
    padding: 0 20px;
  }

  .hero-greeting {
  font-size: 30px;
  margin-bottom: 8px;
}

  .hero-name {
  font-size: 55px;
  line-height: 1.1;
}

 .hero-skills {
  width: 500px;          /* aumenta a área dos itens */
  margin-left: 270px;     /* empurra o conjunto para a direita */
  margin-right: 40px;    /* cria um respiro da borda */
  align-items: flex-start;
}

.hero-skills .skill-line span {
  font-size: 26px;       /* aumenta a fonte dos textos */
  color: #e0e0e0;        /* leve contraste mais suave */
}

.skill-line {
  height: 35px;             /* 🔹 aumenta a espessura da linha (pode ajustar para 8px se quiser mais destaque) */
}

  .talk-link {
    position: static;
    transform: none;
    margin-top: 100px;
    font-size: 30px;
  }

  /* PROJECTS GRID */
  .projects-inner {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    width: 70%;
  }

  .projects {
  padding-top: 60px;
  padding-bottom: 70px;
}

.projects-inner {
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding-left: 40px;
}

.projects-intro {
  text-align: left;
  padding-left: 30px;
}

.projects-intro h3 {
  font-size: 30px;      /* 🔹 aumenta o título */
  line-height: 1.4;
  margin-bottom: 15px;
}

.projects-intro .muted {
  font-size: 14px;      /* 🔹 aumenta o subtítulo */
  color: #bcbcbc;
}

.about {
  padding: 80px 0; /* mais altura e respiro */
}

.about-inner {
  padding: 0 60px; /* 🔹 aumenta o espaço lateral */
}

.about-content {
  flex-direction: column; /* mantém harmonia em tablets */
  text-align: center;
  gap: 40px;
}

.about-text {
  text-align: center;
  padding: 0 40px; /* 🔹 espaçamento interno lateral */
}

.about h2 {
  font-size: 42px; /* 🔹 aumenta o título */
  line-height: 1.3;
  margin-bottom: 25px;
}

.about-copy p {
  font-size: 20px; /* 🔹 aumenta o texto */
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 20px;
}

#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centraliza verticalmente */
  align-items: center;       /* centraliza horizontalmente */
  text-align: center;        /* centraliza os textos */
  padding: 100px 0;          /* espaçamento proporcional */
}

#contact .contact-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 700px;
}

#contact h4 {
  font-size: 38px;           /* aumenta o título */
  line-height: 1.3;
  margin-bottom: 3px;
}

#contact .small {
  font-size: 20px;
  color: #ccc;
}

.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;                 /* espaçamento uniforme entre ícones */
  margin-top: 15px;
}

.contact-icons a {
  width: 48px;
  height: 48px;
}

#contact .footer-inner {
  width: 100%;
  max-width: 100%;            /* evita limite de 1100px herdado */
  padding: 0 40px;            /* mais respiro lateral, ajuste se quiser */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;        /* centraliza horizontalmente */
  justify-content: center;
  text-align: center;
  gap: 18px;
}

/* centraliza logo/linha/divisor */
#contact .footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 6px;
}

/* garante tamanho razoável da imagem divisória e centraliza */
#contact .footer-logo img {
  width: 180%;          /* 🔹 aumenta além da largura do container */
  max-width: none;       /* 🔹 remove o limite padrão */
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;     /* 🔹 garante corte suave nas laterais */
  transform: translateX(-1%); /* 🔹 centraliza mesmo com a expansão */
}

/* ajusta o bloco do texto para ficar bem centralizado e com largura controlada */
#contact .contact-text {
  max-width: 780px;
  width: 100%;
  padding: 0 10px;
  margin: 0 auto;
}

/* ícones centralizados (garante que não herde comportamento de desktop) */
#contact .contact-icons {
  justify-content: center !important;
  align-items: center !important;
  gap: 32px;
  margin-top: 14px;
}

}

/* MOBILE (até 767px) */
@media (max-width: 767px) {

  .menu-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2000; /* garante que fique acima do header branco */
}


/* Linhas do ícone */
.menu-toggle span {
  background: #111;
  height: 3px;
  width: 100%;
  margin-bottom: 5px;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== MENU LATERAL — MOBILE ===== */
.header-inner .menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: 50px;
  transition: right 0.3s ease;
  z-index: 1500;
}

/* Quando o menu é ativado */
.header-inner .menu.active {
  right: 0;
}

/* Lista vertical e espaçada */
.header-inner .menu ul {
  display: flex;
  flex-direction: column;
  gap: 45px;
  text-align: right;
  align-items: flex-end;
}

.header-inner .menu a {
  font-size: 22px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}


/* Animação do ícone ao abrir */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

  /* HERO */
 .hero {
  display: flex;
  align-items: center;      /* alinha verticalmente */
  justify-content: center;  /* alinha horizontalmente */
  flex-direction: column;   /* empilha os itens */
  text-align: center;
  min-height: 100vh;        /* ocupa a altura inteira da tela */
  padding: 0 30px;          /* espaçamento lateral */
  overflow: visible;        /* garante que nada seja cortado */
  padding-top: 120px; margin-top: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transform: none;
  margin: 0 auto;
  text-align: center;
}


  .hero-greeting {
  font-size: 15px;
  margin-bottom: 3px;
}

.hero-name {
  font-size: 30px;
}

.hero-skills {
  width: auto;
  margin: 7px 0 0;
  align-items: right;
}

.talk-link {
  margin-top: 150px;
  font-size: 17px;
  position: static;
  transform: none;
}

  /* PROJETOS — imagens empilhadas */

  .projects {
  padding-top: 0;          
  margin-top: -30px;       
  padding-bottom: 40px;  
}

.projects-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 15px;
}

.projects-grid .tile {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.projects-grid .tile img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.projects-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.projects-intro h3 {
  font-size: 25px !important;
  padding-left: 20px !important; 
}

.projects-intro p {
  font-size: 15px !important;
  padding-left: 20px !important; 
}

  /* ABOUT */
  .about-image {
    width: 100%;
  }

.about-content {
  flex-direction: column;
  text-align: center;
  gap: 30px;
}

.about-text {
  width: 100%;
  text-align: center;
  padding: 0 20px; /* respiro lateral */
}

.about h2 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 18px;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 14px;
}

  /* ===== AJUSTE DA SEÇÃO CONTATO — MOBILE ===== */
#contact {
  padding: 80px 20px; /* reduz padding e adiciona respiro lateral */
  text-align: center;
  align-items: center;
  justify-content: center;
}

.footer-inner {
  padding: 0;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-text {
  max-width: 100%;
  padding: 0 10px;
}

.contact-text h4 {
  font-size: 26px;
  margin-bottom: 10px;
}

.contact-text .small {
  font-size: 16px;
  margin-bottom: 20px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;   /* permite quebrar em duas linhas se necessário */
  gap: 30px;
  margin-top: 20px;
  width: 100%;
}

.contact-icons a {
  width: 42px;
  height: 42px;
}

  /* --- CORREÇÃO DAS IMAGENS NO MOBILE --- */
.t1,
.t2,
.t3,
.t4 {
  width: 100% !important;
  height: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.projects-grid .tile img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block;
}

}
