:root {
    --primary: #A9E7F5;
    --lapis: #1E4ED8;
    --dark: #0F172A;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: var(--white);
}


.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 16px 32px;
}


.logo img {
    height: 120px;
}


.nav-center {
    display: flex;
    justify-content: center;
    gap: 18px;
}


.nav-item {
    position: relative;
    padding: 10px 22px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}


.nav-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: skew(-15deg) scaleX(0);
    z-index: -1;
    transition: transform 0.3s ease;
    border-radius: 4px;
}


.nav-item:hover,
.nav-item.active {
    color: var(--lapis);
}

.nav-item:hover::before,
.nav-item.active::before {
    transform: skew(-15deg) scaleX(1.15);
}


.socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.socials img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.socials a:hover img {
    transform: scale(1.15);
    opacity: 0.85;
}

.socials a {
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.socials a:hover {
    transform: scale(1.15);
}


.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .navbar {
        grid-template-columns: auto auto;
    }

    .nav-center,
    .socials {
        display: none;
    }

    .menu-toggle {
        display: block;
        justify-self: end;
    }
}





.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 85vh;
    overflow: hidden;
}


.hero-left {
    background: #A9E7F5;
    transform: skew(-12deg);
    margin-left: -120px;
    padding-left: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-left-inner {
    transform: skew(12deg);
}

.hero-left img {
    width: 620px;
    max-width: 70%;
}


.hero-right {
    background: white;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.hero-right h1 {
    font-size: 3rem;
    color: #0F172A;
}

.hero-right p {
    max-width: 520px;
    line-height: 1.6;
    color: #334155;
}


.hero-btn {
    align-self: flex-start;
    background: #A9E7F5;
    color: 1E4ED8;
    padding: 14px 36px;
    font-weight: 700;
    text-decoration: none;
    transform: skew(-15deg);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hero-btn span {
    display: inline-block;
    transform: skew(15deg);
}

.hero-btn:hover {
    background: #0F172A;
    color: white;
    transform: skew(-15deg) scale(1.05);
}


@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-left {
        transform: none;
        margin: 0;
        padding: 60px 0;
    }

    .hero-left-inner {
        transform: none;
    }

    .hero-right {
        padding: 50px 30px;
        text-align: center;
        align-items: center;
    }

    .hero-btn {
        font-family: "Segoe UI", sans-serif;
        align-self: center;
    }
}






.our-games {
    padding: 120px 60px;
    text-align: center;
    background-color: white;
}

.our-games h2 {
    font-size: 3rem;
    margin-bottom: 60px;
    color: #0F172A;
}


.games-showcase {
    width: 720px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 1fr;
    gap: 16px; 
    border-radius: 16px;
}


.game.big {
    grid-row: 1 / 3;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}


.small-container {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.game.small {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}


.game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 16px;
}


.overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 16px;
}

.overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}


.game:hover img {
    transform: scale(1.1);
}

.game:hover .overlay {
    opacity: 1;
}


@media (max-width: 900px) {
    .games-showcase {
        width: 100%;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 20px;
    }

    .small-container {
        grid-template-rows: auto;
        gap: 16px;
    }

    .game {
        max-width: 100%;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
        border-radius: 16px;
    }

    .game img {
        border-radius: 16px;
    }

    .overlay {
        border-radius: 16px;
    }
}


.footer {
    background-color: #A9E7F5;
    padding: 40px;
    text-align: center;
}



@media (max-width: 900px) {
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        position: relative;
    }

    .menu-toggle {
        display: block;
        font-size: 32px;
        cursor: pointer;
        margin-left: auto;
    }

    .nav-center,
    .socials {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 12px;
    }

    .nav-center.active,
    .socials.active {
        display: flex;
    }

    .nav-item {
        text-align: left;
        padding: 10px 0;
        font-size: 1.1rem;
    }

    .socials {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }

    .socials a img {
        width: 36px;
        height: 36px;
    }
}
