@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Syncopate:wght@400;700&family=JetBrains+Mono:wght@300;400;700&family=Press+Start+2P&family=VT323&display=swap');

:root {
    --deep-black: #020202;
    --code-gray: #1e1e1e;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--deep-black);
    color: #fff;
}

.font-press-start {
    font-family: 'Press Start 2P', cursive;
}

.font-vt323 {
    font-family: 'VT323', monospace;
}

.font-syncopate {
    font-family: 'Syncopate', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Coding Grid Background (Animated Cyber Plane) */
.bg-coding-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(217, 70, 239, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);

    /* 3D Perspective Effect */
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    position: absolute;
    top: -100%;
    /* Start higher */
    left: -50%;
    width: 200%;
    height: 200%;
    animation: grid-move 20s linear infinite;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* HUD Corners */
.hud-corner {
    position: fixed;
    width: 20px;
    height: 20px;
    border-color: rgba(236, 72, 153, 0.3);
    z-index: 40;
    pointer-events: none;
}

.hud-tl {
    top: 20px;
    left: 20px;
    border-top: 2px solid;
    border-left: 2px solid;
}

.hud-tr {
    top: 20px;
    right: 20px;
    border-top: 2px solid;
    border-right: 2px solid;
}

.hud-bl {
    bottom: 20px;
    left: 20px;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.hud-br {
    bottom: 20px;
    right: 20px;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* Glitch Effect Class */
.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.8;
}

.glitch-text::before {
    color: #0ea5e9;
    z-index: -1;
    text-shadow: 2px 0 #d946ef;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: #ec4899;
    /* Magenta for contrast */
    z-index: -2;
    text-shadow: -2px 0 #a21caf;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-2px, 0);
    }

    100% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(2px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(2px, 0);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-2px, 0);
    }
}

/* Custom Cursor */
.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    30% {
        opacity: 0;
    }
}

/* Scanline Overlay */
.scanline-overlay {
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
}

/* Custom Scrollbar for the form container */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #d946ef;
}

/* Dropdown Options */
select option {
    background-color: #050505;
    color: white;
    padding: 12px;
}