/* 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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-topbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.5rem;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.profile-section {
    flex: 1;
    text-align: center;
}

.name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.15rem;
}

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

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.lang-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.btn {
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-outline {
    color: #667eea;
    border-color: #667eea;
    background: white;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #2d3748;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
}

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

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

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.company {
    font-weight: 500;
    color: #667eea;
    margin-right: 1rem;
}

.duration {
    color: #718096;
    font-size: 0.95rem;
}

.experience-description ul {
    list-style: none;
    padding-left: 0;
}

.experience-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
}

.experience-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Skills Styles */
.skills-category {
    margin-bottom: 2rem;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

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

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

.education-item h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.institution {
    font-weight: 500;
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.education-description {
    color: #4a5568;
    margin-bottom: 1rem;
}

.languages h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.language-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.language-item {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-main {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .action-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .profile-section {
        text-align: center;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .language-selector {
        justify-content: center;
    }
    
    .btn {
        text-align: center;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .skills-tags {
        justify-content: center;
    }
    
    .language-skills {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .header {
        padding: 1.5rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .experience-header h3 {
        font-size: 1.25rem;
    }
    
    .company {
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* Animation for smooth transitions */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}