:root {
    --primary-color: #9f46e4;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background-image.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    opacity: 0.20; 
    z-index: -1;
}

header, main, footer {
    position: relative;
    z-index: 1;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    min-height: 60vh; /* Changed from height to min-height */
    padding: 40px 0;  /* Added padding for spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    /* Added this to stack the logo and text correctly */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* START: Updated Font Style */
.hero-content h1 {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 4.5rem; /* Increased size for better impact */
    font-weight: normal; /* The font looks better without bolding */
}
/* END: Updated Font Style */

.content-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
}

h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 2rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* --- Snake Game Styles --- */
#game-section {
    background-color: var(--card-bg);
}

#gameCanvas {
    background-color: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
}

/* --- New Game Info Styles --- */
.game-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 10px auto;
}

#restartButton {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

#restartButton:hover {
    background-color: #7c37b3; /* A slightly darker purple */
}

/* --- Style for Hero Logo --- */
.hero-logo {
    max-width: 100px; /* You can change this number to make the logo bigger or smaller */
    height: auto;
    margin-bottom: 20px; /* Adds space between the logo and the "BAHULEYAN" text */
}