:root {
    --primary: #a3bffa;
    --secondary: #f5a3c7;
    --glass: rgba(255, 255, 255, 0.15);
}

body {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    animation: gradient 12s ease infinite;
    font-family: 'Poppins', sans-serif;
    color: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

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

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: url('https://harib0dev.ru/images/IMG_4396.PNG') no-repeat center;
    background-size: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.btn-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.typing-text {
    border-right: 3px solid white;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: white }
}

.status-badge {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.music-player {
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Dark Mode */
body.dark-mode {
    background: #1e1e1e !important;
    animation: none !important;
}

body.dark-mode .glass-card,
body.dark-mode .music-player {
    background: #2f2f2f !important;
    border: none !important;
}

body.dark-mode .status-badge {
    background: #3a3a3a !important;
}

body.dark-mode .btn-gradient {
    background: linear-gradient(90deg, #444, #222) !important;
    color: white !important;
}