/* Reset para consistência */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilização geral */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #121212;
}

/* Header e menu */
header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    position: sticky;
    top: 0;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    justify-content: center;
}

header nav ul li a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

header nav ul li a:hover,
header nav ul li a:focus {
    background-color: #1e90ff;
    transform: translateY(-2px);
    outline: none;
}

header nav ul li a[aria-current="page"] {
    background-color: #1e90ff;
    color: #ffffff;
}

/* Seção Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #2d3748;
    margin: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .typed-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #1e90ff;
    animation: typing 3s steps(25, end) forwards, blink 0.75s step-end infinite;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.hero .cta {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #1e90ff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .cta:hover,
.hero .cta:focus {
    background-color: #1565c0;
    transform: translateY(-2px);
}

/* Seção Projetos (Home e Projetos) */
.projects-preview, .projects {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.projects-preview h2, .projects h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.projects p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #cbd5e0;
}

.projects p a {
    color: #1e90ff;
    text-decoration: none;
    font-weight: 600;
}

.projects p a:hover,
.projects p a:focus {
    color: #1565c0;
}

.project-list, .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.project-list li, .project-card {
    background-color: #2d3748;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-list li:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.project-list img, .project-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-list h3, .project-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-list p, .project-card p {
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.project-list a, .project-card a {
    text-decoration: none;
    color: #1e90ff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-list a:hover, .project-card a:focus {
    color: #1565c0;
}

/* Seção Sobre */
.about {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background-color: #2d3748;
    border-radius: 8px;
}

.about h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-content img {
    max-width: 200px;
    border-radius: 8px;
}

.about-content p {
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.skills-list, .achievements-list, .contact-links, .timeline {
    list-style: none;
    margin-top: 1rem;
}

.skills-list li, .achievements-list li {
    background-color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin: 0.5rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-links a {
    text-decoration: none;
    color: #ffffff;
    background-color: #1e90ff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-links a:hover,
.contact-links a:focus {
    background-color: #1565c0;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer p {
    font-size: 0.875rem;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero, .projects-preview, .projects, .about {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsividade */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hero h1, .projects h1, .about h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        max-width: 150px;
    }

    .contact-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero, .projects-preview, .projects, .about {
        padding: 1rem;
    }

    .project-list li, .project-card {
        padding: 1rem;
    }
}

/* Acessibilidade */
a:focus {
    outline: 3px solid #1e90ff;
    outline-offset: 2px;
}