body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 60px 0;
    animation: fadeIn 1s ease-in;
}

header img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.1);
}

header h1 {
    font-size: 2.8em;
    margin: 20px 0 10px;
    animation: slideIn 0.8s ease-out;
}

header p {
    font-size: 1.3em;
    color: #888;
    max-width: 700px;
    margin: 0 auto;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-switcher button {
    background-color: #ff4081;
    border: none;
    color: white;
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.language-switcher button:hover {
    background-color: #ff79b0;
    transform: scale(1.05);
}

nav {
    text-align: center;
    margin: 30px 0;
    animation: fadeIn 1.2s ease-in;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.2em;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff4081;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover {
    color: #ff4081;
}

nav a:hover::after {
    width: 100%;
}

section {
    margin: 60px 0;
    animation: fadeInUp 1s ease-in;
}

section h2 {
    font-size: 2.8em;
    margin-bottom: 30px;
    text-align: center;
}

.portfolio, .apps, .antivirus, .apis, .cursos, .tools, .publicacoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.item, .course, .tool, .post {
    text-align: center;
    transition: transform 0.3s ease;
}

.item:hover, .course:hover, .tool:hover, .post:hover {
    transform: translateY(-10px);
}

.portfolio img, .apps img, .antivirus img, .apis img, .cursos img, .tools img, .publicacoes img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.portfolio img:hover, .apps img:hover, .antivirus img:hover, .apis img:hover, .cursos img:hover, .tools img:hover, .publicacoes img:hover {
    transform: scale(1.05);
}

.description {
    margin-top: 15px;
    font-size: 1.1em;
    color: #ccc;
}

.course a, .tool a, .post a {
    display: inline-block;
    color: #ff4081;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    transition: color 0.3s;
}

.course a:hover, .tool a:hover, .post a:hover {
    color: #ff79b0;
}

.contact {
    text-align: center;
}

.contact button.toggle-button {
    background-color: #ff4081;
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.contact button.toggle-button:hover {
    background-color: #ff79b0;
    transform: scale(1.05);
}

.contact-form {
    display: none;
    margin: 20px auto;
    max-width: 600px;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in;
}

.contact-form.show {
    display: block;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: #ff4081;
    border: none;
    color: white;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.contact-form button:hover {
    background-color: #ff79b0;
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #1c1c1c;
    margin-top: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    header img {
        max-width: 200px;
    }
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1.1em;
    }
    nav a {
        font-size: 1em;
        margin: 0 10px;
    }
    section h2 {
        font-size: 2em;
    }
    .portfolio, .apps, .antivirus, .apis, .cursos, .tools, .publicacoes {
        grid-template-columns: 1fr;
    }
}