:root {
    --neon-purple: #b829ff;
    --neon-pink: #ff006e;
    --neon-red: #ff0055;
    --neon-blue: #00d9ff;
    --dark-bg: #0a0a0f;
    --darker-bg: #050507;
    --card-bg: rgba(20, 20, 30, 0.8);
    --text-primary: #e0e0ff;
    --text-secondary: #9090b0;
    --accent-glow: rgba(184, 41, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Cyberpunk background effects */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(184, 41, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 41, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 15, 0.7) 100%);
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    position: relative;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 20px var(--neon-purple));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0;
    animation: glitchLogo 5s infinite;
}

@keyframes glitchLogo {
    0%, 90%, 100% { opacity: 0; }
    92% { opacity: 0.8; transform: translate(2px, 2px); }
    94% { opacity: 0.8; transform: translate(-2px, -2px); }
}

.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 20px 0;
    text-shadow: 
        0 0 10px var(--neon-purple),
        0 0 20px var(--neon-purple),
        0 0 40px var(--neon-pink),
        0 0 80px var(--neon-pink);
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.glitch-text::before {
    animation: glitch1 2s infinite;
    color: var(--neon-red);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch2 2s infinite;
    color: var(--neon-blue);
    z-index: -2;
}

@keyframes glitch1 {
    0%, 90%, 100% { opacity: 0; }
    91% { opacity: 0.7; transform: translate(-2px, -2px); }
    93% { opacity: 0; }
}

@keyframes glitch2 {
    0%, 90%, 100% { opacity: 0; }
    92% { opacity: 0.7; transform: translate(2px, 2px); }
    94% { opacity: 0; }
}

.tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    text-transform: uppercase;
    opacity: 0.8;
}

/* Filter Navigation */
.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.filter-btn {
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover .btn-glow {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--neon-pink);
    box-shadow: 
        0 0 10px var(--neon-purple),
        inset 0 0 10px rgba(184, 41, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--neon-purple);
    border-color: var(--neon-purple);
    box-shadow: 
        0 0 20px var(--accent-glow),
        0 0 40px var(--accent-glow);
    color: white;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Portfolio Cards */
.portfolio-item {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(184, 41, 255, 0.3);
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    animation: itemFadeIn 0.6s ease-out backwards;
}

@keyframes itemFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--neon-pink);
    box-shadow: 
        0 10px 40px rgba(184, 41, 255, 0.3),
        0 0 20px rgba(255, 0, 110, 0.2);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    animation: borderSweep 3s linear infinite;
}

@keyframes borderSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.item-category {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 6px 12px;
    background: rgba(184, 41, 255, 0.9);
    color: white;
    text-transform: uppercase;
    z-index: 10;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    box-shadow: 0 0 15px rgba(184, 41, 255, 0.5);
}

.item-media {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--darker-bg);
}

/* Spotify embeds need specific height */
.item-media.spotify-embed {
    height: 152px;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9);
}

.portfolio-item:hover .item-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.item-embed {
    width: 100%;
    height: 100%;
    border: none;
}

.item-content {
    padding: 25px;
}

.item-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--neon-purple);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.item-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(184, 41, 255, 0.3);
}

.item-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.item-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.item-link:hover {
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 15px rgba(184, 41, 255, 0.5);
    transform: translateX(3px);
}

/* Loading state */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 3px solid rgba(184, 41, 255, 0.2);
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--neon-purple);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-purple) 20%, 
        var(--neon-pink) 50%, 
        var(--neon-purple) 80%, 
        transparent 100%);
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(184, 41, 255, 0.5);
}

.footer-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.glitch-small {
    position: relative;
    display: inline-block;
}

.glitch-small::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 1px 0 var(--neon-red);
    opacity: 0;
    animation: glitchSmall 3s infinite;
}

@keyframes glitchSmall {
    0%, 95%, 100% { opacity: 0; }
    96% { opacity: 0.7; }
}

.separator {
    margin: 0 15px;
    color: var(--neon-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header {
        padding: 20px 10px;
        margin-bottom: 40px;
    }
    
    .logo {
        height: 80px;
    }
    
    .filter-nav {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .item-media {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }
    
    .filter-nav {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--accent-glow);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}
