.about-container {
    display: flex;
    align-items: stretch; 
    justify-content: left;
    margin: 120px 40px 0; 
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeInUp 1s forwards; 
}

.portfolio-container {
    display: flex;
    align-items: stretch; 
    justify-content: right;
    margin: 40px;
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeInUp 1s forwards; 
}

.about-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 10px;
    max-width: 700px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px; 
    opacity: 0; 
    animation: fadeIn 1s 0.5s forwards; 
    flex: 1; 
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 10px;
    max-width: 700px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    margin-left: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0; 
    animation: fadeIn 1s 0.5s forwards; 
    flex: 1; 
}

.banner-image, .portfolio-image {
    width: 40%;
    max-height: 460px;
    border-radius: 20px;
    object-fit: cover;
    opacity: 0; 
    animation: fadeIn 1s 1.5s forwards;
}

.about-content h1, .portfolio-content h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #da251c;
    text-align: center;
}

.about-content p {
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    text-align: left; 
    margin-bottom: 10px;
}

.portfolio-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    text-align: center; 
    margin-bottom: 10px;
}

.portfolio-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #0091e0;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 20px auto;
}

.portfolio-button:hover {
    background-color: #0056b3;
}

.social-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 100px 20px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.social-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: left;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 10px;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
    opacity: 0;
    animation: fadeIn 1s 2.3s forwards; 
    flex: 1;
}

.social-content h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #da251c;
    text-align: center;
}

.social-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    text-align: left; 
    margin-bottom: 10px;
}

.social-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 45%;
    max-width: 300px;
    padding: 20px;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.social-card-content {
    text-align: center;
}

/* Animações */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .about-container {
        flex-direction: column;
        align-items: center;
        margin: 20px 10px;
    }

    .portfolio-container {
        flex-direction: column-reverse;
        align-items: center;
        margin: 20px 10px;
    }

    .about-content, .portfolio-content {
        max-width: 100%;
        margin: 10px 0;
        padding: 15px;
    }

    .banner-image {
        width: 100%;
        max-height: 300px;
    }

    .portfolio-image {
        width: 100%;
        max-height: 300px;
        margin-top: 20px;
    }

    .about-content h1, .portfolio-content h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .about-content p, .portfolio-content p {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .portfolio-button {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .social-container {
        margin: 50px 10px 0;
    }

    .social-content {
        max-width: 100%;
        margin: 10px 0;
        padding: 15px;
    }

    .social-content h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .social-content p {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .social-cards {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .social-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

