* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 32, 44, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: all 0.4s ease;
}

nav ul li a:hover {
    background: #4a5568;
    color: #edf2f7;
}

section {
    padding: 4rem 2rem;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.projetos-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #a3bffa;
    border-bottom: 2px solid #7f9cf5;
    padding-bottom: 0.3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.project-card {
    background: #2d3748;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4a5568;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(163, 191, 250, 0.2);
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    color: #a3bffa;
}

.project-card p {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.project-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #7f9cf5;
    color: #1a202c;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #5a78e0;
}

footer {
    text-align: center;
    padding: 1.2rem;
    background: #1a202c;
    color: #a0aec0;
    border-top: 1px solid #4a5568;
}

footer a {
    color: #a3bffa;
    text-decoration: none;
    margin: 0 0.6rem;
}

footer a:hover {
    color: #7f9cf5;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    section {
        padding: 3rem 1rem;
    }

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