body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #8b0000, #3d0000);
    background-size: 200% 200%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-attachment: fixed;
    animation: moveGradient 10s infinite, fadeInPage 1s ease-in-out forwards;
    opacity: 0;
}

.container {
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

a {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    background: #a81e2d; /* Initial button color: deeper red */
    padding: 0.5rem 1rem;
    border-radius: 5px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4), 0px 0px 10px rgba(168, 30, 45, 0.5);
    cursor: pointer;

    /* Hidden initially */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;

    /* Optimization */
    will-change: opacity, transform;
    filter: brightness(1);
}

a:hover {
    transform: scale(1.05);
    background: #9b0f26; /* Slightly lighter red for hover */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4), 0px 0px 10px rgba(168, 30, 45, 0.5);
}

a:active {
    transform: scale(1.1);
    box-shadow: 
        0px 0px 20px 5px rgba(139, 0, 0, 0.6);
    background: #6b0018; /* Darker red on click */
}

@keyframes fadeInPage {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    animation: pulse 5s infinite;
    pointer-events: none;
}

footer {
    scale: 0.75;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
}

a {
    cursor: pointer;
}

/* Cursor styling */
.cursor {
    display: inline-block;
    width: 0.5ch;
    font-weight: bold;
    color: white; /* Matches text color */
}

/* Blinking cursor animation */
@keyframes blinkCursor {
    50% {
        opacity: 0;
    }
}

.cursor.blink {
    animation: blinkCursor 1s step-end infinite;
}
