/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(135deg, var(--highlight-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-animation {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden; /* Prevent elements from going outside */
    margin-top: -50px; /* Slightly overlap with text */
}

.floating-element {
    position: absolute;
    color: var(--highlight-color);
    animation: float 6s ease-in-out infinite;
    will-change: transform; /* Optimize for animations */
    transform: translate3d(0, 0, 0); /* Enable hardware acceleration */
}

/* Different sizes and opacity for variety */
.element-1 {
    font-size: 3rem;
    opacity: 0.8;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.element-2 {
    font-size: 2.5rem;
    opacity: 0.7;
    top: 60%;
    right: 25%;
    animation-delay: 0.7s;
}

.element-3 {
    font-size: 3.5rem;
    opacity: 0.6;
    bottom: 35%;
    left: 35%;
    animation-delay: 1.3s;
}

.element-4 {
    font-size: 2.8rem;
    opacity: 0.75;
    top: 35%;
    right: 15%;
    animation-delay: 2.1s;
}

.element-5 {
    font-size: 2.2rem;
    opacity: 0.85;
    top: 20%;
    right: 40%;
    animation-delay: 0.4s;
    color: #28a745; /* Green for money */
}

.element-6 {
    font-size: 3.2rem;
    opacity: 0.7;
    bottom: 15%;
    left: 20%;
    animation-delay: 1.8s;
    color: #0088cc; /* Telegram blue */
}

.element-7 {
    font-size: 2.6rem;
    opacity: 0.65;
    top: 45%;
    left: 10%;
    animation-delay: 2.5s;
}

.element-8 {
    font-size: 2.4rem;
    opacity: 0.8;
    bottom: 25%;
    right: 35%;
    animation-delay: 0.9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(90deg) scale(1.05);
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(1);
    }
    75% {
        transform: translateY(-10px) rotate(270deg) scale(0.95);
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--secondary-color);
}

.stat-card {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.stat-icon {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.stat-progress {
    height: 6px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight-color), #ff6b6b);
    border-radius: 3px;
    transition: width 2s ease-out;
}

/* Features Section */
.feature-card {
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--highlight-color);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #ff6b6b;
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* CTA Section */
.cta-card {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-card h2 {
    color: var(--text-light);
}

.cta-card .lead {
    color: rgba(255,255,255,0.9);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-animation {
        display: none;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .cta-card {
        padding: 3rem 1.5rem;
    }
}