/* Custom Styles for Portfolio Website */

body {
    font-family: 'Space Grotesk', sans-serif;
    cursor: crosshair;
}

/* Wireframe Sphere Effect */
.wireframe-sphere {
    background-image: radial-gradient(circle at center, rgba(19, 91, 236, 0.1) 0%, transparent 70%);
    position: relative;
}

.wireframe-sphere::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(19, 91, 236, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 91, 236, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    opacity: 0.3;
}

/* Project Card Hover Effects */
.project-card:hover .tech-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Scanline Effect */
.scanline {
    width: 100%;
    height: 2px;
    background: rgba(204, 255, 0, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 50;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes reverse-spin {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.animate-reverse-spin {
    animation: reverse-spin 40s linear infinite;
}

/* Radar sweep */
@keyframes radar-spin {
    to { transform: rotate(360deg); }
}

.radar-rotor {
    animation: radar-spin 4s linear infinite;
}

/* Blip: flashes when the sweep line passes, then dims */
@keyframes blip-ping {
    0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.5); }
    8%   { opacity: 1;   transform: translate(-50%, -50%) scale(2); }
    25%  { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(0.8); }
}

.radar-blip {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: #ccff00;
    box-shadow: 0 0 6px #ccff00, 0 0 14px rgba(204, 255, 0, 0.5);
    opacity: 0;
    animation: blip-ping 4s ease-out infinite;
}

/* Sonar ping ring */
@keyframes radar-ping {
    0%   { transform: scale(0.55); opacity: 0.6; }
    100% { transform: scale(1.6);  opacity: 0; }
}

.radar-ping-ring {
    animation: radar-ping 3s ease-out infinite;
}
