.btn, .nav-link, .card {
    position: relative;
    overflow: hidden;
}

.btn::after, .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.8);
    z-index: -1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.btn:hover::after, .card:hover::after {
    opacity: 0.15;
    transform: scale(1.5);
}

.cyber-border {
    position: relative;
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--primary-color);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
}

.cyber-border:hover::before {
    animation: cyber-border-pulse 2s infinite;
    opacity: 1;
}

@keyframes cyber-border-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(54, 249, 201, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(54, 249, 201, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(54, 249, 201, 0);
    }
}

.digital-noise {
    position: relative;
    overflow: hidden;
}

.digital-noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(54, 249, 201, 0.2) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0s ease;
    z-index: 1;
    opacity: 0;
}

.digital-noise:hover::before {
    animation: digital-noise-sweep 1.5s infinite;
    opacity: 1;
}

@keyframes digital-noise-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.holographic {
    position: relative;
    text-shadow: 0 0 1px rgba(54, 249, 201, 0.5),
                 0 0 2px rgba(54, 249, 201, 0.3),
                 0 0 3px rgba(54, 249, 201, 0.2);
    transition: text-shadow 0.3s ease;
}

.holographic:hover {
    animation: holographic-flicker 5s infinite;
    text-shadow: 0 0 5px rgba(54, 249, 201, 0.8),
                 0 0 10px rgba(54, 249, 201, 0.5),
                 0 0 15px rgba(54, 249, 201, 0.3);
}

@keyframes holographic-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(54, 249, 201, 0.8),
                     0 0 10px rgba(54, 249, 201, 0.5),
                     0 0 15px rgba(54, 249, 201, 0.3);
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.8;
        text-shadow: none;
    }
}

.data-flow {
    position: relative;
    overflow: hidden;
}

.data-flow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 5%, rgba(54, 249, 201, 0.1) 5%, transparent 6%),
        linear-gradient(90deg, transparent 0%, transparent 25%, rgba(54, 249, 201, 0.1) 25%, transparent 26%),
        linear-gradient(90deg, transparent 0%, transparent 50%, rgba(54, 249, 201, 0.1) 50%, transparent 51%),
        linear-gradient(90deg, transparent 0%, transparent 80%, rgba(54, 249, 201, 0.1) 80%, transparent 81%);
    background-size: 200% 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.data-flow:hover::after {
    opacity: 1;
    animation: data-flow-animation 3s linear infinite;
}

@keyframes data-flow-animation {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.loading-bar {
    position: relative;
    overflow: hidden;
}

.loading-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    z-index: 1;
}

.loading-bar:hover::before {
    width: 100%;
    animation: loading-bar-pulse 2s infinite;
}

@keyframes loading-bar-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.glitch-effect {
    position: relative;
}

.glitch-effect:hover {
    animation: glitch 0.8s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.scan-effect {
    position: relative;
    overflow: hidden;
}

.scan-effect::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(54, 249, 201, 0.2) 50%,
        transparent 100%
    );
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.scan-effect:hover::after {
    opacity: 1;
    animation: scan-line 2s linear infinite;
}

@keyframes scan-line {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}

.navbar-brand {
    animation: holographic-flicker 5s infinite;
}

.btn-primary, .btn-success, .btn-outline-primary, .btn-outline-success {
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-success:hover {
    box-shadow: 0 0 15px rgba(54, 249, 201, 0.5);
    transform: translateY(-3px);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(54, 249, 201, 0.2);
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    z-index: 9999;
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    transform: scaleY(0);
    pointer-events: none;
}

.page-transition.active {
    transform: scaleY(1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><rect x="2" y="2" width="24" height="24" rx="2" fill="none" stroke="%2336f9c9" stroke-width="1.5"/><rect x="8" y="8" width="12" height="12" rx="1" fill="%2336f9c9" opacity="0.8"/><text x="14" y="17" text-anchor="middle" fill="%230d0208" font-family="monospace" font-size="10" font-weight="bold">></text><rect x="12" y="22" width="4" height="2" fill="%2336f9c9"/></svg>') 14 14, auto;
}

a, button, .btn, [role="button"] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><rect x="2" y="2" width="28" height="28" rx="3" fill="none" stroke="%2336f9c9" stroke-width="2"/><rect x="10" y="10" width="12" height="12" rx="1" fill="%2336f9c9"/><text x="16" y="20" text-anchor="middle" fill="%230d0208" font-family="monospace" font-size="12" font-weight="bold">+</text><rect x="14" y="24" width="4" height="2" fill="%2336f9c9"/><circle cx="20" cy="8" r="1.5" fill="%239d4edd"/><circle cx="24" cy="12" r="1" fill="%23ff2a6d"/></svg>') 16 16, pointer;
}
