@media screen and (max-width: 1200px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 20px;
    }

    .project {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        text-align: center;
    }

    .nav {
        flex-direction: column;
    }

    .nav a {
        margin: 10px 0;
    }

    .about, .projects, .contact {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }

    .header p {
        font-size: 14px;
    }

    .project img {
        width: 100%;
        height: auto;
    }

    .contact form input, .contact form textarea {
        width: 100%;
        font-size: 14px;
    }
}