:root {
      --primary-color: #2563eb;
      --secondary-color: #64748b;
      --dark-color: #0f172a;
      --light-color: #f8fafc;
      --text-color: #334155;
      --border-color: #e2e8f0;
  }

  /* Barra de rolagem animada */
  ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
  }

  ::-webkit-scrollbar-track {
      background: #f1f3f5;
      border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
      background: #ced4da;
      border-radius: 4px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  ::-webkit-scrollbar-thumb:hover {
      background: #adb5bd;
      transform: scale(1.1);
  }

  /* Efeito de fade in na barra */
  * {
      scrollbar-width: thin;
      scrollbar-color: transparent transparent;
      transition: scrollbar-color 0.3s ease;
  }

  *:hover {
      scrollbar-color: #ced4da #f1f3f5;
  }

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

  html {
      scroll-behavior: smooth;
      height: 100%;
  }

  body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #ffffff;
      color: var(--text-color);
      line-height: 1.6;
      /* overflow-x: hidden; */
      font-size: 1rem;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
  }

  /* --- NAVBAR TRAVADA (SEM ENCOLHER) --- */
  .navbar {
      background-color: var(--dark-color) !important;
      box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s ease;
      padding-top: 1rem !important;
      padding-bottom: 1rem !important;
  }

  .navbar-brand {
      font-weight: 700;
      font-size: 1.4rem;
      color: white !important;
      transition: all 0.3s ease;
  }

  .navbar-brand:hover {
      transform: scale(1.05);
  }

  .nav-link {
      color: #cbd5e1 !important;
      font-weight: 500;
      font-size: 1rem;
      transition: all 0.3s ease;
      margin: 0 0.5rem;
      position: relative;
  }

  .nav-link:hover {
      color: white !important;
      transform: translateY(-1px);
  }

  /* Linha decorativa (apenas desktop) */
  .nav-link::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 50%;
      width: 0;
      height: 2px;
      background: white;
      transition: all 0.3s ease;
      transform: translateX(-50%);
  }

  .nav-link:hover::after {
      width: 80%;
  }

  /* Botão Navbar */
  .navbar-nav .btn-primary {
      color: #fff !important;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .navbar-nav .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  }

  /* --- TOGGLER (HAMBURGER) --- */
  .navbar-toggler {
      border: none;
      padding: 0.5rem;
      transition: all 0.3s ease;
      box-shadow: none !important;
  }

  .navbar-toggler:focus {
      box-shadow: none;
      outline: none;
  }

  .navbar-toggler-icon {
      width: 1.5em;
      height: 1.5em;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
      transition: transform 0.3s ease, background-image 0.3s ease;
  }

  /* Ícone X quando aberto */
  .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e") !important;
      transform: rotate(90deg);
  }

  /* --- HERO SECTION --- */
  .hero-section {
      background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
      color: white;
      padding: 80px 0 60px;
      min-height: 60vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
  }

  .hero-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,1000 1000,0 1000,1000"/></svg>');
      background-size: cover;
      pointer-events: none;
  }

  /* Animações fixas Hero */
  .hero-section h1,
  .hero-section p,
  .hero-section .btn,
  .animate-hero {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 0.8s ease forwards;
  }

  .hero-section h1 {
      animation-delay: 0.2s;
  }

  .hero-section p {
      animation-delay: 0.4s;
  }

  .hero-section .btn {
      animation-delay: 0.6s;
  }

  .hero-delay-1 {
      animation-delay: 0.2s;
  }

  .hero-delay-2 {
      animation-delay: 0.4s;
  }

  .hero-delay-3 {
      animation-delay: 0.6s;
  }

  /* --- SISTEMA SPA --- */
  .page {
      display: none;
      opacity: 0;
      transition: opacity 0.4s ease-in-out;
      min-height: 80vh;
      width: 100%;
  }

  .page.active {
      display: block;
      opacity: 1;
  }

  /* --- SCROLL REVEAL --- */
  .reveal {
      opacity: 0;
      transform: translateY(40px);
      transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  }

  .reveal.active {
      opacity: 1;
      transform: translateY(0);
  }

  .reveal-delay-1 {
      transition-delay: 0.1s;
  }

  .reveal-delay-2 {
      transition-delay: 0.2s;
  }

  .reveal-delay-3 {
      transition-delay: 0.3s;
  }

  /* --- COMPONENTES GERAIS --- */
  .section-title {
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 2.5rem;
      text-align: center;
      color: var(--dark-color);
      position: relative;
  }

  .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 4px;
      background: var(--primary-color);
      border-radius: 2px;
  }

  .card {
      border: none;
      border-radius: 12px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      border: 1px solid var(--border-color);
      background-color: white;
  }

  .card:hover {
      transform: translateY(-6px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  }

  .card-body {
      padding: 1.5rem;
  }

  .card-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--dark-color);
      margin-bottom: 1rem;
  }

  .card-text {
      font-size: 1rem;
      line-height: 1.6;
      color: var(--text-color);
      margin-bottom: 1.5rem;
  }

  .card-img-top {
      border-radius: 12px 12px 0 0;
      object-fit: cover;
      transition: transform 0.3s ease;
  }

  .card:hover .card-img-top {
      transform: scale(1.03);
  }

  /* --- BADGES E CORES --- */
  .badge {
      font-size: 0.85rem;
      font-weight: 500;
      padding: 0.5rem 0.8rem;
      transition: all 0.3s ease;
  }

  .badge:hover {
      transform: scale(1.05);
  }

  /* Cores Utilitárias */
  .bg-primary {
      background-color: var(--primary-color) !important;
  }

  .bg-secondary {
      background-color: var(--secondary-color) !important;
  }

  .bg-success {
      background-color: #10b981 !important;
  }

  .bg-info {
      background-color: #0ea5e9 !important;
  }

  /* Listas */
  .list-unstyled li {
      font-size: 1rem;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
  }

  .list-unstyled i {
      font-size: 1rem;
      margin-right: 0.5rem;
  }

  /* Imagens e Utilitários */
  .object-fit-cover {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .object-fit-contain {
      width: 100%;
      height: 100%;
      object-fit: contain;
  }

  .transition-hover {
      transition: all 0.3s ease;
  }

  .transition-hover:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  }

  /* --- FOOTER --- */
  footer {
      background: var(--dark-color);
      color: white;
      padding: 2rem 0 1.5rem;
      margin-top: auto;
  }

  .social-icons a {
      color: #cbd5e1;
      font-size: 1.4rem;
      margin: 0 10px;
      transition: all 0.3s ease;
      display: inline-block;
  }

  .social-icons a:hover {
      color: white;
      transform: translateY(-2px);
  }

  .social-icons .bi-whatsapp:hover {
      color: #25D366;
  }

  .social-icons .bi-envelope:hover {
      color: #EA4335;
  }

  .social-icons .bi-instagram:hover {
      color: #E4405F;
  }

  .social-icons .bi-twitter:hover {
      color: #1DA1F2;
  }

  .social-icons .bi-github:hover {
      color: white;
  }

  .social-icons .bi-linkedin:hover {
      color: #0A66C2;
  }

  /* Seleção */
  ::selection {
      background: var(--primary-color);
      color: white;
  }

  ::-moz-selection {
      background: var(--primary-color);
      color: white;
  }

  /* --- KEYFRAMES --- */
  @keyframes fadeInUp {
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  @keyframes mobileFadeIn {
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* ==========================================================================
     RESPONSIVIDADE E MOBILE (COLE NO FINAL DO CSS)
     ========================================================================== */

  /* --- 1. TABLETS E IPADS (Abaixo de 992px) --- */
  @media (max-width: 991.98px) {

      /* MENU FLUTUANTE (GLASS) */
      .navbar-collapse {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          z-index: 99999;
          background: rgba(15, 23, 42, 0.98);
          backdrop-filter: blur(10px);
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
          border-radius: 0 0 20px 20px;
          box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
          padding: 20px;
          margin-top: 0;
      }

      .navbar-nav {
          text-align: center;
      }

      /* Animação em Cascata */
      .nav-item {
          margin: 10px 0;
          opacity: 0;
          transform: translateY(-15px);
          animation: mobileFadeIn 0.4s ease forwards;
      }

      .nav-item:nth-child(1) {
          animation-delay: 0.1s;
      }

      .nav-item:nth-child(2) {
          animation-delay: 0.15s;
      }

      .nav-item:nth-child(3) {
          animation-delay: 0.2s;
      }

      .nav-item:nth-child(4) {
          animation-delay: 0.25s;
      }

      .nav-item:nth-child(5) {
          animation-delay: 0.3s;
      }

      .nav-item:nth-child(6) {
          animation-delay: 0.35s;
      }

      .nav-link {
          font-size: 1.1rem;
          padding: 10px;
      }

      .nav-link::after {
          display: none;
      }

      /* --- AJUSTES DA SEÇÃO SOBRE (Tablets/iPads) --- */

      /* Centraliza textos e títulos */
      #about .col-lg-8,
      #about h2, #about h3, #about h4, #about h5 {
          text-align: center !important;
      }

      .border-bottom {
          margin-left: auto !important;
          margin-right: auto !important;
          width: fit-content !important;
      }

      /* FOTO GRANDE E PROFISSIONAL NO TABLET */
      #about .col-lg-4 {
          /* 520px é o tamanho ideal para iPad (nem gigante, nem pequeno) */
          max-width: 520px;
          width: 100%;
          margin: 0 auto 3rem auto;
          /* Centraliza e dá respiro */
          display: block;
      }

      /* Centraliza Badges */
      .d-flex.flex-wrap {
          justify-content: center !important;
      }

      /* Cards de Formação */
      #about .card-body.d-flex {
          flex-direction: column !important;
          text-align: center !important;
      }

      #about .card-body .bg-white.border {
          margin-right: 0 !important;
          margin-bottom: 1rem !important;
      }
  }

  /* --- 2. CELULARES PADRÃO (Abaixo de 768px) --- */
  @media (max-width: 768px) {
      body {
          font-size: 0.95rem;
      }

      .hero-section {
          padding: 60px 0 40px;
          min-height: 50vh;
      }

      .hero-section h1 {
          font-size: 2rem;
      }

      .hero-section .lead {
          font-size: 1.05rem;
      }

      .hero-section .btn {
          width: 100%;
          max-width: 300px;
          margin: 0 auto;
      }

      .section-title {
          font-size: 1.8rem;
      }

      .social-buttons {
          grid-template-columns: 1fr;
          gap: 0.75rem;
      }
  }

  /* --- 3. CELULARES PEQUENOS (Abaixo de 576px) --- */
  @media (max-width: 576px) {
      .hero-section {
          min-height: 45vh;
      }

      .hero-section h1 {
          font-size: 1.6rem;
      }
    
     .service-list {
       align-items: center;
    }

      /* FOTO COMPACTA NO CELULAR (Sobrescreve o Tablet) */
      /* Aqui reduzimos para 280px para caber na mão do usuário */
      #about .col-lg-4 {
          max-width: 280px !important;
      }

      .icon-wrapper {
          width: 60px;
          height: 60px;
          margin-bottom: 1rem;
      }
  }

  /* WHATSAPP ULTRA PREMIUM */
  .whatsapp-float {
      position: fixed;
      bottom: 25px;
      right: 25px;
      width: 64px;
      height: 64px;
      background: linear-gradient(135deg, #25D366, #128C7E);
      color: white;
      border-radius: 50%;
      font-size: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      z-index: 9999;

      /* Borda subtil para definição */
      border: 1px solid rgba(248, 250, 252, 0.2);

      /* Sombra que 'respira' integrada com a cor escura do projeto */
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);

      /* Animação contínua de atenção */
      animation: whatsapp-wiggle 4s ease-in-out infinite;
      transition: all 0.3s ease;
  }

  /* O BADGE DE NOTIFICAÇÃO (O Segredo da Conversão) */
  .whatsapp-float::after {
      content: '1';
      /* O número 1 */
      position: absolute;
      top: -2px;
      right: -2px;
      background: #ef4444;
      /* Vermelho alerta */
      color: white;
      font-size: 12px;
      font-weight: bold;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #ffffff;
      /* Borda branca para separar do ícone verde */
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      animation: badge-pop 4s infinite;
      /* O badge salta subtilmente */
  }

  /* O EFEITO DE BRILHO (SHINE) */
  .whatsapp-float::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 50%);
      pointer-events: none;
  }

  /* INTERAÇÃO HOVER */
  .whatsapp-float:hover {
      transform: translateY(-5px) scale(1.05);
      /* No hover, o brilho intensifica e a sombra cresce */
      box-shadow:
          0 15px 30px rgba(15, 23, 42, 0.4),
          0 0 20px rgba(37, 211, 102, 0.4);
      background: linear-gradient(135deg, #2ce871, #15a090);
  }

  /* ANIMAÇÕES */

  /* Movimento de 'chamar a atenção' (balança o telefone) */
  @keyframes whatsapp-wiggle {
      0%, 80% {
          transform: rotate(0deg);
      }

      85% {
          transform: rotate(-10deg);
      }

      90% {
          transform: rotate(10deg);
      }

      95% {
          transform: rotate(-5deg);
      }

      100% {
          transform: rotate(0deg);
      }
  }

  /* Movimento do badge vermelho */
  @keyframes badge-pop {
      0%, 80% {
          transform: scale(1);
      }

      85% {
          transform: scale(1.2);
      }

      100% {
          transform: scale(1);
      }
  }

  /* ADICIONE AO FINAL DO SEU CSS - APENAS ESTAS 3 CLASSES */

  /* Classe para ícones circulares */
  .icon-wrapper {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      margin-bottom: 1rem;
      transition: transform 0.3s ease;
  }

  .card:hover .icon-wrapper {
      transform: scale(1.1);
  }

  /* Botões de redes sociais específicos */
  .btn-outline-secondary:hover .bi-linkedin {
      color: #0077b5 !important;
  }

  .btn-outline-secondary:hover .bi-github {
      color: #333 !important;
  }

  /* Ajuste para cards de contato */
  .card-body.text-center {
      display: flex;
      flex-direction: column;
      height: 100%;
  }

  .card-body.text-center .btn {
      margin-top: auto;
  }

  /* ==========================================================================
     CLASSES PARA SERVIÇOS - REMOVE GAMBIARRAS
     ========================================================================== */

  /* Ícones de serviços */
  .icon-service {
      width: 64px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
      transition: transform 0.3s ease;
  }

  .card:hover .icon-service {
      transform: scale(1.1) rotate(5deg);
  }

  /* Lista de serviços */
  .service-list {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
  }

  .service-item {
      display: flex;
      align-items: flex-start;
      font-size: 0.9rem;
      line-height: 1.4;
  }

  .service-item i {
      flex-shrink: 0;
      margin-top: 0.125rem;
  }

  /* Títulos consistentes */
  .section-title {
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 1rem;
      text-align: center;
      color: var(--dark-color);
      position: relative;
  }

  .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 4px;
      background: var(--primary-color);
      border-radius: 2px;
  }

  /* --- VARIÁVEIS & GERAL --- */
  :root {
      --primary: #3b82f6;       /* Azul Moderno */
      --dark: #1e293b;          /* Cinza Escuro */
      --light-bg: #f8fafc;      /* Fundo da página */
      --card-bg: #ffffff;
      --radius: 24px;           /* Curvatura Moderna */
      --shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
  }

  .page {
      background-color: var(--light-bg);
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      color: var(--dark);
  }

  /* --- ESTILO BENTO CARD (BASE) --- */
  .bento-card {
      background: var(--card-bg);
      border-radius: var(--radius);
      padding: 2rem;
      border: 1px solid rgba(255,255,255,0.6);
      box-shadow: var(--shadow);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .bento-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
  }

  /* --- PERFIL (ESQUERDA) --- */
  .profile-img-container {
      position: relative;
      width: 130px;
      height: 130px;
      margin: 0 auto;
  }

  .profile-img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid var(--light-bg);
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .status-badge {
      position: absolute;
      bottom: 8px;
      right: 8px;
      width: 18px;
      height: 18px;
      background: #10b981; /* Verde */
      border: 3px solid var(--card-bg);
      border-radius: 50%;
  }

  .profile-name { font-size: 1.5rem; font-weight: 800; margin-top: 1rem; margin-bottom: 0.2rem; }
  .profile-role { color: var(--primary); font-weight: 600; font-size: 0.95rem; margin-bottom: 1.5rem; }

  .mini-tag {
      font-size: 0.75rem;
      background: #f1f5f9;
      padding: 4px 10px;
      border-radius: 12px;
      font-weight: 600;
      color: #64748b;
  }

  .btn-action {
      background: var(--primary);
      color: white;
      border: none;
      padding: 12px;
      border-radius: 14px;
      font-weight: 600;
      transition: all 0.2s;
  }

  .btn-action:hover { background: #2563eb; transform: scale(1.02); }

  .social-row { display: flex; justify-content: center; gap: 10px; }
  .social-icon {
      width: 40px;
      height: 40px;
      background: #f1f5f9;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--dark);
      font-size: 1.2rem;
      transition: all 0.2s;
  }
  .social-icon:hover { background: var(--dark); color: white; }

  .quote-card {
      background: linear-gradient(135deg, #1e293b, #334155);
      text-align: center;
      border: none;
  }

  /* --- CONTEÚDO (DIREITA) --- */
  .section-title { font-weight: 800; font-size: 1.5rem; }
  .icon-box {
      width: 40px;
      height: 40px;
      background: rgba(59, 130, 246, 0.1);
      color: var(--primary);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
  }

  .lead-text { font-size: 1.1rem; font-weight: 500; margin-bottom: 1rem; color: #334155; }

  /* Tech Cards Coloridos */
  .tech-wrapper { padding: 1.5rem; border-radius: 20px; transition: all 0.3s; }
  .backend-theme { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
  .frontend-theme { background: #f0fdf4; color: #166534; border: 1px solid #dcfce7; }

  .tech-list span {
      display: inline-block;
      background: rgba(255,255,255,0.6);
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      margin-right: 5px;
      margin-bottom: 5px;
  }

  /* Timeline */
  .education-timeline {
      position: relative;
      border-left: 2px solid #e2e8f0;
      padding-left: 25px;
      margin-left: 10px;
      margin-top: 1rem;
  }

  .edu-item { position: relative; margin-bottom: 2rem; }
  .edu-item:last-child { margin-bottom: 0; }

  .edu-item::before {
      content: '';
      position: absolute;
      left: -31px;
      top: 5px;
      width: 10px;
      height: 10px;
      background: var(--primary);
      border-radius: 50%;
      outline: 4px solid var(--card-bg);
  }

  .edu-date { font-size: 0.8rem; font-weight: 700; color: #94a3b8; margin-bottom: 4px; }
  .edu-degree { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
  .edu-school { font-size: 0.95rem; color: #64748b; margin-bottom: 8px; }

  .badge-status {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      padding: 4px 10px;
      border-radius: 30px;
  }
  .badge-status.running { background: #dbeafe; color: #1e40af; }
  .badge-status.done { background: #dcfce7; color: #166534; }