body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

nav {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* Language Toggle Switch - Analog Style */
.language-toggle {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 35px;
}

.language-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-family: 'Courier New', monospace;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 25px;
    width: 25px;
    left: 4px;
    bottom: 4px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.toggle-text {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    z-index: 1;
    user-select: none;
    font-family: 'Courier New', monospace;
}

.toggle-slider .toggle-text:first-child {
    opacity: 1;
    color: #333;
}

.toggle-slider .toggle-text:last-child {
    opacity: 0.6;
    color: #999;
}

input:checked + .toggle-slider {
    background: #f0f0f0;
    border-color: #ccc;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

input:checked + .toggle-slider:before {
    transform: translateX(35px);
    background: linear-gradient(145deg, #e6e6e6, #cccccc);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

input:checked + .toggle-slider .toggle-text:first-child {
    opacity: 0.6;
    color: #999;
}

input:checked + .toggle-slider .toggle-text:last-child {
    opacity: 1;
    color: #333;
}

.toggle-slider:hover {
    border-color: #bbb;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

input:checked + .toggle-slider:hover {
    border-color: #aaa;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle-slider:active:before {
    transform: scale(0.95);
}

input:checked + .toggle-slider:active:before {
    transform: translateX(35px) scale(0.95);
}

nav a {
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 4px;
}

nav a:hover {
    background-color: #f5f5f5;
    color: #000;
}

nav a.active {
    font-weight: bold;
    color: #000;
    background-color: #f0f0f0;
}

h1, h2 {
    color: #333;
}

.section {
    margin-bottom: 20px;
}

.experience-item, .education-item {
    margin-bottom: 15px;
}

.contact-info {
    margin-bottom: 10px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

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

header {
    margin: 20px 0 30px 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    font-size: 2em;
    color: #333;
    margin: 0;
    padding: 10px 0;
}

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

.skills-category {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.skills-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
}

.skills-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-category li {
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.skills-category li:last-child {
    border-bottom: none;
}

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

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.language-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.language-item h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1em;
}

.language-item p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.reference-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.reference-item h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
}

.reference-item p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.reference-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

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

.reference-item h3 {
    margin-bottom: 5px;
    color: #333;
}

.project {
    margin-top: 15px;
    margin-left: 20px;
}

.project h3 {
    color: #444;
    font-size: 1.1em;
}

.project a {
    color: #333;
    text-decoration: none;
}

.project a:hover {
    text-decoration: underline;
}

.project-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item h2 {
    color: #333;
    margin-bottom: 10px;
}

.project-details {
    margin: 15px 0;
    padding-left: 20px;
}

.project-details li {
    margin-bottom: 5px;
}

.project-item a {
    color: #333;
    text-decoration: none;
}

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

.project-link {
    display: inline-block;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    padding: 5px 0;
    margin-top: 10px;
}

.project-link:hover {
    text-decoration: underline;
    color: #333;
}

.profile-section {
    margin-top: 30px;
}

.profile-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-image {
    flex: 0 0 300px;
    transition: all 0.3s ease;
}

.profile-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.02);
}

.profile-content {
    flex: 1;
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.personal-touch {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.current-status {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.current-status p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        margin: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .site-title {
        font-size: 1.7em;
    }

    .profile-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .profile-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }

    .profile-content {
        text-align: center;
    }

    .current-status {
        text-align: left;
    }

    nav {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin: -10px -15px 20px -15px;
        padding: 15px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-left {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        padding-bottom: 5px;
    }

    .nav-left::-webkit-scrollbar {
        display: none;
    }

    .nav-right {
        flex-shrink: 0;
        margin-left: auto;
        padding-left: 15px;
    }

    .language-toggle {
        width: 65px;
        height: 32px;
    }

    .toggle-slider:before {
        height: 24px;
        width: 24px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .toggle-slider:before {
        transform: translateX(32px);
    }

    input:checked + .toggle-slider:active:before {
        transform: translateX(32px) scale(0.95);
    }

    .toggle-text {
        font-size: 10px;
    }

    nav a {
        padding: 10px 14px;
        white-space: nowrap;
        font-size: 0.85em;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s ease;
        min-width: fit-content;
    }

    nav a:hover {
        background-color: rgba(102, 126, 234, 0.1);
        transform: translateY(-1px);
    }

    nav a.active {
        background-color: #667eea;
        color: white;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .education-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .references-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skills-category,
    .reference-item {
        padding: 15px;
    }

    .language-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .site-title {
        font-size: 1.5em;
    }

    .profile-image {
        width: 90%;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    .intro-text, .personal-touch {
        font-size: 1em;
    }

    .project-item, .experience-item, .education-item {
        padding: 10px 0;
    }

    .project-details {
        padding-left: 15px;
    }

    .contact-info, .reference-item {
        padding: 10px;
    }

    .profile-image {
        max-width: 200px;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
    }

    .languages-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .skills-category,
    .reference-item {
        padding: 12px;
    }

    .language-item {
        padding: 10px;
    }

    .language-toggle {
        width: 60px;
        height: 30px;
    }

    .toggle-slider:before {
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .toggle-slider:before {
        transform: translateX(30px);
    }

    input:checked + .toggle-slider:active:before {
        transform: translateX(30px) scale(0.95);
    }

    .toggle-text {
        font-size: 9px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body {
        max-width: 90%;
    }

    .profile-container {
        gap: 30px;
    }

    .profile-image {
        flex: 0 0 250px;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }
}

@media print {
    body {
        padding: 0;
        margin: 0;
    }

    nav, .profile-photo {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

.article-series {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-series:last-child {
    border-bottom: none;
}

.article-item {
    margin: 20px 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateX(5px);
}

.article-summary {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}

.article-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: #000;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-item:hover {
        transform: none;
    }
}

.certificate-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.certificate-item:last-child {
    border-bottom: none;
}

.certificate-item h2 {
    color: #333;
    margin-bottom: 5px;
}

.certificate-item p {
    margin: 5px 0;
    color: #555;
}

.certificate-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

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

.certificate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.skill-tag {
    background-color: #f8f8f8;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #333;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .certificate-skills {
        gap: 6px;
    }
    
    .skill-tag {
        font-size: 0.85em;
        padding: 4px 10px;
    }
} 