/* Two Labs Games — Modern Redesign 2026 */

:root {
    --color-bg:           #0d1117;
    --color-panel:        rgba(10, 14, 20, 0.84);
    --color-accent:       #7dd3bd;
    --color-accent-dark:  #5bbfaa;
    --color-text:         #e6edf3;
    --color-text-muted:   #8b949e;
    --color-border:       rgba(230, 237, 243, 0.1);
    --color-hr:           rgba(230, 237, 243, 0.12);
    --font:               'Inter', 'Open Sans', Arial, sans-serif;
    --radius:             4px;
    --transition:         all 0.25s ease;
}

/* ─── Base ─────────────────────────────────────────────── */

body {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    transition: var(--transition);
    text-decoration: none;
}

a:hover { text-decoration: none; }

ul { padding: 0; margin: 0; }
button:focus { outline: none; }

p {
    line-height: 1.85;
    color: rgba(230, 237, 243, 0.82);
}

hr {
    border: 0;
    border-top: 1px solid var(--color-hr);
}

/* ─── Logo & Brand ──────────────────────────────────────── */

.tm-logo-white {
    display: block;
    flex-shrink: 0;
    margin-right: 16px;
    background-image: url(../img/twolabslogo_new2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 48px;
    height: 48px;
}

.tm-site-header {
    display: flex;
    align-items: center;
}

.tm-sitename {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 2px;
    color: var(--color-text);
    text-transform: uppercase;
}

.tm-slogon {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0;
}

/* ─── Navigation ────────────────────────────────────────── */

.navbar-toggler {
    padding: 7px 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: rgba(13, 17, 23, 0.7);
    color: var(--color-text);
    transition: var(--transition);
}

.navbar-toggler:hover {
    background-color: rgba(125, 211, 189, 0.12);
    border-color: var(--color-accent);
}

.navbar-expand-lg {
    padding-left: 0;
    padding-right: 0;
}

.navbar-expand-lg .navbar-nav .nav-link { padding: 0; }

.navbar-expand-lg .navbar-nav .tm-nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.navbar-expand-lg .navbar-nav .tm-nav-link:hover,
.nav-item.active .tm-nav-link {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

.nav-item { margin-right: 48px; }
.nav-item:last-child { margin-right: 0; }

/* ─── Background System ─────────────────────────────────── */

.tm-bg {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1000;
}

.tm-bg-left,
.tm-bg-right {
    position: relative;
    width: 50%;
    height: 100%;
}

.tm-bg-right { background-color: var(--color-panel); }

.tm-bg-left {
    border-right: 230px solid var(--color-panel);
    border-top: 100vh solid transparent;
}

/* ─── Background Dots ───────────────────────────────────── */

.tm-bg-controls-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: -150px;
    list-style: none;
}

.tm-bg-control {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.tm-bg-control.active,
.tm-bg-control:hover {
    background-color: var(--color-accent);
    transform: scale(1.4);
}

/* ─── Layout ────────────────────────────────────────────── */

.tm-container {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tm-row { display: flex; }

.tm-col-left {
    width: 50%;
    height: 100%;
    padding-left: 48px;
    padding-right: 40px;
}

.tm-col-right {
    width: 50%;
    height: 100%;
    padding-left: 64px;
    padding-right: 64px;
}

/* ─── Content Areas ─────────────────────────────────────── */

.tm-content {
    max-width: 620px;
    margin-top: 48px;
    padding-right: 16px;
}

.tm-about { max-width: 520px; }

.tm-content-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ─── Buttons ───────────────────────────────────────────── */

.btn {
    padding: 10px 28px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #0d1117;
    border: 0;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent-dark);
    color: #0d1117;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(125, 211, 189, 0.28);
}

/* ─── Footer ────────────────────────────────────────────── */

.tm-site-footer {
    padding: 32px 0 20px;
    max-width: 620px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.tm-col-footer { padding-left: 0; }

/* ─── Text Links ────────────────────────────────────────── */

.tm-text-link { color: var(--color-accent); }

.tm-text-link:hover,
.tm-text-link:focus {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* ─── About Page ────────────────────────────────────────── */

.tm-about-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.tm-about-item:last-child { border-bottom: none; }

.tm-about-icon {
    font-size: 1.3rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.tm-about-item p { margin: 0; }

.tm-about-item a {
    color: var(--color-accent);
}

.tm-about-item a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* ─── Games Page ────────────────────────────────────────── */

.tm-game-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tm-game-icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.tm-game-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(125, 211, 189, 0.1);
    border: 1px solid rgba(125, 211, 189, 0.25);
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.tm-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.tm-screenshots img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    display: block;
}

.tm-screenshots img:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

/* ─── Contact Page ──────────────────────────────────────── */

.mb-85 { margin-bottom: 85px; }
.tm-contact-main { max-width: 690px; }

.tm-contact {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.tm-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.tm-contact-email:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* ─── Privacy Page ──────────────────────────────────────── */

.tm-privacy-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    padding: 12px 14px;
    background: rgba(125, 211, 189, 0.06);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.tm-privacy-lede {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 28px;
    padding: 14px 16px;
    background: rgba(125, 211, 189, 0.08);
    border: 1px solid rgba(125, 211, 189, 0.2);
    border-radius: var(--radius);
}

.tm-privacy-section {
    margin-bottom: 24px;
}

.tm-privacy-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.tm-privacy-section p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.8;
}

.tm-privacy-section ul {
    padding-left: 1.2em;
    list-style: disc;
    margin: 0;
}

.tm-privacy-section ul li {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(230, 237, 243, 0.82);
    margin-bottom: 2px;
}

/* ─── Scrollbar ─────────────────────────────────────────── */

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

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

::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: rgba(125, 211, 189, 0.25);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(125, 211, 189, 0.45);
}

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

@media (max-width: 1200px) {
    .nav-item { margin-right: 28px; }

    .tm-col-right {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 992px) {
    .tm-nav {
        position: absolute;
        background: rgba(10, 14, 20, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        top: 48px;
        right: 0;
        min-width: 160px;
    }

    .navbar-expand-lg .navbar-nav .tm-nav-link {
        color: var(--color-text-muted);
        font-size: 0.85rem;
        padding: 12px 20px;
        border-bottom: none;
        display: block;
    }

    .navbar-expand-lg .navbar-nav .tm-nav-link:hover,
    .nav-item.active .tm-nav-link {
        color: var(--color-accent);
        border-bottom: none;
        background: rgba(125, 211, 189, 0.07);
    }

    .nav-item { margin-right: 0; }
    .tm-content { margin-top: 20px; }
    .tm-site-footer { padding-top: 32px; }
    .tm-col-left { width: 40%; }

    .tm-col-right {
        width: 60%;
        padding-left: 80px;
        padding-right: 24px;
    }

    .tm-col-footer { padding-left: 0; }
}

@media (max-width: 768px) {
    .tm-row { flex-direction: column; }

    .tm-col-left,
    .tm-col-right,
    .tm-bg-left,
    .tm-bg-right {
        width: 100%;
    }

    #tm-main-nav {
        position: fixed;
        top: 50px;
        right: 24px;
        padding-bottom: 0;
    }

    .tm-bg { flex-direction: column; }

    .tm-bg-left {
        height: 200px;
        border-bottom: 50px solid var(--color-panel);
        border-right: 0;
        border-top: 0;
    }

    .tm-bg-right { height: calc(100% - 200px); }

    .tm-bg-controls-wrapper {
        margin-left: 0;
        margin-top: 48px;
    }

    .tm-content {
        max-height: none;
        margin-top: 32px;
    }

    .tm-col-right {
        padding-top: 32px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .tm-col-footer {
        padding-left: 8px;
        padding-right: 8px;
    }

    .tm-screenshots {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .tm-logo-white { margin-right: 12px; }
    .tm-sitename { font-size: 1.15rem; }
    .tm-slogon { font-size: 0.65rem; }
    .tm-col-left { padding-left: 20px; padding-right: 16px; }
    .tm-content-title { font-size: 1.4rem; }
}
