* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    grid-column: 1 / -1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: #4A90E2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #4A90E2;
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
}

.sidebar {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.profile-card {
    text-align: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #4A90E2;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.tagline {
    color: #666;
    font-size: 0.95rem;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #4A90E2;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card p {
    color: #555;
    line-height: 1.8;
}

.project-gallery {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
}

.project-card {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4A90E2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    color: #4A90E2;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #666;
    font-size: 0.95rem;
}

.card a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
}

.card a:hover {
    text-decoration: underline;
}

.footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
    grid-column: 1 / -1;
    margin-top: auto;
}

.footer p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .project-gallery {
        flex-direction: column;
    }

    .project-card {
        min-width: 100%;
    }

    .header {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .sidebar {
        padding: 1.5rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }
}