@font-face {
    font-family: 'MinecraftFont';
    src: url('fonts/MinecraftRegular.otf') format('opentype');
}

:root {
    --mc-green: #3C8527;
    --mc-green-dark: #204C14;
    --mc-green-light: #52B136;
    --mc-gray: #C6C6C6;
    --mc-gray-dark: #555555;
    --mc-gray-light: #FFFFFF;
    --mc-border-dark: #000000;
    --mc-text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.7);
    --bg-color: #1a1a1a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'MinecraftFont', monospace;
    background-color: var(--bg-color);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, .logo {
    text-shadow: var(--mc-text-shadow);
    text-transform: uppercase;
}

h1 { font-size: 3.5rem; letter-spacing: 2px; margin-bottom: 10px; color: #ffffff; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; color: #ffaa00; text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8); }
h3 { font-size: 1.6rem; margin-bottom: 15px; color: #ffff55; }
p { font-size: 1.1rem; text-shadow: 2px 2px 0px rgba(0,0,0,0.6); }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 6px solid var(--mc-gray-dark);
}

.logo {
    font-size: 1.8rem;
    color: #55ff55;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

nav a:hover {
    color: #55ff55;
    transform: scale(1.1);
}

/* Minecraft Button 3D */
.mc-button {
    font-family: 'MinecraftFont', monospace;
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.7);
    background-color: var(--mc-green);
    border: 4px solid var(--mc-border-dark);
    padding: 15px 40px;
    cursor: pointer;
    box-shadow: inset -5px -5px 0px 0px var(--mc-green-dark),
                inset 5px 5px 0px 0px var(--mc-green-light);
    transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mc-button:hover {
    background-color: var(--mc-green-light);
}

.mc-button:active {
    transform: translateY(5px);
    box-shadow: inset -2px -2px 0px 0px var(--mc-green-dark),
                inset 2px 2px 0px 0px var(--mc-green-light);
}

.mc-button.secondary {
    background-color: var(--mc-gray);
    box-shadow: inset -5px -5px 0px 0px var(--mc-gray-dark),
                inset 5px 5px 0px 0px var(--mc-gray-light);
    color: #222;
    text-shadow: none;
}
.mc-button.secondary:hover { background-color: var(--mc-gray-light); }
.mc-button.secondary:active {
    box-shadow: inset -2px -2px 0px 0px var(--mc-gray-dark),
                inset 2px 2px 0px 0px var(--mc-gray-light);
}

.mc-button.small {
    font-size: 1rem;
    padding: 10px 25px;
    border-width: 3px;
    box-shadow: inset -4px -4px 0px 0px var(--mc-green-dark),
                inset 4px 4px 0px 0px var(--mc-green-light);
}

.mc-button.small:active {
    box-shadow: inset -2px -2px 0px 0px var(--mc-green-dark),
                inset 2px 2px 0px 0px var(--mc-green-light);
}

.btn-subtext {
    font-size: 0.8rem;
    color: #ffff55;
    margin-top: -5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    border-bottom: 10px solid var(--mc-border-dark);
}

.hero-content {
    max-width: 1000px;
    animation: fadeInDown 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

/* Games Section */
.games-section {
    padding: 100px 50px;
    /* Dirt texture style background */
    background: #3b2d1d url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><rect width="32" height="32" fill="%234d3c26"/><rect x="32" y="32" width="32" height="32" fill="%234d3c26"/><rect x="32" width="32" height="32" fill="%233b2d1d"/><rect y="32" width="32" height="32" fill="%233b2d1d"/></svg>');
    border-bottom: 10px solid var(--mc-border-dark);
}

.games-grid {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}

/* Slots for images */
.game-card {
    background-color: var(--mc-gray);
    border: 8px solid var(--mc-border-dark);
    box-shadow: inset -8px -8px 0px 0px var(--mc-gray-dark),
                inset 8px 8px 0px 0px var(--mc-gray-light),
                12px 12px 0px rgba(0,0,0,0.5);
    width: 480px;
    transition: transform 0.3s, filter 0.3s;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    filter: brightness(1.1);
}

.card-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    border-bottom: 8px solid var(--mc-border-dark);
    margin: 8px 8px 0 8px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
}

.card-content {
    padding: 25px;
    text-align: center;
    color: #222;
}
.card-content p {
    text-shadow: none;
    color: #222;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background-color: #111;
    font-size: 1rem;
    color: #888;
    border-top: 4px solid #222;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .navbar { flex-direction: column; gap: 15px; padding: 20px; }
    nav ul { gap: 20px; }
    .game-card { width: 100%; max-width: 500px; }
}
