* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #FFF6E1;
    color: #3C343E;
    font-size: 18px;
    line-height: 1.2;
    overflow-x: hidden;
}

/* INICIO HEADER DESKTOP */
header {
    background-color: #FFF6E1;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 150px;
    height: 62px;
    background: url('../imagens-bci/bruno-costa-2d-and-3dd-artist-logo.png') no-repeat center;
    background-size: contain;
    display: block;
    transition: background-image 0.3s;
}

.logo:hover {
    background-image: url('../imagens-bci/bruno-costa-2d-and-3dd-artist-logo-hover.png');
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #3C343E;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover {
    color: #fff;
    background-color: #3C343E;
}

/* FIM HEADER DESKTOP */

/* INICIO CONTAINER PRINCIPAL */
.main-container {
    background-color: #FFF6E1;
}

/* INICIO LINHA 1 DESKTOP */
.row-1 {
    display: flex;
    min-height: 567px;
    margin-bottom: -40px;
}

/* INICIO PORTFOLIO SECTION DESKTOP */
.portfolio-section {
    width: 100%;
    padding: 40px;
    padding-bottom: 90px;
    /* Espaçamento inferior solicitado */
    display: flex;
    justify-content: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Colunas */
    gap: 20px;
    max-width: 1700px;
    /* Aumentado para caber 4 colunas confortavelmente */
    width: 100%;
}

.portfolio-card {
    position: relative;
    width: 100%;
    /* Largura flexível para se adaptar à grid */
    height: 272px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}



.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.portfolio-card:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay img {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.card-overlay h3 {
    color: #fff;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

/* FIM PORTFOLIO SECTION DESKTOP */

/* INICIO ABOUT ME SECTION DESKTOP */
.about-section {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Centralizar verticalmente */
    justify-content: center;
    text-align: left;
    background-color: #EFE9DB;
    gap: 0;
}

.about-avatar-container {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-avatar {
    width: 100%;
    max-width: 380px;
    /* Aumentado para dar mais destaque */
    aspect-ratio: 154 / 165;
    /* Mantém a proporção original */
    height: auto;
    margin-bottom: 0;
    background: url('../imagens-bci/about-me-avatar.png') no-repeat center;
    background-size: contain;
    transition: background-image 0.3s;
    flex-shrink: 0;
}

.about-text {
    width: 60%;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
}

.about-text h2 {
    margin-top: 0;
}

.about-section:hover .about-avatar {
    background-image: url('../imagens-bci/about-me-avatar-hover.png');
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #3C343E;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* FIM ABOUT ME SECTION DESKTOP */
/* FIM LINHA 1 DESKTOP */

/* INICIO LINHA 2 DESKTOP */
.row-2 {
    display: flex;
    min-height: 213px;
    background-color: #FFF6E1;
}

/* INICIO NEWSLETTER SECTION DESKTOP */
.newsletter-section {
    flex: 1.27;
    padding: 40px;
    display: flex;
    align-items: center;
}

.newsletter-box {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 1240px;
    background-color: #EFE9DB;
    padding: 17px;
    border-radius: 4px;
}

.newsletter-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.newsletter-text {
    flex: 0;
    white-space: nowrap;
    margin-right: 10px;
}

.newsletter-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2a252c;
    display: inline;
    margin-right: 10px;
}

.newsletter-text p {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #2a252c;
    display: inline;
    line-height: 1;
}

.newsletter-form {
    display: flex;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
}

.newsletter-form input {
    background: #fff;
    border: none;
    padding: 10px 15px;
    color: #2a252c;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 300;
    border-radius: 4px;
    width: 180px;
    line-height: 1;
}

.newsletter-form input[type="email"] {
    border-radius: 4px 0 0 4px;
    border-left: none;
    margin-left: 20px;
}

.newsletter-form input::placeholder {
    color: #888;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 300;
}

.newsletter-form input:focus {
    outline: none;
    background: #2a252c;
    color: #bfbfbf;
}

.newsletter-form button {
    background: #fff;
    color: #3C343E;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #161616;
    color: #fff;
}

/* FIM NEWSLETTER SECTION DESKTOP */

/* INICIO SOCIAL MEDIA SECTION DESKTOP */
.social-section {
    flex: 0.63;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.social-section h2 {
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 170px;
    margin-left: -20px;
    justify-content: space-between;
}

.social-links a {
    position: relative;
    display: inline-block;
    height: 26px;
}

.social-links img {
    height: auto;
    vertical-align: middle;
}

.social-links img.artstation {
    width: 112px;
    height: 21px;
}

.social-links img.behance {
    width: 90px;
    height: 17px;
}

.social-links img.youtube {
    width: 60px;
    height: 25px;
}

.social-links img.small-icon {
    width: 26px;
    height: 26px;
}

.social-links a img {
    transition: opacity 0.3s;
}

.social-links a:hover img {
    opacity: 0;
}

.social-links a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.social-links a:hover::after {
    opacity: 1;
}

.social-links a:nth-child(1)::after {
    background-image: url('../imagens-bci/youtube-hover.png');
}

.social-links a:nth-child(2)::after {
    background-image: url('../imagens-bci/linkedin-hover.png');
}

.social-links a:nth-child(3)::after {
    background-image: url('../imagens-bci/instagram-hover.png');
}

/* FIM SOCIAL MEDIA SECTION DESKTOP */
/* FIM LINHA 2 DESKTOP */

/* INICIO LINHA 3 DESKTOP */
.row-3 {
    display: flex;
    min-height: 567px;
}

/* INICIO SHOP SECTION DESKTOP */
.shop-section {
    flex: 1;
    background-color: #EFE9DB;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shop-section h2 {
    margin-bottom: 20px;
}

.shop-section>p {
    margin-bottom: 60px;
    text-align: center;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    width: 100%;
    max-width: 800px;
}

.shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.shop-logo {
    margin-bottom: 20px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-logo img {
    max-height: 100%;
    width: auto;
}

.shop-logo img.amazon {
    width: 145px;
    height: 45px;
}

.shop-logo img.inprnt {
    width: 108px;
    height: 45px;
}

.shop-logo img.threadless {
    width: 109px;
    height: 53px;
}

.shop-item p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.shop-item p a {
    color: #3C343E;
    text-decoration: none;
    transition: color 0.3s;
}

.shop-item p a:hover {
    color: #fff;
}

.btn-shop {
    background: #3C343E;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 160px;
}

.btn-shop:hover {
    background: #3C343E;
    color: #fff;
    padding-right: 48px;
}

.btn-shop .icon {
    width: 20px;
    height: 20px;
    opacity: 0;
    position: absolute;
    right: 18px;
    transition: opacity 0.3s;
}

.btn-shop:hover .icon {
    opacity: 1;
}

/* FIM SHOP SECTION DESKTOP */

/* INICIO CONTACT SECTION DESKTOP */
.contact-section {
    flex: 1;
    background-color: #fffcf5;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section>p {
    margin-bottom: 40px;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    width: 100%;
    max-width: 700px;
}

.form-column-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-column-right {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #161616;
}

.form-group input,
.form-group textarea {
    background: #EFE9DB;
    border: none;
    padding: 12px;
    color: #3C343E;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 300;
    border-radius: 4px;
    line-height: 1;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #474540;
    color: #bfbfbf;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    flex: 1;
    line-height: 1.3;
}

.btn-send {
    margin-top: 20px;
    align-self: flex-end;
    background: #3C343E;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 180px;
}

.btn-send:hover {
    background: #3C343E;
    color: #fff;
    padding-right: 48px;
}

.btn-send .icon {
    width: 20px;
    height: 20px;
    opacity: 0;
    position: absolute;
    right: 18px;
    transition: opacity 0.3s;
}

.btn-send:hover .icon {
    opacity: 1;
}

/* FIM CONTACT SECTION DESKTOP */
/* FIM LINHA 3 DESKTOP */

/* INICIO FOOTER DESKTOP */
footer {
    background-color: #3C343E;
    padding: 40px 20px;
    color: #888;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-social h2 {
    color: #fff;
    font-size: 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    margin: 0 !important;
    /* Sobrescreve margem negativa do social-links original */
    width: auto !important;
    gap: 30px !important;
}

.footer-copyright {
    font-size: 14px;
    border-top: 1px solid #555;
    padding-top: 20px;
    width: 100%;
    text-align: center;
}

/* FIM FOOTER DESKTOP */

/* INICIO RESPONSIVE TABLET */
@media (max-width: 1200px) {

    .row-1,
    .row-2,
    .row-3 {
        flex-direction: column;
    }

    .row-1 {
        margin-bottom: 0;
    }

    .portfolio-section,
    .about-section,
    .newsletter-section,
    .social-section,
    .shop-section,
    .contact-section {
        flex: 1;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        grid-template-rows: auto;
    }

    .portfolio-card {
        width: 100%;
        height: 272px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        width: auto;
    }

    .about-section {
        padding: 40px;
    }
}

/* FIM RESPONSIVE TABLET */

/* INICIO RESPONSIVE MOBILE */
@media (max-width: 768px) {

    /* Ajuste About Section Mobile */
    .about-section {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 40px !important;
        gap: 20px !important;
    }

    .about-avatar-container {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 20px !important;
    }

    .about-avatar {
        margin-bottom: 0 !important;
    }

    .about-text {
        text-align: center !important;
        width: 100% !important;
        padding-left: 0 !important;
    }

    /* Fim Ajuste About Section Mobile */

    header {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portfolio-card {
        width: 100%;
        height: auto;
        aspect-ratio: 397/272;
    }

    /* CARDS MOBILE - OVERLAY SEMPRE VISÍVEL */
    .portfolio-card::before {
        background: rgba(0, 0, 0, 0.5);
    }

    .portfolio-card img {
        transform: scale(1.1);
    }

    .card-overlay {
        opacity: 1;
    }

    .card-overlay h3 {
        display: none !important;
        /* Oculta títulos no mobile, exibe apenas logos */
    }

    .card-overlay img {
        width: 120px;
        margin-bottom: 0;
        /* Remove margem inferior já que título foi removido */
    }



    .card-overlay h3 {
        font-size: 18px;
    }

    /* FIM CARDS MOBILE */

    .newsletter-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .newsletter-text {
        white-space: normal;
        margin-bottom: 15px;
    }

    .newsletter-text h3,
    .newsletter-text p {
        display: block;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
        border-radius: 4px 4px 0 0;
    }

    .newsletter-form input[type="email"] {
        border-radius: 0;
        border-left: none;
        border-top: 1px solid #3C343E;
        margin-left: 0;
    }

    .newsletter-form button {
        border-radius: 0 0 4px 4px;
        width: 100%;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-column-right {
        margin-top: 20px;
    }

    .btn-send {
        align-self: center;
    }
}

/* FIM RESPONSIVE MOBILE */

/* INICIO RESPONSIVE MOBILE PEQUENO */
@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .card-overlay img {
        width: 100px;
        margin-bottom: 15px;
    }

    .card-overlay h3 {
        font-size: 16px;
    }
}

/* FIM RESPONSIVE MOBILE PEQUENO */