/* animations.css */

/* Enhanced Service Cards Animation */
.service-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleY(1);
    opacity: 0.1;
}

.service-icon {
    transition: transform 0.5s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    color: var(--primary);
}

.service-link {
    position: relative;
    overflow: hidden;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Tech Card Animations */
.tech-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tech-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tech-icon {
    transition: all 0.5s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
    color: var(--secondary);
}

/* Tech Button Animations */
.tech-button {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tech-button:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-button i {
    transition: transform 0.5s ease;
}

.tech-button:hover i {
    transform: scale(1.2);
}

/* Resource Card Animations */
.resource-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.resource-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    transition: all 0.5s ease;
}

.resource-card:hover .resource-icon {
    transform: rotateY(180deg);
    color: var(--secondary);
}

/* Enhanced Pricing Cards Animation */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.pricing-features li {
    transition: transform 0.3s ease, color 0.3s ease;
    transform: translateX(0);
}

.pricing-card:hover .pricing-features li {
    transform: translateX(5px);
}

.pricing-card:hover .pricing-features li:nth-child(odd) {
    transform: translateX(-5px);
}

.pricing-features li:hover {
    color: var(--primary-dark);
    transform: translateX(10px) !important;
}

/* Enhanced About Section Animation */
.about-image {
    overflow: visible;
    perspective: 1000px;
}

.about-image .image-container {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.about-image:hover .image-container {
    transform: rotateY(10deg) rotateX(5deg);
}

.image-overlay {
    transition: opacity 0.5s ease, background 0.5s ease;
}

.about-image:hover .image-overlay {
    opacity: 0.5;
    background: var(--gradient-dark);
}

.stats-grid {
    perspective: 1000px;
}

.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.stat-item:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    position: relative;
    overflow: hidden;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Professional Styling Enhancements */
.services-grid {
    gap: 2.5rem;
}

.service-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
}

/* Pricing Section Enhancements */
.pricing-grid {
    gap: 2.5rem;
}

.pricing-card {
    border-radius: 12px;
    padding: 3rem 2rem;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    border: none;
    position: relative;
    z-index: 1;
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    z-index: -1;
    border-radius: 12px;
    animation: gradientBorder 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.price {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
}

.price::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.pricing-features {
    margin-bottom: 2.5rem;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-left: 2.2rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .pricing-card:hover {
        transform: translateY(-5px);
    }
    
    .about-image:hover .image-container {
        transform: none;
    }

    .tech-card:hover {
        transform: translateY(-5px);
    }

    .resource-card:hover {
        transform: translateY(-5px);
    }
}