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

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 300;
}

/* Анимированный космический фон */
#cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, #000000 0%, #0a0a1a 50%, #000000 100%),
        radial-gradient(ellipse at 70% 30%, rgba(120, 120, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(255, 120, 255, 0.1) 0%, transparent 50%);
    z-index: -3;
    animation: cosmicPulse 20s ease-in-out infinite;
}

@keyframes cosmicPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Плавающие частицы */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

.particle:nth-child(1) {
    width: 2px; height: 2px;
    top: 20%; left: 10%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 1px; height: 1px;
    top: 60%; left: 80%;
    animation-duration: 25s;
    animation-delay: 5s;
}

.particle:nth-child(3) {
    width: 3px; height: 3px;
    top: 40%; left: 40%;
    animation-duration: 18s;
    animation-delay: 10s;
}

.particle:nth-child(4) {
    width: 1px; height: 1px;
    top: 80%; left: 20%;
    animation-duration: 22s;
    animation-delay: 15s;
}

.particle:nth-child(5) {
    width: 2px; height: 2px;
    top: 30%; left: 70%;
    animation-duration: 30s;
    animation-delay: 8s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(180deg);
        opacity: 0;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Плавающие анимации для контента */
.floating {
    animation: floating 6s ease-in-out infinite;
}

.floating-delay {
    animation: floating 6s ease-in-out infinite 1s;
}

.float-card {
    animation: floatCard 8s ease-in-out infinite;
}

.float-card-delay {
    animation: floatCard 8s ease-in-out infinite 2s;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-5px) rotate(0.3deg); }
    66% { transform: translateY(-3px) rotate(-0.2deg); }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
}

.lang-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: floating 4s ease-in-out infinite;
}

.lang-btn.active {
    background: #fff;
    color: #000;
}

.lang-btn:hover {
    transform: translateY(-2px);
}

/* Content */
.content {
    margin-top: 4rem;
}

/* Profile */
.profile-section {
    text-align: center;
    margin-bottom: 4rem;
}

.name {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.bio-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.bio-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.bio-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Projects */
.projects-section {
    margin-bottom: 3rem;
}

.projects-section h2 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: #888;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    border-color: #fff;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.project-card p {
    color: #888;
    font-size: 0.9rem;
}

/* Contacts */
.contacts-section h2 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: #888;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-link:hover {
    border-color: #fff;
    transform: translateY(-5px) scale(1.02);
}

.contact-link span {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.contact-link small {
    color: #888;
    font-size: 0.8rem;
}

.contact-link.donate {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.contact-link.donate:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .name {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .contact-link {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Уменьшаем анимации на мобильных */
    .floating, .floating-delay, .float-card, .float-card-delay {
        animation-duration: 10s;
    }
}