/* Visual Enhancements - Анимации, персонажи, декоративные элементы */

/* Анимированный фон с частицами */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

/* Декоративные персонажи/иконки */
.character-decoration {
    position: absolute;
    font-size: 8rem;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.character-decoration.left {
    left: -50px;
    top: 20%;
}

.character-decoration.right {
    right: -50px;
    top: 60%;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Улучшенный Hero с персонажами */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🎮';
    position: absolute;
    left: 10%;
    top: 30%;
    font-size: 15rem;
    opacity: 0.03;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '⚡';
    position: absolute;
    right: 10%;
    bottom: 20%;
    font-size: 12rem;
    opacity: 0.03;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 1;
}

/* Анимированные градиенты */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #ff6b35 50%, #4a9eff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Улучшенные карточки с эффектом свечения */
.feature-card,
.package-card,
.donate-form-container {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.package-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover::before,
.package-card:hover::before {
    opacity: 1;
}

/* Анимированные иконки */
.feature-icon {
    position: relative;
    display: inline-block;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s;
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
    width: 150px;
    height: 150px;
}

.feature-icon i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2) rotate(5deg);
}

/* Декоративные элементы для страницы доната */
.donate-section {
    position: relative;
}

.donate-section::before {
    content: '💰';
    position: absolute;
    left: 5%;
    top: 10%;
    font-size: 10rem;
    opacity: 0.03;
    animation: float 7s ease-in-out infinite;
    z-index: 0;
}

.donate-section::after {
    content: '💎';
    position: absolute;
    right: 5%;
    bottom: 10%;
    font-size: 8rem;
    opacity: 0.03;
    animation: float 9s ease-in-out infinite reverse;
    z-index: 0;
}

/* Анимированные статистики */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-value {
    position: relative;
    z-index: 2;
    animation: countUp 1s ease-out;
}

/* Пульсирующие кнопки */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

/* Улучшенные градиенты для карточек */
.package-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-image: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(74, 158, 255, 0.3)) 1;
}

.package-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(74, 158, 255, 0.1) 100%);
    box-shadow: 
        0 8px 30px rgba(255, 107, 53, 0.3),
        0 0 50px rgba(74, 158, 255, 0.2);
}

/* Анимированный текст */
.page-title {
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #4a9eff);
    animation: underlineExpand 1s ease-out forwards;
}

@keyframes underlineExpand {
    to { width: 100%; }
}

/* Декоративные частицы */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 53, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Улучшенная навигация */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8) !important;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-menu a:hover::before {
    opacity: 1;
}

/* Анимированный логотип */
.logo {
    position: relative;
}

.logo i {
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Улучшенные формы */
.donate-form-container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 50px rgba(255, 107, 53, 0.05);
}

/* Эффект свечения при фокусе */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 
        0 0 0 3px rgba(255, 107, 53, 0.1),
        0 0 20px rgba(255, 107, 53, 0.3) !important;
}

/* Анимированные иконки в списках */
.info-content ul li i {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Улучшенный футер */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 53, 0.05) 100%);
    pointer-events: none;
}

/* Responsive улучшения */
@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        font-size: 8rem;
    }
    
    .donate-section::before,
    .donate-section::after {
        font-size: 5rem;
    }
}

/* Дополнительные визуальные эффекты */
.glow-effect {
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.3),
        0 0 40px rgba(255, 107, 53, 0.2),
        0 0 60px rgba(255, 107, 53, 0.1);
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


