body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-info {
    margin-bottom: 20px;
}

h2 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    color: #2c3e50;
}

h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.job-title {
    font-style: italic;
    margin-bottom: 5px;
}

.job-location {
    font-weight: normal;
    display: inline;
}

.date-range {
    color: #7f8c8d;
    margin-bottom: 10px;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

.section {
    margin-bottom: 20px;
}

.subsection {
    margin-bottom: 15px;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media print {
    body {
        padding: 0;
    }
    
    a {
        color: #333;
    }
}

/* Project Styles */
.project {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.project:last-child {
    border-bottom: none;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-date {
    color: #7f8c8d;
    font-size: 0.9em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: #e8f4fc;
    color: #3498db;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.project-description {
    margin-bottom: 10px;
}

.project-details {
    margin-bottom: 15px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #3498db;
    color: white;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: #2980b9;
    text-decoration: none;
}

/* Projects Grid for Smaller Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.project-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.project-card p {
    margin-bottom: 15px;
}

.project-card .project-tags {
    margin-bottom: 15px;
}

.project-card .project-link {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .project-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-tags {
        margin-top: 5px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile image styling */
.profile-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}

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

.back-button-container {
    text-align: center;
    margin: 30px 0;
}

.back-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #2980b9;
    text-decoration: none;
}
