/* ===================================
   SCI-FI ENHANCEMENTS
   Holographic effects, cyberpunk elements
   Maintains gambling + gaming aesthetics
   =================================== */

/* Holographic scan line effect */
@keyframes holographic-scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

.holographic {
    position: relative;
    overflow: hidden;
}

.holographic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 240, 255, 0.03) 0px,
        transparent 2px,
        transparent 4px,
        rgba(0, 240, 255, 0.03) 6px
    );
    background-size: 100% 6px;
    animation: holographic-scan 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Cyberpunk glow effect */
.cyber-glow {
    position: relative;
}

.cyber-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00F0FF, #B026FF, #FFD700, #00F0FF);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    animation: cyber-glow-pulse 3s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.cyber-glow:hover::after {
    opacity: 0.6;
}

@keyframes cyber-glow-pulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Holographic text effect */
.holo-text {
    background: linear-gradient(90deg, #00F0FF 0%, #B026FF 50%, #00F0FF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-shimmer 3s linear infinite;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

@keyframes holo-shimmer {
    to {
        background-position: 200% center;
    }
}

/* Sci-fi border effect */
.scifi-border {
    position: relative;
    border: 1px solid transparent;
}

.scifi-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #00F0FF 25%,
        transparent 50%,
        #B026FF 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: scifi-border-flow 4s linear infinite;
}

@keyframes scifi-border-flow {
    to {
        background-position: 200% 0;
    }
}

/* Digital glitch effect */
@keyframes digital-glitch {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    20% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    40% {
        transform: translate(2px, -2px);
        opacity: 0.9;
    }
    60% {
        transform: translate(-1px, -1px);
        opacity: 0.85;
    }
    80% {
        transform: translate(1px, 1px);
        opacity: 0.95;
    }
}

.glitch-text {
    position: relative;
}

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

.glitch-text:hover::before {
    color: #00F0FF;
    animation: digital-glitch 0.3s ease-in-out 2;
    clip-path: inset(0 0 50% 0);
}

.glitch-text:hover::after {
    color: #B026FF;
    animation: digital-glitch 0.3s ease-in-out 2;
    clip-path: inset(50% 0 0 0);
}

/* Scan line overlay for cards */
.card-scanline {
    position: relative;
    overflow: hidden;
}

.card-scanline::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 240, 255, 0.3),
        transparent
    );
    animation: scan-down 4s linear infinite;
    pointer-events: none;
}

@keyframes scan-down {
    0% {
        top: -50%;
    }
    100% {
        top: 150%;
    }
}

/* Hexagon corner accents */
.hex-corners {
    position: relative;
}

.hex-corners::before,
.hex-corners::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #00F0FF;
    opacity: 0.6;
}

.hex-corners::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.hex-corners::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* Data stream effect */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::before {
    content: '0101010011010110100101001010101110010110';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    color: rgba(0, 240, 255, 0.1);
    line-height: 1.2;
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: data-flow 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes data-flow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Neon pulse effect for important elements */
.neon-pulse {
    animation: neon-pulse-anim 2s ease-in-out infinite;
}

@keyframes neon-pulse-anim {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.4),
                    0 0 20px rgba(0, 240, 255, 0.2),
                    inset 0 0 10px rgba(0, 240, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.6),
                    0 0 40px rgba(0, 240, 255, 0.3),
                    inset 0 0 15px rgba(0, 240, 255, 0.2);
    }
}

/* Circuit board pattern */
.circuit-pattern {
    position: relative;
}

.circuit-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

/* Holographic reflection */
.holo-reflect {
    position: relative;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 240, 255, 0.05) 25%,
        transparent 50%,
        rgba(176, 38, 255, 0.05) 75%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: holo-reflect-move 6s ease-in-out infinite;
}

@keyframes holo-reflect-move {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Add sci-fi effects to existing elements */
.portfolio-card {
    position: relative;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 240, 255, 0.02) 0px,
        transparent 1px,
        transparent 3px,
        rgba(0, 240, 255, 0.02) 4px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover::after {
    opacity: 1;
}

/* Enhanced balance display with holographic effect */
.balance-main {
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

/* ORB cards with sci-fi enhancement */
.orb-card {
    background: linear-gradient(
        135deg,
        rgba(20, 25, 35, 0.95) 0%,
        rgba(15, 19, 25, 0.98) 100%
    );
    backdrop-filter: blur(10px);
}

.orb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        #00F0FF,
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.orb-card:hover::before {
    opacity: 0.8;
}

/* Sci-fi button enhancement */
.btn-primary,
.view-details-btn {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.view-details-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::before,
.view-details-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Matrix-style number displays */
.amount,
.stat-value,
.performance-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    position: relative;
}

/* Cyberpunk corner brackets */
.cyber-brackets {
    position: relative;
}

.cyber-brackets::before,
.cyber-brackets::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
}

.cyber-brackets::before {
    top: -5px;
    left: -5px;
    border-top: 2px solid #00F0FF;
    border-left: 2px solid #00F0FF;
}

.cyber-brackets::after {
    bottom: -5px;
    right: -5px;
    border-bottom: 2px solid #00F0FF;
    border-right: 2px solid #00F0FF;
}

/* Apply effects to specific elements */
.logo {
    animation: holo-shimmer 4s linear infinite;
}

.section-title-main {
    position: relative;
}

.section-title-main::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00F0FF, transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-scanline::after {
        animation-duration: 6s;
    }
    
    .holographic::before {
        background-size: 100% 4px;
    }
}
