/* Additional Animations and Effects */

/* Gradient Animation for Hero Section */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

/* Hover Effects for Project Cards */
.project-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Staggered Animation for Skill Tags */
.skill-tags span {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.skill-tags span:nth-child(1) { animation-delay: 0.1s; }
.skill-tags span:nth-child(2) { animation-delay: 0.2s; }
.skill-tags span:nth-child(3) { animation-delay: 0.3s; }
.skill-tags span:nth-child(4) { animation-delay: 0.4s; }
.skill-tags span:nth-child(5) { animation-delay: 0.5s; }
.skill-tags span:nth-child(6) { animation-delay: 0.6s; }
.skill-tags span:nth-child(7) { animation-delay: 0.7s; }
.skill-tags span:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Hover Animation */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

/* Success Message Animation */
.success-message {
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Floating Animation for About Image */
.about-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Typing Animation for Hero Text */
.hero h1 {
    position: relative;
}

.hero h1::after {
    content: '|';
    position: absolute;
    right: -15px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Smooth Transition for Dark Mode */
body, header, .nav-links, input, textarea, .project-card, .contact-form input, .contact-form textarea {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Social Icons Hover Effect */
.social-links a i {
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: rotate(360deg);
}