/* Unique Cyber Bento Box Styles (Scrollable Edition) */

body {
    background-color: #030305;
    background-image: radial-gradient(circle at center, #0a0a0f 0%, #030305 100%);
    background-attachment: fixed;
}

/* Background Grid Pattern */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor Spotlight */
#spotlight {
    position: fixed; /* Fixed to viewport */
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 42, 42, 0.07) 0%, rgba(0, 240, 255, 0.03) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: width 0.3s, height 0.3s;
}

/* Social Buttons */
.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #9ca3af;
    background: rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #fff;
    color: #030305;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Panels */
.bento-panel {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 10;
}

.bento-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8);
}

/* Skill Nodes */
.skill-node {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.4);
    display: inline-block;
}

/* Animated Border for Photo Panel */
.laser-border {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    pointer-events: none;
    z-index: 20;
}
.laser-border::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}
.bento-panel:hover .laser-border::before {
    opacity: 1;
    animation: border-dance 4s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #030305; }
::-webkit-scrollbar-thumb { background: #1f1f2e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00f0ff; }
