:root {
    --bg-color: #2b2b45;
    --text-color: #fff;
    --card-red: #ff5f5f;
    --card-red-shadow: #cc0000;
    --card-blue: #5fafff;
    --card-blue-shadow: #0066cc;
    --card-green: #5fff8f;
    --card-green-shadow: #00cc33;
    --card-yellow: #ffff5f;
    --card-yellow-shadow: #cccc00;
    --font-main: 'Press Start 2P', cursive;
}

* {
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor handling */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Custom Cursor */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: white;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.main-container {
    text-align: center;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

/* Typography & 3D Text */
.pixel-text {
    font-size: 2.5rem;
    line-height: 1.5;
    text-shadow:
        4px 4px 0px #000,
        8px 8px 0px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite ease-in-out;
}

.highlight {
    color: var(--card-yellow);
    text-shadow: 4px 4px 0px var(--card-yellow-shadow);
}

.subtitle {
    margin-top: 10px;
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Grid Menu */
.grid-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    padding: 20px;
}

/* 3D Pixel Cards */
.pixel-card {
    display: block;
    text-decoration: none;
    color: black;
    /* Text inside cards is black for contrast */
    padding: 30px;
    position: relative;
    border: 4px solid #000;
    transition: transform 0.1s, box-shadow 0.1s;
    background-color: #fff;
    width: 250px;
    /* Fixed width for better look as single item */
    text-align: center;

    /* The 3D Block effect */
    box-shadow:
        8px 8px 0px #000,
        16px 16px 0px rgba(0, 0, 0, 0.3);
}

.pixel-card h2 {
    margin: 15px 0 0 0;
    font-size: 1.2rem;
}

.pixel-card .icon {
    font-size: 3rem;
}

/* Color Variants */
.pixel-card.red {
    background-color: var(--card-red);
}

.pixel-card.blue {
    background-color: var(--card-blue);
}

.pixel-card.green {
    background-color: var(--card-green);
}

.pixel-card.yellow {
    background-color: var(--card-yellow);
}

/* Hover & Active States */
.pixel-card:hover {
    transform: translate(-4px, -4px);
    box-shadow:
        12px 12px 0px #000,
        20px 20px 0px rgba(0, 0, 0, 0.3);
}

.pixel-card:active {
    transform: translate(4px, 4px);
    box-shadow:
        4px 4px 0px #000,
        8px 8px 0px rgba(0, 0, 0, 0.3);
    /* Squash effect */
}

/* Shine Effect */
.shine {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Footer Status Bar */
footer {
    margin-top: 60px;
}

.pixel-status-bar {
    background: #000;
    color: #0f0;
    /* Terminal green */
    padding: 15px;
    display: inline-block;
    border: 4px solid #444;
    font-size: 0.8rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.pixel-status-bar span {
    margin: 0 15px;
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 600px) {
    .pixel-text {
        font-size: 1.5rem;
    }

    .grid-menu {
        grid-template-columns: 1fr;
    }
}