body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.header .name a {
    font-size: 28px;
    font-weight: bold;
    color: #cccccc; 
    text-decoration: none; 
}

.header .name a:hover {
    color: #ffffff; 
    border-bottom: 2px solid #ffffff;
    transition: border-bottom-color 0.3s;
}
.navbar a {
    color: #cccccc;
    text-decoration: none;
    margin-left: 20px;
    font-size: 18px;
    font-weight: bold;
}

.navbar a:hover {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    transition: border-bottom-color 0.3s;
}
/* Main Content */
.page-title {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: bold;
    color: #ffffff;
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Reduced spacing between cards */
}

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Reduced gap between image and content */
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.project-image img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Reduced gap between title, description, and tags */
}

.project-title {
    font-size: 20px;
    font-weight: bold;
    color: #cccccc;
    margin: 0; /* Removed extra margin */
}

.project-description {
    font-size: 16px;
    line-height: 1.4;
    color: #cccccc;
    margin: 0; /* Removed extra margin */
    text-align: justify;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px; /* Reduced margin above tags */
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tag {
    background-color: #333333;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: #555555;
}


.footer {
    margin-top: 50px;
    text-align: center;
    color: #bbbbbb;
}

.footer p {
    font-size: 14px;
}

.footer .links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer .links img {
    width: 24px; 
    height: 24px; 
}

@media (max-width: 700px) {
    .container {
        padding: 20px;
    }

    .header {
        margin-bottom: 50px;
        flex-direction: column;
        align-items: flex-start;
    }

    .header .name {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .header .name a {
        font-size: 24px;
        align-items: center;
    }

    .navbar {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-left: 10px;
    }

    .navbar a {
        margin-left: 0;
        margin-right: 10px;
    }

    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-image img {
        width: 50%;
        height: auto;
    }

    .page-title {
        text-align: center;
    }

    .project-content {
        align-items: justify;
        text-align: justify;
    }

    .project-title {
        text-align: center;
    }

    .project-tags {
        justify-content: center;
    }

    .footer .links {
        flex-direction: row;
        gap: 10px;
    }
}
