:root {
    --black: #000000;
    --white: #ffffff;
    --cyan: #47d1fe;
    --blue: #1545b1;
    --text-dark: #111111;
    --text-light: #f5f5f5;
    --muted-dark: #666666;
    --muted-light: #b8b8b8;
    --glass-dark: rgba(0, 0, 0, 0.42);
    --glass-light: rgba(255, 255, 255, 0.72);
    --border-dark: rgba(255, 255, 255, 0.14);
    --border-light: rgba(0, 0, 0, 0.12);
    --gradient: linear-gradient(135deg, #47d1fe 0%, #1d7dff 45%, #1545b1 100%);
    --max-width: 1200px;
    --nav-height: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.38);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav {
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.nav-links a,
.dropdown-toggle {
    opacity: 0.86;
    transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-links a:hover,
.dropdown-toggle:hover {
    opacity: 1;
    color: var(--cyan);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 240px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
    z-index: 1000;
}

.dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 18px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text-light);
}

.dropdown-menu a:hover {
    background: rgba(71, 209, 254, 0.12);
}

.nav-cta,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 500;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-cta,
.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 12px 40px rgba(71, 209, 254, 0.22);
}

.btn-secondary {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.nav-cta:hover,
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/* group the two header buttons together on the right */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* secondary header button: outline style next to the primary CTA */
.nav-cta-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.nav-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + 64px) 24px 64px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 35%, rgba(71, 209, 254, 0.22), transparent 30%),
        radial-gradient(circle at 40% 65%, rgba(21, 69, 177, 0.28), transparent 34%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.22), #000);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(120deg, #020617 0%, #0f172a 50%, #000000 100%);
    /* fallback */
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-video.active {
    opacity: 1;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* darker on the left, where your text sits */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.12) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .hero-scrim {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--max-width));
    color: var(--black);
}

.eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--cyan);
    margin-bottom: 18px;
    font-weight: 700;
}

.hero .eyebrow {
    color: #ffffff;
}

.hero h1,
.section-title {
    font-size: clamp(3.2rem, 8vw, 7.8rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 600;
    max-width: 850px;
}

.hero p {
    max-width: 500px;
    margin: 28px 0 34px;
    font-size: clamp(1rem, 1.6vw, 1.28rem);
    color: rgba(0, 0, 0, 0.72);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* white text for heroes on a dark / video background */
.hero.on-dark h1 {
    color: #ffffff;
}

.hero.on-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.hero.on-dark .eyebrow {
    color: #ffffff;
}

.showcase-dots {
    position: absolute;
    z-index: 3;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.showcase-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
}

.showcase-dots span.active {
    background: var(--cyan);
}

.section {
    min-height: 100vh;
    padding: 120px 24px;
    display: flex;
    align-items: center;
}

.section-inner {
    width: min(100%, var(--max-width));
    margin: 0 auto;
}

.section.light {
    background: var(--white);
    color: var(--black);
}

.section.dark {
    background: var(--black);
    color: var(--white);
}

.section-subtitle {
    max-width: 620px;
    margin-top: 24px;
    color: var(--muted-light);
    font-size: 1.1rem;
}

.light .section-subtitle {
    color: var(--muted-dark);
}

.services-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.service-card {
    min-height: 260px;
    padding: 24px;
    border-radius: 26px;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        #090909;
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: auto -30% -30% auto;
    width: 180px;
    height: 180px;
    background: var(--gradient);
    filter: blur(60px);
    opacity: 0.22;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(71, 209, 254, 0.45);
}

.service-card h3 {
    position: relative;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-card p {
    position: relative;
    color: var(--muted-light);
    font-size: 0.9rem;
}

.feature-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.visual-card {
    min-height: 520px;
    border-radius: 36px;

    background:
        radial-gradient(circle at 55% 38%,
            rgba(71, 209, 254, 0.35),
            transparent 24%),

        radial-gradient(circle at 40% 58%,
            rgba(21, 69, 177, 0.32),
            transparent 30%),

        linear-gradient(145deg,
            #050505,
            #121212);

    border: 1px solid var(--border-dark);

    box-shadow:
        inset 0 0 80px rgba(255, 255, 255, 0.03),
        0 30px 80px rgba(0, 0, 0, 0.45);

    transition:
        transform 0.8s var(--ease),
        box-shadow 0.8s var(--ease);

    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: "";

    position: absolute;
    inset: -20%;

    background:
        radial-gradient(circle,
            rgba(71, 209, 254, 0.18),
            transparent 60%);

    animation: ambientMove 10s linear infinite;
}

.games-section {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.22), #000),
        radial-gradient(circle at 70% 40%, rgba(21, 69, 177, 0.32), transparent 34%);
}

.cta-section {
    text-align: center;
    min-height: 70vh;
}

.cta-section .section-title {
    margin: 0 auto;
}

.cta-section p {
    max-width: 560px;
    margin: 24px auto 34px;
    color: var(--muted-light);
}

.contact-form {
    margin-top: 44px;
    display: grid;
    gap: 16px;
    max-width: 640px;
    margin-inline: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border-dark);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--cyan);
}

.footer {
    padding: 56px 24px 28px;
    background: #050505;
    color: var(--white);
    border-top: 1px solid var(--border-dark);
}

.footer-inner {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.footer img {
    height: 200px;
    margin-bottom: 18px;
}

.footer p,
.footer a {
    color: var(--muted-light);
    font-size: 0.9rem;
}

.footer h4 {
    margin-bottom: 14px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-bottom {
    width: min(100%, var(--max-width));
    margin: 42px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--border-dark);
    color: var(--muted-light);
    font-size: 0.8rem;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: 0;
    color: inherit;
    font-size: 1.6rem;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(24px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.35s var(--ease),
        transform 0.35s var(--ease);

    transform: translateY(-10px);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.25s var(--ease);
}

.mobile-menu a:hover {
    color: var(--cyan);
}

.mobile-close {
    position: absolute;
    top: 26px;
    right: 26px;
    background: none;
    border: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}


@media (max-width: 980px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-panel {
        grid-template-columns: 1fr;
    }

    .visual-card {
        min-height: 360px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .nav {
        width: min(100% - 28px, var(--max-width));
    }

    .hero,
    .section {
        padding-inline: 18px;
    }

    .hero h1,
    .section-title {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 220px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

.contact-form select {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border-dark);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contact-form select option {
    background: #111111;
    color: #ffffff;
}

.contact-form select:focus {
    border-color: var(--cyan);
}

.contact-form select {
    background-image:
        linear-gradient(45deg, transparent 50%, white 50%),
        linear-gradient(135deg, white 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.preloader {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        opacity 0.8s var(--ease),
        visibility 0.8s var(--ease);
}

.preloader-logo {
    width: 120px;
    height: 120px;

    animation:
        logoFloat 2.4s ease-in-out infinite,
        logoGlow 3s ease-in-out infinite;
}

.preloader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

@keyframes logoFloat {

    0% {
        transform: translateY(0px);
    }

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

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

@keyframes logoGlow {

    0% {
        filter:
            drop-shadow(0 0 0 rgba(71, 209, 254, 0));
    }

    50% {
        filter:
            drop-shadow(0 0 24px rgba(71, 209, 254, 0.45));
    }

    100% {
        filter:
            drop-shadow(0 0 0 rgba(71, 209, 254, 0));
    }
}

body {
    animation: pageFade 0.8s ease;
}

@keyframes pageFade {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1s var(--ease),
        transform 1s var(--ease);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    transition:
        transform 0.5s var(--ease),
        border-color 0.5s var(--ease),
        opacity 0.8s var(--ease);
}

@keyframes ambientMove {

    0% {
        transform: translateX(-10%) translateY(-10%);
    }

    50% {
        transform: translateX(10%) translateY(10%);
    }

    100% {
        transform: translateX(-10%) translateY(-10%);
    }
}

.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at center,
            rgba(71, 209, 254, 0.03),
            transparent 60%);

    pointer-events: none;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-content,
.service-card,
.visual-card,
.fade-in {
    transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

}

button,
a {
    touch-action: manipulation;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom,
            #47d1fe,
            #1545b1);

    border-radius: 999px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.social-links a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--white);

    transition:
        transform 0.3s var(--ease),
        background 0.3s var(--ease),
        border-color 0.3s var(--ease),
        color 0.3s var(--ease);
}

.social-links a:hover {
    transform: translateY(-3px);

    background: rgba(71, 209, 254, 0.12);

    border-color: rgba(71, 209, 254, 0.4);

    color: var(--cyan);

    box-shadow:
        0 10px 30px rgba(71, 209, 254, 0.16);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.calendly-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    margin: 32px 0 24px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.calendly-divider::before,
.calendly-divider::after {
    content: "";

    width: 80px;
    height: 1px;

    background:
        linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent);
}

.calendly-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.cta-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-button-group .btn-primary {
    width: 320px;
    justify-content: center;
}


.image-service-card {
    aspect-ratio: 16 / 9;
    min-height: unset;
    padding: 0;
    justify-content: flex-end;
    isolation: isolate;
    cursor: pointer;
}

.image-service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition:
        transform 0.55s var(--ease),
        filter 0.55s var(--ease);
}

.image-service-card::before {
    inset: 0;
    width: auto;
    height: auto;
    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.2) 18%,
            transparent 42%);
    filter: none;
    opacity: 1;
    z-index: 1;
}

.image-service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    z-index: 2;
}

.service-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 22px;
    transform: translateY(calc(100% - 3.3rem));
    transition: transform 0.4s var(--ease);
}

.image-service-card h3 {
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.image-service-card p {
    opacity: 0;
    transform: translateY(10px);
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
    transition:
        opacity 0.35s var(--ease),
        transform 0.35s var(--ease);
}

.image-service-card:hover img,
.image-service-card:focus-within img,
.image-service-card:focus img {
    transform: scale(1.06);
}

.image-service-card:hover::after,
.image-service-card:focus-within::after,
.image-service-card:focus::after {
    opacity: 1;
}

.image-service-card:hover .service-card-content,
.image-service-card:focus-within .service-card-content,
.image-service-card:focus .service-card-content {
    transform: translateY(0);
}

.image-service-card:hover p,
.image-service-card:focus-within p,
.image-service-card:focus p {
    opacity: 1;
    transform: translateY(0);
}

.image-service-card:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .games-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .games-projects-grid {
        grid-template-columns: 1fr;
    }

    .service-card-content {
        padding: 20px;
    }
}