/* ============================================
   Advanced Interactive Effects
   3D Tilt & Magnetic Buttons
   ============================================ */

/* 3D Card Tilt Effect */
.project-card,
.skill-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover,
.skill-card:hover {
    transform: translateY(-15px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.02);
}

/* Magnetic Button Effect */
.btn,
.contact-link {
    --mouse-x: 0;
    --mouse-y: 0;
}

.btn:hover,
.contact-link:hover {
    transform: translate(calc(var(--mouse-x) * 0.3px), calc(var(--mouse-y) * 0.3px)) translateY(-5px) scale(1.02);
}

/* Enhanced Glow Effects */
.btn-primary::before,
.btn-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 0;
    filter: blur(20px);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.btn-primary:hover::before,
.btn-accent:hover::before {
    opacity: 0.8;
}

/* Neon Glow on Hover */
.skill-card:hover {
    box-shadow:
        0 30px 60px rgba(26, 47, 107, 0.4),
        0 0 60px rgba(0, 217, 255, 0.3),
        inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.project-card:hover {
    box-shadow:
        0 40px 80px rgba(26, 47, 107, 0.5),
        0 0 80px rgba(217, 70, 239, 0.3),
        inset 0 0 30px rgba(217, 70, 239, 0.1);
}

/* Parallax Background Orbs */
.orb {
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.orb-1 {
    background: radial-gradient(circle, rgba(0, 217, 255, 0.4), rgba(26, 47, 107, 0.2));
}

.orb-2 {
    background: radial-gradient(circle, rgba(217, 70, 239, 0.4), rgba(139, 92, 246, 0.2));
}

.orb-3 {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3), rgba(0, 217, 255, 0.2));
}

/* Enhanced Particle Glow */
@keyframes particlePulse {

    0%,
    100% {
        opacity: 0.4;
        filter: drop-shadow(0 0 4px rgba(0, 217, 255, 0.8));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(0, 217, 255, 1));
    }
}

/* Smooth Glass Morphism */
.hero-badge,
.section-tag {
    background: rgba(26, 47, 107, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animated Gradient Borders */
@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(0, 217, 255, 0.3);
    }

    50% {
        border-color: rgba(217, 70, 239, 0.6);
    }
}

.contact:hover {
    animation: borderGlow 3s ease-in-out infinite;
}

/* Enhanced Status Dot */
.status-dot {
    box-shadow:
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan),
        0 0 60px var(--neon-cyan);
}