@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #080808;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea {
    font-family: inherit;
}


/* =========================
   LOADER
========================= */

#loader {
    position: fixed;
    inset: 0;
    background: #080808;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    transition:
        opacity .6s ease,
        visibility .6s ease;
}


#loader.hidden {
    opacity: 0;
    visibility: hidden;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 1000;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .85),
            transparent
        );
}


/* CONTENEDOR DEL LOGO */

.logo {
    display: flex;

    align-items: center;

    width: 55px;
    height: 55px;

    flex-shrink: 0;
}


/* LOGO REAL DEL NAVBAR */

.navbar-logo {

    display: block;

    width: 45px;
    height: 45px;

    max-width: 45px;
    max-height: 45px;

    object-fit: contain;

    flex-shrink: 0;
}


/* MENU */

.navbar nav {

    display: flex;

    align-items: center;

    gap: 35px;

    margin-left: auto;
}


.navbar nav a {

    position: relative;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    white-space: nowrap;
}


.navbar nav a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: #fff;

    transition: width .3s ease;
}


.navbar nav a:hover::after {

    width: 100%;
}
/* =========================
   MOBILE MENU
========================= */

.menu-button {
    display: none;

    background: none;
    border: none;

    cursor: pointer;
}


.menu-button span {
    display: block;

    width: 27px;
    height: 2px;

    background: white;

    margin: 6px;
}


.mobile-menu {
    display: none;
}


/* =========================
   HERO
========================= */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;

    padding: 0 10%;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.95),
            rgba(0,0,0,.55),
            rgba(0,0,0,.2)
        ),
        url('../images/hero.jpg');

    background-size: cover;
    background-position: center;
}


.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 70% 50%,
            transparent,
            rgba(0,0,0,.7)
        );
}


.hero-content {
    position: relative;
    z-index: 2;

    max-width: 800px;
}


.hero-small,
.section-label {

    font-size: 11px;

    letter-spacing: 5px;

    font-weight: 700;

    opacity: .7;
}


.hero h1 {

    font-size:
        clamp(
            60px,
            9vw,
            145px
        );

    line-height: .85;

    font-weight: 900;

    letter-spacing: -7px;

    margin:
        25px 0;
}


.hero h1 span {
    display: block;
}


.hero p {

    max-width: 520px;

    font-size: 17px;

    line-height: 1.7;

    color: #bdbdbd;
}


.hero-buttons {

    display: flex;

    gap: 15px;

    margin-top: 40px;
}


.btn {

    padding:
        16px 28px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    transition: .3s;
}


.btn-primary {
    background: #ffffff;
    color: #000000;
}


.btn-primary:hover {
    transform: translateY(-3px);
}


.btn-outline {
    border: 1px solid rgba(255,255,255,.4);
}


.btn-outline:hover {
    background: #ffffff;
    color: #000000;
}


.scroll {

    position: absolute;

    bottom: 35px;
    left: 10%;

    font-size: 9px;

    letter-spacing: 3px;

    display: flex;
    align-items: center;

    gap: 15px;
}


.scroll span {

    width: 50px;
    height: 1px;

    background: white;
}


/* =========================
   SECTIONS
========================= */

.section {

    padding:
        140px 8%;
}


.section-header {

    display: flex;

    align-items: flex-start;

    gap: 30px;

    margin-bottom: 70px;
}


.section-number {

    font-size: 11px;

    letter-spacing: 3px;

    opacity: .4;

    padding-top: 8px;
}


.section-header h2 {

    font-size:
        clamp(
            40px,
            6vw,
            90px
        );

    line-height: .9;

    margin-top: 15px;

    letter-spacing: -4px;
}


.section-header strong,
.contact strong {
    font-weight: 900;
}


/* =========================
   GAMES
========================= */

.games {
    background: #0d0d0d;
}


.games-grid {

    display: grid;

    grid-template-columns:
        1.4fr
        1fr;

    gap: 20px;
}


.game-card {

    min-height: 420px;
}


.game-large {

    grid-row: span 2;
}


.game-image {

    height: 100%;
    min-height: 420px;

    position: relative;

    background-size: cover;
    background-position: center;

    overflow: hidden;
}


.game-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.95),
            rgba(0,0,0,.05)
        );
}


.game-info {

    position: absolute;

    left: 35px;
    right: 35px;
    bottom: 35px;
}


.game-info span {

    font-size: 10px;

    letter-spacing: 3px;

    opacity: .65;
}


.game-info h3 {

    font-size: 40px;

    margin:
        12px 0;

    letter-spacing: -2px;
}


.game-info p {

    color: #aaa;

    line-height: 1.5;

    max-width: 450px;
}


.game-link {

    display: inline-block;

    margin-top: 20px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    border-bottom:
        1px solid white;

    padding-bottom: 6px;
}


.game-placeholder {

    height: 100%;

    min-height: 420px;

    border:
        1px solid #252525;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    transition: .3s;
}


.game-placeholder:hover {
    border-color: #555;
}


.game-placeholder span {

    font-size: 50px;

    font-weight: 200;
}


.game-placeholder h3 {

    margin-top: 15px;

    font-size: 18px;
}


.game-placeholder p {

    color: #777;

    margin-top: 10px;
}


/* =========================
   ABOUT
========================= */

.about {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    padding-left: 0;
    padding-right: 0;
}


.about-image {

    min-height: 700px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle,
            #242424,
            #090909 70%
        );
}


.about-logo {

    width: min(360px, 65%);

    height: auto;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(
            0 0 25px
            rgba(255,255,255,.12)
        );

    transition:
        transform .5s ease,
        filter .5s ease;
}


.about-logo:hover {

    transform:
        scale(1.05)
        rotate(-2deg);

    filter:
        drop-shadow(
            0 0 40px
            rgba(255,255,255,.22)
        );

}

.about-content {

    padding:
        80px 10%;
}


.about-big {

    font-size: 28px;

    line-height: 1.35;

    margin-bottom: 30px;

    color: #ddd;
}


.about-content p {

    color: #999;

    line-height: 1.8;

    margin-bottom: 20px;
}


.text-button {

    display: inline-block;

    margin-top: 25px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    border-bottom:
        1px solid white;

    padding-bottom: 8px;
}


/* =========================
   STUDIO
========================= */

.studio {

    background: #101010;
}


.center {

    display: block;

    text-align: center;
}


.center .section-number {

    display: block;
}


.center h2 {

    max-width: 850px;

    margin:
        20px auto 0;
}


.studio-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 1px;

    background: #292929;
}


.studio-box {

    background: #101010;

    padding: 55px 40px;

    min-height: 280px;
}


.studio-icon {

    font-size: 11px;

    letter-spacing: 3px;

    opacity: .4;

    margin-bottom: 40px;
}


.studio-box h3 {

    font-size: 17px;

    margin-bottom: 20px;
}


.studio-box p {

    color: #888;

    line-height: 1.7;

    font-size: 14px;
}


/* =========================
   TEAM
========================= */

.team-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 20px;
}


.team-member {

    text-align: center;
}


.team-avatar {

    aspect-ratio: 1;

    background:
        linear-gradient(
            145deg,
            #252525,
            #0c0c0c
        );

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 100px;

    font-weight: 900;

    margin-bottom: 20px;
}


.team-member h3 {

    font-size: 15px;

    letter-spacing: 1px;
}


.team-member span {

    display: block;

    margin-top: 8px;

    font-size: 9px;

    letter-spacing: 2px;

    color: #777;
}


/* =========================
   CONTACT
========================= */

.contact {

    background: #ffffff;

    color: #050505;

    text-align: center;
}


.contact-inner {

    max-width: 900px;

    margin: auto;
}


.contact .section-number,
.contact .section-label {

    color: #000;

    opacity: .5;
}


.contact h2 {

    font-size:
        clamp(
            50px,
            8vw,
            110px
        );

    line-height: .9;

    letter-spacing: -5px;

    margin:
        25px 0;
}


.contact p {

    color: #555;

    margin-bottom: 30px;
}


.contact-email {

    font-size:
        clamp(
            20px,
            3vw,
            35px
        );

    font-weight: 700;

    border-bottom:
        2px solid #000;

    padding-bottom: 7px;
}


.contact-form {

    max-width: 700px;

    margin:
        70px auto 0;

    display: grid;

    gap: 15px;
}


.contact-form input,
.contact-form textarea {

    width: 100%;

    border: none;

    border-bottom:
        1px solid #ccc;

    padding: 18px 0;

    outline: none;

    background: transparent;

    font-size: 13px;
}


.contact-form textarea {
    resize: vertical;
}


.contact-form button {

    margin-top: 20px;

    padding: 20px;

    background: #000;

    color: #fff;

    border: none;

    font-weight: 800;

    letter-spacing: 2px;

    cursor: pointer;
}


/* =========================
   FOOTER
========================= */

footer {

    padding:
        50px 8%;

    background: #050505;

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    align-items: center;
}


.footer-logo {

    font-weight: 900;

    letter-spacing: 3px;
}


.footer-logo span {

    display: inline-flex;

    width: 30px;
    height: 30px;

    border: 1px solid white;

    align-items: center;
    justify-content: center;

    margin-right: 10px;
}


.footer-links {

    display: flex;

    justify-content: center;

    gap: 25px;
}


.footer-links a {

    font-size: 9px;

    letter-spacing: 2px;

    color: #777;
}


.copyright {

    text-align: right;

    font-size: 9px;

    color: #555;

    letter-spacing: 1px;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width: 900px) {

    .navbar nav {
        display: none;
    }


    .menu-button {
        display: block;
    }


    .mobile-menu {

        position: fixed;

        top: 90px;
        left: 0;

        width: 100%;

        background: #080808;

        padding: 30px;

        z-index: 999;

        display: none;

        flex-direction: column;

        gap: 25px;
    }


    .mobile-menu.active {
        display: flex;
    }


    .mobile-menu a {

        font-size: 20px;

        font-weight: 800;
    }


    .games-grid {

        grid-template-columns: 1fr;
    }


    .game-large {
        grid-row: auto;
    }


    .about {

        grid-template-columns: 1fr;
    }


    .about-image {
        min-height: 500px;
    }


    .studio-grid {

        grid-template-columns: 1fr;
    }


    .team-grid {

        grid-template-columns:
            repeat(2,1fr);
    }


    footer {

        grid-template-columns: 1fr;

        gap: 30px;

        text-align: center;
    }


    .copyright {
        text-align: center;
    }

}


@media(max-width: 600px) {

    .hero {
        padding: 0 7%;
    }


    .hero h1 {
        letter-spacing: -4px;
    }


    .hero-buttons {
        flex-direction: column;

        max-width: 230px;
    }


    .section {
        padding:
            90px 7%;
    }


    .section-header {
        gap: 15px;
    }


    .section-header h2 {
        letter-spacing: -2px;
    }


    .team-grid {
        grid-template-columns: 1fr;
    }


    .about-symbol {

        width: 180px;
        height: 180px;

        font-size: 110px;
    }


    .contact h2 {
        letter-spacing: -3px;
    }

}

/* =========================
   NEUTRON BACKGROUND
========================= */

#neutronCanvas {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    pointer-events: none;

    opacity: .75;
}


/* =========================
   CONTENT ABOVE CANVAS
========================= */

.navbar,
.hero,
.section,
footer,
.mobile-menu {

    position: relative;

    z-index: 2;
}


/* =========================
   LOADER
========================= */

#loader {

    position: fixed;

    inset: 0;

    background: #050505;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        opacity 1s ease,
        visibility 1s ease;

}


#loader.hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}


.loader-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}


/* LOGO */

.loader-logo {

    display: block;

    width: min(260px, 55vw);

    height: auto;

    object-fit: contain;

    animation:
        loaderLogo 2s ease-in-out infinite alternate;

}


/* LINE */

.loader-line {

    width: 180px;

    height: 2px;

    margin-top: 35px;

    overflow: hidden;

    position: relative;

    background: rgba(255,255,255,.15);

}


.loader-line::after {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 60%;

    height: 100%;

    background: #ffffff;

    animation:
        loaderProgress 1.4s ease-in-out infinite;

}


@keyframes loaderLogo {

    from {

        transform:
            scale(.96);

        opacity: .75;

    }

    to {

        transform:
            scale(1.04);

        opacity: 1;

    }

}


@keyframes loaderProgress {

    0% {

        transform:
            translateX(-100%);

    }

    100% {

        transform:
            translateX(280%);

    }

}
.navbar-logo {
    display: block;
    width: 55px;
    height: 55px;
    object-fit: contain;
}