/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Header */
header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 2em;
    color: #333;
}

/* Project List Section */
.project-list {
    width: 100%;
    max-width: 800px;
    padding-inline: 4%;
}

/* Project Item */
.project-item {
    display: flex;
    background-color: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
    border-top-left-radius: 15px;
    border-radius: 15px;
}

.project-item img {
    width: 350px;
    height: auto;
    object-fit: cover;
}

.project-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    width: 90%;
}

.project-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.project-description {
    background-color: rgb(231, 231, 231);
    margin-top: 10px;
    color: #555;
    border-radius: 10px;
}

.project-tech {
    margin: 5px 0 15px 0;
    font-size: 0.9em;
    color: #777;
}

.view-button {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.view-button:hover {
    background-color: #227ee0;
}







/* Project Detail Page Styles */
.project-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    
}

.project-detail-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
}

.project-description {
    padding: 20px;
    width: 100%;
    max-width: 600px;
}

.project-description h2, .project-description h3 {
    color: #333;
    margin-bottom: 10px;
}

.project-description p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.live-demo-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}

.live-demo-button:hover {
    background-color: #0056b3;
}

@media(max-width: 700px){
    header h1{
        font-size: 30px;
        margin: 30px 0 20px 0;
        text-align: center;
    }

    .project-list{
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }
    .project-item{
        flex-direction: column;
        width: 250px;
    }

    .project-item img{
        width: 100%;
        height: 130px;
    }
}
