/* Variables */
:root {
    --color-bg: #0a0e17;
    /* Deep Night Blue/Black */
    --color-text: #ffffff;
    --color-accent: #ff6ec7;
    /* Hot Pink */
    --color-accent-glow: rgba(255, 110, 199, 0.6);
    --color-secondary: #4facfe;
    /* Sky Blue */
    --color-card-bg: rgba(255, 255, 255, 0.05);

    --font-jp: 'M PLUS 1p', sans-serif;
    --font-en: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-en), var(--font-jp);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
.text-accent {
    color: var(--color-accent);
    text-shadow: 0 0 20px var(--color-accent-glow);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-secondary);
    color: #fff;
}

.btn-primary:hover {
    background: #3a8cff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--color-accent), #ff9a9e);
    color: white;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    /* Taller for parallax */
    background: url('../images/hero_bg.png') no-repeat center center/cover;
    z-index: -1;
    filter: brightness(0.9);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg), transparent);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.btn-steam {
    background: linear-gradient(45deg, #171a21, #2a475e);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-steam:hover {
    background: linear-gradient(45deg, #2a475e, #66c0f4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 192, 244, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 30px;
    font-family: var(--font-en);
    font-weight: 900;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.hero-image img {
    max-height: 150vh;
    max-width: 150%;
    object-fit: cover;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, transparent);
    margin-top: 10px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--color-card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--color-secondary);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.fadeIn {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.fadeIn.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        margin-top: 20px;
    }

    .hero-image img {
        height: 40vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

/* Character Section */
.character {
    background: linear-gradient(to right, rgba(10, 14, 23, 0.9), rgba(10, 14, 23, 0.8)), url('../images/hero_bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.character-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.character-visual {
    flex: 1;
    text-align: center;
}

.character-visual img {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.character-info {
    flex: 1;
}

.character-name {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    color: #fff;
}

.character-role {
    display: block;
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.character-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.character-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--color-accent);
}

.character-stats li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.character-stats li strong {
    color: var(--color-secondary);
    width: 80px;
    display: inline-block;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Footer (Update) */
.footer {
    background: #05070c;
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Update */
@media (max-width: 768px) {
    .character-container {
        flex-direction: column;
    }

    .character-visual img {
        max-height: 400px;
    }

    .character-name {
        font-size: 2.5rem;
    }
}
