/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* Header com animação */
header {
    background: linear-gradient(270deg, #0d6efd, #6610f2, #0dcaf0);
    background-size: 600% 600%;
    animation: gradientMove 12s ease infinite;
    color: white;
    padding-bottom: 80px;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navegação */
.nav {
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Hero */
.hero {
    text-align: center;
    margin-top: 60px;
}

.foto-perfil {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background: white;
    color: #333;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #f0f0f0;
}

/* Sections */
section {
    padding: 70px 20px;
    text-align: center;
}

/* Tecnologias */
.tech-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tech-icons img {
    width: 60px;
    transition: 0.3s;
}

.tech-icons img:hover {
    transform: scale(1.2);
}

/* Cards de projetos */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.card {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    width: 270px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

.card p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.card-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.card a {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    background-color: #0070f3;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.card a:hover {
    background-color: #0056b3;
}

/* Botão interno de card (opcional) */
.btn-card {
    display: inline-block;
    margin-top: 10px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #0d6efd;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}