/* Add scroll animations and advanced effects */

/* Fade in on scroll animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card enhanced animations */
.service-card {
    animation: slideInUp 0.8s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 50px rgba(112, 0, 255, 0.4), inset 0 0 20px rgba(0, 255, 65, 0.1);
    border-color: var(--primary-green);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Section titles enhancement */
.section-title {
    position: relative;
    display: inline-block;
    animation: slideInDown 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-accent), var(--primary-green));
    border-radius: 2px;
    animation: expandWidth 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Gallery stagger animation */
.gallery-item {
    animation: slideInUp 0.8s ease-out both;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced gallery image effect */
.gallery-image img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.1) contrast(1.1);
}

/* Smooth navbar transitions */
.navbar {
    animation: slideInDown 0.6s ease-out;
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 5px 20px rgba(112, 0, 255, 0.3);
}

/* Button ripple effect */
.view-btn::after {
    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;
}

.view-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Tag hover effects */
.tag {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tag:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 0, 255, 0.5);
    background: linear-gradient(135deg, var(--purple-accent), #8000ff);
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Smooth text reveal */
.hero-bio {
    animation: slideInUp 1.4s ease-out;
}

/* Cyber line enhancement */
.cyber-line {
    animation: expandWidth 1s ease-out 0.6s forwards;
}
/* Scroll-triggered reveal animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.section-title {
    animation: slideInDown 0.8s ease-out;
}

.gallery-item {
    animation: fadeInScale 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 0, 255, 0.4);
}

.stat-box {
    animation: slideInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(102, 0, 255, 0.5);
    border-color: #00ff41;
}

/* Pricing card animations */
.pricing-card {
    animation: slideInUp 0.8s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(102, 0, 255, 0.3);
}

.pricing-card.popular {
    animation: pulse 2s infinite;
}