@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1e293b;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    font-size: 16px;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.hero, .about, .technologies, .projects {
    scroll-margin-top: 100px;
    padding: 80px 20px;
}

section h1{
    margin-bottom: 18px;
    margin-top: 32px;
}

.contacts{
    margin-bottom: 24px
}

header {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 20px 0;
    flex-wrap: wrap;
}

header a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: 0.2s;
}

header a:hover {
    color: #f59e0b;
}

p {
    color: #94a3b8;
    margin-bottom: 16px;
}

h1, h2 {
    color: #fff;
}

h1 {
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.presentation-h1{
    text-align: left;
}

h3 {
    color: #f59e0b;
    margin-bottom: 10px;
}

.highlight {
    color: #f59e0b;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #f59e0b, transparent);
    margin: 32px 0;
}

.hero {
    max-width: 1000px;
    margin: auto;
}

.presentation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.presentation-text {
    max-width: 500px;
    text-align: justify;
}

.presentation-h1 {
    font-size: 32px;
}

.presentation-h3 {
    font-size: 20px;
}

.matheus-img {
    width: 100%;
    max-width: 320px;
    border-radius: 50%;
    transition: 0.3s;
}

.matheus-img:hover {
    transform: scale(1.05);
}

.about {
    max-width: 1500px;
    margin: auto;
}

.about-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
}

.about-box {
    background-color: #1f2937;
    border: 1px solid #334155;
    border-radius: 12px;

    padding: 20px;
    max-width: 280px;

    transition: 0.2s;
}

.about-box:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
}

.about-box p {
    font-size: 14px;
}

.examples {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-1, .project-2, .project-3 {
    display: flex;
    flex-direction: column;

    background-color: #1f2937;
    border: 1px solid #334155;
    border-radius: 12px;

    padding: 20px;
    max-width: 350px;

    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.project-1:hover, .project-2:hover, .project-3:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
}

.preview-img {
    width: 100%;
    border-radius: 10px;
    opacity: 0.85;
}

.project-img-container {
    position: relative;
}

.project-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.7);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    opacity: 0;
    transition: 0.3s;
}

.project-img-container:hover .project-overlay {
    opacity: 1;
}

.project-overlay a {
    background-color: #f59e0b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.project-overlay a:hover {
    background-color: #d97706;
}

.technologies {
    max-width: 1000px;
    margin: auto;
    padding: 24px;
}

.tech {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: #1f2937;
    border: 1px solid #334155;
    border-radius: 12px;

    padding: 16px;
    width: 110px;

    transition: 0.2s;
}

.tech-sub{
    text-align: center;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
}

.tech-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tech-item p {
    font-size: 13px;
    margin-top: 8px;
}

.infos {
    max-width: 1000px;
    margin: auto;
    padding: 18px;
}

.infos ul {
    list-style: none;
    width: fit-content;
    margin: 0 auto;
    text-align: left;
}

.infos li {
    margin-bottom: 10px;
    color: #fff;
}

.infos a {
    color: white;
}

footer {
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 8px;
}

@media 
(max-width: 768px) {

    header {
        gap: 20px;
    }

    .presentation {
        flex-direction: column;
        text-align: center;
    }

    .examples {
        flex-direction: column;
        align-items: center;
    }

    .matheus-img {
        max-width: 200px;
    }
}