:root {
    --clr-neutral-900: hsl(207, 19%, 9%);
    --clr-neutral-100: hsl(0, 0%, 100%);
    --clr-accent-400: hsl(142, 90%, 61%);
}


/* Navbar: https://www.youtube.com/watch?v=h5apE3E72wY */
.navbar {
    background-color: #fff;
    height: 80px;
    margin: 20px;
    border-radius: 16px;
    padding: 0.5rem;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: #009970;
    font-size: 34px;
    transition: 0.3s color;
}

.login-button {
    background-color: #009970;
    color: #fff;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s background-color;
}

.login-button:hover {
    background-color: #00b383;
}

.navbar-toggler {
    border: none;
    font-size: 1.25rem;
}

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

.nav-link {
    color: #666777;
    font-weight: 500;
    position: relative;
}

.navbar-link:hover, .nav-link.active {
    color: #000;
}


@media (min-width: 991px) { 
    .nav-link::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #009970;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }
    
    .nav-link:hover::before, .nav-link.active::before {
        width: 100%;
        visibility: visible;
    }
}

/* Header About me */
.hero-image {
    width: 100%;
    position: relative;
    height: 450px;
    overflow: hidden;
    background: url(../images/background.jpg) no-repeat center;
    background-size: cover;

    /* Add the blur effect */
    filter: blur(2px);
    -webkit-filter: blur(2px);

    margin-bottom: 100px;
}
/* Position text in the middle of the page/image */
.bg-text {
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0, 0.4); /* Black w/opacity/see-through */
    color: white;
    font-weight: bold;
    border: 3px solid #f1f1f1;
    border-radius: 15px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
    padding: 20px;
    text-align: center;
}

.bg-text h1 {
    color: #fff;
}

.bg-text a {
    text-decoration: none;
    font-size: 16px;
    color: white;
    background-color: #333333;
    padding: 10px 20px 10px 20px;
    border-radius: 5px;
    transition: 0.3s background-color;
}

.bg-text a:hover {
    background-color: #666777;
}

/* Skills */
.skills {
   /*  border: 1px solid blue; */
    margin-top: 30px;
    margin-bottom: 50px;
}

h1 {
    color: #009970;
    font-weight: 700;
}

.skills p {
    font-family: 'poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: #444;
}
footer {
    width: 100%;
}

/* Proyectos */

body {
    display: grid; /* luego sacar si se queda en medio */
    min-height: 100vh;
    place-items: center;
    line-height: 1.6;
    /* background: var(--clr-neutral-900); */
    font-family: sans-serif;
    /* padding-right: 15em; */ /* quitar o sacar, da padding right de 240px */
}

.proyectos {
    display: flex;
    margin-top: 30px;
}

.card {
    color: var(--clr-neutral-100);
    background-size: cover;
    /* padding: 10rem 0 0; */
    width: 30ch;
    /* height: 400px; */ /* extra */
    border-radius: 1rem;
    overflow: hidden;

    transition: transform 500ms ease;
    margin-bottom: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    border-color: white;

}

.proy-1 {
    background-image: url(../images/proyectos/proy_1.png);
}

.proy-2 {
    background-image: url(../images/proyectos/proy_2.png);
}

.proy-3 {
    background-image: url(../images/proyectos/proy_3.png);
}

.proy-4 {
    background-image: url(../images/proyectos/proy_4.png);
}

.proy-5 {
    background-image: url(../images/proyectos/proy_5.png);
}

.proy-6 {
    background-image: url(../images/proyectos/proy_6.png);
}

.card:hover,
.card:focus-within {
    transform: scale(1.05);
}

.card-content {
    --padding: 1.5rem;
    padding: var(--padding);
    background: hsl(0 0% 0% / 0.5);
    /* background: linear-gradient(
        hsl(0 0% 0% / 0),
        hsl(20 0% 50% / 0.3) 20%,
        hsl(0 0% 0% / 1),
    ); */
    transform: translateY(78%); 
    transition: transform 500ms ease;
    transition-delay: 500ms; /* Puede ir abajo y quitarse de aquí, da otro stilo  */
}

.card:hover .card-content, 
.card:focus-within .card-content {
    transform: translateY(0);
    /* transition-delay: 500ms; */ /* Da el stilo mencionado arriba, pero solo debe haber 1 de ellos activo */
}

.card:focus-within .card-content {
    transition-duration: 0ms;
}

.card-content > *:not(.card-title) {
    opacity: 0;
    transition: opacity 500ms linear;
}


.card:hover .card-content > *:not(.card-title),
.card:focus-within .card-content > *:not(.card-title) {
    opacity: 1;
    transition-delay: 800ms;
}

.card-title {
    position: relative;
    width: max-content;
    /* outline: 1px solid red; */
}

.card-title::after {
    content: "";
    position: absolute;
    height: 4px;
    left: calc(var(--padding) * -1);
    bottom: -2px;
    width: calc(100% + var(--padding));
    background: var(--clr-accent-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 500ms ease;
}

.card:hover .card-title::after,
.card:focus-within .card-title::after {
    transform: scaleX(1);
}

.card-body {
    color: #fff;
}

.button {
    text-decoration: none;
    color: var(--clr-neutral-900);
    background-color: var(--clr-accent-400);
    padding: 5px 10px 5px 10px;
    border-radius: 0.25em;
    transition: 0.3s background-color;
    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    display: inline-block;
    
}

.btn-github {
    text-decoration: none;
    color: white;
    background-color: #333333;
    padding: 5px 10px 5px 10px;
    border-radius: 0.25em;
    transition: 0.3s background-color;
    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    display: inline-block;
}

.proyectos a:hover {
    background-color: #666777;
}

.button:hover, .button:focus {
    background-color: var(--clr-neutral-100 );
}

@media (max-width: 991px) { 
    .card {
        max-width: 85%;
    }
}

/* Divs de lenguajes */
.lenguaje-card {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin: 0 5px 5px 0;
    font-weight: 600;
    font-size: 10px;
    padding: 2px 5px 3px 11px;
    border-radius: 3px;
}

.html {
    background-color: #e34c26;
    width: 61px;
}

.react {
    background-color: #61DBFB;
}

.next {
    background-color: #000
}

.tailwind {
    background-color: #4c1d95;
    width: 90px;
}

.css {
    background-color: #264de4;
    width: 58px;
}

.js {
    background-color: #323330;
    width: 105px;
}

.bootstrap {
    background-color: #563d7c;
    width: 105px;
}

.php {
    background-color: #8993be ;
    width: 58px;
}

.python {
    background-color: #646464 ;
    width: 80px;
}

.img-iconsdev {
    transition: 0.3s;
}

.img-iconsdev:hover {
    scale: 1.1;
}

.img-iconsdev img {
    transition: filter 0s;
}

.img-iconsdev:hover img {
    filter: drop-shadow(0 0 10px rgba(111, 113, 216, 0.4))
            drop-shadow(0 0 20px rgba(0, 255, 255, 0.2));
}