html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

header {
    background-color: darkred;
    color: white;
    text-align: center;
    padding: 1rem;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

header h1 {
    margin: 0;
    font-size: 3rem;
}

header p {
    font-size: 1.2rem;
}

#about {
    padding: 60px 0;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.1rem;
    width: 70%;
    margin: 0 auto;
    line-height: 1.6;
}


#projects {
    background-color: #e9ecef;
    padding: 60px 0;
}

#projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.projects-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 30%;
    text-align: center;
}

.project-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.project-card p {
    font-size: 1rem;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.project-card a:hover {
    background-color: #555;
}

#contact {
    padding: 3.75rem;
    text-align: center;
}

#contact form {
    width: 50%;
    margin: 0 auto;
}

#contact label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    text-align: left;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact button:hover {
    background-color: #555;
}


footer {
    background-color: darkred;
    color: white;
    text-align: center;
    padding: 20px 1rem 0;
    margin-top: 40px 2rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

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

    .gallery-header h1 {
        font-size: 2rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        padding: 0.5rem;
    }

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

    .gallery-header {
        padding: 2rem 0;
    }

    .gallery-header h1 {
        font-size: 1.8rem;
    }

    .gallery-header p {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    footer {
        font-size: 0.8rem;
    }
}