
/* Particle background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    z-index: -1;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Glow pulse animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3),
                    0 0 20px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.8),
                    0 0 40px rgba(239, 68, 68, 0.4);
    }
}

/* Neon border animation */
@keyframes neon-border {
    0%, 100% {
        border-color: rgba(239, 68, 68, 0.8);
    }
    50% {
        border-color: rgba(239, 68, 68, 0.2);
    }
}

/* Text glow animation */
@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    }
}

/* Apply animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s infinite, neon-border 4s infinite;
}

.animate-text-glow {
    animation: text-glow 2s infinite;
}

/* Hover effects */
.nav-link:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}
/* Smooth scrolling with parallax */
html {
    scroll-behavior: smooth;
}

/* 3D card effect */
.portfolio-item {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.portfolio-item img {
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9);
}

.portfolio-item:hover img {
    transform: scale(1.05) rotateY(5deg);
    filter: brightness(1.1);
}

/* Portfolio hover expand */
.portfolio-expand {
    transition: max-height 0.5s ease-in-out, border-color 0.3s ease;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(45deg, #ef4444, #84cc16);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Section entrance animations */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Custom cursor */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ef4444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/></svg>'), auto;
}
