/**
 * Base styles
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --matrix-green: #00ff88;
    --matrix-dark-green: #00cc6a;
    --bg-black: #0a0a0a;
    --bg-dark: #111111;
    --text-grey: #a0a0a0;
    --text-light: #e0e0e0;
    --glow-color: rgba(0, 255, 136, 0.3);
    --border-color: rgba(0, 255, 136, 0.2);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-snap-type: y proximity;
    }
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
        "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
        sans-serif;
    background: var(--bg-black);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Matrix Background */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes certFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInLine {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: var(--matrix-green);
    border-radius: 5px;
    opacity: 0.5;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}

/* Links */
.link {
    color: var(--matrix-green);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.link:hover {
    color: var(--matrix-dark-green);
    text-decoration: underline;
}
