
/* ============ COOL ANIMATIONS ============ */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    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);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Apply animations to key elements */
.hero-title {
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.profile-pic {
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.profile-pic:hover {
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3) !important;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.skill-tag {
    transition: all 0.3s ease;
}

.skill-tag:nth-child(1) {
    animation: scaleIn 0.6s ease-out 0s forwards;
}

.skill-tag:nth-child(2) {
    animation: scaleIn 0.6s ease-out 0.1s forwards;
}

.skill-tag:nth-child(3) {
    animation: scaleIn 0.6s ease-out 0.2s forwards;
}

.skill-tag:nth-child(4) {
    animation: scaleIn 0.6s ease-out 0.3s forwards;
}

.skill-tag:nth-child(5) {
    animation: scaleIn 0.6s ease-out 0.4s forwards;
}

.skill-tag:nth-child(6) {
    animation: scaleIn 0.6s ease-out 0.5s forwards;
}

.skill-tag:nth-child(7) {
    animation: scaleIn 0.6s ease-out 0.6s forwards;
}

.skill-tag:hover {
    animation: wiggle 0.5s ease-in-out;
    transform: scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.project-card {
    animation: fadeInUp 0.8s ease-out;
}

.project-card:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 0s both;
}

.project-card:nth-child(2) {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.project-card:hover {
    animation: none;
}

.timeline-item:nth-child(1) {
    animation: slideInLeft 0.8s ease-out;
}

.timeline-item:nth-child(2) {
    animation: slideInRight 0.8s ease-out;
}

.timeline-item:nth-child(3) {
    animation: slideInLeft 0.8s ease-out;
}

.section-title {
    animation: fadeInDown 0.8s ease-out;
}

.about-pic {
    transition: all 0.3s ease;
}

.about-pic:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* Stagger animation for multiple elements */
.timeline-content {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.skill-category {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.contact-item {
    animation: slideInRight 0.8s ease-out;
}

.contact-item:nth-child(1) {
    animation: slideInRight 0.8s ease-out 0s both;
}

.contact-item:nth-child(2) {
    animation: slideInRight 0.8s ease-out 0.15s both;
}

.contact-item:nth-child(3) {
    animation: slideInRight 0.8s ease-out 0.3s both;
}
