/* === FONTS === */
@font-face {
    font-family: Poppins;
    src: url(https://fonts.googleapis.com/css2?family=M+PLUS+1+Code:wght@100..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap);
}

/* === ELEMENTS === */
* {
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

/* === CLASS === */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
}

.skills-carousel {
    width: 100%;
    overflow: hidden;
}

.skills-track {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.skills-img {
    display: block;
    height: 64px;
    width: auto;
    max-width: none;
}

nav .nav-link {
    position: relative;
    color: #6c757d;
    font-weight: 500;
    transition: color 0.3s ease;
}
nav .nav-link:hover {
    color: #000;
}
nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}
nav .nav-link:hover::after {
  width: 100%;
}

/* === ID === */
#linkedin-icon {
    color: #0A66C2;
}
#github-icon {
    color: #24292e;
}
#caricatura {
    max-width: 500px;
}

/* === OTHERS === */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (min-width: 992px) {
    #caricatura {
        max-width: 420px;
    }
}

@media screen and (max-width: 500px){
    #caricatura {
        width: 90vw;
    }
    #mascote {
        width: 90vw;
    }
}