*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
body{
    background-color: #112233;
    color: #FFF;
    font-family: Arial, Helvetica, sans-serif;
}
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #285078;
    padding: 0 10%;
    height: 100px;
    gap: 10px;
}
header a{
    text-decoration: none ;
    color: #FFF;
    transition: .5s;
    flex-grow: 1;
    
}
header a:hover{
    text-decoration: underline;
}
nav{
    width: 50%;
}
nav ul{
    list-style-type: none;
    display: flex;
    justify-content: space-between;
}

li a{
    display: inline-block;
    font-weight: 600;
    transition: 0.5s;
}
li a:hover{
    transform: scale(1.3);
} 

main{
    margin: 5% 10%;
}

section{
    margin-bottom: 5%;
}

section h2{
    margin-bottom: 2%;
    font-size: 2rem;
}

/* Seção Sobre Mim */
#sobre-mim{
    display: flex;
    gap: 40px;
    align-items: start;
}

#sobre-mim img{
    width:40%;
 border-radius: 50px;
 transition: .5s;
}
#sobre-mim img:hover{
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#sobre-mim p{
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.05rem;
    text-align: start;
    text-indent: 25px;
}

#sobre-mim p span, .marca-texto{
    padding: 2px 8px;
}

.typescript{
    background-color:#4180c0 ;
}
.angular{
    background-color: #E226B4;
}
.react{
    background-color: #61DAEE;
}
.node-js{
    background-color: #65B94A;
}
.mongo{
    background-color:#00ED64
}
.sql{
    background-color: #F29100;
}
.php{
    background-color: #777BB4;
}
.js{
    background-color: #d6bf2c;
}
#sobre-mim a{
    color: #6ccefc;
    font-weight: bold;   
}

.marca-texto{
    background-color: #f1f523;
    font-weight: bold;
    color: #112233;
}
/*Linha do Tempo*/
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
}

/* Linha branca horizontal */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #ffffff;
}

/* Item individual */
.timeline-item {
    position: relative;
    width: 25%;
    text-align: center;
}

/* Linha pontilhada vertical */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    border-left: 2px dotted #ffffff;
}

/* Texto */
.item-info {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: center;
}

.item-info span:first-child {
    font-size: 16px;
    font-weight: 500;
}

.item-info span:last-child {
    font-size: 14px;
    font-weight: bold;
}

/* Grid de Projetos - Cards */
.grid-projetos{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2%;
}

.card{
    background-color: rgba(40, 80, 120, 0.3);
    border: 1px solid rgba(40, 80, 120, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover{
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(40, 80, 120, 0.5);
    border-color: #285078;
}

.card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: rgba(40, 80, 120, 0.2);
}

.card h3{
    font-size: 1.5rem;
    margin: 15px;
    color: #FFF;
}

.card p{
    margin: 0 15px;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #ddd;
}
.card .tags{
    display: flex;
    gap: 10px;
    margin: 0 15px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    justify-content: flex-end;
    
    flex-wrap: wrap;
}
.tags span{
    color: #FFF;
    border-radius: 4px;
    padding: 2px 6px;
    max-height: 20px;
}
.card a{
    display: flex;
    margin: 15px;
    padding: 5px 10px;
    background-color: #285078;
    color: #FFF;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: 1px solid #285078;
    align-self: flex-start;
    font-weight: bold;
    align-items: center;
    gap: 8px;
}

.card a:hover{
    box-shadow: 0 10px 25px rgba(40, 80, 120, 0.5);
}

.card a img{
    height: 32px;
    width: 32px;    
}



/* Footer */
footer{
    padding: 0 10%;
    background-color: #285078;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-socials{
    display: flex;
    gap: 20px;
    align-items: center;
}

.media-socials a{
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #FFF;
    transition: 0.3s;
}

.media-socials a:hover{
    color: #112233;
}

.media-socials a img{
    height: 24px;
    width: 24px;
}

.media-socials span{
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width:600px){
    header{
        flex-direction: column;
        padding: 10px;
        height: auto;
        gap: 15px;
    }
    
    nav{
        width: 100%;
    }
    
    nav ul{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    main{
        margin: 5%;
    }
    
    section h2{
        font-size: 1.5rem;
    }
    
    #sobre-mim p{
        font-size: 0.95rem;
    }
    #sobre-mim{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    footer{
        flex-direction: column;
        height: auto;
        gap: 15px;
        padding: 15px 5%;
    }
    
    .media-socials{
        flex-direction: column;
        align-items: flex-start;
    }
    
    .grid-projetos{
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Para telas menores que 330px - Timeline vertical */
@media (max-width:330px){
    .timeline-item{
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .timeline-item span:last-child{
        align-self: flex-start;
        margin-top: 10px;
    }
}