/* Global Design Tokens & Styles */

:root {
    --accent-color: #53FC18;
    --accent-color-rgb: 83, 252, 24;
    --kick-green: var(--accent-color);
    --electric-cyan: #00C8FF;
    --proton-purple: #C500FF;
    --background: #0e0e0e;
    --glass-bg: rgba(18, 18, 18, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Material Symbols Styling */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Custom Scrollbar - High-End Gaming Setup style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0e0e0e;
}
::-webkit-scrollbar-thumb {
    background: #252424;
    border-radius: 9999px;
    border: 2px solid #0e0e0e;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--kick-green);
}

/* Neon Text Glow */
.text-glow-green {
    text-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.4), 0 0 40px rgba(var(--accent-color-rgb), 0.15);
}

.text-glow-cyan {
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
}

/* Live Stream Pulsing animations */
@keyframes pulse-red-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.4), inset 0 0 5px rgba(255, 0, 0, 0.2);
        transform: scale(1) translateX(-50%);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), inset 0 0 10px rgba(255, 0, 0, 0.4);
        transform: scale(1.03) translateX(-50%);
    }
}

.pulse-live {
    animation: pulse-red-glow 2s infinite ease-in-out;
}

/* Glassmorphic Bento Cards */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Dynamic Radial Mouse Glow Gradient */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        350px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
        rgba(255, 255, 255, 0.05), 
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}

.glass-card:hover::before {
    opacity: 1;
}

/* Hover-specific Neon glow outlines for grids */
.glass-card.group:hover {
    box-shadow: 0 10px 30px rgba(var(--accent-color-rgb), 0.04), 0 0 2px rgba(var(--accent-color-rgb), 0.1);
}

/* Nav Link Hover Borders */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--kick-green);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Copy Tooltip Animations */
.copy-tooltip {
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Active Nav State */
.active-nav {
    color: var(--kick-green) !important;
    font-weight: 700;
}

/* Portfolio Filters */
.filter-btn {
    position: relative;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}
.filter-btn.active {
    background: var(--kick-green);
    color: #0e0e0e;
    border-color: var(--kick-green);
    font-weight: 700;
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.3);
}

/* Portfolio Work Cards */
.portfolio-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
    transform: scale(1);
}
.portfolio-card.hidden-item {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

/* Platform Specific Card Glows on Hover */
.portfolio-card[data-platform="youtube"]:hover {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15), 0 0 2px rgba(255, 0, 0, 0.3);
}
.portfolio-card[data-platform="kick"]:hover {
    border-color: rgba(var(--accent-color-rgb), 0.5);
    box-shadow: 0 10px 30px rgba(var(--accent-color-rgb), 0.15), 0 0 2px rgba(var(--accent-color-rgb), 0.3);
}
.portfolio-card[data-platform="instagram"]:hover {
    border-color: rgba(197, 0, 255, 0.5);
    box-shadow: 0 10px 30px rgba(197, 0, 255, 0.15), 0 0 2px rgba(197, 0, 255, 0.3);
}
.portfolio-card[data-platform="tiktok"]:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15), 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Thumbnail Play Overlay */
.portfolio-thumbnail-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-thumbnail-container::after {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    background-color: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    width: 95%;
    max-width: 960px;
    background: #131313;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--accent-color-rgb), 0.1);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

/* Custom Cursor styles (Only active on screens with mouse, i.e., desktop/laptop) */
@media (hover: hover) and (pointer: fine) {
    body, a, button, [role="button"], .portfolio-card, .glass-card, select, input, textarea {
        cursor: none !important;
    }
    .custom-cursor-dot {
        width: 8px;
        height: 8px;
        background-color: var(--kick-green);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 99999;
        transition: width 0.15s, height 0.15s, background-color 0.15s;
    }
    .custom-cursor-ring {
        width: 32px;
        height: 32px;
        border: 1.5px solid rgba(var(--accent-color-rgb), 0.3);
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 99998;
        transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
    }
    /* When hovering clickable elements */
    body.cursor-hover .custom-cursor-dot {
        width: 4px;
        height: 4px;
        background-color: var(--electric-cyan);
    }
    body.cursor-hover .custom-cursor-ring {
        width: 48px;
        height: 48px;
        border-color: var(--electric-cyan);
        background-color: rgba(0, 200, 255, 0.05);
    }
}

/* Lightbox Glowing Border & Loading Animation */
.lightbox-content {
    border: 2px solid rgba(var(--accent-color-rgb), 0.2);
    box-shadow: 0 0 30px rgba(var(--accent-color-rgb), 0.1);
    transition: all 0.3s ease;
}
.lightbox-modal.active .lightbox-content {
    animation: lightboxGlowPulse 4s infinite alternate;
}
@keyframes lightboxGlowPulse {
    0% {
        border-color: rgba(var(--accent-color-rgb), 0.25);
        box-shadow: 0 0 30px rgba(var(--accent-color-rgb), 0.2);
    }
    50% {
        border-color: rgba(0, 200, 255, 0.4);
        box-shadow: 0 0 45px rgba(0, 200, 255, 0.25);
    }
    100% {
        border-color: rgba(197, 0, 255, 0.35);
        box-shadow: 0 0 40px rgba(197, 0, 255, 0.2);
    }
}

/* Video Loader & Spinner */
.video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #131313;
    z-index: 20;
    transition: opacity 0.3s ease;
}
.video-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--accent-color-rgb), 0.1);
    border-top-color: var(--kick-green);
    border-radius: 50%;
    animation: spin-loader 0.8s linear infinite;
}
@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar Glow */
::-webkit-scrollbar-thumb {
    background: #1c1b1b;
    border: 2px solid #0e0e0e;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--kick-green);
    box-shadow: 0 0 10px var(--kick-green);
}
.glass-card, .portfolio-card {
    transform-style: preserve-3d;
    will-change: transform;
}
