/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fff;
    --fg: #000;
    --accent: #0066ff;
    --muted: #888;
    --line: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    font-size: 14px;
    letter-spacing: 0;
}

main {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-button {
    background: var(--bg);
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.language-button:hover {
    background: var(--fg);
    color: var(--bg);
}

.current-language {
    display: flex;
    align-items: center;
    gap: 4px;
}

.current-language .flag {
    font-size: 12px;
}

.current-language .lang-text {
    font-weight: 700;
}

.language-button .arrow {
    font-size: 8px;
    margin-left: 2px;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--fg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: var(--bg);
    border: none;
    color: var(--fg);
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.language-option:hover {
    background: var(--fg);
    color: var(--bg);
}

.language-option .flag {
    font-size: 12px;
}

.language-option.active {
    background: var(--line);
}

/* Header */
header {
    padding: 80px 0 40px;
    border-bottom: 2px solid var(--fg);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-pic {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--fg);
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.header-text p {
    font-size: 14px;
    color: var(--muted);
    margin: 4px 0 0;
    font-weight: 400;
}

/* Section */
.section {
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    color: var(--fg);
}

/* About Section */
.about-content {
    margin: 0;
}

.about-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg);
    margin-bottom: 12px;
}

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

.about-content a {
    color: var(--accent);
    text-decoration: underline;
}

.about-content a:hover {
    text-decoration: none;
}

/* Services Section */
.services-grid {
    display: grid;
    gap: 20px;
}

.service-card {
    border: 1px solid var(--fg);
    padding: 16px;
}

.service-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.service-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 13px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.service-tag {
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 2px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.services-cta {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--fg);
}

.services-cta p {
    color: var(--fg);
    margin-bottom: 12px;
    font-size: 13px;
}

.cta-button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    background: var(--bg);
    color: var(--fg);
}

/* Skills Section */
.skills-category {
    margin-bottom: 24px;
}

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

.skills-category h3 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.skill-badge {
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 2px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Experience Section */
.timeline {
    margin: 0;
}

.timeline-item {
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 2px solid var(--line);
}

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

.timeline-item.current {
    border-left-color: var(--fg);
}

.timeline-marker {
    display: none;
}

.timeline-content {
    padding: 0;
}

.timeline-content h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content .company {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.timeline-content .period {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 2px;
}

.timeline-content .employment-type {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--fg);
    line-height: 1.5;
    font-size: 13px;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-content ul {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    margin-left: 16px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.tag {
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 2px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.education-card {
    border: 1px solid var(--fg);
    padding: 16px;
}

.education-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.education-card .school {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.education-card .period {
    font-size: 11px;
    color: var(--muted);
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 20px;
}

.project-card {
    border: 1px solid var(--fg);
    padding: 16px;
}

.project-year {
    display: inline-block;
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 2px 6px;
    font-size: 10px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-content h4 {
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-content p {
    color: var(--fg);
    line-height: 1.5;
    font-size: 13px;
    margin-bottom: 8px;
}

.project-content ul {
    color: var(--muted);
    line-height: 1.5;
    font-size: 12px;
    margin-left: 16px;
    margin-bottom: 8px;
}

/* Awards Section */
.awards-grid {
    display: grid;
    gap: 20px;
}

.award-card {
    border: 1px solid var(--fg);
    padding: 16px;
}

.award-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.award-year {
    display: inline-block;
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 2px 6px;
    font-size: 10px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.award-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.award-card p {
    color: var(--muted);
    line-height: 1.5;
    font-size: 12px;
}

/* Contact Section */
.contact-content {
    margin: 0;
}

.contact-content > p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.contact-info {
    display: grid;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--fg);
}

.contact-icon {
    font-size: 16px;
}

.contact-link {
    color: var(--accent);
    text-decoration: underline;
    font-size: 13px;
}

.contact-link:hover {
    text-decoration: none;
}

/* Footer */
footer {
    color: var(--muted);
    padding: 40px 0 20px;
    border-top: 1px solid var(--line);
    margin: 0 20px;
}

footer p {
    margin: 0;
    font-size: 11px;
    text-align: center;
}

/* Animations */
.animate-in {
    opacity: 1;
}

/* Language visibility */
[data-lang]:not(.language-option) {
    display: none !important;
}

[data-lang].show:not(.language-option) {
    display: block !important;
}

.skills-category h3[data-lang].show,
.timeline-content h3[data-lang].show,
.timeline-content h4[data-lang].show,
.timeline-content ul[data-lang].show,
.timeline-content .period[data-lang].show,
.timeline-content .employment-type[data-lang].show,
.timeline-content p[data-lang].show,
.education-card h3[data-lang].show,
.education-card .school[data-lang].show,
.education-card .period[data-lang].show,
.contact-content p[data-lang].show,
.header-text h1[data-lang].show,
.header-text p[data-lang].show,
.about-content p[data-lang].show,
.service-card h3[data-lang].show,
.service-card p[data-lang].show,
.services-cta p[data-lang].show {
    display: block !important;
}

.cta-button[data-lang].show {
    display: inline-block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 0 20px;
    }

    header {
        padding: 80px 0 40px;
    }

    .section {
        padding: 32px 0;
    }

    footer {
        padding: 32px 0 20px;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 16px;
    }

    header {
        padding: 60px 0 32px;
    }

    .section {
        padding: 24px 0;
    }

    footer {
        margin: 0 16px;
    }
}

/* Large screens - increase font sizes for better readability */
@media (min-width: 1024px) {
    main {
        max-width: 900px;
    }

    body {
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 28px;
    }

    .header-text p {
        font-size: 16px;
    }

    .section h2 {
        font-size: 17px;
    }

    .about-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .skills-category h3 {
        font-size: 14px;
    }

    .skill-badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    .timeline-content h3 {
        font-size: 16px;
    }

    .timeline-content .company {
        font-size: 14px;
    }

    .timeline-content .period,
    .timeline-content .employment-type {
        font-size: 13px;
    }

    .timeline-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .timeline-content h4 {
        font-size: 14px;
    }

    .timeline-content ul {
        font-size: 14px;
        line-height: 1.6;
    }

    .tag {
        font-size: 12px;
        padding: 4px 8px;
    }

    .education-card h3 {
        font-size: 16px;
    }

    .education-card .school {
        font-size: 14px;
    }

    .education-card .period {
        font-size: 13px;
    }

    .project-card h3 {
        font-size: 16px;
    }

    .project-year {
        font-size: 12px;
        padding: 4px 8px;
    }

    .project-content h4 {
        font-size: 14px;
    }

    .project-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .project-content ul {
        font-size: 14px;
        line-height: 1.6;
    }

    .award-card h3 {
        font-size: 16px;
    }

    .award-card p {
        font-size: 14px;
    }

    .award-year {
        font-size: 12px;
        padding: 4px 8px;
    }

    .contact-content > p {
        font-size: 15px;
    }

    .contact-link {
        font-size: 15px;
    }

    .language-button {
        font-size: 13px;
        padding: 6px 12px;
    }

    .language-option {
        font-size: 13px;
        padding: 8px 12px;
    }

    footer p {
        font-size: 12px;
    }
}

/* Extra large screens - further increase for optimal readability */
@media (min-width: 1440px) {
    main {
        max-width: 1100px;
    }

    body {
        font-size: 18px;
    }

    .header-text h1 {
        font-size: 32px;
    }

    .header-text p {
        font-size: 18px;
    }

    .section h2 {
        font-size: 19px;
    }

    .about-content p {
        font-size: 18px;
        line-height: 1.8;
    }

    .skills-category h3 {
        font-size: 15px;
    }

    .skill-badge {
        font-size: 13px;
        padding: 5px 10px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    .timeline-content .company {
        font-size: 15px;
    }

    .timeline-content .period,
    .timeline-content .employment-type {
        font-size: 14px;
    }

    .timeline-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .timeline-content h4 {
        font-size: 15px;
    }

    .timeline-content ul {
        font-size: 15px;
        line-height: 1.7;
    }

    .tag {
        font-size: 13px;
        padding: 5px 10px;
    }

    .education-card h3 {
        font-size: 18px;
    }

    .education-card .school {
        font-size: 15px;
    }

    .education-card .period {
        font-size: 14px;
    }

    .project-card h3 {
        font-size: 18px;
    }

    .project-year {
        font-size: 13px;
        padding: 5px 10px;
    }

    .project-content h4 {
        font-size: 15px;
    }

    .project-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .project-content ul {
        font-size: 15px;
        line-height: 1.7;
    }

    .award-card h3 {
        font-size: 18px;
    }

    .award-card p {
        font-size: 15px;
    }

    .award-year {
        font-size: 13px;
        padding: 5px 10px;
    }

    .contact-content > p {
        font-size: 16px;
    }

    .contact-link {
        font-size: 16px;
    }

    .language-button {
        font-size: 14px;
        padding: 7px 14px;
    }

    .language-option {
        font-size: 14px;
        padding: 9px 14px;
    }

    footer p {
        font-size: 13px;
    }
}

