@media (pointer: fine) {
    body, a { cursor: none !important; }
    button { cursor: pointer !important; }
    input, textarea { cursor: text !important; }
}

body {
    background-color: #010308;
    color: #F9FAFB;
    overflow-x: hidden;
    overscroll-behavior: none;
}

#webgl-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Custom Cursor */
.cursor-dot {
    width: 6px; height: 6px;
    background: #00f0ff;
    position: fixed; top: 0; left: 0;
    border-radius: 50%; z-index: 9999;
    pointer-events: none; transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-trail {
    width: 40px; height: 40px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    position: fixed; top: 0; left: 0;
    border-radius: 50%; z-index: 9998;
    pointer-events: none; transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),                   height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),                   background-color 0.3s;
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.1);
}

body.hovering .cursor-dot { width: 0; height: 0; opacity: 0; }

body.hovering .cursor-trail {
    width: 80px; height: 80px;
    background-color: rgba(0, 240, 255, 0.1);
    border-color: #00f0ff;
    backdrop-filter: blur(2px);
}

body.hovering-accent .cursor-trail {
     border-color: #ff0055;
     box-shadow: inset 0 0 20px rgba(255, 0, 85, 0.3);
     background-color: rgba(255, 0, 85, 0.1);
}

body.hide-custom-cursor .cursor-dot, body.hide-custom-cursor .cursor-trail {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Magnetic & Noise */
.magnetic-wrap { display: inline-block; position: relative; z-index: 10; }
.magnetic-item { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); will-change: transform; }

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9997; opacity: 0.06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3D Tilt Cards (index.html) */
.tilt-card-wrapper {
    position: relative;
    border-radius: 1.5rem;
    background: rgba(10, 15, 28, 0.4);
    transform-style: preserve-3d;
    perspective: 1000px;
    z-index: 1;
}

.tilt-card-wrapper::before {
    content: ""; position: absolute; inset: -2px; border-radius: 1.6rem;
    background: conic-gradient(from var(--angle), transparent 10%, #00f0ff 30%, #7000ff 50%, #ff0055 70%, transparent 90%);
    z-index: -1; animation: rotate-angle 4s linear infinite;
    opacity: 0.5; transition: opacity 0.5s ease;
    filter: blur(8px);
}

.tilt-card-wrapper:hover::before { opacity: 1; filter: blur(12px); }

.tilt-card-inner {
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 1.4rem;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glare {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 10; opacity: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    transition: opacity 0.3s ease; mix-blend-mode: overlay;
}

.tilt-card-wrapper:hover .glare { opacity: 1; }
.tilt-content { transform: translateZ(50px); }

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotate-angle { to { --angle: 360deg; } }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(60px) scale(0.9); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); filter: blur(10px); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }

#loader { transition: opacity 0.6s ease; }
.loader-glitch { animation: glitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #010308; }
::-webkit-scrollbar-thumb { background: #7000ff; border-radius: 10px; }

/* Mockup Glow (netherfall_case.html) */
.mockup-glow {
    position: relative;
}
.mockup-glow::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(249,115,22,0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}