/* 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: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.lang-btn.active {
    background: #2563eb;
    color: white;
}

.lang-btn:hover:not(.active) {
    background: #f3f4f6;
    color: #333;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 40px;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    filter: contrast(1.02) brightness(1.01) saturate(1.05);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.header-info {
    max-width: 600px;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

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

.download-btn {
    background: #fff;
    color: #2563eb;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main {
    padding: 60px 0;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    border-radius: 2px;
}

.section-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Skills */
.skills-grid {
    display: grid;
    gap: 30px;
}

.skill-category {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 4px solid #2563eb;
    border-radius: 50%;
}

.timeline-date {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.timeline-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-link,
.project-links .project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    margin-right: 20px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 15px;
}

/* Education */
.education-grid {
    display: grid;
    gap: 25px;
}

.education-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.education-period {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.education-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.education-content p {
    color: #6b7280;
    line-height: 1.5;
}

/* Languages */
.languages-grid {
    display: grid;
    gap: 20px;
}

.language-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.language-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.language-level {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 5px;
}

.language-cert {
    color: #6b7280;
    font-size: 14px;
}

/* Volunteer Work */
.volunteer-grid {
    display: grid;
    gap: 25px;
}

.volunteer-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.volunteer-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.volunteer-item p {
    line-height: 1.6;
    color: #4b5563;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 30px 0;
}

/* Mobile styles - default */
.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.profile-image {
    width: 200px;
    height: 260px;
    flex-shrink: 0;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 40px;
    }
    
    .profile-image {
        width: 280px;
        height: 360px;
        flex-shrink: 0;
    }

    .contact-info {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 20px 30px;
    }

    .contact-item {
        justify-content: flex-start;
    }

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

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(even)::before {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

    .volunteer-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .name {
        font-size: 3rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .languages-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Print Styles */
@media print {
    .language-toggle,
    .download-btn {
        display: none !important;
    }

    .header {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section {
        page-break-inside: avoid;
        margin-bottom: 30px;
    }

    .timeline-item {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .main {
        padding: 20px 0;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 2rem;
    }
}    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .timeline-content h3 {
        font-size: 14px;
    }
    
    .skill-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .profile-image {
        width: 160px;
        height: 200px;
    }
    
    .name {
        font-size: 2rem;
    }
