/* Custom styles to complement Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    scroll-behavior: smooth;
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: #4f46e5;
    /* indigo */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Common button style */
.btn-transition {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    background: linear-gradient(90deg,
            #4f46e5,
            #4338ca,
            #4f46e5);
    /* indigo gradient */
    background-size: 300% 100%;
    transition: all 0.5s ease-in-out;
}

/* Hover animation */
.btn-transition:hover {
    background-position: right center;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    /* indigo shadow */
    transform: scale(1.03);
}

/* Outlined button variant */
.btn-transition.outline {
    background: white;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

/* Hover for outlined button */
.btn-transition.outline:hover {
    background: linear-gradient(90deg,
            #4f46e5,
            #4338ca,
            #4f46e5);
    color: white;
    border-color: transparent;
    background-size: 300% 100%;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    transform: scale(1.03);
}

/* Stylish shadow + hover animation for info badges */
.info-badge {
    box-shadow: 0 3px 6px rgba(79, 70, 229, 0.15);
    transition: all 0.4s ease-in-out;
}

.info-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    background: linear-gradient(90deg,
            #e0e7ff,
            #c7d2fe);
    /* soft indigo gradient */
}

.info-badge i {
    transition: transform 0.3s ease;
}

.info-badge:hover i {
    transform: rotate(10deg) scale(1.1);
}


/* Skill card hover effect */
.skill-card:hover .fa-html5 {
    color: #e34c26;
}

.skill-card:hover .fa-css3-alt {
    color: #0033ff;
}

.skill-card:hover .fa-js {
    color: #f0db4f;
}

.skill-card:hover .fa-react {
    color: #61dbfb;
}

.skill-card:hover .fa-node-js {
    color: #3c873a;
}

.skill-card:hover .fa-database {
    color: #4DB33D;
}

.skill-card:hover .fa-git-alt {
    color: #f1502f;
}

.skill-card:hover .fa-github {
    color: #252525;
}

.skill-card:hover .fa-github {
    color: #252525;
}

.skill-card:hover .fa-mobile-alt {
    color: #3b82f6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}


/* Project card icon animation */
.project-card:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}


/* Social icon hover effect */
.social-icon:hover i {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Back to top button styles */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom animation for hero section */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-image {
    animation: float 4s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 25px 3px rgba(37, 99, 235, 0.5);
    }

    50% {
        box-shadow: 0 0 40px 8px rgba(37, 99, 235, 0.8);
    }

    100% {
        box-shadow: 0 0 25px 3px rgba(37, 99, 235, 0.5);
    }
}