/* Infinity Green 2026 - custom overrides */

:root {
    --ig-black: #0b0d0e;
    --ig-green: #35a936;
    --ig-green-bright: #22cd6f;
    --ig-text: #32383a;
    --ig-muted: #747b7f;
    --ig-border: #e7ebe9;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Keep the desktop menu on a single line. The navigation switches to
   the hamburger at the Bootstrap desktop boundary before wrapping can occur. */
.stellarnav.desktop > ul {
    white-space: nowrap;
}

/* Hero */
.wlc-title p {
    max-width: 650px;
}

.wlc-author-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Services */
.service-area.service-primery {
    padding: 95px 0 100px;
}

.service-section-label,
.footer-section-heading {
    color: var(--ig-green);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

.service-section-label {
    margin-bottom: 38px;
}

.service-cards-row > div {
    display: flex;
}

.service-primery .single-service {
    width: 100%;
    min-height: 330px;
    padding: 48px 42px;
    background: #fff;
    border: 1px solid var(--ig-border);
    border-radius: 4px;
    box-shadow: 0 16px 40px rgba(11, 13, 14, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.service-primery .single-service:hover {
    background: var(--ig-black);
    border-color: var(--ig-black);
    box-shadow: 0 22px 50px rgba(11, 13, 14, .14);
    transform: translateY(-7px);
}

.service-index {
    color: var(--ig-green);
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 32px;
    transition: color .28s ease;
}

.service-primery .single-service:hover .service-index {
    color: var(--ig-green-bright);
}

.service-primery .service-text {
    margin: 0;
}

.service-text h4 {
    color: var(--ig-text) !important;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 22px;
}

.service-text p {
    color: var(--ig-muted);
    font-size: 17px;
    line-height: 1.65;
    text-transform: none;
}

.service-primery .single-service:hover .service-text h4,
.service-primery .single-service:hover .service-text p {
    color: #fff !important;
}

.service-primery::after {
    opacity: .42;
    pointer-events: none;
}

/* Games */
.project-area.project-area-primery {
    padding: 100px 0 110px;
}

.games-heading-row {
    margin-bottom: 58px;
}

.primery-info-content p {
    text-transform: none;
}

.da-thumbs li {
    background: var(--ig-black);
    box-shadow: none;
}

.da-thumbs li a img {
    background: var(--ig-black);
    object-fit: contain;
}

.da-thumbs li a div.game-card-overlay,
.da-thumbs li a div.game-card-overlay.custom-hover-object {
    background: rgba(11, 13, 14, .94);
    flex-direction: column;
    gap: 14px;
    padding: 34px;
    text-align: center;
}

.game-card-overlay h3 {
    color: #fff;
    font-size: 26px;
    line-height: 1.35;
    margin: 0;
    text-transform: uppercase;
}

.game-card-overlay span {
    color: var(--ig-green-bright) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
}

.project-area-primery .da-thumbs .owl-nav {
    top: -31%;
}

/* Contact */
.cta-area.cta-primery {
    padding: 95px 0 105px;
    overflow: hidden;
}

.contact-cta-content {
    position: relative;
    z-index: 2;
}

.contact-cta-content small {
    color: var(--ig-green);
    display: block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.contact-cta-content h2 {
    color: var(--ig-black);
    font-size: 42px;
    line-height: 1.25;
    margin: 0 auto 14px;
    max-width: 850px;
    text-transform: uppercase;
}

.contact-cta-content p {
    color: var(--ig-muted);
    font-size: 19px;
    margin-bottom: 32px;
}

.contact-cta-link {
    border-bottom: 2px solid var(--ig-green);
    color: var(--ig-black);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    padding: 0 0 7px;
    transition: color .25s ease, gap .25s ease;
}

.contact-cta-link:hover {
    color: var(--ig-green);
    gap: 18px;
}

/* Clients / ecosystem / footer */
.footer-area {
    padding: 90px 0 50px;
}

.trust-block + .trust-block {
    margin-top: 68px;
}

.footer-section-heading {
    margin-bottom: 38px;
}

.brand-grid {
    display: grid;
    align-items: center;
    gap: 32px 42px;
}

.brand-grid-clients {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-grid-ecosystem {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.brand-logo {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-height: 70px;
    max-width: 155px;
    opacity: .68;
    transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}

.brand-grid-clients .brand-logo img {
    max-height: 78px;
    max-width: 180px;
}

.brand-logo:hover img {
    filter: brightness(1.25);
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    margin-top: 78px;
    padding-top: 48px;
}

.footer-menu {
    margin-bottom: 28px;
}

.footer-menu ul,
.footer-menu li,
.footer-menu li a,
.copyright p {
    margin-bottom: 0;
}

.copyright {
    text-transform: none;
}

/* Responsive */
@media only screen and (max-width: 1199px) {
    .service-primery .single-service {
        padding: 42px 30px;
    }

    .brand-grid-ecosystem {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 991px) {
    .service-area.service-primery,
    .project-area.project-area-primery,
    .cta-area.cta-primery {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .service-cards-row > div {
        display: block;
    }

    .service-primery .single-service {
        min-height: 0;
    }

    .games-heading-row {
        margin-bottom: 45px;
    }

    .primery-info-content {
        margin-top: 25px;
    }

    .project-area-primery .da-thumbs .owl-nav {
        top: auto;
    }

    .brand-grid-clients,
    .brand-grid-ecosystem {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .wlc-title p {
        border-left: 0;
        border-top: 3px solid var(--ig-green);
        margin: 28px 0 0;
        padding: 22px 0 0;
        font-size: 16px;
        line-height: 1.65;
    }

    .service-area.service-primery,
    .project-area.project-area-primery,
    .cta-area.cta-primery {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .service-section-label,
    .footer-section-heading,
    .contact-cta-content small {
        font-size: 13px;
    }

    .service-primery .single-service {
        padding: 38px 28px;
        text-align: left;
    }

    .service-index {
        font-size: 42px;
        margin-bottom: 25px;
    }

    .service-text h4 {
        font-size: 22px;
    }

    .game-card-overlay h3 {
        font-size: 22px;
    }

    .contact-cta-content h2 {
        font-size: 31px;
    }

    .contact-cta-content p {
        font-size: 17px;
    }

    .contact-cta-link {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .footer-area {
        padding: 70px 0 40px;
    }

    .brand-grid-clients,
    .brand-grid-ecosystem {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 20px;
    }

    .brand-logo img,
    .brand-grid-clients .brand-logo img {
        max-height: 62px;
        max-width: 130px;
    }

    .footer-bottom {
        margin-top: 60px;
    }
}

/* Mobile navigation and carousel fixes — animation rules intentionally untouched. */
@media only screen and (max-width: 991px) {
    .stellarnav.mobile.right > ul {
        background: var(--ig-black) !important;
        border-left: 1px solid rgba(53, 169, 54, .35);
        box-shadow: -18px 0 42px rgba(0, 0, 0, .32);
    }

    .stellarnav.mobile.right > ul > li > a,
    .stellarnav.mobile.right .close-menu {
        background: var(--ig-black) !important;
        border-bottom-color: rgba(255, 255, 255, .08) !important;
        color: #fff !important;
    }

    .stellarnav.mobile.right > ul > li.current > a,
    .stellarnav.mobile.right > ul > li > a:hover,
    .stellarnav.mobile.right > ul > li > a:focus,
    .stellarnav.mobile.right .close-menu:hover,
    .stellarnav.mobile.right .close-menu:focus {
        background: #101614 !important;
        color: var(--ig-green-bright) !important;
    }

    .stellarnav.mobile .menu-toggle .bars span {
        background: var(--ig-green-bright) !important;
    }

    .stellarnav.mobile.right .close-menu {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .stellarnav.mobile.right .icon-close::before,
    .stellarnav.mobile.right .icon-close::after {
        background: var(--ig-green-bright) !important;
    }

    .project-area-primery .portfolio-carousel2 {
        padding-bottom: 70px;
    }

    .project-area-primery .portfolio-carousel2 .owl-nav {
        bottom: 0 !important;
        top: auto !important;
        right: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
}

@media only screen and (max-width: 575px) {
    .project-area-primery .portfolio-carousel2 {
        padding-bottom: 76px;
    }
}


/* Mobile viewport containment and anchor spacing.
   Animation declarations are intentionally left untouched. */
html,
body,
.site {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body,
    .site {
        overflow-x: clip;
    }
}

#service,
#games,
#contact,
#client {
    scroll-margin-top: 36px;
}

/* Override the template's fixed 480px container rule, which can create
   horizontal scrolling on narrow/zoomed mobile viewports. */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    .container {
        width: 100%;
        max-width: 480px;
    }
}

@media only screen and (max-width: 991px) {
    .header-area,
    .header-area .container,
    .header-area .row,
    .main-menu,
    .stellarnav.mobile {
        max-width: 100%;
    }

    /* Keep the off-canvas panel anchored inside the visible viewport. */
    .stellarnav.mobile.right > ul {
        box-sizing: border-box !important;
        left: auto !important;
        right: 0 !important;
        width: min(320px, 88vw) !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        transform: none !important;
        z-index: 10001 !important;
    }

    .stellarnav.mobile.right > ul > li,
    .stellarnav.mobile.right > ul > li > a,
    .stellarnav.mobile.right .close-menu {
        box-sizing: border-box;
        max-width: 100%;
    }
}
