/* base */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: "Source Code Pro", monospace;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 20px;
}

/* layout global*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content {
    min-height: 65vh;
    padding: 25px 0;
}

header {
    width: 100%;
    padding: 15px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

footer {
    margin-top: 50px;
    padding: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* botões */
.button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    white-space: nowrap;
    transition: 0.5s;
}

.button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.button-border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #4174ff;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.5s;
}

.button-border:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.button-border .material-symbols-outlined {
    font-size: 20px;
}

/* topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: block;
    height: 50px;
}

.topbar nav {
    display: flex;
    gap: 20px;
}

.topbar nav a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* seções */
.about-me {
    margin-top: 20px;
    margin-bottom: 45px;
}

.contact {
    margin-top: 40px;
}

/* projetos */
.projects {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 515px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    white-space: normal;
    transition: 0.5s;
}

.project-card:hover {
    border-color: #4174ff;
}

/* timeline da jornada */
.journey {
    margin-top: 60px;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    margin-left: 10px;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 0;
    left: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -36px;
    width: 14px;
    height: 14px;
    background-color: #4174ff;
    border: 2px solid #000;
    border-radius: 50%;
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    color: #4174ff;
    font-size: 1.1rem;
}

.timeline-content p {
    margin: 0;
    color: #cccccc;
}

/* mobile */
@media (max-width: 768px) {

    /* ajustes Gerais */
    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 20px;
    }

    .content {
        padding-top: 10px;
    }

    /* navegação */
    .topbar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .topbar nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .button {
        padding: 8px 12px;
        background-color: rgba(255, 255, 255, 0.05);
        font-size: 0.9rem;
    }

    /* rrojetos */
    .project-card {
        max-width: 100%;
    }

    .project-card img {
        width: 100%;
        max-height: auto;
    }

    /* timeline */
    .timeline {
        padding-left: 25px;
    }

    .timeline-dot {
        left: -32px;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }
}