:root {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --header-bg: #1f2b38;
    --link-color: #6ab0f3;
    --link-hover: #91c8f9;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    --header-text: #fff;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f9f9f9;
        --text-color: #333;
        --card-bg: #fff;
        --header-bg: #2c3e50;
        --link-color: #2980b9;
        --link-hover: #1a5373;
        --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        --header-text: #fff;
    }
}

.force-light {
    --bg-color: #fff !important;
    --text-color: #333 !important;
    --card-bg: #f8f9fa !important;
    --header-bg: #e9ecef !important;
    --link-color: #2c3e50 !important;
    --header-text: #2c3e50 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header, .footer {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Обновлённые стили для кнопки темы */
.theme-toggle button {
    background: var(--theme-btn-bg);
    border: 2px solid var(--theme-btn-border);
    color: var(--theme-btn-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle button:hover {
    background: var(--theme-btn-hover);
    border-color: var(--theme-btn-border-hover);
}

/* Обновление CSS-переменных */
:root {
    --theme-btn-bg: rgba(255, 255, 255, 0.15);
    --theme-btn-border: rgba(255, 255, 255, 0.25);
    --theme-btn-text: #fff;
    --theme-btn-hover: rgba(255, 255, 255, 0.25);
    --theme-btn-border-hover: rgba(255, 255, 255, 0.35);
}

@media (prefers-color-scheme: light) {
    :root {
        --theme-btn-bg: rgba(0, 0, 0, 0.05);
        --theme-btn-border: rgba(0, 0, 0, 0.1);
        --theme-btn-text: #2c3e50;
        --theme-btn-hover: rgba(0, 0, 0, 0.1);
        --theme-btn-border-hover: rgba(0, 0, 0, 0.2);
    }
}

.force-light {
    --theme-btn-bg: rgba(0, 0, 0, 0.05) !important;
    --theme-btn-border: rgba(0, 0, 0, 0.1) !important;
    --theme-btn-text: #333 !important;
    --theme-btn-hover: rgba(0, 0, 0, 0.1) !important;
    --theme-btn-border-hover: rgba(0, 0, 0, 0.2) !important;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.profile {
    display: flex;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
}

.contacts {
    list-style: none;
    margin-top: 1rem;
}

.contacts a {
    color: var(--link-color);
    text-decoration: none;
}

.footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .profile {
        flex-direction: column;
    }

    .profile-image {
        flex: 0 0 auto;
    }

    .theme-toggle button {
        padding: 0.5rem;
    }
}
.skills {
    background: var(--card-bg);
    padding: 1.0rem 1.7rem;
    margin-top: 0.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Стили для логотипа в хедере */
.header-logo {
    text-decoration: none;
    color: inherit; /* Наследует цвет от родителя */
    display: inline-block;
}

.header-logo:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.9; /* Легкий эффект при наведении */
    transform: translateY(-1px); /* Небольшая анимация */
    transition: all 0.2s ease;
}

.header-logo:visited {
    color: inherit; /* Убирает фиолетовый цвет для посещенных ссылок */
}

/* Стили для текста внутри логотипа */
.header-logo h1 {
    color: var(--header-text);
    margin: 0;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.header-logo p {
    color: var(--header-text);
    margin: 0;
    opacity: 0.8;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* Эффекты при наведении */
.header-logo:hover h1,
.header-logo:hover p {
    color: var(--link-color); /* Меняет цвет при наведении */
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .header-logo h1 {
        font-size: 1.5rem;
    }

    .header-logo p {
        font-size: 0.9rem;
    }
}

/* Навигация */
.nav {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--header-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--header-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--link-color);
}

/* Выпадающее меню */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 150px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .nav-link {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.dropdown-menu .nav-link:hover {
    background: var(--bg-color);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .header-content {
        position: relative;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .theme-toggle {
        order: 3;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 1rem 0;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Мобильное выпадающее меню */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }

    .dropdown-toggle {
        cursor: pointer;
    }

    .dropdown-menu .nav-link {
        padding-left: 3rem;
        background: transparent;
    }
}

/* Анимации для плавности */
.nav-menu,
.dropdown-menu {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}