body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

.navbar {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.nav-link {
    color: #cccccc !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

/* Multi-color animated border around profile photo */
.profile-img {
    max-width: 200px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    margin: 0 auto 1rem auto;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile-img::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: conic-gradient(from 0deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff, #ff0000);
    border-radius: 50%;
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
}

.profile-img>img {
    display: block;
    border-radius: 50%;
    width: 190px;
    height: 190px;
    background-color: #121212;
    padding: 5px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-text {
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

.about-section,
.projects-section,
.skills-section,
.contact-section {
    opacity: 0;
    transform: translateY(20px);
}

.about-section.in-view,
.projects-section.in-view,
.skills-section.in-view,
.contact-section.in-view {
    animation: fadeInUp 1s ease forwards;
}

.project-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.skill-badge {
    font-weight: 500;
    font-size: 1rem;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: #0d6efd;
    color: white;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skill-badge:hover {
    background-color: #0b5ed7;
    transform: scale(1.1);
}

.contact-form .form-control {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

.form-label {
    color: #e0e0e0;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    background-color: #121212;
    color: #e0e0e0;
}

.contact-section {
    padding-top: 80px;
    margin-top: 80px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    font-size: 2rem;
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    /* Removed the generic 'pulse' animation from here */
}

/* --- NEW: Apply specific color pulse to each icon --- */
.social-icon.whatsapp {
    animation: pulse-whatsapp 2s ease-in-out infinite;
}
.social-icon.instagram {
    animation: pulse-instagram 2s ease-in-out infinite;
}
.social-icon.linkedin {
    animation: pulse-linkedin 2s ease-in-out infinite;
}
.social-icon.github {
    animation: pulse-github 2s ease-in-out infinite;
}
.social-icon.facebook {
    animation: pulse-facebook 2s ease-in-out infinite;
}
.social-icon.twitter {
    animation: pulse-twitter 2s ease-in-out infinite;
}
.social-icon.email {
    animation: pulse-email 2s ease-in-out infinite;
}
.social-icon.phone {
    animation: pulse-phone 2s ease-in-out infinite;
}

/* --- Hover styles remain the same --- */
/* They will override the animation color when hovered */
.social-icon:hover {
    transform: scale(1.2);
}

.social-icon.instagram:hover {
    color: #E4405F;
}

.social-icon.facebook:hover {
    color: #1877F2;
}

.social-icon.twitter:hover {
    color: #1DA1F2;
}

.social-icon.linkedin:hover {
    color: #0077B5;
}

.social-icon.whatsapp:hover {
    color: #25D366;
}

.social-icon.github:hover {
    color: #e9e4e4;
}

.social-icon.email:hover {
    color: #D44638;
}

.social-icon.phone:hover {
    color: #01fa16;
}

.social-links a {
    padding: 25px;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* --- NEW: 8 Keyframe animations for each icon color --- */
@keyframes pulse-whatsapp {
    0% { color: #ffffff; }
    50% { color: #25D366; }
    100% { color: #ffffff; }
}
@keyframes pulse-instagram {
    0% { color: #ffffff; }
    50% { color: #E4405F; }
    100% { color: #ffffff; }
}
@keyframes pulse-linkedin {
    0% { color: #ffffff; }
    50% { color: #0077B5; }
    100% { color: #ffffff; }
}
@keyframes pulse-github {
    0% { color: #ffffff; }
    50% { color: #e9e4e4; }
    100% { color: #ffffff; }
}
@keyframes pulse-facebook {
    0% { color: #ffffff; }
    50% { color: #1877F2; }
    100% { color: #ffffff; }
}
@keyframes pulse-twitter {
    0% { color: #ffffff; }
    50% { color: #1DA1F2; }
    100% { color: #ffffff; }
}
@keyframes pulse-email {
    0% { color: #ffffff; }
    50% { color: #D44638; }
    100% { color: #ffffff; }
}
@keyframes pulse-phone {
    0% { color: #ffffff; }
    50% { color: #25D366; }
    100% { color: #ffffff; }
}
