@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #7e22ce;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* Animation for sections */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for call-to-action */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}
/* 3D background container */
#floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
/* Button hover and focus effects */
a:hover, button:hover,
a:focus, button:focus {
    transform: translateY(-2px) scale(1.05);
    transition: transform 0.2s ease;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.3);
}

/* Section hover and focus effects */
section:hover,
section:focus-within {
    transform: translateY(-5px) scale(1.01);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 
                0 10px 10px -5px rgba(124, 58, 237, 0.04);
}

/* Nav link hover and focus effects */
.nav-link:hover, 
.nav-link:focus {
    transform: translateY(-2px) scale(1.05);
    background-color: rgba(124, 58, 237, 0.3) !important;
    transition: all 0.3s ease;
}

/* Project card hover and focus effects */
.max-w-4xl:hover,
.max-w-4xl:focus-within {
    transform: translateY(-5px) scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.25) !important;
}

/* Skill card hover and focus effects */
.bg-gray-800\/50:hover,
.bg-gray-800\/50:focus-within {
    transform: translateY(-5px) scale(1.03);
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.25) !important;
}
/* Gradient text */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom underline animation */
.link-underline {
    position: relative;
    display: inline-block;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #9333ea;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Glass morphism effect */
.glass {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(17, 24, 39, 0.75);
}