/*
 Theme Name: Guerra Laite Portfolio
 Author: Guerra Laite
 Description: A custom portfolio theme for Guerra Laite
 Version: 1.0
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}
/* Dark Mode (Default) */
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}
/* Light Mode */
body.light-mode {
    background-color: #ffffff;
    color: #1a1a1a;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #2c2c2c;
    transition: background-color 0.3s;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.header.light-mode {
    background-color: #f4f4f4;
}
.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
}
.logo .initial {
    color: #007bff;
}
.header.light-mode .logo {
    color: #1a1a1a;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s;
}
.header.light-mode .nav-menu a {
    color: #1a1a1a;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease-in-out;
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a:hover {
    color: #007bff;
}
.language-toggle select {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}
.header.light-mode .language-toggle select {
    background-color: #ddd;
    color: #1a1a1a;
}
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #ffffff;
}
.header.light-mode .theme-toggle {
    color: #1a1a1a;
}
.divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #007bff, transparent);
    margin-top: 60px;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.hamburger {
    display: none;
    font-size: 1.8em;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
}
.header.light-mode .hamburger {
    color: #1a1a1a;
}
.home-section {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    padding: 100px 40px;
    min-height: 100vh;
    flex-wrap: wrap; /* Permite que os itens quebrem em telas menores */
}
.home-content {
    max-width: 50%;
    text-align: center; /* Centraliza o texto dentro do content */
    margin: 0 auto; /* Centraliza o bloco */
}
.home-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
.home-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}
.home-buttons {
    display: flex;
    gap: 20px;
    justify-content: center; /* Centraliza os botões */
}
.home-buttons a {
    padding: 10px 20px;
    border: 2px solid #007bff;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s, color 0.3s;
}
.home-buttons a:hover {
    background-color: #007bff;
    color: #ffffff;
}
.home-image {
    max-width: 40%;
    text-align: center; /* Centraliza a imagem */
    margin: 0 auto; /* Centraliza o bloco */
}
.home-image img {
    width: 100%;
    max-width: 300px; /* Limita o tamanho máximo da imagem */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}
.projects-section {
    padding: 80px 40px;
    text-align: center;
}
.projects-section h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
}
.projects-grid {
    display: flex;
    justify-content: center; /* Centraliza os projetos */
    gap: 40px;
    flex-wrap: wrap; /* Quebra em colunas em telas menores */
}
.project-card {
    flex: 1;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 400px; /* Limita a largura máxima */
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}
.project-card h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}
.project-card p {
    font-size: 1.1em;
}
.about-section {
    padding: 80px 40px;
    text-align: center;
}
.about-section h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
}
.about-card {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    transition: box-shadow 0.3s;
}
.about-card:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}
.about-card p {
    font-size: 1.2em;
    line-height: 1.6;
}
.skills-section {
    padding: 80px 40px;
    text-align: center;
}
.skills-section h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
}
.skills-grid {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    transition: box-shadow 0.3s;
}
.skills-grid:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}
.skill-item {
    font-size: 1.2em;
    padding: 15px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s;
}
.skill-item:hover {
    background-color: rgba(0, 123, 255, 0.3);
}
.education-section {
    padding: 80px 40px;
    text-align: center;
}
.education-section h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
}
.education-grid {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    transition: box-shadow 0.3s;
}
.education-grid:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}
.education-item {
    margin-bottom: 20px;
}
.education-item h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}
.education-item p {
    font-size: 1.2em;
    line-height: 1.6;
}
.education-item ul {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 1.2em;
    line-height: 1.6;
}
.experience-section {
    padding: 80px 40px;
    text-align: center;
}
.experience-section h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
}
.experience-grid {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    transition: box-shadow 0.3s;
}
.experience-grid:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}
.experience-item h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}
.experience-item p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 10px;
}
.experience-item ul {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 1.2em;
    line-height: 1.6;
}
.contact-section {
    padding: 80px 40px;
    text-align: center;
}
.contact-section h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
}
.contact-grid {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 30px;
    transition: box-shadow 0.3s;
}
.contact-grid:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1.1em;
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: transparent;
    color: inherit;
    transition: border-color 0.3s, background-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0056b3;
    background-color: rgba(0, 123, 255, 0.1);
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form button {
    padding: 10px 20px;
    border: 2px solid #007bff;
    background-color: transparent;
    color: #007bff;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.contact-form button:hover {
    background-color: #007bff;
    color: #ffffff;
}
.footer {
    padding: 20px 40px;
    text-align: center;
    border-top: 2px solid #007bff;
    background-color: #2c2c2c;
    transition: background-color 0.3s;
}
.footer.light-mode {
    background-color: #f4f4f4;
}
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #007bff;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}
.footer-content:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}
.footer-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-links a {
    color: #007bff;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #0056b3;
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #2c2c2c;
        width: 100%;
        padding: 20px;
        text-align: center;
    }
    .header.light-mode .nav-menu {
        background-color: #f4f4f4;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a::after {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .divider {
        margin-top: 80px;
    }
    .home-section {
        flex-direction: column;
        padding: 80px 20px;
        text-align: center;
    }
    .home-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .home-image {
        max-width: 80%;
    }
    .home-buttons {
        justify-content: center;
    }
    .projects-grid {
        flex-direction: column;
        gap: 20px;
    }
    .project-card {
        max-width: 100%;
    }
    .about-card {
        max-width: 100%;
        padding: 20px;
    }
    .skills-grid {
        max-width: 100%;
        padding: 20px;
        grid-template-columns: 1fr;
    }
    .education-grid {
        max-width: 100%;
        padding: 20px;
    }
    .experience-grid {
        max-width: 100%;
        padding: 20px;
    }
    .contact-grid {
        max-width: 100%;
        padding: 20px;
    }
    .footer-content {
        max-width: 100%;
        padding: 15px;
    }
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
}