/* Gradient Animations */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; transform: scale(1); }
    50% { background-position: 100% 50%; transform: scale(1.02); }
    100% { background-position: 0% 50%; transform: scale(1); }
}

@keyframes floatElement {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    color: white;
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    animation: floatElement 3s ease-in-out infinite;
}

.hero-image img {
    animation: floatElement 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Floating Shapes Animation */
.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,0 100,50 50,100 0,50' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") repeat;
    animation: floatShapes 20s linear infinite;
    opacity: 0.5;
}

@keyframes floatShapes {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-100px) rotate(360deg); }
}

/* Services Section */
.services-section {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    padding: 80px 0;
    position: relative;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin: 15px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 13px;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #6366f1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover .service-icon i {
    animation: pulseGlow 2s infinite;
    color: #6366f1;
}

/* Features Section */
.features-section {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%);
    color: white;
}

.stats-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(5px);
}

/* Counter Animation */
.counter {
    display: inline-block;
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Interactive Elements */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Scroll Animation */
.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animated.fadeInUp {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }