@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --cor-fundo: #0B0914;
    --cor-destaque: #fffb02;
}

a, p {
    font-family: 'IBM Plex Mono', monospace;
    text-decoration: none;
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
	font-weight: 700;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--cor-destaque);
}

body {
    background: var(--cor-fundo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 42px;
    background: #18181B;
    border: 1px solid #27272A;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 14px;
}

.about .left h3{
    color: #BDBDBD;
    font-size: 24px;
    font-weight: 400;
}

.about .left .info{
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about .left .info h2{
    font-size: 36px;
    color: #fff;
    font-weight: 500;
}

.about .left .info p{
    font-size: 20px;
    color: #BDBDBD;
}

.about .left .info .buttons{
    display: flex;
    gap: 14px;
}

.about .left .info .buttons button{
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about .left .info .buttons button.hire{
    color: #fff;
    background: #388E3C;
    border: 1px solid #171717;
}

.about .left .info .buttons button.hire:hover{
    background: #4CAF50;
}

.about .left .info .buttons button.email{
    color: #BDBDBD;
    border: 1px solid #27272A;
    background: #171717;
}

.about .left .info .buttons button.email:hover{
    background: #000;
}

.about .right a.online,
footer a.online{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #171717;
    border: 1px solid #27272A;
    padding: 4px 15px;
    border-radius: 14px;
    font-size: 13px;
}

.about .right a.online i,
footer a.online i{
    color: #4CAF50;
    font-size: 9px;
}

.about .right img{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid #2c2c2c;
    object-fit: cover;
    margin-top: 70px;
}

.works{
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.works .left{
    flex: 1;
    background: #18181B;
    padding: 60px 40px;
    border-radius: 14px;
    border: 1px solid #27272A;
}

.works .left h3{
    color: #BDBDBD;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.works .left h3 i{
    font-size: 8px;
}

.works .left .works-list{
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.works .left .works-list .item{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.works .left .works-list .item .work-info h5{
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

.works .left .works-list .item .work-info h5.active{
    color: #388E3C;
}

.works .left .works-list .item .work-info p{
    margin-top: 12px;
    color: #BDBDBD;
    font-size: 20px;
}

.works .left .works-list .item > p {
    font-size: 20px;
    color: #BDBDBD;
}

.works .right{
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 40% auto;
    gap: 20px;
}

.works .right .item:first-child{
    grid-column: span 2;
}

.works .right .item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #18181B;
    border: 1px solid #27272A;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.works .right .item:hover a{
    color: #388E3C;
}

.works .right .item a{
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.works .right .item > p{
    color: #BDBDBD;
    font-size: 17px;
    line-height: 26px;
}

.works .right .item:not(:first-child){
    gap: 14px;
}

.works .right .item:not(:first-child) a{
    font-size: 18px;
}

.works .right .item:not(:first-child) p{
    font-size: 15px;
}

.project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 42px;
    background: #18181B;
    border: 1px solid #27272A;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 14px;
}

.project .left, .project .right {
    flex: 1;
}

.project .left {
    text-align: center;
    line-height: 1.6;
}

.project .left h5 {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

.project .left p {
    color: #BDBDBD;
    font-size: 20px;
}

.project .right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.project .right img {
    width: 500px;
    height: auto;
    border-radius: 14px;
    border: 1px solid #27272A;
    object-fit: contain;
}

footer{
    margin-top: 10px;
    display: flex;
}

footer > a{
    font-size: 24px;
    font-weight: 500;
}

footer .socials{
    display: flex;
    align-items: center;
    gap: 12px;
}

footer .socials a{
    font-size: 20px;
    font-weight: 500;
    color: #BDBDBD;
}

.projetos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 400px;
    align-items: center;
}

input, textarea {
    width: 100%;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

p:not(div > p) {
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #BDBDBD;
}

h1:not(div > h1), .title h1 {
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

main {
    margin-bottom: 90px;
    width: 100%;
    max-width: 1100px;
}

#sobre {
    margin-top: 72px;
}

section {
    margin-bottom: 300px;
}

/* projetos moved to projetos.css */

.profile-video {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 400px;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 400px;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    filter: brightness(50%);
}

.profile-vignette {
    position: absolute;
    bottom: 0; left: 0;
    width: 100vw;
    height: 20vh;
    min-height: 50px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(11,9,20,0.97) 0%,
        rgba(11,9,20,0.85) 30%,
        rgba(11,9,20,0.6) 60%,
        rgba(11,9,20,0.18) 85%,
        rgba(11,9,20,0) 100%
    );
}

.profile-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #fff;
    text-shadow: 0 4px 24px #000b, 0 1px 2px #000a;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center; 
    text-align: center;
    pointer-events: none;
}

.profile-title span {
    color: var(--cor-destaque);
    text-shadow: 0 0 8px var(--cor-destaque), 0 0 4px var(--cor-destaque);
}

.profile-title h1 {
    font-size: 6vh;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    background: none;
    padding: 12px 0 0 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: auto;
}

.profile-title h3 {
    font-size: 2.5vh;
    font-weight: 400;
    color: var(--cor-destaque);
    margin-top: 10px;
    letter-spacing: 1px;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* topbar moved to topbar.css */


.contato-redes {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin-top: 28px;
}

.contato-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.7rem;
    background: #23283a;
    color: var(--cor-destaque);
    border: 2px solid var(--cor-destaque);
    transition: transform 0.18s, background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #0002;
    text-align: center;
}

.contato-btn:hover,
.contato-btn:focus {
    transform: scale(1.18);
    background: #23283a;
    color: var(--cor-destaque);
    border-color: var(--cor-destaque);
    box-shadow: 0 4px 16px #0004;
}

/* habilidades moved to habilidades.css */

.profile-down-arrow {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    animation: arrow-bounce 1.6s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
}

.profile-down-arrow i {
    font-size: 2.1rem;
    color: #fff;
    opacity: 0.92;
    filter: drop-shadow(0 2px 8px #000b);
    line-height: 1;
}

.profile-down-arrow i + i {
    margin-top: -0.5em;
    font-size: 2.7rem;
}

@keyframes arrow-bounce {
    0%   { transform: translateX(-50%) translateY(0); }
    50%  { transform: translateX(-50%) translateY(18px);}
    100% { transform: translateX(-50%) translateY(0);}
}

.sobre-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%;
    margin-top: 32px;
}

.sobre-foto {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sobre-foto img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cor-destaque);
    background: #23283a;
    box-shadow: 0 2px 12px #0003;
}

.sobre-texto {
    flex: 1 1 0;
    text-align: left;
    font-size: 1.15rem;
    color: #BDBDBD;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .sobre-flex {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }
    .sobre-texto {
        text-align: center;
        font-size: 1rem;
    }
    .sobre-foto img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 700px) {
    /* Ajustes para telas pequenas: reduz a altura do vídeo e do vignette
       e centraliza o título do profile na viewport */
    .profile-video {
        height: 60vw;
        min-height: 220px;
    }
    .bg-video,
    .profile-vignette {
        height: 60vw;
        min-height: 220px;
    }
    .profile-title {
        top: 60%;
        left: 50%;
        right: auto;
        width: 100%;
        transform: translate(-50%, -50%);
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .profile-title h1 {
        font-size: 2rem;
        padding: 8px 18px 8px 10px;
    }

    /* topbar mobile adjustments moved to topbar.css */
}

@media screen and (max-width: 1220px) {
    
    .about{
        padding: 60px 30px;
    }

    .works{
        flex-direction: column;
    }

    .works .left,
    .works .right .item,
    footer{
        padding: 40px 30px;
    }

    .works .right{
        grid-template-rows: auto auto;
    }

}

@media screen and (max-width: 992px) {
    nav .title{
        padding: 0 40px;
    }

    footer > a{
        font-size: 20px;
    }

    footer .socials a{
        font-size: 16px;
    }

}

@media screen and (max-width: 768px) {
    
    nav .title a{
        font-size: 16px;
    }

    .about{
        flex-direction: column-reverse;
        gap: 20px;
        padding: 30px;
    }

    .about .left .info{
        margin-top: 30px;
    }

    .about .right img{
        margin-top: 20px;
    }



    footer a.online{
        display: none;
    }

}

@media screen and (max-width: 576px) {

    .about .left .info h2{
        font-size: 30px;
    }

    .about .left .info p,
    .works .left .works-list .item .work-info p,
    .works .left .works-list .item > p{
        font-size: 16px;
    }

    .about .left .info .buttons button{
        font-size: 14px;
    }

    .works .left .works-list{
        margin-top: 40px;
    }

    .works .left .works-list .item .work-info h5,
    .works .right .item a{
        font-size: 20px;
    }

    .works .right .item > p,
    .works .right .item:not(:first-child) a{
        font-size: 15px;
    }

    .works .right .item:not(:first-child) p{
        font-size: 13px;
    }

}

/* projetos responsive rules moved to projetos.css */