/* ===== RESET ===== */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to bottom, #13156d, #722080);
  font-family: Arial, sans-serif;
}

/* Remove padding do Bootstrap */
.container-fluid,
.row {
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== DESKTOP ===== */
.full-height {
  min-height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
}

/* ======== DESKTOP — TRÊS COLUNAS ======== */
@media (min-width: 769px) {
  .row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  /* Cada lado ocupa o mesmo espaço */
  .side-left,
  .side-right {
    flex: 1;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* SVG no centro */
  .logo-container {
    flex: 0; /* ocupa só o necessário */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0 -30px; /* distância igual para os dois botões */
  }

  .logo-svg {
    width: 280px;
    height: auto;
  }

  /* Remove qualquer comportamento do mobile */
  .row > div {
    border: none !important;
  }
}

/* ==================================
ESTILOS DE BOTÕES 
=====================================*/

/* Botão 01 *
.btn-custom {
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 1.25rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-custom:hover {
    transform: scale(1.05);
    opacity: 0.92;
}

.btn-custom {
    border-radius: 10px;
    padding: 16px 40px;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1b1f8a, #6d1f8a);
    border: none;
    color: #fff;
    transition: 0.35s ease;
    box-shadow: 0 0 0px rgba(255,255,255,0);
}

.btn-custom:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #252ab5, #8422a6);
}


/* Botão 02 *

.btn-custom {
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 1.25rem;
    font-weight: 600;
    background: #1f227a;
    border: 2px solid #ffffff30;
    color: #fff;
    transition: 0.4s ease;
}

.btn-custom:hover {
    background: #2b2fa3;
    border-color: #ffffff80;
    box-shadow: 0 0 15px #ffffff50;
    transform: scale(1.05);
}

/* Botão 03 *
.btn-custom {
    border-radius: 8px;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    background: transparent;
    color: #fff;
    border: 2px solid #ffffff40;
    position: relative;
    overflow: hidden;
    transition: 0.35s ease;
}

.btn-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #23289d, #732993);
    transition: 0.4s ease;
    z-index: -1;
}

.btn-custom:hover::before {
    left: 0;
}

.btn-custom:hover {
    color: #fff;
    border-color: #ffffff70;
    transform: scale(1.03);
}

/* Botão 04 *
.btn-custom {
    border-radius: 999px;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    background: transparent;
    color: #fff;
    border: 2px solid #ffffff40;
    position: relative;
    overflow: hidden;
    transition: 0.35s ease;
}

.btn-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #23289d, #732993);
    transition: 0.4s ease;
    z-index: -1;
}

.btn-custom:hover::before {
    left: 0;
}

.btn-custom:hover {
    color: #fff;
    border-color: #ffffff70;
    transform: scale(1.03);
}

/* Botão 04 */

/* BOTÃO COM BORDA ANIMADA FINA E DISCRETA */
.btn-custom {
  position: relative;
  padding: 16px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px; /* cantos menos arredondados */
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.5s ease, border 0.3s ease;
}

/* Borda animada */
.btn-custom::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* Borda fina */
  z-index: -1;

  /* SVG refinado */
  -webkit-mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 36" preserveAspectRatio="none">\
    <rect x="1" y="1" width="98" height="34" rx="4" ry="4"\
    fill="none" stroke="white" stroke-width="1.50"\
    stroke-dasharray="260" stroke-dashoffset="0">\
        <animate attributeName="stroke-dashoffset"\
                 from="260" to="0" dur="2.5s"\
                 repeatCount="1" fill="freeze" />\
    </rect>\
</svg>')
    center / 100% 100% no-repeat;

  background: linear-gradient(90deg, #2775e5, #924be6, #de074f, #2775e5);
  background-size: 300% 100%;
  animation: degradeRun 3s linear infinite;
}

/* Movimento do degradê */
@keyframes degradeRun {
  to {
    background-position: 300% 0;
  }
}

/*======================================================
HOVER==================================================*/

/* REMOVE A BORDA NO HOVER + ANIMA O GRADIENTE */

.btn-custom:hover {
  border: none;
  transform: translateY(-3px);
  background: linear-gradient(90deg, #8a38ff, #38ffa5, #8a38ff);
  background-size: 300% 300%;
  animation: deslizaDegrade 2s linear infinite;
}

.btn-custom:hover::before {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ANIMAÇÃO DO GRADIENTE DESLIZANDO */
@keyframes deslizaDegrade {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/*=============================================
IMAGEM (LOGO) DIVISÃO DA PÁGINA
=============================================*/

.logo-divider svg {
  transform: rotate(90deg);
  width: 180px; /* ajuste conforme preferir */
  height: auto;
}

/* ==========================================
   MOBILE — tudo alinhado PELO CENTRO
   ========================================== */
@media (max-width: 768px) {
  /* O container mobile vira coluna */
  .row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 100vh;
    height: 100dvh;
  }

  .btn-custom {
    margin-top: 34px !important; /* afasta para baixo */
    margin-bottom: 34px !important; /* afasta para cima, se houver botão abaixo */
  }

  /* Caso os botões estejam dentro de um container específico */
  .buttons-container {
    gap: 32px !important; /* aumenta o espaço entre SVG e botões */
    margin-top: 32px !important;
  }
}
/* ======================================
PARÂMETRO SVG
======================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* LOGO */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-svg {
  width: 320px; /* tamanho solicitado */
  height: auto;
  display: block;
}

/* =================================
LETRAS DA LOGO
==================================*/

#letraS {
  fill: none;
  stroke: url(#gradStroke); /* degradê igual ao símbolo */
  stroke-width: 8;
  stroke-linecap: round;

  stroke-dasharray: 1800; /* precisa ser ≥ comprimento total da path */
  stroke-dashoffset: 1800;

  animation: desenharM 15s ease forwards; /* apenas 1 vez */
}

@keyframes desenharM {
  to {
    stroke-dashoffset: 0; /* revela tudo */
  }
}

#letraO {
  fill: none;
  stroke: url(#gradStroke); /* degradê igual ao símbolo */
  stroke-width: 8;
  stroke-linecap: round;

  stroke-dasharray: 1800; /* precisa ser ≥ comprimento total da path */
  stroke-dashoffset: 1800;

  animation: desenharM 15s ease forwards; /* apenas 1 vez */
}

@keyframes desenharM {
  to {
    stroke-dashoffset: 0; /* revela tudo */
  }
}

#letraM {
  fill: none;
  stroke: url(#gradStroke); /* degradê igual ao símbolo */
  stroke-width: 8;
  stroke-linecap: round;

  stroke-dasharray: 1800; /* precisa ser ≥ comprimento total da path */
  stroke-dashoffset: 1800;

  animation: desenharM 15s ease forwards; /* apenas 1 vez */
}

@keyframes desenharM {
  to {
    stroke-dashoffset: 0; /* revela tudo */
  }
}

#letraA {
  fill: none;
  stroke: url(#gradStroke); /* degradê igual ao símbolo */
  stroke-width: 8;
  stroke-linecap: round;

  stroke-dasharray: 1800; /* precisa ser ≥ comprimento total da path */
  stroke-dashoffset: 1800;

  animation: desenharM 15s ease forwards; /* apenas 1 vez */
}

@keyframes desenharM {
  to {
    stroke-dashoffset: 0; /* revela tudo */
  }
}
/* ===========================
   ANIMAÇÃO DO SÍMBOLO
==============================*/

/* ================================
   Símbolo - animação contínua suave
   ================================ */

#simbolo-linha {
  stroke-dasharray: 644.1 644.1; /* 120 = trecho visível */
  animation: simboloRun 6s linear 1 forwards;
  stroke-width: 10; /* ajuste aqui a espessura desejada */
}

@keyframes simboloRun {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -1288.2;
  } /* 120 + 644.1 */
}
