* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background-color: #222;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: normal;
}

nav a:hover {
    text-decoration: underline;
}

main {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    flex: 1;
}

#about {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#about img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

#about .about-info {
    flex: 1;
}

#about h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

#about p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

#skills {
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#skills h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; /* Adjust the gap as needed */
}

#projects {
    margin-bottom: 3rem;
}

#projects h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.heading-link {
    float: right; 
    font-size: 0.8em;
    text-decoration: none;
    color: #333;
}

.heading-link:hover {
    text-decoration: underline;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    flex: 1 1 calc(50% - 1rem);
    min-width: 280px;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.project-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-item p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.social-links img {
    max-height: 32px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 600px) {
    #about {
        flex-direction: column;
        align-items: flex-start;
    }
}

:root {
    --primary-color: #2a7ae2;
    --secondary-color: #1a365d;
}

header a.logo {
    color: #fff;
    text-decoration: none;
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.skills-grid div {
    background: #f0f4f8;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.project-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    a {
        text-decoration: none;
        color: #333;
    }
}

.project-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .project-item {
        flex: 1 1 100%;
    }
    
    nav ul {
        flex-direction: column;
        text-align: right;
    }
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}