/* ==================================================
PAGE: HOME 
================================================== */

#pageHome {
    .intro-section {
        display: flex;
        flex-direction: column;

        .welcome-text {
            strong {
                font-size: 2rem;
                font-weight: bold;
                ;
                padding-left: 1rem;
                white-space: nowrap;
            }

            span {
                font-size: 1.5rem;
                white-space: nowrap;
            }
        }

        .content-container {
            figure {
                background-color: var(--color-white);
                border-radius: 50%;
                float: right;
                height: 10rem;
                margin: .5rem;
                outline: 4px solid var(--theme-color);
                overflow: hidden;
                width: 10rem;

                img {
                    height: 100%;
                    object-fit: cover;
                    width: 100%;
                }
            }

            .description-text {
                span {
                    margin-left: 1rem;
                }

                strong {
                    font-size: 1.25rem;
                    font-style: italic;
                }
            }
        }

        @media (max-width: 768px) {}

        @media (min-width: 768px) {

            .welcome-text {
                strong {
                    margin-right: .3rem;
                }

                br {
                    display: none;
                }

                span {
                    font-size: 1.5rem;
                    white-space: nowrap;
                }
            }

            .content-container {
                figure {
                    float: left;
                    margin: 1rem;
                }

                section {
                    justify-content: end;
                }
            }
        }
    }
}

.projects-section {
    margin-top: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--theme-color);
    line-height: 1.2;
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background-color: var(--color-black-soft);
    border-radius: .5rem;
    border: 4px solid var(--theme-color);
    overflow: hidden;
    transition: all .3s ease;
}

.project-image-container {
    position: relative;
    height: 14rem;
    overflow: hidden;
    border-bottom: 4px solid var(--theme-color);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.image-overlay {
    background-color: rgba(0, 0, 0, .3);
    inset: 0;
    position: absolute;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.project-title {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--theme-color);
}

.project-description {
    color: var(--color-white);
    line-height: 1.75;
    font-size: 1rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 0.5rem;

    .tech-badge {
        background-color: var(--color-white);
        border-radius: .5rem;
        border: 2px solid var(--theme-color);
        color: var(--color-black);
        font-size: 0.8rem;
        font-weight: bold;
        padding: .3rem .5rem;
    }
}

.project-button {
    background-color: var(--theme-color);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;

    &:hover {
        background-color: var(--color-white);
        color: var(--color-black);
        transform: translateX(5px);
    }

    svg {
        transition: transform 0.3s ease;

        :hover svg {
            transform: translateX(5px);
        }
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-section {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .projects-section {
        padding: 0 2rem;
    }
}

.tech-stack-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;

    .tech-item {
        text-align: center;

        .tech-name {
            font-size: 1.5rem;
            font-weight: bold;

            &.html {
                color: #e34c26;
            }

            &.css {
                color: #264de4;
            }

            &.javascript {
                color: #f0db4f;
            }
        }
    }
}

.tech-plus {
    font-size: 1.875rem;
    font-weight: bold;
}

.header-contact {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    justify-content: end;
    margin-bottom: 5rem;

    .social-link {
        border-radius: .5rem;
        padding: .3rem;
        transition: background-color .3s ease;
        cursor: pointer;

        &:hover {
            background-color: var(--theme-color);
        }
    }

    .email-container {
        position: relative;
        display: inline-block;
    }
}