* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Header and navigation styling */
header {
    background:  #d8b0dd;
    color: white;
    padding: 10px;
    position: sticky; /* Makes the header stick to the top */
    top: 0; /* Ensures it sticks to the top of the viewport */
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav a {
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    color: rgb(12, 7, 7);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
}

nav a:hover {
    background-color: #f2cdf7;
    border-radius: 5px;
}

/* Home section */
.home-section {
    background-color: #efc5f5;
    display: flex;
    justify-content: space-between;
    padding: 10rem;
    text-align: center;
    flex-wrap: wrap;
}

.home-content {
    flex: 1;
    max-width: 50%;
}

.highlighted-name {
    font-family: 'Roboto Slab', serif;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem; 
    line-height: 1.2;
}

.home-section p {
    font-size: 1.5rem;
    max-width: 400px;
    margin: 1rem auto 0;
    line-height: 1;
}

.small-text {
    font-size: 1rem;
}

.image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.home-image {
    width: 250px; 
    height: 250px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid #fff; 
    margin-top: 5px;
}

/* About Section */
.about-section {
    padding: 4rem;
    text-align: center;
    background-color: #f8dcfc;
}

.about-section h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


.about-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 80px;
    margin-right: 80px;
    gap: 20px;
}

.about-item.reverse {
    margin-top: 50px;
    flex-direction: row-reverse;
    gap: 20px;   
}

.about-image {
    width: 250px; 
    height: 250px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid #fff; 
}

.about {
    flex: 2;
    max-width: 60%;
}

.about p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    margin-left: 80px;
    margin-right: 80px;
}


/* Projects Section */
#projects {
    padding: 4rem;
    background-color: #efc5f5;
    text-align: center;
}

#projects h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.projects-container h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    margin-left: 15px;
}

.project-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.project {
    flex: 1;
    max-width: 30%;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: scale(1.05); 
    background-color: #b592b9; 
    color: white; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project p {
    font-size: 1rem;
    line-height: 1.4;
    text-align: justify;
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem;
    background-color: #f8dcfc;
    text-align: center; 
}

.contact-section h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center; 
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-size: 1rem;
    text-align: left; 
}

form input, form textarea {
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #131212;
    border-radius: 5px;
    width: 100%;
}

form textarea {
    height: 150px;
}

form button {
    padding: 1rem;
    font-size: 1.1rem;
    background-color: #0f0b0b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #292828;
}

/* Footer */
footer {
    padding: 1.5rem;
    background-color: #efc5f5;
    color: rgb(19, 6, 6);
    text-align: center;
}

footer .social-links {
    margin-bottom: 1rem;
}

footer .social-links a {
    color: rgb(10, 7, 7);
    margin: 0 10px;
    text-decoration: none;
}

footer .social-links a:hover {
    text-decoration: underline;
}

/* Media Query for Phone View */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    /* Header */
    header {
        padding: .5rem;
    }

    nav ul {
        flex-direction: row;
        gap: 3px;
    }

    nav a {
        font-size: 15px;
        padding: .5rem 1rem;
    }

    /* Home Section */
    .home-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5rem 2rem;
        text-align: center;
    }

    .image {
        display: flex; 
        justify-content: center;
        gap: 10px;
        order: -1;
        margin-bottom: 2rem;
    }

    .home-image {
        width: 200px; 
        height: 200px; 
        border-radius: 50%; 
        object-fit: cover; 
        border: 3px solid #fff; 
        margin-top: 5px;
    }

    .home-content {
        flex: 1;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .highlighted-name {
        font-size: 2.1rem;
    }


    /* About Section */
    .about-section {
        padding: 3rem;
        text-align: center;
        background-color: #f4f4f4;
    }


    .about-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    /* Reverse the order for the second person (Vanessa) */
    .about-item.reverse {
        flex-direction: column; 
    }

    .about-image {
        width: 250px; 
        height: 250px; 
        border-radius: 50%; 
        object-fit: cover; 
        border: 3px solid #fff; 
    }

    .about p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: justify;
        margin-left: -60px;
        margin-right: -60px;
    }

    /* Projects Section */
    .project-grid {
        flex-direction: column;
        gap: 20px;
    }

    .project {
        max-width: 100%;
        padding: 1rem;
    }

    .project img {
        height: 200px;
        object-fit: cover;
    }

    .project p {
        font-size: 1rem;
    }

    /* Contact Form */
    form {
        width: 100%;
        padding: 2rem 1rem;
    }

    form input, form textarea {
        font-size: 1rem;
    }

    form button {
        padding: 1rem;
        width: 100%;
        font-size: 1rem;
    }

    /* Footer */
    footer {
        padding: 1rem;
    }

    footer .social-links {
        margin-bottom: 1rem;
    }

    footer .social-links a {
        margin: 0 10px;
    }
}