/**
* Custom professional overrides — Azul Corporativo
* Camada aplicada sobre o template "Personal" (BootstrapMade).
* Objetivo: visual mais profissional/sóbrio sem alterar a estrutura do template.
*/

:root {
  --accent: #4f8cff;
  --accent-light: #7aa7ff;
  --accent-dark: #3b73e6;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --accent-border: rgba(79, 140, 255, 0.35);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.86);
  --text-muted: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.75);
}

/*--------------------------------------------------------------
# Base — tipografia e fundo
--------------------------------------------------------------*/
body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
.navbar a,
.section-title h2,
.section-title p,
.skills .progress .skill,
.resume .resume-item h4,
.resume .resume-title,
#header h1,
#header h2,
.counts .count-box p,
.services .icon-box h4 {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

/* Fundo profissional: navy escuro + brilhos azuis (sem foto) */
body::before {
  background:
    radial-gradient(1000px 720px at 88% -10%, rgba(79, 140, 255, 0.20), transparent 60%),
    radial-gradient(820px 620px at 3% 115%, rgba(79, 140, 255, 0.10), transparent 60%),
    linear-gradient(160deg, #070b14 0%, #0a1020 48%, #070a12 100%);
  background-size: cover;
}

/* Grid sutil de "tech" sobreposto, com fade nas bordas */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 75% 0%, #000 25%, transparent 75%);
}

a { color: var(--accent); }
a:hover { color: var(--accent-light); }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

#header h2 {
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

#header h2 span,
#header h2 b {
  color: #fff;
}

#header h2 span {
  border-bottom: 2px solid var(--accent);
}

#header .social-links a {
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

#header .social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -6px rgba(79, 140, 255, 0.5);
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar a {
  letter-spacing: 0.01em;
}

/*--------------------------------------------------------------
# Container em "vidro"
--------------------------------------------------------------*/
section .container {
  background: rgba(10, 13, 20, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 38px;
}

@media (max-width: 768px) {
  section .container {
    padding: 22px;
    border-radius: 12px;
  }
}

/*--------------------------------------------------------------
# Section title
--------------------------------------------------------------*/
.section-title h2 {
  color: var(--accent-light);
}

.section-title p {
  letter-spacing: -0.02em;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-me .content h3 {
  color: #fff;
  letter-spacing: -0.01em;
}

.about-me .content p.fst-italic {
  color: var(--text);
  line-height: 1.7;
}

/*--------------------------------------------------------------
# Cards genéricos — profundidade e hover
--------------------------------------------------------------*/
.interests .icon-box,
.counts .count-box,
.contact .info-box,
.contact .php-email-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.interests .icon-box:hover,
.counts .count-box:hover,
.contact .info-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  background: var(--surface-2);
}

/* Interesses — ícones unificados no tom de destaque */
.interests .icon-box i {
  color: var(--accent) !important;
}

/*--------------------------------------------------------------
# Counts
--------------------------------------------------------------*/
.counts .count-box i {
  background: var(--accent-soft);
  color: var(--accent);
}

.counts .count-box span {
  font-weight: 700;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 42px 26px;
}

.services .icon-box .icon {
  background: var(--accent);
  border-radius: 12px;
}

.services .icon-box .icon::before {
  background: rgba(79, 140, 255, 0.18);
  border-radius: 12px;
}

.services .icon-box h4 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.services .icon-box:hover {
  background: linear-gradient(160deg, rgba(79, 140, 255, 0.16), rgba(79, 140, 255, 0.03));
  border-color: var(--accent-border);
  transform: translateY(-4px);
}

.services .icon-box:hover .icon {
  background: #fff;
}

.services .icon-box:hover .icon i {
  color: var(--accent);
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress .skill {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.skills .progress .skill .val {
  color: var(--accent-light);
  font-weight: 500;
}

.skills .progress-bar-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.skills .progress-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 6px;
}

/*--------------------------------------------------------------
# Resume — timeline
--------------------------------------------------------------*/
.resume .resume-title {
  color: #fff;
  letter-spacing: -0.01em;
}

.resume .resume-item {
  border-left: 2px solid var(--border);
}

.resume .resume-item h4 {
  color: var(--accent-light);
  letter-spacing: 0.01em;
}

/* Datas/anos entre parênteses dentro do título ficam discretos */
.resume .resume-item h4 span {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  text-transform: none;
}

.resume .resume-item h5 {
  background: var(--accent-soft);
  color: var(--accent-light);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.resume .resume-item::before {
  width: 14px;
  height: 14px;
  left: -8px;
  background: var(--bg, #0a0d14);
  background: #0a0d14;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box i.bx {
  background: var(--accent-soft);
  color: var(--accent);
}

.contact .info-box .social-links a:hover {
  color: var(--accent);
}

.contact .php-email-form button[type='submit'] {
  background: var(--accent);
  border-radius: 8px;
  font-weight: 600;
}

.contact .php-email-form button[type='submit']:hover {
  background: var(--accent-dark);
}

/*--------------------------------------------------------------
# Scrollbar
--------------------------------------------------------------*/
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 140, 255, 0.4) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #06080d;
}

::-webkit-scrollbar-thumb {
  background: rgba(79, 140, 255, 0.35);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/*--------------------------------------------------------------
# Home / Hero — conteúdo enriquecido
--------------------------------------------------------------*/
.hero-extra {
  margin-top: 28px;
  max-width: 700px;
}

@media (max-width: 992px) {
  .hero-extra {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-tagline {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 22px;
}

@media (max-width: 768px) {
  .hero-tagline {
    font-size: 15px;
  }
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 992px) {
  .hero-badges {
    justify-content: center;
  }
}

.hero-badges li {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #dbe6ff;
  padding: 7px 14px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  transition: all 0.25s ease;
}

.hero-badges li:hover {
  background: rgba(79, 140, 255, 0.2);
  transform: translateY(-2px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .hero-cta {
    justify-content: center;
  }
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-hero-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-hero-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(79, 140, 255, 0.6);
}

.btn-hero-ghost {
  background: transparent;
  color: #dbe6ff;
  border: 1px solid var(--border);
}

.btn-hero-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.hero-now {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 992px) {
  .hero-now {
    justify-content: center;
  }
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2ee6a7;
  display: inline-block;
  flex: 0 0 auto;
  animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 167, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(46, 230, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 167, 0); }
}

/* Esconde o conteúdo rico da home quando o header colapsa em barra fixa */
#header.header-top .hero-extra {
  display: none;
}

/*--------------------------------------------------------------
# Acessibilidade — respeitar redução de movimento
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-dot {
    animation: none !important;
  }
}
