body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #e9ecef;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 850px;
    margin: auto;
    background: #fff;
    padding: 50px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 4px;
}
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.header-text {
    flex: 1;
}
.header-photo {
    margin-left: 30px;
}
.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c3e50;
    background-color: #eee;
}
h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2.2em;
    letter-spacing: -1px;
}
.contact-info {
    font-size: 0.95em;
    color: #555;
    margin-top: 8px;
}
.contact-info a {
    color: #2980b9;
    text-decoration: none;
}
h2 {
    color: #fff;
    background: #2c3e50;
    padding: 5px 15px;
    display: inline-block;
    font-size: 1.1em;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 15px;
    border-radius: 2px;
}
.section {
    margin-bottom: 10px;
}
.item {
    margin-bottom: 12px;
}
.item-title {
    font-weight: bold;
    color: #222;
    font-size: 1.05em;
}
.item-details {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}
ul {
    margin: 8px 0;
    padding-left: 25px;
}
li {
    margin-bottom: 5px;
}
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}
.skill-category strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    border-bottom: 1px solid #ddd;
}
.highlight {
    color: #c0392b;
    font-weight: bold;
}

@media (max-width: 600px) {
    body { padding: 10px; }
    .container { padding: 20px; }
    header { flex-direction: column-reverse; text-align: center; align-items: center; }
    .header-photo { margin-left: 0; margin-bottom: 15px; }
    .profile-img { width: 110px; height: 110px; }
    h1 { font-size: 1.8em; }
    .skills-container { grid-template-columns: 1fr; }
}

@media print {
    body { background: none; padding: 0; }
    .container { box-shadow: none; width: 100%; max-width: none; padding: 20px; }
    header { border-bottom: 2px solid #000; }
    h2 { background: #eee !important; color: #000 !important; border: 1px solid #000; }
    .skills-container { background: none; border: 1px solid #eee; }
}