/* GENERAL STYLES */
:root {
    --main-bg-color: #1a1c2c; /* Deep Navy Blue */
    --text-color: #d0d8e8;
    --primary-color: #00d2d4; /* Vibrant Teal */
    --secondary-color: #ffc800; /* Warm Yellow */
    --accent-red-color: #ff5757; /* A nice retro red */
    --header-font: 'Press Start 2P', cursive;
    --body-font: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 24px;
    line-height: 1.7;
}

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

/* === TYPOGRAPHY & SHARED FONTS === */
h1, h2, h3, h4, .cta-button {
    font-family: var(--header-font);
}

h1, h2 {
    color: var(--primary-color);
    text-shadow: 2px 2px #000;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

/* === LAYERING UTILITY === */
/* Lifts headings and items above the scanline overlay */
.content-section h3, 
.gallery-column h4, 
.faq-item h4,
.screenshot-item {
    position: relative;
    z-index: 2;
}

/* === TOP SECTION === */
.top {
    padding-top: 20px;
    text-align: center;
    position: relative;
}

/* === FEATURES LIST === */
.features-list {
    list-style: none;
}

.features-list li {
    position: relative;
    margin-bottom: 15px;
}

.features-list li::before {
    content: '»';
    color: var(--accent-red-color);
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    left: -20px;
    top: 7px;
}

/* === SCANLINE EFFECTS === */
@keyframes scroll-scanline {
    from { background-position-y: 0; }
    to { background-position-y: -4px; }
}

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    z-index: 1; 
}

.scanline-hover,
.scanline-hover:visited {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.scanline-hover:hover {
    background-image: linear-gradient(var(--secondary-color) 50%, rgba(255, 200, 0, 0.5) 50%);
    background-size: 100% 4px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: scroll-scanline 0.2s linear infinite;
}

/* === HEADER & NAVIGATION === */
header {
    background-color: rgba(10, 10, 26, 0.5);
    border-bottom: 2px solid #000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo-container {
    display: block;
    position: relative;
    width: 260px;
    height: 100px;
}

.logo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}

.logo-jpn {
    opacity: 0;
}

#logo-container:hover .logo-jpn {
    opacity: 1;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 25px;
}

header nav a,
header nav a:visited {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 5px;
    font-weight: 700;
}

header nav a:hover {
    color: var(--secondary-color);
}

/* === HEROES & SCREENSHOTS SHARED STYLES === */
/* Both use a black background and primary border */
.hero-image, .screenshot-item {
    background-color: #000;
    border: 2px solid var(--primary-color);
}

/* Both ensure images fill the container */
.hero-image img, 
.screenshot-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hero Specifics */
.hero-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 50px;
}

.hero-image {
    padding: 15px; 
}

.hero-description h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px #000;
}

/* Screenshot Specifics */
.screenshot-item {
    padding: 10px;
    margin-bottom: 30px;
}

.screenshot-item img {
    max-width: 640px;
    margin: 0 auto;
}

/* === BUTTONS === */
.cta-button {
    text-decoration: none;
    color: #000;
    background-color: var(--secondary-color);
    padding: 15px 30px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 4px 4px 0px #000;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: calc(80px - ((1.8rem * 0.7))) 0 80px;
    border-bottom: 1px solid #2a2d42;
    scroll-margin-top: 120px;
}

.content-section h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--primary-color);
}

/* === MEDIA GALLERY === */
.gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.gallery-column h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* === ANNOUNCEMENT BOX === */
.announcement-box {
    max-width: 700px;
    border: 2px solid var(--primary-color);
    padding: 30px;
    margin: 30px auto 0 auto;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.announcement-box h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* === FAQ === */
.faq-item {
    margin-top: 30px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.faq-item h4 {
    font-family: var(--body-font); /* Override header font */
    font-size: 1.8rem;
    color: var(--text-color);
}

/* === UTILITY CLASSES (COLOR SPHERES) === */
.text-blue { color: blue; }
.text-indigo { color: indigo; }
.text-red { color: red; }
.text-white { color: white; }
.text-yellow { color: yellow; }
.text-purple { color: purple; }
.text-green { color: green; }
.text-crimson { color: crimson; }

/* === FOOTER & LINKS === */
footer {
    padding: 40px 0;
    text-align: center;
    font-size: 1rem;
    color: #888;
}

.link-item {
    margin-top: 20px;
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
    html, body { overflow-x: clip; }
    body { font-size: 20px; }

    header .container { flex-direction: column; gap: 20px; }

    header nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
        padding: 0;
    }
    header nav ul li { margin: 0; }

    .hero-profile { grid-template-columns: 1fr; }
    .hero-image { max-width: 260px; margin: 0 auto; }
    
    .gallery-container { grid-template-columns: 1fr; }

    .features-list { padding-left: 20px; }
    .features-list li::before { left: 0; top: .35em; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .container {
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}