/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

/* Active Animation States */
.fade-up.active,
.fade-in.active,
.slide-in.active,
.scale-in.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Animations */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

.portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-item:nth-child(2) { transition-delay: 0.2s; }
.portfolio-item:nth-child(3) { transition-delay: 0.3s; }

.skill-item:nth-child(1) { transition-delay: 0.1s; }
.skill-item:nth-child(2) { transition-delay: 0.2s; }
.skill-item:nth-child(3) { transition-delay: 0.3s; }
.skill-item:nth-child(4) { transition-delay: 0.4s; }

/* Scroll-triggered Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Blog Post Animations */
.blog-card:nth-child(1) { transition-delay: 0.1s; }
.blog-card:nth-child(2) { transition-delay: 0.2s; }
.blog-card:nth-child(3) { transition-delay: 0.3s; }
.blog-card:nth-child(4) { transition-delay: 0.4s; }
.blog-card:nth-child(5) { transition-delay: 0.5s; }
.blog-card:nth-child(6) { transition-delay: 0.6s; }

/* Blog Filter (for future use) */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* Responsive Blog Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-cta {
        padding: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-image {
        height: 150px;
    }
    
    .image-placeholder {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-cta {
        padding: 1.5rem;
    }
}

/* Add to existing animation classes in animations.css */
.about-me-image {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.about-me-text {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.about-me-image.active,
.about-me-text.active {
    opacity: 1;
    transform: translateX(0);
}