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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 16px;
    text-align: center;
}

/* Main Content */
.main-content {
    padding: 2rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3b82f6;
}

.section-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.skill-category {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category i {
    color: #3b82f6;
}

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

.skill-category li {
    padding: 0.25rem 0;
    color: #4b5563;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.skill-category li::before {
    content: '▸';
    color: #3b82f6;
    position: absolute;
    left: 0;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.certification {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certification:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}

.certification i {
    font-size: 1.5rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.certification h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

/* Job Experience */
.job {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.1);
}

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

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

.job-duration {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    background-color: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.job-company {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

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

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

/* Skills List */
.skills-list {
    list-style: none;
}

.skills-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

.skills-list li::before {
    content: '✓';
    color: #059669;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Education */
.education {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.education h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.education-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.university {
    color: #4b5563;
    font-weight: 500;
}

.year {
    color: #6b7280;
    font-size: 0.9rem;
    background-color: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .education-details {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0.75rem;
    }
    
    .main-content {
        padding: 1rem 0.75rem;
    }
    
    .skill-category,
    .job,
    .education {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .container {
        box-shadow: none;
        max-width: none;
    }
    
    .header {
        background: #1e40af !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .job,
    .skill-category,
    .certification,
    .education {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .section {
        break-after: avoid;
    }
}

