:root {
    --navbar-height: 80px;
    --white: #f5f5f7;
    --black: #1d1d1f;
}

*::-webkit-scrollbar{
    display: none;
  }

*, ::before, ::after {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.light-background-text {
    background-color: var(--white);
}

.spinner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    transition: all ease-in-out .5s;
}

.spinner-border {
    color: var(--black);
    height: 50px;
    width: 50px;
    border-width: 8px;
}

.info-toggler {
    text-decoration: none;
    color: var(--black);
    outline: none;
}

#offcanvasExample {
    width: 100vw;
    max-width: 500px;
}

.offcanvas-backdrop.show {
    opacity: 1;
    background-color: rgba(22, 22, 23, .4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-close:focus {
    box-shadow: none;
}

#profile-info {
    text-align: center;
}

.bold { /* profile-info title - name */
    font-weight: bolder;
}

#profile-img {
    width: 80%;
    border-radius: 50%;
    margin: 2rem auto;
}

#profile-info-studies {
    font-weight: 600;
    opacity: .8;
}

html {
    font-family: Montserrat, sans-serif;
    color: var(--black);
}

main {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-y: scroll;
    height: 100vh;
}

#welcome-section, #contact, #projects, #certificates, .carousel-slide, footer {
    scroll-snap-align: center;
}

#welcome-section, #contact, #projects, #certificates {
    height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

#welcome-title, #welcome-description, #projects-title, #certificates-title, #contact-title {
    margin: 0 auto;
    transition: all ease-in-out .2s;
}

#welcome-title, #welcome-description{
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-ttl, .welcome-desc {
    z-index: 1;
    transition: all ease-in-out .2s;
    scale: .7;
}

#welcome-title-text:hover, #welcome-description-text:hover{
    scale: 1;
}

#welcome-title-shadow, #welcome-description-shadow {
    /* ---------- Hardware acceleration  ---------- */
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    -o-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    /*  ------------------------------------------- */
    position: absolute;
    z-index: 0;
    margin: 2px 0 2px 0;
    opacity: .8;
    transition: all ease-in-out .2s;
}

#fade {
    width: 100vw;
    height: 600px;
    background: linear-gradient(
        var(--white),
        var(--black)
    );
}

#projects, #certificates, #contact {
    background-color: var(--black);
}

.dark-background-text {
    color: var(--white);
}

.nav-link:hover {
    color: white;
}

.text {
    width: 100%;
}

#projects-title, #certificates-title {   
    margin-bottom: 5rem;
}

#contact-text {
    opacity: .5;
}

#contact-links {
    height: 10rem;
    margin: 3rem;
    font-size: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.contact-link {
    text-decoration: none;
    font-size: 4.5rem;
    transition: all ease-in-out .2s;
}

.contact-link:hover {
    text-decoration: none;
}

footer {
    width: 100vw;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: end;
}

.carousel-wrapper {
    border-radius: 10px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    list-style: none;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding: 0;
}

.carousel-slide {
    display: grid;
    place-items: center;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    margin: 0;
}

.carousel-img {
    margin: auto;
    transition: all ease-in-out .2s;
    width: 100%;
    scale: .9;
}

.carousel-img-wrapper {
    display: flex;
    width: 85%;
}

.carousel-img-wrapper, .carousel-img {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1920/1080;
}

[class="carousel-img"]:hover {
    scale: 1;
    filter: blur(10px) brightness(.5);
    -webkit-filter: blur(10px) brightness(.5);
}

@media only screen and (min-width: 1001px) {
    #full-navbar {
        grid-template-columns: 1fr 5fr 3fr;
    }

    .carousel-wrapper {
        max-width: 1000px;
    }

    .carousel-slide-title {
        margin-block: 2rem;
    }

    .carousel-slide-text {
        margin-top: 2rem;
    }

    #contact-links {
        width: 50%;
        margin: 0 auto;
    }

}

@media only screen and (min-width: 801px) and (max-width: 1000px) {
    
    #full-navbar {
        grid-template-columns: 1fr 5fr 5fr;
    }

    .carousel-slide-title {
        margin-block: 1.5rem;
    }

    .carousel-slide-text {
        margin-top: 1.5rem;
    }

    #welcome-section {
        padding: 0;
    }

}

@media only screen and (min-width: 801px){

    #full-navbar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        width: 100%;
        height: var(--navbar-height);
        display: grid;
        align-items: center;
        background-color: rgba(22, 22, 23, .8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    #navbar-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 1rem;
        width: 50px;
        height: 50px;
        transition: all ease-in-out .2s;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: bolder;
        scale: .9
    }
    
    #navbar-icon:hover {
        scale: 1;
    }
    
    #nav-links {
        display: grid;
        grid-template-columns: auto auto auto auto;
        align-items: center;
    }
    
    .nav-link {
        text-decoration: none;
        font-size: 1.5rem;
        transition: all ease-in-out .2s;
        scale: .85;
    }
    
    .nav-link:hover {
        scale: 1;
        font-weight: bolder;
    }
    
    #responsive-navbar * {
        display: none;
    }
    
    section {
        margin: auto;
        padding: 0 15%;
    }
    
    .subtitle {
        font-size: 4rem;
    }
    
    #welcome-title > *{
        font-size: 7rem;
    }
    
    #welcome-description > * {
        font-size: 4rem;
    }

    #contact-text {
        font-size: 2rem;
    }

    .contact-link {
        font-size: 5rem;
        scale: .8;
    }

    .contact-link:hover {
        scale: 1;
    }
    
    footer {
        padding-inline: 30px;
    }

}


@media only screen and (max-width: 800px) {

    #full-navbar {
        display: none;
    }

    .navbar {
        position: fixed;
        width: 100vw;
        z-index: 10;
        top: 0;
        left: 0;
        background-color: rgba(22, 22, 23, .8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    #navbar-icon, .navbar-nav {
        margin-inline: .5rem;
        font-size: 2rem;
    }

    .nav-item:first-child {
        margin-top: 1.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-link:hover {
        scale: 1;
    }
    
    .navbar-toggler {
        border: none;
        transition: all ease-in-out .2s;
        scale: .9;
    }
    
    .navbar-toggler:hover {
        scale: 1;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }

    .welcome-ttl {
        font-size: 4rem;
    }

    .welcome-desc {
        font-size: 2rem;
    }

    #contact-text {
        font-size: 1.5rem;
    }

    #projects-title, #certificates-title, #contact-title {
        font-size: 2rem;
        width: 90vw;
    }

    .carousel-wrapper {
        max-width: 80%;
    }

    .carousel-slide-title {
        margin-block: 1rem;
    }

    .carousel-slide-text {
        margin-top: 1rem;
        margin-bottom: 0;
    }


    .contact-link {
        font-size: 3rem;
    }

    .contact-link:hover {
        font-size: 5rem;
    }

    footer {
        font-size: .7rem;
        justify-content: center;
        padding-inline: 1rem;
    }

}