/* NEON CYBERPUNK THEME */
/* A futuristic cyberpunk aesthetic with neon glows and grid patterns */

/* ============================================
   CYBERPUNK GRID BACKGROUND
   ============================================ */
.cyberpunk-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(50px) translateX(50px); }
}

/* ============================================
   NEON BORDER ACCENT
   ============================================ */
.neon-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    border: 2px solid transparent;
    border-image: linear-gradient(
        90deg,
        #00ffff 0%,
        #ff00ff 25%,
        #ffff00 50%,
        #ff00ff 75%,
        #00ffff 100%
    ) 1;
    animation: neonPulse 4s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { 
        opacity: 0.6;
        filter: drop-shadow(0 0 10px #00ffff);
    }
    50% { 
        opacity: 1;
        filter: drop-shadow(0 0 20px #ff00ff);
    }
}

/* ============================================
   FLOATING NEON PARTICLES
   ============================================ */
.neon-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.neon-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--drift, 50px)) scale(1);
        opacity: 0;
    }
}

/* Particle variations */
.neon-particle:nth-child(1) { left: 10%; animation-duration: 8s; background: #00ffff; --drift: 30px; }
.neon-particle:nth-child(2) { left: 20%; animation-duration: 10s; background: #ff00ff; --drift: -40px; animation-delay: 1s; }
.neon-particle:nth-child(3) { left: 30%; animation-duration: 12s; background: #ffff00; --drift: 20px; animation-delay: 2s; }
.neon-particle:nth-child(4) { left: 40%; animation-duration: 9s; background: #00ff00; --drift: -30px; animation-delay: 0.5s; }
.neon-particle:nth-child(5) { left: 50%; animation-duration: 11s; background: #ff0080; --drift: 45px; animation-delay: 1.5s; }
.neon-particle:nth-child(6) { left: 60%; animation-duration: 13s; background: #00ffff; --drift: -25px; animation-delay: 2.5s; }
.neon-particle:nth-child(7) { left: 70%; animation-duration: 10s; background: #ff00ff; --drift: 35px; animation-delay: 0.8s; }
.neon-particle:nth-child(8) { left: 80%; animation-duration: 14s; background: #ffff00; --drift: -50px; animation-delay: 1.8s; }
.neon-particle:nth-child(9) { left: 90%; animation-duration: 9s; background: #00ff00; --drift: 40px; animation-delay: 3s; }
.neon-particle:nth-child(10) { left: 95%; animation-duration: 11s; background: #ff0080; --drift: -35px; animation-delay: 0.3s; }

/* ============================================
   CYBERPUNK THEME BADGE
   ============================================ */
.cyberpunk-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    animation: badgeGlitch 5s ease-in-out infinite;
}

@keyframes badgeGlitch {
    0%, 90%, 100% { 
        transform: translateX(0);
        border-color: #00ffff;
    }
    92% { 
        transform: translateX(-2px);
        border-color: #ff00ff;
    }
    94% { 
        transform: translateX(2px);
        border-color: #ffff00;
    }
    96% { 
        transform: translateX(-1px);
        border-color: #00ffff;
    }
}

.cyberpunk-badge .badge-icon {
    font-size: 1.2rem;
    animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {
    0%, 90% { transform: rotate(0deg); }
    95% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

.cyberpunk-badge .badge-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* ============================================
   NEON GLOW EFFECTS ON ELEMENTS
   ============================================ */
body.cyberpunk-mode .nav-logo {
    color: #00ffff !important;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #ff00ff,
        0 0 40px #ff00ff;
    animation: logoGlitch 8s ease-in-out infinite;
}

@keyframes logoGlitch {
    0%, 95%, 100% { 
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    96% { 
        transform: translateX(-3px);
        filter: hue-rotate(90deg);
    }
    97% { 
        transform: translateX(3px);
        filter: hue-rotate(180deg);
    }
    98% { 
        transform: translateX(-2px);
        filter: hue-rotate(270deg);
    }
}

body.cyberpunk-mode .hero-title {
    color: #ff00ff !important;
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #00ffff,
        2px 2px 0 #ffff00,
        -2px -2px 0 #00ffff;
    animation: titleGlitch 6s ease-in-out infinite;
}

@keyframes titleGlitch {
    0%, 92%, 100% { 
        transform: skew(0deg);
    }
    93% { 
        transform: skew(-2deg) translateX(-5px);
    }
    94% { 
        transform: skew(2deg) translateX(5px);
    }
    95% { 
        transform: skew(-1deg) translateX(-2px);
    }
}

/* ============================================
   CYBERPUNK PROJECT CARDS
   ============================================ */
body.cyberpunk-mode .project {
    border: 2px solid #00ffff;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    position: relative;
    overflow: visible;
}

body.cyberpunk-mode .project::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.cyberpunk-mode .project:hover::before {
    opacity: 1;
}

body.cyberpunk-mode .project:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.6),
        0 0 50px rgba(255, 0, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

/* ============================================
   NEON BUTTONS
   ============================================ */
body.cyberpunk-mode .btn {
    background: transparent !important;
    border: 2px solid #00ffff !important;
    color: #00ffff !important;
    text-shadow: 0 0 10px #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    position: relative;
    overflow: hidden;
}

body.cyberpunk-mode .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

body.cyberpunk-mode .btn:hover::before {
    left: 100%;
}

body.cyberpunk-mode .btn:hover {
    background: rgba(0, 255, 255, 0.2) !important;
    border-color: #ff00ff !important;
    color: #ff00ff !important;
    text-shadow: 0 0 15px #ff00ff;
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.7),
        inset 0 0 30px rgba(255, 0, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   SCANLINE EFFECT
   ============================================ */
.cyberpunk-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.cyberpunk-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #00ffff;
    cursor: pointer;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.cyberpunk-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #ff00ff;
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.7),
        inset 0 0 30px rgba(255, 0, 255, 0.2);
}

.cyberpunk-toggle:active {
    transform: scale(0.95);
}

/* ============================================
   GLITCH TEXT EFFECT
   ============================================ */
body.cyberpunk-mode h2,
body.cyberpunk-mode h3 {
    position: relative;
    color: #ffff00;
    text-shadow: 
        0 0 10px #ffff00,
        2px 2px 0 #ff00ff,
        -2px -2px 0 #00ffff;
}

/* ============================================
   NEON NAV LINKS
   ============================================ */
body.cyberpunk-mode .nav-link {
    color: #00ffff !important;
    text-shadow: 0 0 10px #00ffff;
    transition: all 0.3s ease;
}

body.cyberpunk-mode .nav-link:hover {
    color: #ff00ff !important;
    text-shadow: 
        0 0 15px #ff00ff,
        0 0 25px #ff00ff;
    transform: translateY(-2px);
}

/* ============================================
   CORNER ACCENTS
   ============================================ */
.cyberpunk-corner {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 2px solid #00ffff;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.cyberpunk-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.cyberpunk-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.cyberpunk-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.cyberpunk-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .cyberpunk-badge {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.6rem;
        gap: 8px;
    }
    
    .cyberpunk-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cyberpunk-corner {
        width: 30px;
        height: 30px;
    }
    
    .neon-particles-container {
        display: none;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .neon-particle,
    .cyberpunk-grid,
    .cyberpunk-scanlines,
    .neon-border {
        animation: none !important;
    }
    
    body.cyberpunk-mode .nav-logo,
    body.cyberpunk-mode .hero-title {
        animation: none !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.cyberpunk-toggle:focus {
    outline: 3px solid #00ffff;
    outline-offset: 3px;
}

body.cyberpunk-mode .btn:focus {
    outline: 3px solid #ff00ff;
    outline-offset: 3px;
}
