/* Import de fontes */

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/Source_Sans_3/SourceSans3-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Classes para aplicar as fontes */

.dm-sans {
    font-family: 'DM Sans', sans-serif;
}

.inter {
    font-family: 'Inter', sans-serif;
}

.lato {
    font-family: 'Lato', sans-serif;
}

.montserrat {
    font-family: 'Montserrat', sans-serif;
}

.nunito {
    font-family: 'Nunito', sans-serif;
}

.open-sans {
    font-family: 'Open Sans', sans-serif;
}

.poppins {
    font-family: 'Poppins', sans-serif;
}

.roboto {
    font-family: 'Roboto', sans-serif;
}

.source-sans-3 {
    font-family: 'Source Sans 3', sans-serif;
}

/* Pre-loader */

#preloader {
    transition: opacity 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

.pulse-ring {
    animation: pulse 1.5s infinite;
}

/* Header */

.navbar-custom {
  background-color: #fff8f0; /* tom alaranjado suave */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  color: #e67817;
  font-weight: bold;
  text-decoration: none;
}

.nav-link {
  color: #e67817 !important;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: #b95810 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #e67817;
  margin: 4px 0;
  border-radius: 4px;
  transition: 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link:hover {
  transform: scale(1.15);
    transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.3);
transition: transform 0.3s ease;
}

.flag-icon:hover {
    transition: transform 0.3s ease;
    transform: scale(1.3);
}

.nav-menu.active {
  display: flex;
  gap: 1rem;
}


@media (max-width: 991.98px) {
  .nav-menu {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background-color: #fff8f0;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #f2e3d3;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .hamburger {
    display: flex;
  }
}

/* Body personalizado */

  svg.bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: -1;
  }

/* Inicio */

    #inicio::before {
      content: "";
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.07) 0 2px,
        transparent 2px 4px
      );
      z-index: 0;
      pointer-events: none;
      animation: scrollLines 12s linear infinite;
    }
    @keyframes scrollLines {
      0% { background-position: 0 0; }
      100% { background-position: 0 100%; }
    }

    #inicio h1 {
      position: relative;
      font-weight: 800;
      margin-bottom: 0.6rem;
      font-size: 3rem;
      max-width: fit-content;
      white-space: nowrap;
      overflow: hidden;
      border-right: 3px solid #d48806;
      animation:
        typing 2s steps(12, end),
        blink-caret 0.6s step-end infinite;
      text-shadow: 0 0 5px #d48806bb;
      z-index: 1;
    }
    @keyframes typing {
      from { width: 0 }
      to { width: 12ch }
    }
    @keyframes blink-caret {
      0%, 100% { border-color: transparent; }
      50% { border-color: #d48806; }
    }
    #inicio h1::after {
      content: "";
      display: block;
      width: 70px;
      height: 3px;
      background-color: #d48806;
      margin: 0.5rem auto 1.3rem auto;
      border-radius: 2px;
      box-shadow: 0 0 7px #d48806cc;
      position: relative;
      z-index: 1;
    }

    #inicio p {
      font-size: 1.25rem;
      font-weight: 500;
      max-width: 480px;
      margin-bottom: 2.2rem;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.06);
      z-index: 1;
      position: relative;
    }

    #inicio .btn {
      min-width: 130px;
      padding: 11px 28px;
      font-weight: 600;
      border-radius: 28px;
      transition: all 0.25s ease;
      box-shadow: 0 0 8px rgba(0,0,0,0.1);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      position: relative;
      z-index: 1;
    }
    #inicio .btn-warning {
      background-color: #d48806;
      border-color: #d48806;
      color: #fff;
      box-shadow: 0 0 12px #d48806cc;
      text-shadow: 0 0 5px #ffb74d;
    }
    #inicio .btn-warning:hover {
      background-color: #b06f00;
      border-color: #b06f00;
      box-shadow: 0 0 20px #b06f00, 0 0 32px #ffd54f;
      transform: translateY(-2px);
    }
    #inicio .btn-outline-warning {
      color: #d48806;
      border-color: #d48806;
      box-shadow: 0 0 8px #d48806aa;
      background: transparent;
      text-shadow: none;
    }
    #inicio .btn-outline-warning:hover {
      background-color: #d48806;
      color: white;
      border-color: #d48806;
      box-shadow: 0 0 20px #d48806, 0 0 30px #ffcc33;
      transform: translateY(-2px);
      text-shadow: 0 0 6px #fff;
    }
    #inicio div {
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
      z-index: 1;
      position: relative;
    }

    @media (max-width: 480px) {
      #inicio {
        height: auto !important;
        min-height: 70vh;
        padding-top: 60px;
        padding-bottom: 60px;
      }
      #inicio h1 {
        font-size: 2.2rem;
        animation: none;
        border: none;
        overflow: visible;
        white-space: normal;
        text-shadow: none;
      }
      #inicio p {
        font-size: 1.1rem;
        max-width: 90vw;
      }
      #inicio .btn {
        min-width: 120px;
        font-size: 0.9rem;
        padding: 10px 20px;
      }
      #inicio div {
        flex-direction: column;
      }
      #inicio .btn + .btn {
        margin-top: 10px;
      }
    }

/* Sobre Mim */

/* Habilidades */

  .card-skill {
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
    cursor: default;
  }

  .card-skill:hover {
    transform: scale(1.05);
    background-color: #fd7e14;
    color: #fff;
    cursor: pointer;
  }

  .card-skill:hover i,
  .card-skill:hover small {
    color: #fff !important;
  }

/* Projetos */

/* Contato */

/* Scroll */

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

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background-color: orange;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: orange #f0f0f0;
}
