/* 
  Enhanced CSS - Cryptographic and Binary Code Elements
  These styles add visual depth with animated binary cascades and crypto symbols
*/

/* Binary Cascade Animation */
@keyframes binaryFall {
    0% {
        transform: translateY(-100%) rotateZ(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotateZ(360deg);
        opacity: 0;
    }
}

@keyframes binaryPulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

@keyframes cryptoGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3), inset 0 0 10px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2);
    }
}

@keyframes hexFlow {
    0% {
        transform: translateX(-100%) rotateZ(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(100%) rotateZ(360deg);
        opacity: 0;
    }
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Binary Code Background Elements */
.binary-element {
    position: absolute;
    font-family: 'Space Mono', monospace;
    color: var(--color-gold);
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: pre;
    z-index: 0;
}

.binary-cascade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.binary-digit {
    position: absolute;
    font-family: 'Space Mono', monospace;
    color: var(--color-gold);
    font-weight: bold;
    animation: binaryFall linear infinite;
}

/* Hexadecimal Data Tags */
.hex-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.3rem 0.8rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.hex-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease-out;
}

.hex-tag:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.hex-tag:hover::before {
    left: 100%;
}

/* Cryptographic Lock Icon */
.crypto-lock {
    display: inline-block;
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-gold);
    animation: lockPulse 2s ease-in-out infinite;
}

.crypto-lock::before {
    content: '🔐';
    font-size: 1.5rem;
}

/* Decentralization Network Nodes */
.network-node {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--color-gold);
    border-radius: 50%;
    position: relative;
    animation: cryptoGlow 2s ease-in-out infinite;
    margin: 0 0.5rem;
}

.network-node::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    animation: cryptoGlow 3s ease-in-out infinite;
    opacity: 0.3;
}

/* Connection Line Animation */
.connection-line {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    overflow: hidden;
}

.connection-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-gold-light), transparent);
    animation: hexFlow 2s ease-in-out infinite;
}

/* Blockchain Block Style */
.blockchain-block {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.02));
    border: 2px solid var(--color-gold);
    border-radius: 0;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.blockchain-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    animation: hexFlow 3s ease-in-out infinite;
}

.blockchain-block:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    border-color: var(--color-gold-light);
}

/* Quantum Effect */
.quantum-effect {
    position: relative;
    display: inline-block;
}

.quantum-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-gold), transparent, var(--color-gold));
    background-size: 200% 200%;
    border-radius: 2px;
    z-index: -1;
    opacity: 0;
    animation: quantumShift 3s ease-in-out infinite;
}

@keyframes quantumShift {
    0%, 100% {
        opacity: 0;
        background-position: 0% 50%;
    }
    50% {
        opacity: 0.5;
        background-position: 100% 50%;
    }
}

/* Divider with Binary Code */
.divider-binary {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 3rem 0;
    overflow: hidden;
}

.divider-binary::before {
    content: '01010101 10101010 11001100 00110011 01010101 10101010 11001100 00110011';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--color-gold);
    opacity: 0.3;
    white-space: nowrap;
    animation: hexFlow 4s linear infinite;
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    color: var(--color-gold);
    z-index: -1;
    text-shadow: -2px 0 var(--color-gold);
}

.glitch::after {
    animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
    color: var(--color-gold);
    z-index: -2;
    text-shadow: 2px 0 var(--color-gold);
}

@keyframes glitch-1 {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(-2px, 2px);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-2px, -2px);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(2px, 2px);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(2px, -2px);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(0 0 0 0);
        transform: translate(2px, -2px);
    }
    40% {
        clip-path: inset(0 0 0 0);
        transform: translate(-2px, 2px);
    }
    60% {
        clip-path: inset(0 0 0 0);
        transform: translate(2px, 2px);
    }
    80% {
        clip-path: inset(0 0 0 0);
        transform: translate(-2px, -2px);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 215, 0, 0.05) 25%, 
        rgba(255, 215, 0, 0.1) 50%, 
        rgba(255, 215, 0, 0.05) 75%, 
        rgba(255, 215, 0, 0.1) 100%);
    background-size: 200% 200%;
    animation: holographicShift 6s ease-in-out infinite;
}

@keyframes holographicShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Neon Text Effect */
.neon-text {
    color: var(--color-gold);
    text-shadow: 
        0 0 5px var(--color-gold),
        0 0 10px var(--color-gold),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3);
    animation: neonFlicker 0.15s infinite;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px var(--color-gold),
            0 0 10px var(--color-gold),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
    20%, 24%, 55% {
        text-shadow: 
            0 0 5px var(--color-gold),
            0 0 10px var(--color-gold);
    }
}

/* Decentralized Grid Background */
.decentralized-grid {
    position: relative;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 215, 0, 0.05) 25%, rgba(255, 215, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 215, 0, 0.05) 75%, rgba(255, 215, 0, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 215, 0, 0.05) 25%, rgba(255, 215, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 215, 0, 0.05) 75%, rgba(255, 215, 0, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

/* Crypto Pulse */
.crypto-pulse {
    animation: cryptoPulse 1.5s ease-in-out infinite;
}

@keyframes cryptoPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Enhanced Service Card with Crypto Elements */
.service-card-enhanced {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 0.9) 100%);
    border: 2px solid var(--color-gold);
    padding: 2rem;
    overflow: hidden;
}

.service-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    animation: hexFlow 3s ease-in-out infinite;
}

.service-card-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    animation: hexFlow 3s ease-in-out infinite reverse;
}

/* Responsive adjustments for enhanced elements */
@media (max-width: 768px) {
    .binary-digit {
        font-size: 0.5rem;
    }
    
    .hex-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .divider-binary::before {
        font-size: 0.5rem;
    }
}
