/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100vw;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2a1810;
    background-color: #f8db88;
}

/* Parallax Background Layer */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh;
    /* 9-band orange gradient inspired by title screen */
    background: linear-gradient(
        to bottom,
        #6b4423 0%,
        #6b4423 11.11%,
        #8b5a2b 11.11%,
        #8b5a2b 22.22%,
        #a0662f 22.22%,
        #a0662f 33.33%,
        #b87333 33.33%,
        #b87333 44.44%,
        #cd853f 44.44%,
        #cd853f 55.55%,
        #daa520 55.55%,
        #daa520 66.66%,
        #f4a460 66.66%,
        #f4a460 77.77%,
        #f5c85c 77.77%,
        #f5c85c 88.88%,
        #f8db88 88.88%,
        #f8db88 100%
    );
    will-change: transform;
    z-index: -1;
}

/* Castle Shadow - Fixed in Lower Right */
.castle-shadow {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 60%;
    max-width: 900px;
    height: 70%;
    background-image: url('SplashScreen.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    pointer-events: none;
    z-index: 100;
}

/* Content Container */
.content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Title Logo */
.title-logo {
    max-width: 80%;
    width: 800px;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    margin-bottom: 3rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 1.2rem;
}

.btn-steam {
    background-color: #1b2838;
    color: #ffffff;
    border-color: #1b2838;
}

.btn-steam:hover {
    background-color: #2a475e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-itch {
    background-color: #fa5c5c;
    color: #ffffff;
    border-color: #fa5c5c;
}

.btn-itch:hover {
    background-color: #ff7575;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 92, 92, 0.4);
}

/* Secondary Links */
.secondary-link {
    font-size: 0.875rem;
    color: #2a1810;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.secondary-link::after {
    content: "🔗";
    font-size: 0.7rem;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

.secondary-link:hover {
    color: #6b4423;
    opacity: 1;
    text-decoration: underline;
}

.secondary-link:hover::after {
    transform: translate(2px, -2px);
}

/* Content Sections */
section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #f8db88;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Story Section */
.story {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 3rem 2rem;
    border: 2px solid rgba(248, 219, 136, 0.3);
}

.story-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #e8e8e8;
}

.description {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(248, 219, 136, 0.4);
    line-height: 1.6;
    color: #ffffff;
}

/* Features Section */
.features {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    margin-top: 24px;
    border: 2px solid rgba(248, 219, 136, 0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f8db88;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
}

.feature-list li:hover {
    background: rgba(0, 0, 0, 0.6);
    border-left-color: #f4a460;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Screenshots Section */
.screenshots {
    padding: 3rem 2rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshot-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid rgba(0, 0, 0, 0.6);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.screenshot-grid img:hover {
    transform: scale(1.05);
    border-color: #f8db88;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Backstory Section */
.backstory {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    border: 2px solid rgba(248, 219, 136, 0.3);
}

.backstory p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e8e8e8;
}

.backstory .highlight {
    background: rgba(139, 90, 43, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #f8db88;
    font-weight: bold;
    color: #ffffff;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    color: #e8e8e8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .castle-shadow {
        width: 70%;
        height: 50%;
    }
    
    .title-logo {
        max-width: 90%;
        width: 400px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .castle-shadow {
        width: 80%;
        height: 40%;
    }
    
    .title-logo {
        max-width: 95%;
        width: 300px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 1rem;
    }
}
