/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #a855f7;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;
    transition: transform 0.15s ease-out, background-color 0.2s ease;
    transform: translate(-50%, -50%);
    will-change: left, top;
    mix-blend-mode: difference;
    background: rgba(168, 85, 247, 0.5);
}

.custom-cursor.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(168, 85, 247, 0.6);
}

/* Typing Effect */
.typing-text {
    display: inline-block;
    border-right: 3px solid #a855f7;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: #a855f7; }
    50% { border-color: transparent; }
}

/* Neon Button Effect */
.btn-neon {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.btn-neon:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8),
                0 0 60px rgba(118, 75, 162, 0.6);
    transform: translateY(-2px);
}

.btn-neon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

/* Fade In Animation */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D Card Hover Effect */
.portfolio-card,
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.portfolio-card:hover,
.card:hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
}

/* Gradient Border Animation */
.portfolio-card::before,
.card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 4s ease infinite;
}

.portfolio-card:hover::before,
.card:hover::before {
    opacity: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glowing Text Effect */
.hero-title .highlight {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5),
                 0 0 40px rgba(168, 85, 247, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.5),
                     0 0 40px rgba(168, 85, 247, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(168, 85, 247, 0.8),
                     0 0 60px rgba(168, 85, 247, 0.5);
    }
}

/* Glowing border animation */
@keyframes borderGlow {
    0%, 100% { 
        border-color: rgba(168, 85, 247, 0.3);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    }
    50% { 
        border-color: rgba(236, 72, 153, 0.5);
        box-shadow: 0 0 40px rgba(236, 72, 153, 0.3);
    }
}

/* Holographic effect */
.portfolio-item::after,
.attitude-card::after,
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(168, 85, 247, 0.1) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: holographic 3s ease infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes holographic {
    0% { background-position: -100% -100%; }
    100% { background-position: 200% 200%; }
}

/* Pulse animation for icons */
.attitude-icon,
.project-icon,
.contact-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Info items hover effect */
.info-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 10px;
}

.info-item:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateX(10px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
    
    #particles {
        opacity: 0.5;
    }
}

body {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
