/* Font Import removed as per request for Times New Roman */

:root {
    --bg-color: #000000;
    --text-primary: #e0e0e0;
    --text-muted: #888;
    --accent: #8a1313; /* Dried blood red */
    --accent-glow: rgba(138, 19, 19, 0.4);
    --fog: rgba(20, 20, 20, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("cursosr cross.svg") 10 10, auto !important;
}

a, button {
    cursor: url("cursosr cross.svg") 10 10, pointer !important;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Times New Roman', Times, serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a transparent;
}

body.no-scroll {
    overflow: hidden;
}

/* Language Overlay */
.language-overlay {
    position: fixed;
    inset: 0;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.language-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.language-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 2s ease-out forwards;
}

.language-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-weight: 400;
}

.language-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.lang-btn {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Minimalist Dark Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #252525;
}



/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 6rem 1rem 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.trailer-wrapper {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    position: relative;
    z-index: 15;
    animation: fadeIn 1.5s ease-out forwards;
}

.trailer-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.game-logo {
    max-width: 450px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
    animation: float 6s ease-in-out infinite, fadeIn 1.5s ease-out forwards;
    position: relative;
    z-index: 10;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: normal;
    color: var(--text-muted);
    text-transform: none;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    translate: -50% 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1s forwards, pulseBounce 2s infinite alternate 2s;
}

@keyframes pulseBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(8px); }
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: stretchDown 2s infinite;
}

@keyframes stretchDown {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    50.1% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Info Section */
.info-section {
    position: relative;
    padding: 8rem 2rem;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}



.container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 6rem;
    align-items: center;
}

.text-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 1;
}

.highlight-text {
    font-family: 'Times New Roman', Times, serif;
    color: var(--accent);
    font-size: 1.8rem;
    margin: 2rem 0 !important;
    letter-spacing: 0.1rem;
    opacity: 1 !important;
}

.journal-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.6));
    transition: opacity 0.6s ease;
    opacity: 0;
}

.journal-img.visible {
    animation: fadeIn 3s ease-out forwards;
}

.typewriter-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.typewriter-text.visible {
    opacity: 1;
}

.char {
    display: inline-block;
    opacity: 0;
    animation: typeChar 0.02s forwards;
}

@keyframes typeChar {
    to { opacity: 1; }
}

.image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px 50px var(--bg-color);
    pointer-events: none;
}

/* Responsibility Section */
.responsibility-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 2rem;
    background-color: var(--bg-color);
    position: relative;
    z-index: 5;
}

.responsibility-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.08rem;
    text-align: center;
    max-width: 900px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 3.5s ease, transform 3.5s ease;
}

.responsibility-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Section */
.carousel-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
    position: relative;
    z-index: 5;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 3s ease, transform 3s ease;
}

.carousel-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5rem;
}

.carousel-track {
    position: relative;
    width: 100%;
    /* height set by JS to match the tallest card */
}

.carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

.carousel-card.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.card-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.6s ease;
}

.carousel-card:hover .card-img {
    filter: brightness(1);
}

.card-body {
    padding: 2.2rem 2.8rem 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-tag {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.75rem;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.9;
}

.card-desc {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Carousel Nav Buttons */
.carousel-btn {
    position: absolute;
    top: 40%;
    translate: 0 -50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 1.2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.carousel-btn--prev { left: 0.5rem; }
.carousel-btn--next { right: 0.5rem; }

.carousel-btn:disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Wishlist Section */
.wishlist-section {
    padding: 6rem 2rem;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

.wishlist-btn {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 4rem;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.wishlist-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 19, 19, 0.4), transparent);
    transition: left 0.6s ease;
}

.wishlist-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(138, 19, 19, 0.1);
}

.wishlist-btn:hover::before {
    left: 100%;
}

/* Footer */

footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background-color: #000000;
    z-index: 5;
    position: relative;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ── Responsive ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .info-section {
        padding: 6rem 2rem;
    }

    .carousel-wrapper {
        padding: 0 4rem;
    }

    .card-img {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 1rem 2.5rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    /* Back into the normal flow so it can't overlap the subtitle */
    .scroll-indicator {
        position: static;
        translate: none;
        margin-top: 3rem;
        gap: 1rem;
    }

    .scroll-line {
        height: 36px;
    }

    .game-logo {
        max-width: 90%;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .language-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .language-options {
        gap: 1rem;
    }

    .lang-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .info-section {
        padding: 3rem 1.25rem;
    }

    .container {
        gap: 2.5rem;
    }

    /* Soften the dark vignette so the journal image isn't swallowed on small screens */
    .image-wrapper::after {
        box-shadow: inset 0 0 30px 15px var(--bg-color);
    }

    /* The source image is widescreen; crop the sides so it doesn't shrink to a tiny strip */
    .journal-img {
        height: 320px;
        object-fit: cover;
    }

    .text-content p {
        font-size: 1.1rem;
    }

    .highlight-text {
        font-size: 1.4rem;
    }

    .responsibility-section {
        min-height: auto;
        padding: 6rem 1.5rem;
    }

    .carousel-section {
        padding: 3.5rem 0;
    }

    .carousel-wrapper {
        padding: 0 1rem;
    }

    .card-img {
        height: 240px;
    }

    .card-body {
        padding: 1.5rem 1.5rem 2rem;
    }

    .card-desc {
        font-size: 1.2rem;
    }

    /* Buttons overlay the image instead of sitting in side gutters */
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        top: 120px;
        background: rgba(0, 0, 0, 0.55);
    }

    .carousel-btn--prev { left: 1.5rem; }
    .carousel-btn--next { right: 1.5rem; }

    .carousel-dots {
        margin-top: 1.8rem;
    }

    .wishlist-section {
        padding: 2.5rem 1.5rem 4rem;
    }

    .wishlist-btn {
        font-size: 1.1rem;
        letter-spacing: 0.15rem;
        padding: 1.2rem 1.5rem;
        width: 100%;
        max-width: 420px;
        text-align: center;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    .socials {
        flex-wrap: wrap;
        gap: 1.25rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .lang-btn {
        flex: 1 1 40%;
        padding: 0.8rem 0.5rem;
    }

    .card-img {
        height: 200px;
    }

    .carousel-btn {
        top: 100px;
    }

    .carousel-btn--prev { left: 1.25rem; }
    .carousel-btn--next { right: 1.25rem; }
}
