* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
}

:root {
    --bg-color: #121212;
    --bg-secondary: #1a1a1a;
    --text-color: #f0f0f0;
    --text-secondary: #a0a0a0;
    --highlight-color: #e040fb;
    --white-color: #ffffff;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: none; 
}

body::-webkit-scrollbar {
    display: none;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 6rem 8% 2rem;
}

h1, h2, h3 {
    font-weight: 600;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 8%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.sticky {
    background: var(--bg-secondary);
    box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.navbar a {
    font-size: 1rem;
    color: var(--text-color);
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--highlight-color);
}

#menu-icon {
    font-size: 1.8rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-content {
    max-width: 800px;
    padding-top: 48px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--highlight-color);
    box-shadow: 0 0 20px var(--highlight-color);
    margin-bottom: 1.5rem;
}

.home-content h1 {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--highlight-color);
}

.home-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--highlight-color);
    color: var(--white-color);
    box-shadow: 0 0 10px var(--highlight-color);
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--highlight-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}
.btn-secondary:hover {
    background: var(--white-color);
    color: var(--bg-color);
}

.tech-stack {
    margin-top: 3rem;
}
.tech-stack h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.tech-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.tech-icons img {
    width: 40px;
    height: 40px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.tech-icons img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    display: block;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--highlight-color);
}

.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--bg-secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 2.5rem;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--highlight-color);
    border: 4px solid var(--bg-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item:nth-child(even)::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 18px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--bg-secondary);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bg-secondary) transparent transparent;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item:nth-child(odd)::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 18px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--bg-secondary);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--bg-secondary);
}

.timeline-content {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    position: relative;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}
.timeline-company {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--highlight-color);
    margin-bottom: 0.25rem;
}
.timeline-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.timeline-content p {
    font-size: 0.9rem;
}

.footer {
    min-height: auto;
    padding: 4rem 8% 2rem;
    background: var(--bg-secondary);
    text-align: center;
}
.footer h2 {
    font-size: 2rem;
}
.footer p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
}
.email-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--highlight-color);
    transition: letter-spacing 0.3s ease;
}
.email-link:hover {
    letter-spacing: 1px;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--bg-color);
    color: var(--highlight-color);
    border: 2px solid var(--highlight-color);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--highlight-color);
    color: var(--white-color);
    box-shadow: 0 0 15px var(--highlight-color);
    transform: scale(1.1);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}
.copyright .fa-heart {
    color: var(--highlight-color);
}
.projeto-img{
    width: 300px;
    height: 200px;
}

@media (max-width: 992px) {
    .header {
        padding: 1.5rem 5%;
    }
    section {
        padding: 5rem 5% 2rem;
    }
    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 5%;
        background: var(--bg-secondary);
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .navbar.active {
        max-height: 500px;
    }

    .navbar a {
        display: block;
        font-size: 1.1rem;
        margin: 1.5rem 0;
    }

    .home {
        text-align: center;
    }
    .avatar {
        width: 140px;
        height: 140px;
    }
    h1 {
        font-size: 2.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    .timeline-item::after {
        left: 10px;
    }
    .timeline-item::before {
        display: none;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 14px;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}