/* Enhanced Cosmic Effects */

/* Improved project card effects */
.project {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.project:hover::before {
    left: 100%;
}

.project:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 247, 255, 0.3),
        0 0 0 1px rgba(0, 247, 255, 0.1);
}

/* Enhanced navigation effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--plasma-pink), transparent);
    transition: left 0.4s ease;
    opacity: 0.3;
}

.nav-link:hover::before {
    left: 100%;
}

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

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Glitch effect for headings */
@keyframes glitch {
    0% {
        text-shadow: 
            2px 0 var(--quantum-blue),
            -2px 0 var(--plasma-pink);
    }
    25% {
        text-shadow: 
            -2px 0 var(--quantum-blue),
            2px 0 var(--plasma-pink);
    }
    50% {
        text-shadow: 
            2px 0 var(--quantum-blue),
            -2px 0 var(--plasma-pink);
    }
    75% {
        text-shadow: 
            -2px 0 var(--quantum-blue),
            2px 0 var(--plasma-pink);
    }
    100% {
        text-shadow: 
            2px 0 var(--quantum-blue),
            -2px 0 var(--plasma-pink);
    }
}

.glitch-text {
    animation: glitch 5s infinite;
}

/* Pulse glow effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px var(--quantum-blue);
    }
    50% {
        box-shadow: 0 0 40px var(--quantum-blue), 0 0 60px var(--plasma-pink);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Neon border effect */
.neon-border {
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--quantum-blue), var(--plasma-pink)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-border:hover::after {
    opacity: 1;
}

/* Hover scale effect */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Float animation for blog posts */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-5px) rotate(1deg);
    }
    66% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

.float-animation {
    animation: floatAnimation 6s ease-in-out infinite;
}

/* Glow effect for navigation */
.glow-effect {
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
}

/* Enhanced button effects */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Quantum tunnel effect for sections */
@keyframes quantumTunnel {
    0% {
        transform: perspective(1000px) rotateX(0deg) translateZ(0);
    }
    100% {
        transform: perspective(1000px) rotateX(360deg) translateZ(100px);
    }
}

.quantum-tunnel {
    animation: quantumTunnel 20s linear infinite;
}

/* Enhanced scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cosmic particle trail */
.particle-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--quantum-blue);
    border-radius: 50%;
    pointer-events: none;
    animation: particleTrail 1s linear forwards;
}

@keyframes particleTrail {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Enhanced modal effects */
.modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Light sweep effect */
@keyframes lightSweep {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.light-sweep {
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.3), transparent);
    background-size: 200% 100%;
    animation: lightSweep 2s linear infinite;
}

/* Enhanced cursor effects */
.cosmic-cursor {
    mix-blend-mode: difference;
}

.cursor-trail {
    mix-blend-mode: screen;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .project:hover {
        transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    }
    
    .nav-link::before {
        display: none;
    }
    
    .quantum-tunnel {
        animation: none;
    }
}

/* Performance optimizations */
* {
    will-change: auto;
}

.project:hover,
.nav-link:hover,
.cta-btn:hover {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 