/* ===========================
   FONT FACES
   =========================== */
@font-face {
    font-family: 'AnimeAce';
    src: url('/Fonts/AnimeAcev05.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'expresswayfree';
    src: url('/Fonts/ExpresswayFree.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AnimeAceV3';
    src: url('/Fonts/AnimeAcev3.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'YStext';
    src: url('/Fonts/text-light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ysc';
    src: url('/Fonts/text-medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'YSb';
    src: url('/Fonts/text-bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'USB';
    src: url('/Fonts/text-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NVM';
    src: url('/Fonts/NeverMind\ SemiExtended\ Exbold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'UN';
    src: url('/Fonts/Unbounded-VariableFont_wght.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'UNl';
    src: url('/Fonts/Unbounded-ExtraLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PS';
    src: url('/Fonts/PressStart2P-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ===========================
   ROOT VARIABLES
   =========================== */
:root {
    --primary-font: 'JetBrains Mono', 'YStext', monospace;
    --title-font: 'VT323', 'NVM', monospace;
    --button-font: 'VT323', 'UNl', monospace;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    background-color: #000;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background-color: white;
    color: black;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* ===========================
   BACKGROUND EFFECTS
   =========================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.05) 0%, transparent 50%);
    opacity: 0.5;
    transition: transform 0.1s ease-out;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
}

.wind-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    font-family: var(--title-font);
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    z-index: 100;
    opacity: 0;
    transition: opacity 1s ease;
}

.spark {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 10px 2px white;
    opacity: 0;
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    z-index: 20;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* ===========================
   HEADER & BIO CARD
   =========================== */
.main-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    animation: fadeIn 0.7s ease-out;
}

.bio-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.bio-card {
    max-width: 480px;
    width: 100%;
    background-color: transparent;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.bio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

@media (min-width: 1025px) {
    .bio-card:hover {
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
    }
}

/* Avatar */
.avatar-section {
    position: relative;
}

.avatar-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.avatar-wrapper {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transition: all 0.5s ease;
    position: relative;
}

.avatar-wrapper::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.avatar-link:hover .avatar-wrapper::after {
    opacity: 1;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.avatar-link:hover .avatar-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
}

.avatar-link:hover .avatar {
    transform: rotate(-5deg);
}

.avatar-hover-text {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: var(--title-font);
    font-size: 10px;
    color: white;
    letter-spacing: 2px;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.avatar-link:hover .avatar-hover-text {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nickname {
    font-family: var(--title-font);
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    transition: text-shadow 0.3s ease;
}

.nickname:hover {
    text-shadow: 0 0 25px rgba(255, 255, 255, 1);
}

.telegram-icon-wrapper {
    transition: transform 0.3s ease;
}

.nickname:hover .telegram-icon-wrapper {
    transform: translateY(-2px) rotate(10deg);
}

.telegram-icon-wrapper i {
    font-size: 24px;
    transition: text-shadow 0.3s ease;
}

.nickname:hover .telegram-icon-wrapper i {
    text-shadow: 0 0 15px #0088cc;
}

.description {
    font-family: var(--title-font);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, white, transparent);
    transition: width 0.5s ease;
}

.description:hover::after {
    width: 100%;
}

.divider {
    height: 1px;
    width: 96px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 8px auto 0;
    position: relative;
    overflow: hidden;
}

.divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: slide 3s infinite;
}

@keyframes slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===========================
   NAVIGATION
   =========================== */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    font-family: var(--button-font);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.nav-btn i {
    font-size: 18px;
    position: relative;
    z-index: 2;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.7s ease-out 0.2s both;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.content-section.active {
    display: block;
}

.section-title {
    font-family: var(--title-font);
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
}

.title-decoration {
    color: rgba(255, 255, 255, 0.5);
    font-size: 32px;
}

.section-subtitle {
    font-family: var(--title-font);
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* ===========================
   HOME SECTION
   =========================== */
.welcome-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.info-card i {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.info-card h3 {
    font-family: var(--title-font);
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
}

.info-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-family: var(--button-font);
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-btn i {
    font-size: 22px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-btn:hover i {
    transform: scale(1.2);
}

.social-btn:hover .fa-telegram {
    text-shadow: 0 0 20px #0088cc;
}

.social-btn:hover .fa-steam {
    text-shadow: 0 0 20px #171a21;
}

.social-btn:hover .fa-github {
    text-shadow: 0 0 20px #6e5494;
}

.social-btn span {
    position: relative;
    z-index: 2;
    transition: letter-spacing 0.3s ease;
}

.social-btn:hover span {
    letter-spacing: 3px;
}

/* ===========================
   PORTFOLIO SECTION
   =========================== */
.portfolio-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.portfolio-intro {
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    font-size: 48px;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.download-section {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-section h3 {
    font-family: var(--title-font);
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.download-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-family: var(--button-font);
    font-size: 18px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.download-btn i {
    font-size: 20px;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.about-card i {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.about-card h3 {
    font-family: var(--title-font);
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.about-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta-btn {
    font-family: var(--button-font);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.cta-btn i {
    font-size: 18px;
}

.support-card {
    grid-column: 1 / -1;
}

.support-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.support-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   MODAL
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.close:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: rotate(90deg);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: var(--title-font);
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* ===========================
   AUDIO PLAYER (Desktop Only)
   =========================== */
.bio-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 300px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    font-family: var(--title-font);
    z-index: 50;
    animation: fadeIn 0.7s ease-out 0.3s both;
    transition: all 0.3s ease;
}

/* Плеер уходит на фон при открытии модального окна */
.modal.active ~ .container .bio-player,
body:has(.modal.active) .bio-player {
    z-index: 10 !important;
    opacity: 0.3;
    pointer-events: none;
}

/* Восстановление при закрытии модалки */
body:not(:has(.modal.active)) .bio-player {
    opacity: 1;
    pointer-events: all;
}

.bio-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.35);
}

/* Адаптация при масштабировании/скролле */
@media (max-height: 800px) {
    .bio-player {
        width: 250px;
        padding: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .player-icon {
        font-size: 36px !important;
        margin-bottom: 10px !important;
    }
    
    .bio-player-title {
        font-size: 10px !important;
    }
    
    .bio-player-track {
        font-size: 14px !important;
        min-height: 30px !important;
        margin-bottom: 15px !important;
    }
    
    .bio-player-btn {
        padding: 10px !important;
        font-size: 14px !important;
    }
}

@media (max-height: 650px) {
    .bio-player {
        width: 220px;
        padding: 15px;
        bottom: 15px;
        right: 15px;
    }
    
    .player-icon {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }
    
    .bio-player-title {
        font-size: 9px !important;
        margin-bottom: 3px !important;
    }
    
    .bio-player-track {
        font-size: 12px !important;
        min-height: 25px !important;
        margin-bottom: 12px !important;
    }
    
    .bio-player-btn {
        padding: 8px !important;
        font-size: 12px !important;
    }
    
    .bio-volume {
        margin-top: 10px !important;
    }
}

/* Для очень маленьких экранов - компактный режим */
@media (max-height: 500px) {
    .bio-player {
        width: 180px;
        padding: 12px;
        bottom: 10px;
        right: 10px;
    }
    
    .player-icon {
        display: none;
    }
    
    .bio-player-title {
        font-size: 8px !important;
        margin-bottom: 2px !important;
    }
    
    .bio-player-track {
        font-size: 11px !important;
        min-height: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .bio-player-btn {
        padding: 6px !important;
        font-size: 11px !important;
    }
    
    .bio-progress {
        margin-top: 8px !important;
        height: 3px !important;
    }
    
    .bio-time {
        font-size: 10px !important;
        margin-top: 5px !important;
    }
    
    .bio-volume {
        margin-top: 8px !important;
    }
    
    .volume-icon {
        font-size: 12px !important;
    }
    
    .volume-percentage {
        font-size: 10px !important;
    }
}

/* Уменьшение при горизонтальном скролле */
@media (max-width: 1400px) {
    .bio-player {
        width: 280px;
    }
}

@media (max-width: 1200px) {
    .bio-player {
        width: 260px;
        padding: 20px;
    }
}

.player-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.bio-player.audio-active .player-icon {
    text-shadow: 0 0 30px rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.bio-player-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 5px;
}

.bio-player-track {
    font-size: 16px;
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.7);
    margin-bottom: 20px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-player-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: var(--button-font);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bio-player-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

.bio-progress {
    margin-top: 15px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.bio-progress-bar {
    height: 100%;
    width: 0%;
    background: white;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px white;
}

.bio-time {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.bio-volume {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 20px;
    transition: color 0.3s ease;
}

.volume-slider {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, 
        white 0%, 
        white var(--volume-percentage, 40%), 
        rgba(255, 255, 255, 0.15) var(--volume-percentage, 40%), 
        rgba(255, 255, 255, 0.15) 100%);
}

.volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.volume-slider::-moz-range-progress {
    height: 4px;
    border-radius: 4px;
    background: white;
}

.volume-percentage {
    min-width: 35px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

@media (max-width: 1024px) {
    .bio-player {
        display: none !important;
    }
}

/* ===========================
   FOOTER
   =========================== */
.main-footer {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.7s ease-out 0.4s both;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-content p {
    font-family: var(--title-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    margin: 0;
}

.footer-credits {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    letter-spacing: 1px !important;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .bio-card {
        padding: 30px 20px;
    }

    .nickname {
        font-size: 22px;
    }

    .section-title {
        font-size: 28px;
    }

    .main-nav {
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .welcome-card,
    .portfolio-container,
    .about-container {
        padding: 25px;
    }

    .info-grid,
    .about-cards {
        grid-template-columns: 1fr;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .close {
        font-size: 40px;
        top: 15px;
        right: 25px;
    }
}

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

    .bio-card {
        padding: 20px 15px;
    }

    .avatar-wrapper {
        width: 80px;
        height: 80px;
    }

    .nickname {
        font-size: 18px;
        flex-direction: column;
        gap: 5px;
    }

    .section-title {
        font-size: 24px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
