/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #15625e;
    font-size: 14px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border-radius: 8px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e8ed;
}

.name {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.title {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 400;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.contact-item {
    white-space: nowrap;
}

.contact-link {
    color: #4a5568;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #2d3748;
    border-bottom-color: #cbd5e0;
}

.contact-divider {
    color: #cbd5e0;
}

/* Section Styles */
.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e1e8ed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Professional Summary */
.summary-text {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Experience Styles */
.experience-item {
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
}

.job-date {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.company-name {
    color: #4a5568;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.job-responsibilities {
    list-style: none;
    padding-left: 0;
}

.job-responsibilities li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.9rem;
}

.job-responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #718096;
    font-weight: bold;
}

/* Education Styles */
.education-item {
    margin-bottom: 1.2rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.degree {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a202c;
}

.education-date {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.institution {
    color: #4a5568;
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.education-details {
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
}

/* Skills Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 6px;
    border-left: 4px solid #4a5568;
}

.skill-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.skill-list {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Projects Section */
.project-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e8ed;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.project-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-tech {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0.25rem 0 0.75rem 0;
    font-style: italic;
}

.project-description {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.project-description li {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.5;
}

.project-links {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.project-link:hover {
    color: #2d3748;
    border-color: #a0aec0;
    background-color: #f7fafc;
}

/* Volunteer Experience Section */
.volunteer-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e8ed;
}

.volunteer-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.volunteer-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.volunteer-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.volunteer-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.volunteer-org {
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0.25rem 0 0.75rem 0;
}

.volunteer-activities {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.volunteer-activities li {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.5;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.cert-item {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: all 0.2s ease;
}

.cert-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.cert-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    display: block;
}

.cert-issuer {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.cert-date {
    color: #718096;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
    
    .contact-divider {
        display: none;
    }
    
    .experience-header,
    .education-header,
    .project-header,
    .volunteer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .skill-category {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12px;
        background: white !important;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .section {
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }
    
    .experience-item,
    .project-item,
    .volunteer-item {
        break-inside: avoid;
        margin-bottom: 1.2rem;
        padding-bottom: 1rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cert-item {
        background: white !important;
        border: 1px solid #e1e8ed;
        padding: 0.8rem;
    }
    
    .skill-category {
        background: white !important;
        border: 1px solid #e1e8ed;
        padding: 0.8rem;
    }
}

/* Hover Effects for Interactive Elements */
.skill-category:hover {
    background: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid #4a5568;
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: #e2e8f0;
    color: #1a202c;
}