* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #00ffcc;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

#gameOfLife {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 0.5rem;
    text-shadow:
        0 0 10px #00ffcc,
        0 0 20px #00ffcc,
        0 0 30px #00ffcc;
    margin-bottom: 1rem;
    position: relative;
}

.glitch {
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    color: #00ccaa;
    text-shadow: 0 0 5px #00ffcc;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.link-card {
    background: rgba(0, 20, 20, 0.8);
    border: 2px solid #00ffcc;
    padding: 2rem;
    text-decoration: none;
    color: #00ffcc;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 10px rgba(0, 255, 204, 0.3),
        inset 0 0 10px rgba(0, 255, 204, 0.1);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.2), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    background: rgba(0, 40, 40, 0.9);
    border-color: #00ffcc;
    box-shadow:
        0 0 20px rgba(0, 255, 204, 0.6),
        inset 0 0 20px rgba(0, 255, 204, 0.2);
    transform: translateY(-5px);
}

.link-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.link-text {
    letter-spacing: 0.1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .link-card {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
}
