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

/* Custom Properties - Colors and Fonts */
:root {
    --primary-bg-color: #0a0a0a; /* Dark background, adjust as needed from images */
    --text-color: #e0e0e0; /* Light text color */
    --accent-color-blue: #4a90e2; /* A blue shade, can be picked from logo/character */
    --accent-color-ice: #a4dded; /* Light ice blue from character */
    --accent-color-highlight: #ffcc00; /* A highlight color, e.g., for buttons or important text */
    --button-bg-color: #333;
    --button-hover-bg-color: #555;
    --header-bg-color: #1a1a1a;

    --font-heading: 'Uncial', serif; /* For H1, H2, etc. */
    --font-text: 'Cardo', serif;    /* For paragraphs, links, etc. */
}

/* Font Imports - Assuming fonts are in an 'assets/fonts' directory */
@font-face {
    font-family: 'Uncial';
    src: url('assets/fonts/Uncial_WIP.ttf') format('truetype'); /* Updated to match actual filename */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cardo';
    src: url('assets/fonts/Cardo-Regular.ttf') format('truetype'); /* Replace with actual path and format */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cardo';
    src: url('assets/fonts/Cardo-Bold.ttf') format('truetype'); /* Replace with actual path and format */
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Cardo';
    src: url('assets/fonts/Cardo-Italic.ttf') format('truetype'); /* Replace with actual path and format */
    font-weight: normal;
    font-style: italic;
}

body {
    font-family: var(--font-text);
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center; /* Center content horizontally */
}

header#main-header {
    background-color: #000000;
    color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

/* Change header background after hero section */
header#main-header.scrolled {
    background: #222; /* Grey background after hero */
}

.logo-container-header {
    display: flex;
    align-items: center;
    margin-top: 12px; /* Move logo slightly lower in the top bar */
}

#header-logo {
    display: block;
    height: 72px; /* Increased from 60px to 72px for ~20% larger logo */
    width: auto;
    margin-top: 4px; /* Fine-tune logo vertical position */
}

nav {
    display: flex;
    align-items: center;
}

.nav-button {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 5px;
    font-family: var(--font-text);
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-button .icon {
    height: 20px; /* Adjust icon size */
    width: 20px;
    margin-right: 0.5rem;
    filter: invert(1); /* Assuming icons are dark and need to be white on dark header */
}

.patreon-button {
    background-color: #f96854; /* Patreon orange */
}

.patreon-button:hover {
    background-color: #e05a47;
}

main {
    /* padding-top: 80px; /* Removed, as hero will be full screen */
    flex-grow: 1;
    width: 100%;
    /* max-width: 1400px; /* Removed, hero will be full width */
    margin-left: auto;
    margin-right: auto;
}

.hero {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero-content-left {
    position: absolute;
    left: 40%; /* Move slightly left of center */
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    background: none;
    padding: 0;
}

.hero-image-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 1;
    left: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-main-art {
    width: auto;
    max-width: 100vw;
    height: 70vh;
    max-height: 70vh;
    object-fit: contain;
    object-position: 50% 20%;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
}

.grey-section {
    background: #232323;
}

#hero-game-logo {
    max-width: 700px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.support-section {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.support-label {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--accent-color-ice);
    margin-bottom: 0.2rem;
    text-transform: none;
    font-weight: normal;
    text-shadow: 0 0 1px #000, 0 1px 1px #000, 1px 0 1px #000, -1px 0 1px #000, 0 -1px 1px #000;
}

.discord-hero-button {
    background-color: #5865F2; /* Discord blue */
    color: white;
    padding: 0.5rem; /* Smaller padding for icon-only button */
    width: 50px; /* Fixed width */
    height: 50px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Make it circular */
}

.discord-hero-button .icon.discord-icon-only {
    margin-right: 0; /* No margin if it's icon only */
    height: 28px; /* Adjust icon size */
    width: 28px;
}

.discord-hero-button:hover {
    background-color: #4752c4;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color-highlight);
    color: var(--primary-bg-color);
    padding: 1.2rem 2.8rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    border-radius: 8px;
    transition: transform 0.2s ease-out, background-color 0.3s ease;
    border: 2px solid var(--primary-bg-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cta-button:hover {
    background-color: #ffd700; /* Brighter yellow on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.dev-progress-button {
    background-color: var(--accent-color-blue); /* Steam-like blue for dev progress */
    color: white;
}

.dev-progress-button:hover {
    background-color: #3a7bc8;
}

.steam-wishlist-button {
    background-color: #c0392b; /* Red color, similar to Blasphemous 'Buy Now' */
    color: white;
    border: 2px solid #e74c3c; /* Lighter red border */
}

.steam-wishlist-button:hover {
    background-color: #a93226; /* Darker red on hover */
    border-color: #c0392b;
}

.about-game {
    background-color: #000000; /* Black background as requested */
    padding: 2rem 5%;
    text-align: center;
}

.community-links {
    padding: 2rem 5%;
    text-align: center;
}

.about-game h2 {
    font-family: 'Cardo', serif;
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--accent-color-ice);
    margin-bottom: 1rem;
}

.about-game p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--header-bg-color);
    color: #aaa;
    width: 100%;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Pixel art aesthetic considerations */
/* This is a starting point. True pixel art often involves no anti-aliasing for fonts and images. */
/* For images, use image-rendering: pixelated; or image-rendering: crisp-edges; */
img {
    image-rendering: -moz-crisp-edges; /* Firefox */
    image-rendering: -o-crisp-edges; /* Opera */
    image-rendering: -webkit-optimize-contrast; /* Webkit (Chrome, Safari) */
    image-rendering: pixelated; /* Standard */
    -ms-interpolation-mode: nearest-neighbor; /* IE */
}

/* For fonts, achieving a true pixelated look without anti-aliasing can be tricky and browser-dependent. */
/* Using actual pixel fonts is often the best approach. */
/* You might need to disable font smoothing if you want a very crisp look */
/* 
body {
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}
*/

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        height: 100vh;
        min-height: 60vh;
    }
    .hero-content-left {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 95vw;
        padding: 0;
    }
    .hero-image-container {
        width: 100vw;
        height: 100vh;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0.5rem 5%;
    }

    .logo-container-header {
        margin-bottom: 0.5rem;
    }

    nav {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-button {
        margin: 0.25rem 0.5rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-button .icon {
        height: 16px;
        width: 16px;
    }

    main {
        padding-top: 120px; /* Adjust for taller header on mobile */
    }

    .hero {
        flex-direction: column; /* Stack content vertically on small screens */
        min-height: auto;
    }

    .hero-content-left, .hero-content-right {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .hero-content-right #hero-main-art {
        position: static;
        transform: none;
        max-width: 80%;
        margin-top: 2rem;
    }

    #hero-game-logo {
        max-width: 60%;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .about-game h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .tagline {
        font-size: 1rem;
    }
    .cta-button {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
    .nav-button {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Top bar dev progress button smaller and blue */
.nav-button.dev-progress-nav {
    background-color: transparent; /* Remove background color */
    color: #fff;
    font-size: 1.44rem; /* 25% larger than 1.15rem */
    padding: 0.625rem 1.875rem; /* 25% larger than 0.5rem 1.5rem */
    margin-left: 0;
    border-radius: 5px;
    border: 2px solid var(--accent-color-blue); /* Add border color */
    font-family: 'Uncial', serif;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    height: 3.125rem; /* 25% larger than 2.5rem */
    display: flex;
    align-items: center;
    min-width: 150px; /* 25% larger than 120px */
    max-width: 100vw;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-button.dev-progress-nav:hover {
    background-color: rgba(42, 90, 170, 0.85); /* Slightly darker blue, slightly transparent */
    color: #fff;
}

@media (max-width: 600px) {
    .nav-button.dev-progress-nav {
        font-size: 1.19rem; /* 25% larger than 0.95rem */
        padding: 0.475rem 0.875rem; /* 25% larger than 0.38rem 0.7rem */
        height: 2.625rem; /* 25% larger than 2.1rem */
        min-width: 112px; /* 25% larger than 90px */
    }
}
@media (max-width: 400px) {
    .nav-button.dev-progress-nav {
        font-size: 1.025rem; /* 25% larger than 0.82rem */
        padding: 0.35rem 0.5rem; /* 25% larger than 0.28rem 0.4rem */
        height: 2.125rem; /* 25% larger than 1.7rem */
        min-width: 87px; /* 25% larger than 70px */
    }
}

.discord-icon-button {
    background-color: #5865F2;
    color: white;
    padding: 0.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
    margin-top: 0.5rem;
    overflow: hidden;
}
.discord-icon-button .icon.discord-icon-only {
    margin-right: 0;
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}
.discord-icon-button:hover {
    background-color: #4752c4;
    transform: translateY(-2px) scale(1.07);
}