/* Basic Reset & Font Import */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    /* --- Dark Theme: Core Colors --- */
    color: #e0e0e0; /* Light gray text */
    background-color: #121212; /* Very dark grey background */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Keyframes for Animations (Keep As Is) === */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Enhanced Header Styles (Gradient remains, text color is already light) === */
.site-header {
    /* Gradient looks good on dark too */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    color: #ffffff; /* Ensure header text is bright white */
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    /* --- Dark Theme: Subtle Shadow --- */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Slightly darker shadow */
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

.site-header h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3.8rem;
    font-weight: normal;
    margin-bottom: 0.8rem;
    /* --- Dark Theme: Adjust Text Shadow --- */
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3), /* Make shadow slightly darker/more opaque */
                 4px 4px 0px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    opacity: 0;
    animation: textFadeUp 0.8s 0.2s ease-out forwards;
}

/* Highlight word color contrasts well */
.site-header h1 .highlight-word {
    color: #ffeb3b;
}

.site-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0; /* Start hidden */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* --- Dark Theme: Subtle Text Shadow --- */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Slightly stronger shadow for contrast */
    animation: textFadeUp 0.8s 0.5s ease-out forwards;
}

/* Main Content Styles */
.main-content h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    /* --- Dark Theme: Accent Color --- */
    color: #bb86fc; /* A common dark theme accent purple */
    /* Or use one from the header gradient: color: #23a6d5; */
}

/* Game Grid Layout (No changes needed) */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Game Card Styling */
.game-card {
    /* --- Dark Theme: Card Background --- */
    background-color: #1e1e1e; /* Slightly lighter dark shade */
    border-radius: 10px;
    /* --- Dark Theme: Card Shadow --- */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* More pronounced shadow on dark */
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #333; /* Optional: Add subtle border */
}

.game-card:hover {
    transform: translateY(-10px);
     /* --- Dark Theme: Hover Shadow --- */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    /* Optional: Slightly lighter background on hover */
    /* background-color: #2a2a2a; */
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    /* Optional: Dim images slightly for dark mode */
    /* filter: brightness(0.9); */
}

.game-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    /* --- Dark Theme: Card Title Color --- */
    color: #f5f5f5; /* Brighter white for titles */
    padding: 0 1rem;
}

.game-card p {
    font-size: 0.95rem;
    /* --- Dark Theme: Card Description Color --- */
    color: #a0a0a0; /* Slightly dimmer light gray */
    padding: 0 1rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Play Button Styling (Gradients work well, text is white) */
.play-button {
    display: inline-block;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    color: #fff; /* Ensure white text */
    padding: 0.7rem 1.5rem;
    margin: 0 1rem 1.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none; /* Remove default border if any */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Subtle shadow for button */
}

.play-button:hover {
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4); /* Enhanced shadow on hover */
}

/* Footer Styles */
.site-footer {
    /* --- Dark Theme: Footer Background --- */
    background-color: #1f1f1f; /* Dark background, slightly different from body */
    color: #a0a0a0; /* Footer text color */
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    border-top: 1px solid #333; /* Separator line */
}

.site-footer p {
    margin: 0;
}

/* Responsive Adjustments (Keep structural changes, check font sizes if needed) */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 3rem;
    }
    .site-header p {
        font-size: 1.1rem;
    }
    .main-content h2 {
        font-size: 1.8rem;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .game-card h3 {
        font-size: 1.2rem;
    }
    .game-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 3rem 0;
    }
    .site-header h1 {
        font-size: 2.4rem;
    }
     .site-header p {
        font-size: 1rem;
    }
    .game-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}