/* --- Ultra Cinematic Portal Cards --- */
.cine-wrapper {
    position: relative; perspective: 1500px; z-index: 10;
    cursor: pointer; pointer-events: auto !important;
}
.cine-card {
    position: relative; width: 100%; height: 100%; background: #0a0a0a;
    border-radius: 16px; overflow: hidden; transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s, filter 0.3s;
    will-change: transform; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    pointer-events: none !important;
}
.cine-bg, .cine-content {
    transform-style: preserve-3d; will-change: transform;
    transition: transform 0.1s; pointer-events: none !important;
}

/* Interaction */
.year-group:hover .cine-wrapper:not(:hover) .cine-card,
#featured-grid:hover .cine-wrapper:not(:hover) .cine-card {
    opacity: 0.5; filter: grayscale(80%) blur(1px);
    transform: scale(0.98) rotateX(0) rotateY(0) !important;
}
.cine-wrapper:hover .cine-card {
    opacity: 1; filter: grayscale(0%) blur(0); z-index: 50;
    border-color: var(--hover-color);
    box-shadow: 0 0 40px -10px var(--hover-color), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}

/* Glow & Reflections */
.cine-card::before {
    content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1.5px;
    background: radial-gradient(500px circle at var(--mouse-x) var(--mouse-y), var(--hover-color), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 10;
}
.cine-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.1), transparent 50%);
    opacity: 0; z-index: 11; pointer-events: none; transition: opacity 0.5s; mix-blend-mode: overlay;
}
.cine-wrapper:hover .cine-card::before,
.cine-wrapper:hover .cine-card::after { opacity: 1; }

/* Grid Styles */
#all-projects-view {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #050505; z-index: 2000; display: none; opacity: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.filter-btn { border: 1px solid #333; color: #888; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active {
    border-color: var(--color-accent); color: var(--color-accent); background: rgba(255, 255, 255, 0.05);
}
#all-projects-view button { pointer-events: auto !important; z-index: 1000 !important; }
.year-header { position: sticky; top: 80px; z-index: 40; mix-blend-mode: difference; pointer-events: none; }

/* Cyber Profile (About) */
.cyber-profile-container { position: relative; overflow: hidden; }
.cyber-profile-container img {
    filter: grayscale(100%) sepia(100%) hue-rotate(170deg) saturate(300%) contrast(1.2);
    transition: all 0.5s ease; mix-blend-mode: hard-light;
}
.cyber-profile-container:hover img { filter: none; mix-blend-mode: normal; }
.cyber-profile-container::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 4px);
    pointer-events: none; z-index: 2; opacity: 0.7;
}
.cyber-profile-container:hover { box-shadow: 0 0 15px var(--color-accent), inset 0 0 10px var(--color-accent); }
.award-badge {
    border: 1px solid #ffcc00; color: #ffcc00; box-shadow: 0 0 10px rgba(255, 204, 0, 0.2); animation: pulse-gold 3s infinite;
}
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.5); }
}