
/* Custom cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.5);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}
.custom-cursor.active {
    width: 40px;
    height: 40px;
    background-color: rgba(37, 99, 235, 0.3);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 3D Button effect */
.btn-3d {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.3s ease;
}
.btn-3d:hover {
    transform: perspective(1000px) rotateX(10deg) translateY(-5px);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.dark .glass {
    background: rgba(30, 30, 30, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Particle background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1e1e1e;
}
.dark ::-webkit-scrollbar-thumb {
    background: #3b82f6;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transition: width 0.3s ease;
}
.nav-link:hover:after {
    width: 100%;
}

/* Card hover effect */
.service-card {
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-15px);
}

/* Icon bounce animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.bounce-hover:hover {
    animation: bounce 0.6s ease infinite;
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #2563eb;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animated background gradient */
.bg-gradient-animated {
    background: linear-gradient(-45deg, #2563eb, #10b981, #3b82f6, #059669);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typing animation */
.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #2563eb;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 1s step-end infinite;
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: #2563eb }
}
