/* =================================================================
   🎨 CYBER COMPONENTS - Loading, Buttons, Avatar, Cards
   ================================================================= */

/* ============================================
   📋 CYBERPUNK SECTION HEADINGS
   ============================================ */
.cyber-section-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.cyber-section-heading-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.cyber-section-number {
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ef4444;
    opacity: 0.3;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.2em;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {
    .cyber-section-number {
        position: static;
        transform: none;
        margin-bottom: 0.5rem;
    }
}

.cyber-section-title {
    position: relative;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    line-height: 1.2;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.2),
        inset 0 0 20px rgba(239, 68, 68, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cyber-section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    animation: scanline-sweep 3s infinite;
}

.cyber-section-title::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(239, 68, 68, 0.03) 2px,
        rgba(239, 68, 68, 0.03) 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

@keyframes scanline-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cyber-section-title:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 
        0 0 30px rgba(239, 68, 68, 0.4),
        inset 0 0 30px rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.cyber-section-title-text {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.cyber-section-title-text::before,
.cyber-section-title-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.cyber-section-title-text::before {
    left: 2px;
    color: #00f3ff;
    text-shadow: -2px 0 #00f3ff;
    animation: glitch-heading 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.cyber-section-title-text::after {
    left: -2px;
    color: #ff00ff;
    text-shadow: 2px 0 #ff00ff, -2px 0 #00f3ff;
    animation: glitch-heading 3s infinite reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-heading {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    92% {
        opacity: 0.8;
        transform: translateX(-2px);
    }
    94% {
        opacity: 0.8;
        transform: translateX(2px);
    }
    96% {
        opacity: 0.8;
        transform: translateX(-1px);
    }
    98% {
        opacity: 0;
        transform: translateX(0);
    }
}

.cyber-section-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 0.5rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-left: 2px solid rgba(239, 68, 68, 0.3);
    border-right: 2px solid rgba(239, 68, 68, 0.3);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

.cyber-section-icon {
    position: absolute;
    right: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #ef4444;
    opacity: 0.4;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5));
    animation: icon-pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .cyber-section-icon {
        position: static;
        transform: none;
        margin-top: 0.5rem;
    }
}

@keyframes icon-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Reveal animation on scroll */
.cyber-section-heading-wrapper.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cyber-section-heading-wrapper.reveal-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   💫 LOADING SCREEN
   ============================================ */
#pixel-loader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    opacity: 1 !important;
}

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

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

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #ff00ff, 2px 2px #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

.loader-text {
    animation: textPulse 2s ease-in-out infinite;
}

.loader-percent {
    animation: percentPulse 1.5s ease-in-out infinite;
}

.loader-tips {
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* ============================================
   🎮 ENTER BUTTON - Gaming Style
   ============================================ */
.enter-button {
    margin-top: 40px;
    padding: 20px 70px;
    font-size: 22px;
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    background: 
        linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2)),
        linear-gradient(180deg, #1a0000 0%, #000 50%, #1a0000 100%);
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
    letter-spacing: 5px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        inset 0 0 0 2px #ef4444,
        inset 0 0 0 4px #000,
        inset 0 0 0 6px #dc2626,
        0 0 20px rgba(239, 68, 68, 0.8),
        0 0 40px rgba(239, 68, 68, 0.5),
        0 0 60px rgba(239, 68, 68, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.8);
    text-shadow: 
        0 0 10px rgba(239, 68, 68, 1),
        0 0 20px rgba(239, 68, 68, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    clip-path: polygon(
        0 8px, 8px 8px, 8px 0,
        calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
    );
    animation: button-pulse 2s ease-in-out infinite;
}

.enter-button:hover {
    transform: scale(1.08);
    background: 
        linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(239, 68, 68, 0.3)),
        linear-gradient(180deg, #2a0000 0%, #0a0a0a 50%, #2a0000 100%);
    box-shadow: 
        inset 0 0 0 2px #ff6b6b,
        inset 0 0 0 4px #000,
        inset 0 0 0 6px #ef4444,
        0 0 30px rgba(255, 107, 107, 1),
        0 0 60px rgba(239, 68, 68, 0.8),
        0 0 90px rgba(239, 68, 68, 0.6),
        0 6px 12px rgba(0, 0, 0, 0.9);
    text-shadow: 
        0 0 15px rgba(255, 107, 107, 1),
        0 0 30px rgba(239, 68, 68, 1),
        2px 2px 6px rgba(0, 0, 0, 1);
}

.enter-button:active {
    transform: scale(0.98);
    box-shadow: 
        inset 0 0 0 2px #dc2626,
        inset 0 0 0 4px #000,
        inset 0 0 0 6px #b91c1c,
        0 0 20px rgba(220, 38, 38, 1),
        0 0 40px rgba(220, 38, 38, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9);
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 3px
    );
    pointer-events: none;
    opacity: 0.5;
}

.enter-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transform: skewX(-20deg);
    animation: shine 3s ease-in-out infinite;
}

.enter-glitch {
    position: relative;
    display: inline-block;
    animation: text-flicker 4s ease-in-out infinite;
}

.enter-glitch::before,
.enter-glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.enter-glitch::before {
    left: 2px;
    text-shadow: -3px 0 #00ffff, -6px 0 rgba(0, 255, 255, 0.5);
    animation: glitch-cyan 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.enter-glitch::after {
    left: -2px;
    text-shadow: 3px 0 #ff00ff, 6px 0 rgba(255, 0, 255, 0.5);
    animation: glitch-magenta 2.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.enter-button:hover .enter-glitch::before {
    animation: glitch-cyan-strong 0.2s infinite;
}

.enter-button:hover .enter-glitch::after {
    animation: glitch-magenta-strong 0.2s infinite;
}

/* ============================================
   🎮 CYBERPUNK BUTTONS
   ============================================ */
.cyber-btn {
    position: relative;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    overflow: visible;
    transition: all 0.3s ease;
    clip-path: polygon(
        0 6px, 6px 6px, 6px 0,
        calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
        100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), 
        calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
    );
}

.cyber-btn-primary {
    background: 
        linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2)),
        linear-gradient(180deg, #1a0000 0%, #000 50%, #1a0000 100%);
    color: #fff;
    box-shadow: 
        inset 0 0 0 2px #ef4444,
        inset 0 0 0 4px #000,
        inset 0 0 0 6px #dc2626,
        0 0 15px rgba(239, 68, 68, 0.6),
        0 0 30px rgba(239, 68, 68, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.8);
    text-shadow: 
        0 0 10px rgba(239, 68, 68, 0.8),
        0 0 20px rgba(239, 68, 68, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: cyber-pulse 2s ease-in-out infinite;
}

.cyber-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 0 2px #ff6b6b,
        inset 0 0 0 4px #000,
        inset 0 0 0 6px #ef4444,
        0 0 20px rgba(255, 107, 107, 0.8),
        0 0 40px rgba(239, 68, 68, 0.6),
        0 0 60px rgba(239, 68, 68, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.9);
    text-shadow: 
        0 0 15px rgba(255, 107, 107, 1),
        0 0 30px rgba(239, 68, 68, 1),
        2px 2px 6px rgba(0, 0, 0, 1);
}

.cyber-btn-primary:active {
    transform: translateY(0);
}

.cyber-btn-secondary {
    background: transparent;
    color: #fff;
    box-shadow: 
        inset 0 0 0 2px #ef4444,
        inset 0 0 0 4px transparent,
        inset 0 0 0 6px #ef4444,
        0 0 10px rgba(239, 68, 68, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

.cyber-btn-secondary:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 0 2px #ff6b6b,
        inset 0 0 0 4px transparent,
        inset 0 0 0 6px #ff6b6b,
        0 0 15px rgba(255, 107, 107, 0.6),
        0 0 30px rgba(239, 68, 68, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.8);
}

.cyber-btn-secondary:active {
    transform: translateY(0);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 3px
    );
    pointer-events: none;
    opacity: 0.5;
    clip-path: inherit;
}

.cyber-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transform: skewX(-20deg);
    animation: btn-shine 4s ease-in-out infinite;
    pointer-events: none;
}

.cyber-btn-text {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.cyber-btn-text::before,
.cyber-btn-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1;
}

.cyber-btn:hover .cyber-btn-text::before {
    animation: text-glitch-1 0.3s infinite;
    opacity: 0.8;
}

.cyber-btn:hover .cyber-btn-text::after {
    animation: text-glitch-2 0.3s infinite;
    animation-delay: 0.1s;
    opacity: 0.8;
}

/* Filter buttons */
.cyber-btn-filter {
    position: relative;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    overflow: visible;
    transition: all 0.3s ease;
    background: transparent;
    color: #9ca3af;
    clip-path: polygon(
        0 4px, 4px 4px, 4px 0,
        calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
        100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), 
        calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
    );
    box-shadow: 
        inset 0 0 0 1px #482323,
        inset 0 0 0 2px transparent,
        0 0 5px rgba(239, 68, 68, 0.1);
}

.cyber-btn-filter:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 
        inset 0 0 0 1px #ef4444,
        inset 0 0 0 2px transparent,
        0 0 10px rgba(239, 68, 68, 0.3);
}

.cyber-btn-filter.active {
    background: 
        linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2)),
        linear-gradient(180deg, #1a0000 0%, #000 50%, #1a0000 100%);
    color: #fff;
    box-shadow: 
        inset 0 0 0 1px #ef4444,
        inset 0 0 0 3px #000,
        inset 0 0 0 4px #dc2626,
        0 0 15px rgba(239, 68, 68, 0.6);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.cyber-btn-filter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 3px
    );
    pointer-events: none;
    opacity: 0.3;
    clip-path: inherit;
}

.cyber-btn-filter:hover .cyber-btn-text::before,
.cyber-btn-filter:hover .cyber-btn-text::after {
    animation-duration: 0.2s;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .enter-button {
        padding: 16px 45px;
        font-size: 16px;
        letter-spacing: 4px;
        box-shadow: 
            inset 0 0 0 2px #ef4444,
            inset 0 0 0 3px #000,
            inset 0 0 0 5px #dc2626,
            0 0 15px rgba(239, 68, 68, 0.8),
            0 0 30px rgba(239, 68, 68, 0.5),
            0 3px 6px rgba(0, 0, 0, 0.8);
    }
    
    .enter-button:hover {
        box-shadow: 
            inset 0 0 0 2px #ff6b6b,
            inset 0 0 0 3px #000,
            inset 0 0 0 5px #ef4444,
            0 0 20px rgba(255, 107, 107, 1),
            0 0 40px rgba(239, 68, 68, 0.8),
            0 4px 8px rgba(0, 0, 0, 0.9);
    }
    
    .cyber-btn {
        padding: 14px 32px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    
    .cyber-btn-filter {
        padding: 8px 20px;
        font-size: 12px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .enter-button {
        padding: 14px 35px;
        font-size: 14px;
        letter-spacing: 3px;
    }
    
    .cyber-btn {
        padding: 12px 24px;
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    .cyber-btn-filter {
        padding: 8px 16px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
}

