/* Animations CSS File */

/* General Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Apply animations to elements */
.hero-content {
    animation: slideInRight 1s ease-out;
}

.hero-image {
    animation: slideInLeft 1s ease-out;
}

.section-header {
    animation: fadeIn 1.2s ease-out;
}

.service-card, .skill-item, .certification-card {
    animation: slideInUp 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .skill-item:hover, .certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon, .skill-icon, .certification-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon,
.skill-item:hover .skill-icon,
.certification-card:hover .certification-icon {
    transform: scale(1.1);
}

/* Navigation animations */
.navbar ul li a {
    position: relative;
    transition: color 0.3s ease;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* Button animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 100%;
}



@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.5s; }

.skills-grid .skill-item:nth-child(1) { animation-delay: 0.1s; }
.skills-grid .skill-item:nth-child(2) { animation-delay: 0.2s; }
.skills-grid .skill-item:nth-child(3) { animation-delay: 0.3s; }
.skills-grid .skill-item:nth-child(4) { animation-delay: 0.4s; }

.certifications-grid .certification-card:nth-child(1) { animation-delay: 0.1s; }
.certifications-grid .certification-card:nth-child(2) { animation-delay: 0.3s; }
.certifications-grid .certification-card:nth-child(3) { animation-delay: 0.5s; }
.certifications-grid .certification-card:nth-child(4) { animation-delay: 0.7s; }

/* Social links animations */
.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
} 