* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #161616;
    color: #bdbdbd;
    font-size: 18px;
    line-height: 1.2;
    overflow-x: hidden;
}

/* INICIO HEADER DESKTOP */
header {
    background-color: #161616;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 132px;
    height: 58px;
    background: url('../imagens-bci/bruno-costa-2d-and-3dd-artist-logo.svg') 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.svg');
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #fff;
    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: #000;
    background-color: #fff;
}
/* FIM HEADER DESKTOP */

/* INICIO CONTAINER PRINCIPAL */
.main-container {
    background-color: #161616;
}

/* INICIO LINHA 1 DESKTOP */
.row-1 {
    display: flex;
    min-height: 567px;
    margin-bottom: -40px;
}

/* INICIO PORTFOLIO SECTION DESKTOP */
.portfolio-section {
    flex: 1.27;
    padding: 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 397px);
    grid-template-rows: repeat(2, 272px);
    gap: 20px;
    max-width: 1240px;
}

.portfolio-card {
    position: relative;
    width: 397px;
    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: 0.63;
    padding: 40px 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-avatar {
    width: 146px;
    height: 157px;
    margin-bottom: 30px;
    background: url('../imagens-bci/about-me-avatar.svg') no-repeat center;
    background-size: contain;
    transition: background-image 0.3s;
}

.about-section:hover .about-avatar {
    background-image: url('../imagens-bci/about-me-avatar-hover.gif');
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    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: #161616;
}

/* 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: #000000;
    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: #fff;
    display: inline;
    margin-right: 10px;
}

.newsletter-text p {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #bdbdbd;
    display: inline;
    line-height: 1;
}

.newsletter-form {
    display: flex;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
}

.newsletter-form input {
    background: #3c343e;
    border: none;
    padding: 10px 15px;
    color: #888;
    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: #4a404a;
    color: #bfbfbf;
}

.newsletter-form button {
    background: #fff;
    color: #000;
    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: #252126;
    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(2, 1fr);
    gap: 60px;
    width: 100%;
    max-width: 600px;
}

.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.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: #bdbdbd;
    text-decoration: none;
    transition: color 0.3s;
}

.shop-item p a:hover {
    color: #fff;
}

.btn-shop {
    background: #fff;
    color: #000;
    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: #000;
    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: #3c343e;
    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: #bdbdbd;
}

.form-group input,
.form-group textarea {
    background: #161616;
    border: none;
    padding: 12px;
    color: #bdbdbd;
    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: #888;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #252126;
    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: #fff;
    color: #000;
    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: #000;
    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: #161616;
    padding: 30px;
    text-align: center;
    font-size: 14px;
    color: #888;
}
/* 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) {
    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 img {
        width: 120px;
        margin-bottom: 20px;
    }

    .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 #161616;
        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 */