* {
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #004f90 0%, #0066b8 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
}

.content {
    padding: 50px 40px;
}

.section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: sectionFadeIn 0.6s ease-out forwards;
}

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

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.5em;
    color: #004f90;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #004f90;
    font-weight: 600;
}

.bio {
    color: #555;
    font-size: 1.1em;
    line-height: 1.8;
}

.cv-preview {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.language-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #004f90;
    color: #004f90;
}

.tab-btn.active {
    background: #004f90;
    color: white;
    border-color: #004f90;
}

.cv-iframe-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cv-iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

/* CV image viewer styles */
.cv-viewer {
    background: white;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cv-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cv-nav {
    background: #004f90;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

.cv-nav[disabled] {
    opacity: 0.45;
    cursor: default;
}

#page-indicator {
    font-weight: 700;
    color: #333;
}

.cv-image-container {
    text-align: center;
}

.cv-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


.cv-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cv-btn {
    flex: 1;
    min-width: 200px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.cv-btn svg {
    width: 24px;
    height: 24px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    background: #004f90;
    color: white;
    border-color: #004f90;
    transform: translateY(-2px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.contact-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #555;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: #004f90;
}

.contact-item a {
    color: #004f90;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header {
        padding: 40px 30px;
    }

    h1 {
        font-size: 2em;
    }

    .content {
        padding: 40px 30px;
    }

    .cv-buttons, .social-links {
        flex-direction: column;
    }

    .cv-btn, .social-btn {
        min-width: 100%;
    }
    
    .cv-iframe {
        height: 600px;
    }
}