@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0f14;
  font-family: 'Montserrat', sans-serif;
  color: #e9fef9;
  overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

/* ===== FRAME CENTRAL ===== */
.frame {
  width: 92%;
  height: 88vh;
  margin: 6vh auto;
  border-radius: 20px;
  overflow: hidden;

  background: linear-gradient(90deg, #0b1117 50%, #1f2a35 50%);
  box-shadow: 0 40px 100px #1de9fa;

  position: relative;
  z-index: 10; /* Fica abaixo do Overlay mas acima do void */
}

/* ===== HEADER ===== */
.header {
  position: absolute;
  top: 35px;
  left: 60px;
  right: 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50; /* Garante que o menu original fique visível */
}

.logo {
  font-size: 16px;
  letter-spacing: 3px;
  color: #1de9fa;
  font-weight: 600;
}

/* ===== ÍCONE DE MENU (ORIGINAL) ===== */
.menu {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 100;
}

.menu span {
  height: 1px;
  background: #1de9fa;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== HERO (HOME) ===== */
.hero {
  display: flex;
  height: 100%;
}

/* LEFT (HOME) */
.left {
  width: 60%;
  padding: 140px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left h1 {
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 25px;
  max-width: 600px;
  letter-spacing: -1px;
}

.texto-hero {
  margin-top: 0;
  line-height: 1.6;
  font-size: clamp(14px, 1.25vw, 18px); 
  max-width: 550px;
  margin-bottom: 40px;
  overflow: visible;
  display: block;
}

/* RIGHT (HOME) */
.right {
  width: 40%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
}

/* CARDS GERAIS */
.card {
  width: 100%;
  max-width: 640px;
  padding: 12px;
  background: #1de9fa;
  border: 1px solid rgba(255,255,255,0.04);
}

.card h3 {
  font-size: 12px;
  margin-bottom: 10px;
  color: #111111;
}

.card p {
  font-size: 11px;
  color: #111111;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* POSIÇÃO DO CARD NA HOME */
.right-card {
  position: relative;
  width: 90%;
  max-width: 500px;
  padding: 20px;
}

/* BOTÕES GERAIS */
/* BOTÕES GERAIS */
.btn {
  margin-top: 0;
  padding: 12px 30px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  background: #1de9fa;
  color: #231f20;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  
  
  width: auto;               /* Impede que o botão estique no mobile */
  align-self: flex-start;    /* Alinha o botão à esquerda dentro do contêiner Flex */
  max-width: 250px;          /* Define uma largura máxima para o botão não ficar muito grande */
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(29, 233, 250, 0.4);
}




/* ===== ESTILOS DA PÁGINA DE SERVIÇOS ===== */

/* Garante o fundo duplo na página de serviços */
.services-page .frame {
  background: linear-gradient(90deg, #0b1117 50%, #1f2a35 50%);
}

.services-hero {
  display: flex;
  height: calc(100% - 100px); /* Desconta o header */
  padding-top: 100px;
}

.left-services {
  width: 45%;
  padding: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-title {
  font-size: clamp(28px, 3.5vw, 48px);
  color: #1de9fa;
  max-width: 500px;
  line-height: 1.2;
}

.right-services {
  width: 55%;
  height: 100%;            /* ESSENCIAL: define que o container ocupa toda a altura */
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
  align-content: center;   /* Centraliza o grupo de cards verticalmente */
  justify-content: center; /* Centraliza o grupo de cards horizontalmente */
}

.services-card {
  max-width: 100%;
  border-color: rgba(29, 233, 250, 0.2);
  
  /* ADICIONE ESTAS LINHAS ABAIXO */
  min-height: 180px;         /* Mantém um padrão visual entre todos os serviços */
  display: flex;             /* Ativa o Flexbox dentro do card */
  flex-direction: column;    /* Alinha o título e o parágrafo em coluna */
  justify-content: center;   /* Centraliza o texto verticalmente dentro do card azul */
  padding: 20px;             /* Aumenta o respiro interno do texto */
}

.services-card h3 {
  font-size: 14px;
}

.services-card p {
  color: rgba(17, 17, 17, 0.9);
  line-height: 1.5;
}

/* CTA Alinhado na Esquerda (igual ao layout da home) */
.services-cta {
  position: absolute;
  bottom: 60px;
  left: 60px;
}

/* ===== ESTILOS DO MENU OVERLAY (LIMPO E INTUITIVO) ===== */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 20, 0.98); /* Fundo quase preto, transparente */
  z-index: 1000; /* Garante que fique acima de TUDO */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Escondido por padrão */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Estado Ativo do Menu Overlay */
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Botão Fechar do Menu (X) */
.menu-close {
  position: absolute;
  top: 40px;
  right: 60px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.menu-close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1de9fa;
  border-radius: 2px;
}

.menu-close span:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.menu-close span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

/* Links do Menu */
.menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.menu-link {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  text-decoration: none;
  color: #e9fef9;
  letter-spacing: 2px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-link:hover {
  color: #1de9fa;
  transform: translateX(10px);
}

/* Link Ativo */
.menu-link.active-link {
  color: #1de9fa;
  border-bottom: 2px solid #1de9fa;
  padding-bottom: 5px;
}

/* ===== RESPONSIVIDADE MOBILE (FIM DO CSS) ===== */

/* TABLET (Telas menores que 900px) */
@media (max-width: 900px) {
  
  .hero, .services-hero {
    flex-direction: column;
    height: auto;
  }

  .left, .right, .left-services, .right-services {
    width: 100%;
    padding: 80px 40px;
  }

  /* HOME MOBILE */
  .left {
    padding-top: 140px; /* Mais espaço para o header */
    text-align: center;
    align-items: center;
  }

  .texto-hero {
    max-width: 100%;
  }

  .right {
    height: auto;
    padding-bottom: 60px;
    align-items: center;
  }

  /* SERVIÇOS MOBILE */
  .services-hero {
    padding-top: 140px;
  }

  .left-services {
    padding: 60px 40px 20px 40px;
    text-align: center;
  }

  .right-services {
    grid-template-columns: 1fr; /* Uma coluna só */
    padding: 20px 40px 80px 40px;
    gap: 20px;
  }

  .services-cta {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 40px auto;
    display: block;
    width: 90%;
    max-width: 300px;
  }

  /* AJUSTE NO FRAME */
  .frame {
    height: auto;
    margin: 3vh auto;
    /* Remove o fundo duplo no mobile, usa só o escuro */
    background: #0b1117; 
  }

  .services-page .frame {
    background: #0b1117;
  }
}

/* CELULAR PEQUENO (Telas menores que 600px) */
@media (max-width: 600px) {

  .header {
    left: 30px;
    right: 30px;
    top: 25px;
  }

  .menu-close {
    right: 30px;
    top: 30px;
  }

  .left, .right-services {
    padding: 60px 30px;
  }

  .left {
    padding-top: 120px;
  }

  .left h1 {
    font-size: 32px;
  }

  .services-title {
    font-size: 26px;
  }

  .card {
    padding: 15px;
  }

  .card h3 {
    font-size: 11px;
  }

  .card p {
    font-size: 10px;
  }

}