/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3f51b5;
    --secondary-color: #30336b;
    --text-color: #333;
    --light-text: #f5f5f5;
    --background-color: #f5f5f5;
    --white: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Tema escuro */
[data-theme="dark"] {
    --primary-color: #7986cb;
    --secondary-color: #5c6bc0;
    --text-color: #e0e0e0;
    --light-text: #f5f5f5;
    --background-color: #121212;
    --white: #1e1e1e;
    --card-bg: #2d2d2d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

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

/* Header styles */
#header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

#header.scrolled {
    padding: 15px 0;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name-container {
    display: flex;
    flex-direction: column;
}

.name-container h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.name-container h2 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
}

#nav ul {
    display: flex;
    gap: 20px;
}

#nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

#nav a:hover {
    color: var(--primary-color);
}

#nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

#nav a:hover::after {
    width: 100%;
}

#nav a.active {
    color: var(--primary-color);
}

#nav a.active::after {
    width: 100%;
}

/* Home section styles */
.home-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--white) 60%, var(--background-color) 40%);
}

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

.text-container {
    flex: 1;
}

.text-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.text-container h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.text-container p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-container img {
    max-width: 80%;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
}

/* About section styles */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
}

/* Skills section styles */
.skills-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.skill-category {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.skill-item:hover img {
    transform: scale(1.15);
}

/* Projects section styles */
.projects-section {
    padding: 100px 0;
    background-color: var(--white);
}

.github-projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.github-repos-link {
    text-decoration: none;
    width: 100%;
    max-width: 600px;
}

.github-repos-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.github-repos-button i {
    font-size: 2rem;
}

.github-repos-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Projeto cards antigos - mantidos apenas para referência */
.projects-grid {
    display: none;
}

/* Contact section styles */
.contact-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-links i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

.social-links a:hover i {
    color: var(--white);
}

/* Footer styles */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* Botão de alternar tema */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.5rem;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    #header {
        padding: 15px 0;
    }
    
    #nav ul {
        gap: 15px;
    }
    
    .home-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .image-container img {
        max-width: 60%;
    }
    
    .text-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .name-container h1 {
        font-size: 1.4rem;
    }
    
    .name-container h2 {
        font-size: 0.9rem;
    }
    
    #nav {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .text-container h2 {
        font-size: 1.7rem;
    }
    
    .text-container h3 {
        font-size: 2rem;
    }
}