/* Set the base font size for easier rem calculations */
html {
    font-size: 62.5%;
}

/* Reset margins and padding for all elements */
body, h1, h2, p, ul {
    margin: 0;
    padding: 0;
}

/* Set the body font, background color, and padding */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #304366;
    padding-top: 2em;
}

/* Style the header with flexbox, background color, padding, and rounded corners */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1em 2em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
    border-radius: 15px; /* Added border radius for rounded corners */
}

/* Style the logo */
.logo img {
    width: 250px; /* Adjusted width for a bigger logo */
    height: auto;
}

/* Style the navigation list */
nav ul {
    list-style: none;
    display: flex;
    gap: 2em;
}

/* Style the navigation links */
nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.6rem;
    text-transform: uppercase;
}

/* Style the active navigation link */
nav ul li a.active {
    border-bottom: 2px solid #333;
}

/* Style the main content section */
main {
    max-width: 1600px; /* Adjusted to accommodate 3 columns of 500px each with spacing */
    margin: 0 auto;
    padding: 2em;
    background-color: #304366; /* Updated background color */
}

/* Style the about me section */
.about-me, .project-template {
    display: flex;
    justify-content: center; /* Center the section */
    align-items: center;
    margin-bottom: 2em; /* Add margin below the section */
}

.text-content, .project-text {
    background-color: white;
    padding: 2em;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Added deeper shadow */
    border-radius: 15px; /* Added border radius for rounded corners */
    width: 80%; /* Adjusted width for better fit */
}

.project-text {
    display: flex;
    justify-content: space-between;
}

.project-left {
    width: 70%;
}

.project-right {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-right img {
    width: 100%;
    border-radius: 10px;
}

.text-content h2, .project-text h2 {
    font-size: 2.4rem;
    margin-bottom: 1em;
}

.text-content p, .text-content ul, .project-text p, .project-text ul {
    font-size: 1.6rem;
    margin-bottom: 1em;
}

.text-content ul, .project-text ul {
    list-style: disc;
    padding-left: 2em;
    text-align: left;
}

/* Style the buttons section */
.buttons {
    display: flex;
    justify-content: center;
    gap: 2em; /* Add space between buttons */
}

.button {
    display: inline-block;
    padding: 1em 2em;
    color: #333;
    background-color: rgba(242,145,181,255);
    text-decoration: none;
    border-radius: 15px; /* Match border radius with about me section */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Match shadow with about me section */
    width: 100%; /* Full width */
    max-width: 300px; /* Max width */
    text-align: center;
    font-size: 1.6rem; /* Adjust font size */
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #f0f0f0;
}

/* Style the gallery section */
.gallery {
    text-align: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed to 3 columns */
    gap: 1em;
    justify-items: center;
}

.image-grid img {
    border-radius: 10px;
    border: 15px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Set the maximum width to 500px */
    height: auto;
}
