body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Твой исходный розово-желтый градиент */
    background: linear-gradient(135deg, #e666ea 0%, #f0ed56 100%) !important;
    background-attachment: fixed;
    font-family: sans-serif;
    overflow-x: hidden;
    position: relative;
}

.no-transition {
    transition: none !important;
}
.no-transition::before {
    transition: none !important;
}


body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #e666ea 0%, #f0ed56 100%);
    z-index: -2; /* Самый нижний слой */
    display: block;
}


/* Слой для темной темы (плавное появление) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a1791 0%, #0e0422 100%);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: -1;
}

/* Активация темной темы */
body.dark-mode::before {
    opacity: 1;
}



.theme-btn {
    position: fixed;
    top: 20px;
    left: 40px;
    z-index: 10005;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #000; /* Черная рамка для светлой темы */
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.mode-icon {
    width: 24px;
    height: 24px;
    stroke: #000; /* Цвет иконки — черный */
}

/* Стили для темной темы */
body.dark-mode .theme-btn {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

body.dark-mode .mode-icon {
    stroke: #fff; /* Цвет иконки — белый */
}
/* Эффект при наведении */
.theme-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}


/* 3. ОБЩИЕ СТИЛИ ПАНЕЛЕЙ */
.sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.trigger {
    position: absolute;
    width: 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 24px;
}

.background-overlay {
    position: fixed; /* Чтобы фон не дергался при скролле */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* За всеми элементами */
    overflow: hidden;
    pointer-events: none; /* Пропускает клики сквозь себя */
}

.scrolling-content {
    display: flex;
    flex-direction: column; /* Текст идет строками вниз */
    gap: 20px; /* Расстояние между строками */
    color: rgba(255, 255, 255, 0.12);
    font-size: 27px; /* Размер букв */
    font-weight: bold;
    text-transform: uppercase;
    line-height: 0.9;
    white-space: nowrap;
}

/* Gallery Styles */
.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 20px 40px;
    margin-top: -860px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05) translateY(-10px);
    filter: brightness(1.1) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
}

.btn1,
.btn2,
.btn3,
.btn4,
.btn5 {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

.btn1 {

    max-width: 1000px;
    width: 30%;
    background: rgba(109, 124, 212, 0.6);
    border: solid rgb(121, 53, 209);
    border-radius: 30px;
    padding: 20px 20px;
    transition: all 0.2s ease;
    margin-bottom: 35px;
}

.btn1:hover,
.btn1:focus {
    transition: 0.5s ease;
    border-color: rgb(255, 251, 253);

}

.btn2 {
    max-width: 1100px;
    width: 10%;
    background: rgba(188, 58, 214, 0.6);
    border: solid;
    border-radius: 30px;
    padding: 20px 20px;
    box-shadow: 0 25px 45px -12px rgba(209, 18, 136, 0.2);
    transition: all 0.2s ease;
    margin-bottom: 35px;
}

.btn2:hover,
.btn2:focus {
    transition: 0.2s ease-in-out;
    background-color: green;
    color: rgb(124, 35, 224);
    border-color: red;

}

.btn3 {

    max-width: 1000px;
    width: 30%;
    background: rgba(255, 255, 255, 0.6);
    border: solid rgb(126, 123, 124);
    padding: 20px 20px;
    transition: all 0.2s ease;
    margin-bottom: 35px;
}

.btn3:hover,
.btn3:focus {
    transition: 0.4s ease-in-out;
    background-color: rgb(0, 0, 0);
    color: aliceblue;
    border-color: black;

}

.btn4 {

    max-width: 1000px;
    width: 30%;
    background: rgba(0, 0, 0, 0.6);
    border: solid rgb(0, 0, 0);
    color: aliceblue;
    padding: 20px 20px;
    transition: all 0.2s ease;
    margin-bottom: 35px;
}

.btn4:hover,
.btn4:focus {
    transition: 0.4s ease-in-out;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border-color: black;
    border-style: dotted
}

.btn5 {
    max-width: 1000px;
    width: 30%;
    background: rgba(255, 255, 255, 0.1);
    /* Semi-transparent white for glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    padding: 20px 20px;
    transition: all 0.3s ease;
    margin-bottom: 35px;
    font-weight: bold;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    /* Blur effect for glass */
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    /* Subtle shadow for depth */
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.btn5:hover,
.btn5:focus {
    transition: 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.2);
    /* Slightly more opaque on hover */
    color: rgb(0, 0, 0);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    backdrop-filter: blur(15px);
    /* Increase blur on hover */
    -webkit-backdrop-filter: blur(15px);
}



.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: slideUp 0.8s ease;
}


@keyframes slideUp {
    from {

        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-photo {
    width: 550px;
    height: 550px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    animation: photoGlow 3s ease-in-out infinite;
}

.profile-photo:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 45px rgba(255, 255, 255, 0.3);
}

@keyframes photoGlow {

    0%,
    100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 15px 45px rgba(255, 255, 255, 0.2);
    }
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.btn6 {
    position: fixed;
    top: 20px;
    left: 40px;
    width: auto;
    max-width: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    font-size: 14px;
}

.btn6:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: black;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.music-sidebar {
    position: fixed;
    left: -634px;
    /* Прячем плеер полностью (ширина 614 + отступы) */
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    /* Фон подложки плеера */
    padding: 10px;
    border-radius: 0 15px 15px 0;
}

/* Состояние, когда плеер выдвинут */
.music-sidebar.active {
    left: 0;
}

/* Кнопка-язычок */
.sidebar-trigger {
    position: absolute;
    right: -40px;
    /* Выносим кнопку за пределы скрытого блока */
    width: 40px;
    height: 60px;
    background: #ffdb4d;
    /* Желтый цвет Яндекса (или любой ваш) */
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    font-size: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

/* Поворот стрелки при активации */
.music-sidebar.active .sidebar-trigger span {
    transform: rotate(180deg);
}

.sidebar-trigger span {
    transition: transform 0.5s;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer p {
    font-size: 9px;

}

footer a:hover {
    color: #f0ed56;
}

/* Общие стили для боковых панелей */
.sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.trigger {
    position: absolute;
    width: 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: white;
}

/* Специфика для ЛЕВОЙ стороны (Музыка) */
.left-sidebar {
    left: -644px;
    /* Скрываем (ширина плеера 614 + отступы) */
    border-radius: 0 15px 15px 0;
}

.left-sidebar.active {
    left: 0;
}

.left-sidebar .trigger {
    right: -40px;
    background: #ffdb4d;
    /* Желтый Яндекса */
    border-radius: 0 10px 10px 0;
    color: black;
}

.left-sidebar.active .trigger span {
    transform: rotate(180deg);
}

/* Специфика для ПРАВОЙ стороны (3D Модель) */
.right-sidebar {
    right: -644px;
    /* Скрываем (ширина модели 600 + отступы) */
    border-radius: 15px 0 0 15px;
}

.right-sidebar.active {
    right: 0;
}

.right-sidebar .trigger {
    left: -40px;
    background: #1caad9;
    /* Голубой Sketchfab */
    border-radius: 10px 0 0 10px;
}

.right-sidebar .trigger span {
    transform: rotate(180deg);
}

.right-sidebar.active .trigger span {
    transform: rotate(0deg);
}

/* Чтобы стрелки плавно крутились */
.trigger span {
    transition: transform 0.4s;
    display: inline-block;
}


@media (max-width: 768px) {

    .profile-container {
        animation: none;
    }



    /* Gallery Styles */
.gallery-container {
        /* Обнуляем отрицательный отступ с ПК версии */
        margin-top: -850px !important; 
        
        /* Делаем отступ от верхних кнопок (Назад/Тема), чтобы не было наезда */
        padding-top: 100px !important; 
        
        /* Центрируем и выстраиваем в колонку, если нужно */
        flex-direction: column;
        padding-bottom: 40px;
    }


    /* ЛЕВАЯ ПАНЕЛЬ (Музыка) */
    .left-sidebar {
        width: 60vw !important;
        /* Мы прячем панель на её ширину (85vw) + запас на padding (обычно 10-20px) */
        left: calc(-60vw - 20px) !important; 
        right: auto !important;
        padding: 10px !important; /* Убедитесь, что padding фиксирован */
        transition: left 0.5s ease !important;
    }

    .left-sidebar.active {
        left: 0 !important;
    }

    /* Настройка кнопки музыки (триггера), чтобы она не уезжала */
    .left-sidebar .trigger {
        position: absolute;
        /* Кнопка должна "торчать" наружу ровно на свою ширину */
        right: -50px !important; 
        width: 50px !important;
        height: 70px !important;
        background: #ffdb4d !important;
        border-radius: 0 10px 10px 0;
        display: flex !important;
        visibility: visible !important;
    }


    /* ПРАВАЯ ПАНЕЛЬ (Скетчфаб) — переделываем только на right */
    .right-sidebar {
        width: 60vw !important;
        right: -60vw !important; 
        left: auto !important; /* Убираем конфликт с left */
        padding: 0 !important;
        transition: right 0.5s ease !important; /* Плавность здесь! */
    }
    .right-sidebar.active {
        right: 0 !important;
    }

    /* Кнопка скетчфаба */
    .right-sidebar .trigger {
        position: absolute;
        left: -50px !important; 
        width: 50px !important;
        height: 70px !important;
        background: #1caad9 !important;
        border-radius: 10px 0 0 10px;
        display: flex !important;
        visibility: visible !important;
    }

    /* Общие настройки для iframe внутри */
    .sidebar iframe, 
    .sketchfab-embed-wrapper iframe {
        width: 100% !important;
        height: 400px !important;
    }

    /* Текст и остальное */
    p {
        font-size: 20px !important;
        margin: 20px !important;
    }
    
    .theme-btn {
        width: 45px;
        height: 45px;
        left: 10px;
    }

    .profile-photo {
        position: fixed;
        top: 100px;
        width: 250px;
        height: 250px;
    }

    .btn5 {
        position: fixed;
        top: 400px;
        width: 50%;
    }
}
