
/* 3D Tilt Cards Glare */
.tilt-card {
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

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

.tilt-card:hover .tilt-glare {
    opacity: 1;
}

/* Hacker Mode (Konami Code) */
.hacker-mode {
    background-color: #000 !important;
    color: #0f0 !important;
    font-family: 'Courier New', Courier, monospace !important;
}

.hacker-mode * {
    background-color: transparent !important;
    color: #0f0 !important;
    border-color: #0f0 !important;
    box-shadow: none !important;
    font-family: 'Courier New', Courier, monospace !important;
    text-shadow: 0 0 5px #0f0 !important;
}

.hacker-mode img, .hacker-mode svg {
    filter: hue-rotate(120deg) brightness(1.5) contrast(2) sepia(1) hue-rotate(60deg) saturate(5) !important;
}

.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s;
}

.hacker-mode .matrix-canvas {
    opacity: 0.3;
}

.hacker-overlay-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #0f0;
    z-index: 99999;
    font-family: monospace;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    text-align: center;
}

/* Botón Prohibido */
.btn-prohibido {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: rgba(255, 0, 0, 0.5);
    font-family: monospace;
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2147483640;
}
.btn-prohibido:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

/* Rave Mode */
.rave-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 2147483645;
    mix-blend-mode: difference;
    display: none;
}
body.rave-mode .rave-overlay {
    display: block;
    animation: rave-bg 0.5s infinite;
}

@keyframes rave-bg {
    0% { background-color: #ff0000; }
    33% { background-color: #00ff00; }
    66% { background-color: #0000ff; }
    100% { background-color: #ff0000; }
}
@keyframes rave-bounce {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    25% { transform: translateY(-10px) scale(1.05) rotate(2deg); }
    75% { transform: translateY(10px) scale(0.95) rotate(-2deg); }
}

body.rave-mode {
    /* No filter on body to prevent fixed position bugs */
}
body.rave-mode h1, body.rave-mode h2, body.rave-mode h3, 
body.rave-mode p, body.rave-mode img, body.rave-mode .service-card, 
body.rave-mode .portfolio-card, body.rave-mode .btn {
    animation: rave-bounce 0.4s infinite !important;
}
body.rave-mode *:not(.cursor-dot):not(.cursor-outline) {
    transition: none !important;
}

/* Graffiti Mode */
.graffiti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    pointer-events: none;
}
body.graffiti-active .graffiti-canvas {
    pointer-events: auto;
    cursor: crosshair !important;
}
.graffiti-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #00d4ff;
    padding: 10px 20px;
    border: 2px solid #00d4ff;
    border-radius: 20px;
    font-family: monospace;
    font-weight: bold;
    z-index: 1000000;
    pointer-events: none;
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0 0 15px #00d4ff;
}
body.graffiti-active .graffiti-indicator {
    opacity: 1;
}
