/* 
CSS for breakpoints
Large devices (desktops, up to 992px)
Medium devices (tablets, up to 768px)
small devices (phones, up to 576px)

https://getbootstrap.com/docs/5.0/layout/breakpoints/
https://www.solodev.com/blog/web-design/media-queries-and-mobile-css-best-practices.stml
*/

/* if screen width up to 992px or less */
@media screen and (max-width: 992px) {
    .home__title {
        font-size: 2.5rem;
    }

    .home__subtitle {
        font-size: 1.5rem;
    }

    .section__title {
        font-size: 2rem;
    }
}

/* if screen width up to 768px or less */
@media screen and (max-width: 768px) {
    .about__content, .contact__content {
        flex-direction: column;
    }
    
    .about__info, .about__skills, .about__hobbies {
        margin-bottom: 30px;
    }

    .nav__item {
        margin: 0 15px;
    }

    .nav__link {
        font-size: 1rem;
    }
    
    .home__profile {
        max-width: 250px;
    }
    
    .contact__social {
        margin-top: 30px;
    }
}

/* if screen width up to 576px or less */
@media screen and (max-width: 576px) {
    .header .container {
        flex-direction: column;
    }

    .header__logo {
        margin-bottom: 15px;
    }

    .nav__list {
        width: 100%;
        justify-content: center;
    }

    .nav__item {
        margin: 0 10px;
    }

    .home {
        padding-top: 140px;
    }

    .section {
        padding: 80px 0;
    }

    .home__title {
        font-size: 2rem;
    }
    
    .home__profile {
        max-width: 200px;
    }

    .contact__info {
        flex-direction: column;
    }
}