#home {
    position: relative;
    top: -89px;
    height: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;    
    flex-flow: row wrap;
    z-index: 999;
}

.header__toggle {
        display: flex;
        justify-content: end;
    } 

.header__brand .brand__logo {
    width: 52px;
    height: inherit;
    border-radius: 50%;
}

#toggleTheme {
    font-size: 1.5rem;
    cursor: pointer;
    transition: ease-in-out, .9s;
}

.menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-color);
}

.menu__item {
    width: 100%;
}

.menu--mobile {
    width: 100vw;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: .5rem;
    position: fixed;
    bottom: 0;
}

.menu--mobile .menu__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    gap: .2rem;
}

.menu__link.active .menu__icon, 
.menu__link.active .menu__text,
.menu__link:hover .menu__icon, 
.menu__link:hover .menu__text {
    color: var(--primary-color);
    font-weight: 600;
} 

.menu__icon {
    font-size: 1.5rem;
}

.menu__text {
    font-size: .75rem;
    text-transform: uppercase;
}

.menu__icon, .menu__text {
    color: var(--text-color);
}

.header__nav {
    display: none;
}

.menu--principal {
    gap: 2rem;
}

.menu--social {
    font-size: 2rem;
    gap: 1rem;
}

.menu--social i {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

.menu--social i:hover {
    transform: scale(1.2);
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .625rem;
    width: 100%;
    max-width: 384px;
    background: transparent;
    border-radius: 3.125rem;
    padding: 0.875rem 1rem;
    transition: ease-in-out .3s;
    cursor: pointer;    
}

.btn:hover {
    transform: scale(1.05);
    transition: ease-in-out .3s;
}

.btn span,
.btn i {
    font-size: 1.25rem;
    text-transform: uppercase;
}

.btn--primary {
    border: 1px solid var(--primary-color)
}

.btn--primary span {
    color: var(--primary-color);
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 1rem;
    padding-bottom: 4rem;
}

.main__content1 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--text-color);
}

.main__content2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 6rem;
}

.main__content2 iframe {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16/9;
    border: none;
    border-radius: .5rem;
}

.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6.25rem 1rem 2rem 1rem;
    background: var(--bg-secondary);
    margin-top: -5.5rem;
    gap: 1.25rem;

}

.skills h2 {
    font-size: 2rem;
    text-transform: none;
}

.skills__list {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: .5rem;
}

.skills__item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 4.8rem;
    height: 4.8rem;
    aspect-ratio: 1/1;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
}

.skills__logo {
    height: 3rem;
}

/* meus projetos */
.projects {
    padding: 2rem 1rem;
}

.project {
    margin-bottom: 4rem;
}

.projects__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
}

.projects--reverse {
    background: var(--border-color);    
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 4rem 1rem 4rem 8rem;
}

.projects__title h3 {
    text-transform: capitalize;
    margin-bottom: 8px;
    font-size: 24px;
}

.projects__title p {
    margin-bottom: 16px;
}

.projects__image img {
    width: 100%;
    max-width: 343px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.project ul li {
    list-style-type: disc;
    list-style-position: inside;
}

.project:nth-child(even) {
    background: var(--bg-secondary);
    padding: 2rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.card__buttons {
     display: flex;
     flex-direction: column;
     gap: 2rem;
     margin-top: 1rem;
}

.all-projetcts {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* sobre mim*/
.title {
    text-align: center;
    text-transform: capitalize;
}

.about {
    background: var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about__content {
    display: flex;
    margin: 1rem 7rem;
    width: 100%;
    min-width: 346px;
    max-width: 750px;

}

.about__image {
    float: left;
    width: 100px;
    margin: 0 2rem 1rem 0;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact__content {    
    display: flex;
    flex-direction: column;    
    width: auto;
    min-height: 283px;
    padding: 2rem;
    align-items: center;
}

.contact__content h2 {
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 1rem;
}

.contact__content p {
    margin-bottom: 1rem;
}

.contact .contact--social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.contact .contact--social i {
    font-size: 1.25rem;
    font-weight: 200;
}

.contact .contact--social li:hover {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.contact__text {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.btn--contact {
    font-size: 20px;
    padding: 1rem;
    margin-top: 2rem;
    background: var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    max-width: 344px;
    border-style: none;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;    
    height: 6rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

footer P {
    
}

@media (min-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding: .5rem 6rem;
        background: var(--bg-color);
    }

    .nav--mobile {
        display: none;
    }

    .header__nav {
        display: flex;
    }

    .header__nav,
    .header__toggle {
        min-width: 30%;
    }

    h1 {
        font-size: 4rem;
    }

    .main__content1 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 6rem 0rem 6rem;
    }

    main {
        margin-top: 92px;
    }

    .projects {
        justify-content: center;
        align-items: center;
    }

    .projects__container {
        padding: 0 3rem;
        place-items: center;
    }

    .projects h2 {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .section__image img {
        max-width: 350px;
        width: 100%;
        margin: 0;
    }

    /* sobre mim min-width 768px */
    .about__content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }

    .about__image {
        justify-self: end;
    }
}

@media (min-width: 1200px) {    
    main {
        padding: 2rem 6rem 2rem;
    }

    .main__content1 .btn {
        width: auto;
    }

    .skills {
        flex-direction: row;
        justify-content: space-between;
        padding: 7rem 12rem 4rem;
    }

    .skills h2 {
        font-size: 3.5rem;
        width: 40%;
    }

    .title {
        font-size: 3rem;
    }

    .project {
        margin-bottom: 6rem;
    }

    .projects {
        padding: 7rem 8rem;
        width: 100%;
        margin: 0 auto;     
    }

    .project p {
        font-size: 1.5rem;
    }

    .project ul li {
        font-size: 1.25rem;
    }

    .projects__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 2rem;
    } 

    .projects__image img {
        max-width: 350px;
        margin: 0 auto;
    }

    .projects--reverse .projects__container {
        direction: rtl;
    }

    .projects--reverse .projects__container > * {
        direction: ltr;
    }

    .projects--reverse .projects__title {
        justify-self: end;
        text-align: left;
    }

    .projects--reverse .projects__image {
        justify-self: start;
    }

    .contact__title {
        font-size: 42px;
        font-weight: 400;
    }

    .contact .contact--social li{
        font-size: 28px;
    }
}

@media (min-width: 1400px) {
    h1 {
        font-size: 6.25rem;
    }

    p {
        font-size: 1.5rem;
    }

    .header span {
        font-size: 1.25rem;
    }

    .header {
        padding: 1rem 15rem;
    }

    main {
        padding: 7rem 5rem 3rem;
    }

    .skills {
        padding: 6rem 16rem 6rem;
    }

    .skills__title span {
        opacity: 0;
        transform: translateY(20px);
        display: inline-block;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .skills__title.visible span {
        opacity: 1;
        transform: translateY(0);
    }

    .skills__title.visible span:nth-child(1) { transition-delay: 0.3s; }
    .skills__title.visible span:nth-child(2) { transition-delay: 0.6s; }
    .skills__title.visible span:nth-child(3) { transition-delay: 0.9s; }
    .skills__title.visible span:nth-child(4) { transition-delay: 1.2s; }
    .skills__title.visible span:nth-child(5) { transition-delay: 1.5s; }
    .skills__title.visible span:nth-child(6) { transition-delay: 1.8s; }    

    .skills__item {
        opacity: 0;
        transform: translateX(100px);
        transition: transform 0.8s ease, opacity 0.8s ease;
    }

    .skills__item.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .skills__item:nth-child(1) { transition-delay: 0.3s; }
    .skills__item:nth-child(2) { transition-delay: 0.6s; }
    .skills__item:nth-child(3) { transition-delay: 0.9s; }
    .skills__item:nth-child(4) { transition-delay: 1.2s; }

    .projects__container {
        padding: 0 5rem;
        gap: 15rem;
    }

    .projects__title {
        text-align: left;
        justify-self: start;
    }

    .projects__image {
        display: flex;
        justify-content: center;
        align-items: center;
        justify-self: end;
    }

    .projects__image img {
        max-width: 650px;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .project__content {
    flex-direction: row;
    justify-content: space-between;
    }

    .project:nth-child(even) .project__text {
        order: 2;
        text-align: left;
    }

    .project:nth-child(even) .project__image {
        order: 1;
    }

    .project:nth-child(odd) .project__text {
        order: 1;
        text-align: right;
    }

    .project:nth-child(odd) .project__image {
        order: 2;
    }

}

@media (min-width: 1550px) {

    .skills {
        padding: 6rem 35rem 6rem;
    }
    
}