:root {
    --bg: #000000;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #06b6d4;
    --border: #2a2a2a;
}

/* Global reset / base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

nav {
    margin: 1rem auto 2rem;
    padding: 0 1rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

.links {
    display: flex;
    gap: 1rem;
}

.links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.links a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Burger & mobile menu */
.burger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 900px) {
    .links {
        display: none;
    }

    .burger {
        display: block;
    }

    .mobile-menu.open {
        display: flex;
    }
}

/* Home page */
.container {
    padding: 1rem;
    margin: auto;
    text-align: center;
}

h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.description {
    font-size: 0.8rem;
    color: var(--text);
    max-width: 650px;
    margin: 0 auto 2rem auto;
}

.button-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 3rem 0;
    align-items: center;
}

.button-column a {
    background-color: var(--accent);
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.button-column a.whitebutton {
    background-color: white;
}

.button-column a:hover {
    background-color: #0891b2;
}

.visits-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
}

.visits-number {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0.5rem;
    word-break: break-word;
}

.contributions {
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.contributions h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.contributions h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.game-card {
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-4px);
}

.thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #2a2a2a;
    margin-bottom: 1rem;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-wrapper img:hover {
    transform: scale(1.05);
}

.game-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.game-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

.divider {
    height: 1px;
    width: 60%;
    margin: 3rem auto;
    background: var(--border);
}

.grid-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    width: 100%;
}

.spinner-large {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    text-align: left;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text);
}

.stat-label {
    flex: 1;
    text-align: left;
}

.stat-value {
    flex: 1;
    text-align: right;
    font-weight: bold;
}

.rating {
    font-size: 1.2rem;
    color: gold;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.main-content-bg {
    background-image: url('assets/ThumbnailNoLines.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 60vh;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

.main-content-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

@media (max-width: 768px) {
    .main-content-bg {
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        min-height: 40vh;
        padding: 2rem 0;
    }
}

.hero-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.content-inner {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 3rem 2rem 2rem;
    text-align: center;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

.testimonial-card {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.quote {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.rating {
    margin-bottom: 1rem;
}

.credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.name {
    color: #ffffff;
}

.centered {
    justify-content: center;
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Services Section Styles */
.services-container {
    padding: 3rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.services-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.service-card {
    background: #1d1f1f;
    border-top: 4px solid var(--accent);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    max-width: 300px;
    max-height: 350px;
    min-height: 350px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-card h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
}

.subscriber-count {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ffffff;
    margin-top: 0.5rem;
    text-align: center;
}

.service-card h3 {
    margin: 0 0 1rem;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.service-icon {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.heading-services {
    color: green;
}

.heading-reviews {
    color: darkgoldenrod;
    display: inherit;
}

.heading-contributions {
    color: darkmagenta;
}

.contact-form-container {
    max-width: 900px;
    max-height: 400px;
    min-height: 200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.contact-form-container p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.contact-form button.submit-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

.contact-form button.submit-btn:hover {
    background-color: #0891b2;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.system-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.system-card h3 {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.system-card p {
    font-size: 1em;
    color: #d1d1d1;
    margin-bottom: 15px;
}

.system-card a {
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--accent);
    padding: 8px 20px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.system-card a:hover {
    background-color: var(--accent);
    color: #fff;
}

.system-body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: white;
    margin: 0;
    padding: 0;
}

.hero-section {
    text-align: center;
    background: linear-gradient(to right, var(--accent), #0b0b0b);
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 3em;
}

.hero-content h1 {
    color: white;
}

.hero-content {
    max-width: 960px;
    margin: auto;
}

#systems {
    text-align: center;
    margin-top: 50px;
}

.system-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
}

.system-card {
    background-color: #1d1f1f;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.system-card h3 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.system-card p {
    font-size: 1em;
    color: #d1d1d1;
    margin-bottom: 15px;
}

.system-card-video {
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.system-card-video video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.disabled-link {
    pointer-events: none;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.social-links a img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.discord-username {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--accent);
}

.discord-logo-img {
    background-color: white;
    background: white;
}

.heading-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: nowrap;
}

.logo-container {
    display: flex;
    justify-content: flex-end;
}

.heading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    margin-bottom: 1em;
}

.site-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0.5em 0;
    white-space: normal;
    flex-basis: min-content;
    min-width: 300px;
}

.h1-logo,
.nav-logo {
    width: 60px;
    height: 2em;
    object-fit: contain;
}

.site-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.discord-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.discord-tooltip .tooltip-text {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    border-radius: 4px;
    padding: 4px 6px;
    pointer-events: none;
    z-index: 10;
}

.discord-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.discord-tooltip:hover .tooltip-text,
.discord-tooltip:focus .tooltip-text {
    display: block;
}

@media (min-width: 769px) {
    .hero-container {
        height: 80vh;
    }

    h1 {
        font-size: 3.5rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .content-inner {
        padding: 3rem 2rem;
    }

    .services-page {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .system-cards {
        grid-template-columns: 1fr;
        padding: 20px,
    }

    .system-card-video {
        margin-top: 10px;
    }

    .case-study-content {
        flex-direction: column;
    }

    .case-study-description {
        height: auto;
    }

    .system-card {
        width: 100%;
        max-width: 300px;
    }

    .case-study-video {
        width: 100%;
        height: 300px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .case-study-title {
        font-size: 2rem;
    }

    .case-study-subtitle {
        font-size: 1em;
    }

    .system-card {
        width: 100%;
        max-width: 300px;
    }

    .system-cards {
        justify-content: center;
    }

    .hero-container {
        height: 70vh;
        min-height: 600px;
    }

    h1 {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .content-inner {
        padding: 0rem;
    }

    .hero-img {
        object-position: top center;
    }

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

    .button-column {
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
}