/* ======================================================
   STYLE.CSS - HAS Analytics
   Site pessoal profissional | Página única
====================================================== */

/* ------------------------------
   Variáveis gerais
------------------------------ */

:root {
  --bg-main: #070b13;
  --bg-secondary: #0f172a;
  --bg-third: #111827;
  --bg-card: #151f2f;
  --bg-card-soft: #1b2638;

  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-blue: #38bdf8;
  --accent-blue-dark: #0284c7;
  --accent-gold: #d4af37;
  --accent-green: #22c55e;

  --border-soft: rgba(148, 163, 184, 0.18);
  --border-blue: rgba(56, 189, 248, 0.28);

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.28);

  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 28px;

  --font-main: "Inter", Arial, Helvetica, sans-serif;
}

/* ------------------------------
   Reset básico
------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ------------------------------
   Elementos gerais
------------------------------ */

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

/* Evita que o header fixo cubra as seções ao clicar no menu */
section {
  scroll-margin-top: 95px;
}

/* ======================================================
   HEADER
====================================================== */

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  background: rgba(7, 11, 19, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);

  transition: 0.3s ease;
}

.header-scroll {
  background: rgba(7, 11, 19, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-container {
  height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ------------------------------
   Logo / Marca
------------------------------ */


/* ======================================================
   LOGO DO CABEÇALHO
====================================================== */

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: fit-content;
}

.logo-icon {
  position: relative;

  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;
  overflow: hidden;

  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.22),
      rgba(15, 23, 42, 0.88));

  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.04),
    0 0 24px rgba(56, 189, 248, 0.16);

  cursor: pointer;
  transition: 0.3s ease;
}

.logo-icon:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 5px rgba(56, 189, 248, 0.06),
    0 0 30px rgba(56, 189, 248, 0.28);
}

.logo-img-estatica,
.logo-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;

  border-radius: 50%;
}

.logo-video {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.logo-icon.video-ativo .logo-img-estatica {
  opacity: 0;
}

.logo-icon.video-ativo .logo-video {
  opacity: 1;
}

.logo-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;

  line-height: 1.05;
}

.logo-nome {
  font-family: "Sora", "Inter", Arial, Helvetica, sans-serif;

  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.4px;

  color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 58%, #d4af37 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.logo-subtitulo {
  margin-top: 5px;

  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.75px;
  text-transform: uppercase;

  white-space: nowrap;
}

/* ------------------------------
   Menu
------------------------------ */

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  position: relative;

  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;

  transition: 0.25s ease;
}

.nav-menu a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 2px;

  background: #ffffff;
  border-radius: 999px;

  transition: width 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.link-ativo {
  color: #ffffff;
}

.nav-menu a:hover::after,
.nav-menu a.link-ativo::after {
  width: 100%;
}

.nav-destaque {
  padding: 12px 22px;
  border-radius: 999px;

  color: #020617 !important;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));

  font-family: "Sora", "Inter", Arial, Helvetica, sans-serif;
  font-size: 0.98rem !important;
  font-weight: 800;
  letter-spacing: 0.2px;

  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.nav-destaque::after {
  display: none;
}

.nav-destaque:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.34);
}

/* ------------------------------
   Botão menu mobile
------------------------------ */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border: none;
  background: transparent;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 28px;
  height: 3px;
  margin: 5px auto;

  background: var(--text-main);
  border-radius: 999px;

  transition: 0.3s ease;
}

/* ======================================================
   BOTÕES
====================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 24px;

  border-radius: 999px;

  font-size: 0.96rem;
  font-weight: 800;

  transition: 0.3s ease;
}

.btn-primary {
  color: #020617;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.34);
}

.btn-secondary {
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

/* ======================================================
   HERO / INÍCIO
====================================================== */

.hero {
  min-height: 100vh;
  padding-top: 125px;
  padding-bottom: 70px;

  display: flex;
  align-items: center;

  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.12), transparent 34%),
    linear-gradient(180deg, #070b13 0%, #0b1120 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-tag {
  display: inline-block;

  margin-bottom: 24px;
  padding: 8px 16px;

  border: 1px solid var(--border-blue);
  border-radius: 999px;

  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.08);

  font-size: 0.88rem;
  font-weight: 700;
}

.hero-title-area {
  display: flex;
  align-items: center;
  gap: 28px;

  max-width: 820px;
  margin-bottom: 26px;
}

.hero-title {
  display: flex;
  flex-direction: column;

  margin: 0;

  color: var(--text-main);
  line-height: 1.05;
  letter-spacing: -1.6px;
}

.hero-saudacao {
  margin-bottom: 8px;

  color: var(--text-muted);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-nome {
  font-family: "Sora", "Inter", Arial, Helvetica, sans-serif;
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  font-weight: 800;
  line-height: 1.02;

  color: var(--text-main);
}

/* ======================================================
   FOTO CIRCULAR DO HERO - GIRO TIPO MOEDA
====================================================== */

.hero-photo-button {
  width: 165px;
  height: 165px;

  flex-shrink: 0;

  padding: 0;
  border: none;
  border-radius: 50%;

  background: transparent;

  cursor: pointer;
  perspective: 900px;

  animation: fotoFlutuante 3.6s ease-in-out infinite;
}

.hero-photo-inner {
  position: relative;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.hero-photo-button:hover .hero-photo-inner {
  animation: giroMoeda 1.6s ease-in-out;
}

.hero-photo-inner.girando {
  animation: giroMoeda 1.6s ease-in-out;
}

.hero-photo-face {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border-radius: 50%;
  overflow: hidden;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  border: 2px solid rgba(56, 189, 248, 0.35);

  box-shadow:
    0 0 0 10px rgba(56, 189, 248, 0.05),
    0 22px 55px rgba(0, 0, 0, 0.42);
}

.hero-photo-front {
  background: rgba(15, 23, 42, 0.9);
}

.hero-photo-back {
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 45%),
    linear-gradient(135deg, #0f172a, #020617);

  transform: rotateY(180deg);
}

.hero-photo-logo-back {
  width: 108%;
  height: 108%;

  object-fit: cover;
  display: block;

  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}


.hero-photo {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;
}

.hero-photo-button:hover .hero-photo-face {
  border-color: rgba(255, 255, 255, 0.65);
}

/* Flutuação da foto */
@keyframes fotoFlutuante {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Giro 3D tipo moeda */
@keyframes giroMoeda {
  0% {
    transform: rotateY(0deg);
  }

  25% {
    transform: rotateY(180deg);
  }

  50% {
    transform: rotateY(360deg);
  }

  75% {
    transform: rotateY(540deg);
  }

  100% {
    transform: rotateY(720deg);
  }
}

.hero-description {
  max-width: 680px;

  margin-bottom: 18px;

  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-description strong {
  color: var(--accent-blue);
}

.hero-buttons {
  margin-top: 34px;

  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------
   Card lateral do Hero
------------------------------ */

.hero-card {
  background: linear-gradient(180deg, var(--bg-card-soft), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card-header {
  height: 48px;
  padding: 0 18px;

  display: flex;
  align-items: center;
  gap: 8px;

  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-soft);
}

.card-dot {
  width: 11px;
  height: 11px;

  border-radius: 50%;
  background: var(--accent-blue);
}

.card-dot:nth-child(2) {
  background: var(--accent-gold);
}

.card-dot:nth-child(3) {
  background: var(--accent-green);
}

.hero-card-body {
  padding: 34px;
}

.card-label {
  margin-bottom: 12px;

  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-card h2 {
  margin-bottom: 24px;

  color: var(--text-main);
  font-size: 1.55rem;
  line-height: 1.3;
}

.hero-card ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card li {
  position: relative;

  padding-left: 24px;

  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero-card li::before {
  content: "";

  position: absolute;
  left: 0;
  top: 9px;

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--accent-blue);
}

/* ======================================================
   SEÇÕES GERAIS
====================================================== */

.section {
  padding: 100px 0;
}

.section:nth-of-type(even) {
  background: var(--bg-secondary);
}

.section:nth-of-type(odd) {
  background: var(--bg-main);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.section-tag {
  display: inline-block;

  margin-bottom: 16px;
  padding: 7px 14px;

  border: 1px solid var(--border-blue);
  border-radius: 999px;

  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.08);

  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section h2,
.section-header h2 {
  max-width: 820px;

  margin-bottom: 20px;

  color: var(--text-main);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -1px;
}

.section p,
.section-header p {
  color: var(--text-soft);
  font-size: 1rem;
}

.section-text p {
  margin-bottom: 16px;
}

.section-text strong {
  color: var(--accent-blue);
}

.section-header {
  max-width: 820px;
  margin-bottom: 46px;
}

/* ======================================================
   SOBRE
====================================================== */

.section-sobre {
  background:
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.sobre-card {
  padding: 34px;

  background: linear-gradient(180deg, var(--bg-card-soft), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-card);
}

.sobre-card h3 {
  margin-bottom: 22px;

  color: var(--text-main);
  font-size: 1.45rem;
}

.sobre-card ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sobre-card li {
  position: relative;

  padding-left: 26px;

  color: var(--text-soft);
}

.sobre-card li::before {
  content: "✓";

  position: absolute;
  left: 0;
  top: 0;

  color: var(--accent-blue);
  font-weight: 800;
}



/* ======================================================
   SERVIÇOS
====================================================== */

.section-servicos {
  background:
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-item {
  padding: 22px 24px;

  display: flex;
  align-items: center;

  min-height: 88px;

  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);

  font-size: 0.98rem;
  font-weight: 700;

  transition: 0.3s ease;
}

.service-item:hover {
  color: var(--text-main);
  border-color: var(--border-blue);
  background: rgba(56, 189, 248, 0.07);
  transform: translateY(-4px);
}

/* ======================================================
   SKILLS
====================================================== */

.section-skills {
  background:
    radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.09), transparent 32%),
    var(--bg-main);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.skill-card {
  padding: 30px;

  background: linear-gradient(180deg, var(--bg-card-soft), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-card);
}

.skill-card h3 {
  margin-bottom: 20px;

  color: var(--accent-blue);
  font-size: 1.25rem;
}

.skill-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-card li {
  position: relative;

  padding-left: 22px;

  color: var(--text-soft);
}

.skill-card li::before {
  content: "";

  position: absolute;
  left: 0;
  top: 9px;

  width: 7px;
  height: 7px;

  background: var(--accent-gold);
  border-radius: 50%;
}

/* ======================================================
   COMO FUNCIONA
====================================================== */

.section-processo {
  background:
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.processo-item {
  padding: 28px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);

  transition: 0.3s ease;
}

.processo-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-blue);
  background: rgba(56, 189, 248, 0.06);
}

.processo-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  margin-bottom: 20px;

  color: #020617;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-dark));
  border-radius: 50%;

  font-size: 0.9rem;
  font-weight: 900;
}

.processo-item h3 {
  margin-bottom: 12px;

  color: var(--text-main);
  font-size: 1.12rem;
}

.processo-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ======================================================
   ORÇAMENTO
====================================================== */

.section-orcamento {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 30%),
    var(--bg-main);
}

.form-orcamento {
  padding: 34px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;

  background: linear-gradient(180deg, var(--bg-card-soft), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-card);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  padding: 13px 14px;

  color: var(--text-main);
  background: rgba(7, 11, 19, 0.7);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);

  font-size: 0.95rem;
  outline: none;

  transition: 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-orcamento button {
  grid-column: 1 / -1;

  border: none;
  cursor: pointer;
}

.form-subtitle {
  margin-top: 10px;
  margin-bottom: 4px;

  padding: 18px 20px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
}

.form-subtitle h3 {
  margin-bottom: 6px;

  color: var(--accent-blue);
  font-family: "Sora", "Inter", Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.form-subtitle p {
  margin: 0;

  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ======================================================
   CONTATO
====================================================== */

.section-contato {
  background:
    linear-gradient(180deg, #0f172a 0%, #070b13 100%);
  text-align: center;
}

.section-contato .section-header {
  margin-left: auto;
  margin-right: auto;
}

.contato-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contato-link {
  padding: 12px 20px;

  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  border-radius: 999px;

  font-size: 0.94rem;
  font-weight: 700;

  transition: 0.3s ease;
}

.contato-link:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

/* ======================================================
   FOOTER
====================================================== */

.footer {
  padding: 28px 0;

  background: #050814;
  border-top: 1px solid var(--border-soft);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ======================================================
   ANIMAÇÕES SIMPLES
====================================================== */

.hero-content,
.hero-card,
.portfolio-card,
.service-item,
.skill-card,
.processo-item,
.sobre-card,
.form-orcamento {
  animation: aparecerSuave 0.8s ease both;
}

.hero-card {
  animation-delay: 0.15s;
}

@keyframes aparecerSuave {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   ESTADOS CONTROLADOS PELO JAVASCRIPT
====================================================== */

.link-ativo {
  color: var(--accent-blue) !important;
}

.campo-erro {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16) !important;
}

/* ======================================================
   BARRA DE PROGRESSO DA ROLAGEM
====================================================== */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px;

  background: transparent;
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;

  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);

  transition: width 0.05s linear;
}


