/* Professional Resume CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.resume-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 40px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.03"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.name {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
    position: relative;
}

.title {
    font-size: 1.3em;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    position: relative;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

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

.resume-body {
    padding: 0;
}

.section {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

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

.section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
    font-weight: 600;
}

.about-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

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

.skill-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.skill-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.experience-item {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    position: relative;
}

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

.job-header {
    margin-bottom: 15px;
}

.company {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.position {
    font-size: 1.1em;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 5px;
}

.duration {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 0.95em;
}

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

.responsibilities li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.responsibilities li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 0.8em;
}

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

.responsibilities ul li::before {
    content: '•';
    color: #95a5a6;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.education-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.degree {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.school {
    color: #27ae60;
    font-weight: 500;
    margin-bottom: 5px;
}

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

.footer {
    text-align: center;
    padding: 30px;
    background: #2c3e50;
    color: white;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .resume-header {
        padding: 40px 20px 30px;
    }
    
    .name {
        font-size: 2.5em;
    }
    
    .title {
        font-size: 1.1em;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .section {
        padding: 30px 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .resume-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .resume-header {
        background: #2c3e50 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
    
    .section {
        page-break-inside: avoid;
        border-bottom: 1px solid #ddd;
    }
    
    .experience-item {
        page-break-inside: avoid;
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
