/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

body {
    background-color: #181818;
    color: #fff;
    text-align: center;
    font-size: 1.3em;
}

/* Navbar */
nav {
    background-color: #1f1f1f;
    padding: 20px;
    width: 90%;
    max-width: 1050px;
    margin: 20px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.logo-tema {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav img {
    max-height: 60px;
    height: auto;
    width: auto;
    max-width: 150px;
}

nav .menu-toggle {
    display: none;
}

nav .menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

nav .menu-icon .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-left: auto;
    padding: 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #800080;
}

@media (max-width: 768px) {
    nav .menu-icon {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #1f1f1f;
        width: 100%;
        z-index: 1;
    }

    nav .menu-toggle:checked ~ ul {
        display: flex;
    }

    body.light nav ul {
        background-color: white;
    }
}

.botao-tema {
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
    margin-left: 15px;
}

.card {
    background-color: #1f1f1f;
    padding: 40px;
    margin: 60px auto;
    width: 90%;
    max-width: 1050px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero .foto {
    width: 20vw;
    max-width: 200px;
    border-radius: 50%;
    margin-right: 20px;
    order: 2;
}

.hero .info {
    flex: 1;
}

.hero .titulo-home {
    background: linear-gradient(to right, #800080, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero .foto {
        order: 0;
        margin: 0 0 20px 0;
        width: 50vw;
        max-width: 150px;
    }

    .hero .info {
        order: 1;
    }
}

.sobre .contatos {
    margin-top: 10px;
}

.sobre .contatos a {
    margin-right: 25px;
    color: inherit;
    font-size: 30px;
}

.sobre p {
    text-align: justify;
}

.icones {
    margin: 10px 0;
    width: 100%;
    padding: 5px;
    display: inline-block;
    text-align: center;
}

.icones i {
    width: 10px;
    margin: 10px 50px 10px 10px;
    font-size: 60px;
}

.projetos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.titulo-projeto {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.lista-projetos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.projetos .projeto {
    background: #252525;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    text-align: left;
}

.projeto img {
    width: 100%;
    border-radius: 10px;
}

.projeto p {
    max-height: 4.5em;
    overflow-y: auto;
    padding-right: 5px;
    text-align: justify;
}

.projeto p::-webkit-scrollbar {
    width: 5px;
}

.projeto p::-webkit-scrollbar-thumb {
    background-color: #800080;
    border-radius: 5px;
}

.projeto a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    padding: 10px;
    background-color: #FFD700;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.skills {
    background-color: #1f1f1f;
    padding: 40px;
    margin: auto;
    width: 100%;
    max-width: 1050px;
    display: inline-block;
    text-align: center;
}

.botao {
    display: inline-block;
    background: linear-gradient(to right, #800080, #ff69b4);
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.botao:hover {
    background: linear-gradient(to right, #6a0080, #ff1493);
}

.tech-card {
    display: inline-block;
    background-color: #2a2a2a;
    border-radius: 10px;
    width: 100px;
    height: 120px;
    margin: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.3s;
}

.tech-card img {
    width: 50px;
    height: 50px;
}

.tech-card span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: inherit;
}

.tech-card:hover {
    transform: scale(1.1);
    background-color: #444;
}

.grupo-tecnologias h3 {
    text-align: left;
    margin-top: 30px;
    color: #ff69b4;
}

body.light {
    background-color: #f2f2f2;
    color: #181818;
}

body.light nav,
body.light nav ul li a,
body.light .card,
body.light .grupo-tecnologias,
body.light .skills,
body.light footer {
    background-color: #fff;
    color: #000;
}

body.light .tech-card {
    background-color: #e2e2e2;
}

body.light .tech-card:hover {
    background-color: #ccc;
}

body.light .botao-tema {
    color: #181818;
}

body.light .projeto {
    background-color: #f2f2f2;
}

body.light nav ul li a:hover {
    color: #ff69b4;
}

body.light nav .menu-icon .bar {
    background-color: black;
}

footer {
    background-color: #1f1f1f;
    color: white;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer h2 {
    margin-bottom: 10px;
}

footer .contatos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

footer .contato-item {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #800080, #ff69b4);
    padding: 10px;
    border-radius: 5px;
}

footer .contato-item a {
    text-decoration: none;
    color: #fff;
}

@media (max-width: 480px) {
    footer span {
        display: none;
    }
}
