@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
}

@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); }
}

.animate-glitch {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.animate-blink {
    animation: blink 1s infinite;
}

.cyber-glitch {
    position: relative;
}

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

.cyber-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ef4444;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.cyber-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #7f1d1d;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(14px, 9999px, 127px, 0); }
    20% { clip: rect(38px, 9999px, 46px, 0); }
    40% { clip: rect(96px, 9999px, 8px, 0); }
    60% { clip: rect(50px, 9999px, 62px, 0); }
    80% { clip: rect(20px, 9999px, 118px, 0); }
    100% { clip: rect(120px, 9999px, 11px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(119px, 9999px, 89px, 0); }
    20% { clip: rect(28px, 9999px, 65px, 0); }
    40% { clip: rect(117px, 9999px, 119px, 0); }
    60% { clip: rect(66px, 9999px, 16px, 0); }
    80% { clip: rect(34px, 9999px, 78px, 0); }
    100% { clip: rect(14px, 9999px, 62px, 0); }
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: #050505;
    background-image:
        linear-gradient(rgba(220, 38, 38, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Glitch Button Styles */
.glitch-button {
    position: relative;
    padding: 1rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.glitch-button-primary {
    background-color: rgb(153, 27, 27);
    color: white;
    border: 1px solid rgb(220, 38, 38);
}

.glitch-button-primary:hover {
    background-color: rgb(185, 28, 28);
    box-shadow: 0 0 20px rgba(185, 28, 28, 0.6);
}

.glitch-button-outline {
    background-color: transparent;
    color: rgb(220, 38, 38);
    border: 1px solid rgb(127, 29, 29);
}

.glitch-button-outline:hover {
    background-color: rgba(127, 29, 29, 0.2);
    border-color: rgb(220, 38, 38);
    color: rgb(239, 68, 68);
}

.glitch-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(220, 38, 38, 0.2);
    transform: translateY(100%);
    transition: transform 0.1s ease-linear;
    transform-origin: bottom;
    z-index: 0;
}

.glitch-button:hover::before {
    transform: translateY(0) skewY(12deg);
}

.glitch-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(239, 68, 68);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.glitch-button:hover::after {
    transform: scaleX(1);
}

.glitch-button:hover .relative {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

/* Scroll Reveal Styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(96px) scale(0.95);
    filter: blur(4px);
    transition: all 1s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

