/* style.css */

/* GENERAL LAYOUT */
body {
    font-family: "Poppins", Arial, sans-serif;
    background-color: #ffffff;
    color: #1e1e1e;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* NAVIGATION BAR */
nav {
    background-color: #f4f4f4;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75em 0;
    width: 100%;
    box-sizing: border-box;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 2em;
    gap: 2em;
}

nav ul li {
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #6a11cb;
}

/* PROJECT LAYOUT */
.project {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2em;
    max-width: 1200px;
    margin: 3em auto;
    padding: 1.5em 2em;
    border-bottom: 1px solid #eee;
}

/* IMAGE: HALF WIDTH */
.project img {
    flex: 1.2;
    width: 65%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
    margin-left: 0; /* Remove any left margin */
    padding-left: 0; /* Remove any left padding */
}

/* TEXT SIDE */
.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-content h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.project-content p {
    font-size: 1em;
    margin-bottom: 1em;
    color: #333;
}

/* DESCRIPTION BOX */
.description {
    background-color: #fafafa;
    border-left: 3px solid #6a11cb;
    padding: 1em 1.5em;
    border-radius: 5px;
    font-size: 0.95em;
    margin-bottom: 1em;
}

/* DOWNLOAD BUTTON */
a[download] {
    align-self: flex-start;
    text-decoration: none;
    background-color: #222;
    color: white;
    padding: 0.7em 1.4em;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-left: 0; /* Ensure it's aligned to the left */
}

a[download]:hover {
    background-color: #444;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .project {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .project img {
        width: 100%;
        max-width: 600px;
    }

    .project-content {
        width: 90%;
    }
}
