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

@font-face {
    font-family: 'Joystix W00';
    src: url("assets/Joystix%20W00%20Proportional.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark-purple: #1a0d2e;
    --bg-navy: #0a0e27;
    --bg-black: #000000;
    --bg-offset-clouds1: 0px;
    --bg-offset-clouds2: 0px;
    --bg-offset-clouds3: 0px;
    --bg-offset-clouds4: 0px;
    --bg-offset-moon: 0px;
    --bg-offset-sky: 0px;
    --bg-offset-stars: 0px;
    --text-white: #ffffff;
    --text-light-blue: #7dd3fc;
    --text-bright-blue: #38bdf8;
    --accent-purple: #9333ea;
    --accent-blue: #3b82f6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-black);
}

/* Background Container - Fixed */
.background-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: var(--app-height, 100svh);
    z-index: -1;
    overflow: hidden;
    background: var(--bg-black);
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 0;
    image-rendering: pixelated;
    transform: scale(0.95);
    transform-origin: 50% 0%;
    will-change: background-position;
}

.bg-sky {
    z-index: 1;
    background-image: url("assets/bnbh-webbg-sky.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: calc(50% + var(--bg-offset-sky)) 0;
}

.bg-stars {
    z-index: 2;
    background-image: url("assets/bnbh-webbg-stars.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: calc(50% + var(--bg-offset-stars)) 0;
}

.bg-moon {
    z-index: 3;
    background-image: url("assets/bnbh-webbg-moon.png");
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: calc(50% + var(--bg-offset-moon)) 0;
}

.bg-clouds4 {
    z-index: 4;
    background-image: url("assets/bnbh-webbg-clouds4.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: calc(50% + var(--bg-offset-clouds4)) 0;
}

.bg-clouds3 {
    z-index: 5;
    background-image: url("assets/bnbh-webbg-clouds3.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: calc(50% + var(--bg-offset-clouds3)) 0;
}

.bg-clouds2 {
    z-index: 6;
    background-image: url("assets/bnbh-webbg-clouds2.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: calc(50% + var(--bg-offset-clouds2)) 0;
}

.bg-clouds1 {
    z-index: 7;
    background-image: url("assets/bnbh-webbg-clouds1.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: calc(50% + var(--bg-offset-clouds1)) 0;
}

/* Foreground Content - Scrollable */
.foreground-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    text-align: center;
}

.game-title {
    margin-bottom: 20px;
}

.game-title-image {
    display: block;
    width: min(90vw, 360px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(125, 211, 252, 0.35));
}

.taglines {
    margin-bottom: 40px;
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    margin: 10px 0;
    color: var(--text-light-blue);
    font-style: italic;
}

.tagline-primary {
    color: var(--text-white);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.tagline-secondary {
    color: var(--text-white);
    opacity: 1;
    font-family: 'Joystix W00', system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 3.8vw, 2.2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-style: normal;
}

.tagline-glow {
    display: inline-block;
    color: var(--text-bright-blue);
}

/* Trailer Container */
.trailer-container {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trailer-wrapper {
    position: relative;
    width: 100%;
    max-width: 1080px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 2px rgba(125, 211, 252, 0.1);
    background: var(--bg-black);
}

@media (min-width: 1024px) {
    .trailer-wrapper {
        width: min(60vw, 1080px);
    }
}

.trailer-video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Download Section */
.download-section {
    margin: 40px 0;
    text-align: center;
}

.download-button {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(125, 211, 252, 0.2);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--text-light-blue);
    text-decoration: none;
    border: 2px solid rgba(125, 211, 252, 0.3);
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    background: rgba(125, 211, 252, 0.05);
}

.social-link:hover {
    border-color: var(--text-light-blue);
    background: rgba(125, 211, 252, 0.15);
    transform: translateY(-2px);
    color: var(--text-white);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-white);
    text-align: center;
}

.content-box {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(125, 211, 252, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.content-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light-blue);
}

.content-box a {
    color: var(--text-bright-blue);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.content-box a:visited {
    color: var(--text-bright-blue);
}

.content-box a:hover,
.content-box a:focus-visible {
    color: var(--text-white);
    border-color: var(--text-white);
}

.content-box a:active {
    color: var(--accent-blue);
}

.content-box p:last-child {
    margin-bottom: 0;
}

.screenshot-grid {
    margin: 28px 0 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.screenshot-card {
    margin: 0;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: 16px;
    overflow: hidden;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.testimonials {
    margin-top: 30px;
    display: grid;
    gap: 18px;
}

.testimonial {
    margin: 0;
    padding: 18px 20px;
    border-left: 4px solid rgba(125, 211, 252, 0.8);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
}

.testimonial blockquote {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--text-white);
    font-style: normal;
}

.testimonial figcaption {
    font-size: 0.95rem;
    color: var(--text-light-blue);
}

/* About Section */
.about {
    background: transparent;
}

/* Awards Section */
.awards {
    background: transparent;
}

.team {
    background: transparent;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.team-card {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.12);
}

.team-card h4 {
    margin-bottom: 8px;
    color: var(--text-white);
    font-size: 1.1rem;
}

.team-card p {
    margin: 0;
    color: var(--text-light-blue);
    font-size: 1rem;
}

.award-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
    align-items: center;
}

.award-laurel {
    margin: 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    border: 1px solid rgba(125, 211, 252, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-laurel img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(125, 211, 252, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-light-blue);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(125, 211, 252, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(125, 211, 252, 0.5);
}

.submit-button {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
    z-index: 20;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
}

.contact-info {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: center;
    display: grid;
    gap: 12px;
}

.contact-info p {
    margin: 0;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: 12px;
    color: var(--text-light-blue);
}

.contact-info a {
    color: var(--text-bright-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    border-top: 1px solid rgba(125, 211, 252, 0.1);
    margin-top: 60px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--text-light-blue);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--text-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .trailer-wrapper {
        border-radius: 8px;
    }

    .download-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .download-section {
        display: none;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }

    .content-box {
        padding: 30px 20px;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .award-grid {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .sticky-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .game-title-image {
        width: min(92vw, 520px);
    }

    .tagline-primary {
        font-size: 1.3rem;
    }

    .tagline-secondary {
        font-size: 1.2rem;
    }

    .content-box {
        padding: 20px 15px;
    }
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
