/* General Styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, p {
    margin: 0;
    padding: 0;
}

ul {
    padding: 0;
    list-style: none;
}

header {
    background-color: #2c3e50;
    padding: 1rem 0;
    text-align: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav a {
    color: #ecf0f1;
    font-weight: 600;
    text-transform: uppercase;
}

#projects {
    padding: 2rem 5%;
    background-color: #fff;
}

.project-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-tile img {
    max-width: 100%;
    border-radius: 8px;
}

.project-tile a {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project-tile a:hover {
    background-color: #34495e;
}

/* Welcome Section Styling */
#welcome-section {
    background-color: #2c3e50;
    color: #fff;
    padding: 4rem 5%;
    text-align: center;
}

#welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#welcome-section p {
    font-size: 1.2rem;
}

/* Contact Section Styling */
#contact2 {
    background-color: #ecf0f1;
    padding: 2rem 5%;
    text-align: center;
}

#contact2 ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#contact2 li {
    display: inline;
}

#contact2 a {
    font-size: 1.5rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

#contact2 a:hover {
    color: #34495e;
}
#contact h2 {text-align: center; display: block}
#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 600px;
    margin: 10px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact-form label {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 8px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact-form button {
    background-color: #007bff;
    color: white;
    border: none;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#contact-form button:hover {
    background-color: #0056b3;
}


/* Footer Styling */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Fade-in Effect */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    #projects {
        padding: 2rem 2%;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .project-tile {
        width: 100%;
        max-width: 350px;
    }

    #welcome-section {
        padding: 3rem 2%;
    }
}

/* Align project tiles to the center on smaller screens */
@media only screen and (max-width: 480px) {
    #projects {
        display: flex;
        flex-wrap: wrap; /* Allow tiles to wrap on small screens */
        justify-content: center; /* Align items to the center horizontally */
        gap: 20px; /* Add spacing between tiles */
        padding: 0 10px; /* Reduce padding for a compact look */
    }

    .project-tile {
        width: 100%; /* Make tiles take full width of the parent */
        max-width: 300px; /* Limit width for better aesthetics */
        text-align: center; /* Center text inside the tiles */
    }

    .project-tile img {
        width: 100%; /* Ensure images are responsive */
        height: auto; /* Maintain aspect ratio */
        border-radius: 10px; /* Optional: add rounded corners for better look */
    }
}
