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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    min-height: 100vh;
}

.header {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.contact-info span {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary p {
    font-size: 16px;
    text-align: justify;
    color: #495057;
    font-weight: 500;
}

.education-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.education-item h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.education-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.institution {
    flex: 1;
    min-width: 250px;
    font-weight: 500;
}

.date {
    font-style: italic;
    color: #6c757d;
}

.grade {
    font-weight: 700;
    color: #28a745;
    background-color: #d4edda;
    padding: 2px 8px;
    border-radius: 4px;
}

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

.skill-category {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.skill-category h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 4px 0;
    color: #495057;
    font-weight: 500;
    position: relative;
    padding-left: 15px;
}

.skill-category li::before {
    content: "▸";
    color: #3498db;
    position: absolute;
    left: 0;
}

.project {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
}

.project h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.tech-stack {
    color: #495057;
    font-weight: 600;
    font-style: italic;
}

.project-date {
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.project-details {
    margin: 15px 0;
    padding-left: 20px;
}

.project-details li {
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
}

.technologies {
    margin-top: 15px;
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
}

.experience-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.experience-item h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.experience-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.company {
    font-weight: 600;
    color: #495057;
}

.duration {
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

.responsibilities {
    padding-left: 20px;
    margin-top: 10px;
}

.responsibilities li {
    margin-bottom: 6px;
    color: #495057;
    font-weight: 500;
}

.achievements-list {
    padding-left: 20px;
}

.achievements-list li {
    margin-bottom: 10px;
    color: #495057;
    font-weight: 500;
}

@media (max-width: 768px) {
    .resume-container {
        padding: 20px;
        margin: 0;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info span {
        font-size: 13px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta,
    .experience-meta,
    .education-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    section h2 {
        font-size: 1.5em;
    }
}

@media print {
    body {
        background-color: white;
    }
    
    .resume-container {
        box-shadow: none;
        padding: 20px;
    }
    
    .header {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .project,
    .education-item,
    .experience-item,
    .skill-category {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
    }
}