* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: #ffffff;
    background-image: url('../img/backgroundW.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 40px 20px;
    color: #000000;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border: 1px solid #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transition: background 0.3s ease, border 0.3s ease;
}

.lang-switch {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.lang-btn {
    background: white;
    border: 1px solid #000000;
    color: #000000;
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-btn:hover {
    background: #000000;
    color: white;
}

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

.header {
    background: white;
    color: #000000;
    padding: 60px 50px;
    transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.header-text h1 {
    font-family: Helvetica, Sans-Serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.contact-info {
    list-style: none;
    font-size: 14px;
    line-height: 1.8;
}

.contact-info li {
    margin-bottom: 4px;
}

.contact-info a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.6;
}

.photo-container {
    width: 220px;
    height: 220px;
    border: 2px solid #000000;
    overflow: hidden;
    transition: border 0.3s ease;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    padding: 50px;
}

section {
    margin-bottom: 45px;
}

h2 {
    font-family: Helvetica, Sans-Serif;
    font-size: 24px;
    color: #000000;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: color 0.3s ease, border 0.3s ease;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    transition: border 0.3s ease;
}

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

.period {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
    padding-top: 2px;
    transition: color 0.3s ease;
}

.details h3 {
    font-size: 18px;
    color: #000000;
    margin-bottom: 6px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.details p {
    color: #000000;
    opacity: 0.7;
    line-height: 1.6;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.skill-item {
    background: white;
    padding: 20px;
    border: 1px solid #000000;
    transition: background 0.3s ease, border 0.3s ease;
}

.skill-item h3 {
    font-size: 16px;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.skill-item p {
    font-size: 14px;
    color: #000000;
    opacity: 0.7;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hobby-tag {
    background: white;
    color: #000000;
    padding: 10px 20px;
    border: 1px solid #000000;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

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

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

    .content {
        padding: 30px 25px;
    }

    .lang-switch {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Dark Theme */
body.dark-theme {
    background: #000000;
    background-image: url('../img/backgroundB.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

body.dark-theme .container {
    background: #000000;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 15px rgba(78, 78, 78, 0.8);
}

body.dark-theme .lang-btn {
    background: #000000;
    border: 1px solid #ffffff;
    color: #ffffff;
}

body.dark-theme .lang-btn:hover {
    background: #ffffff;
    color: #000000;
}

body.dark-theme .lang-btn.active {
    background: #ffffff;
    color: #000000;
}

body.dark-theme .header {
    background: #000000;
    color: #ffffff;
}

body.dark-theme .header-text h1 {
    color: #ffffff;
}

body.dark-theme .contact-info a {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

body.dark-theme .photo-container {
    border: 2px solid #ffffff;
}

body.dark-theme h2 {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

body.dark-theme .timeline-item {
    border-bottom: 1px solid #333333;
}

body.dark-theme .period {
    color: #ffffff;
}

body.dark-theme .details h3 {
    color: #ffffff;
}

body.dark-theme .details p {
    color: #ffffff;
}

body.dark-theme .skill-item {
    background: #000000;
    border: 1px solid #ffffff;
}

body.dark-theme .skill-item h3 {
    color: #ffffff;
}

body.dark-theme .skill-item p {
    color: #ffffff;
}

body.dark-theme .hobby-tag {
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
}
