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

:root {
    --primary: #dc143c;
    --primary-dark: #a50e2d;
    --primary-light: #ff6b6b;
    --accent: #ff8c42;
    --bg-dark: #0a0a1a;
    --bg-card: #13132b;
    --bg-card-hover: #1a1a3e;
    --text: #e8e8f0;
    --text-muted: #9090b0;
    --border: rgba(220, 20, 60, 0.2);
    --gradient-1: linear-gradient(135deg, #dc143c, #ff8c42);
    --gradient-2: linear-gradient(135deg, #dc143c, #fd79a8);
}

[data-theme="light"] {
    --primary: #dc143c;
    --primary-dark: #a50e2d;
    --primary-light: #ff6b6b;
    --accent: #e0762e;
    --bg-dark: #f0f0f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f3ff;
    --text: #1a1a2e;
    --text-muted: #6060a0;
    --border: rgba(220, 20, 60, 0.15);
    --gradient-1: linear-gradient(135deg, #dc143c, #ff8c42);
    --gradient-2: linear-gradient(135deg, #dc143c, #fd79a8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Calibri', 'Candara', 'Segoe UI', 'Optima', 'Arial', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(240, 240, 248, 0.9);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
    margin-left: 8px;
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: rgba(220, 20, 60, 0.1);
}

.theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-icon-sun {
    display: block;
}

[data-theme="light"] .theme-icon-moon {
    display: none;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(220, 20, 60, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 140, 66, 0.1) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 24px;
}

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

.hero-profile {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.3);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-title {
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(220, 20, 60, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.4s;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
    transform: rotate(-45deg);
    animation: scrollBounce 2s ease infinite;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.highlight-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: transform 0.3s, border-color 0.3s;
}

.skill-category:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(220, 20, 60, 0.12);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(220, 20, 60, 0.15);
    transition: background 0.3s, border-color 0.3s;
}

.skill-tag:hover {
    background: rgba(220, 20, 60, 0.2);
    border-color: var(--primary-light);
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 48px auto 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: 3px solid var(--bg-dark);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s;
}

.timeline-content:hover {
    border-color: var(--primary-light);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-date {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-content h4 {
    color: var(--primary-light);
    font-size: 1rem;
    margin-bottom: 12px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.games-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 48px;
}

.game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.game-showcase:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 50px rgba(220, 20, 60, 0.25);
}

.game-showcase-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.game-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
    display: block;
    transition: transform 0.5s;
}

.game-showcase-image img.img-scaled-down {
    transform: scale(0.85);
}

.game-showcase:hover .game-showcase-image img {
    transform: scale(1.05);
}

.game-showcase:hover .game-showcase-image img.img-scaled-down {
    transform: scale(0.9);
}

.game-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(220, 20, 60, 0.9);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.game-showcase-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.game-showcase-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.game-showcase-date {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.game-showcase-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.game-showcase-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.game-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text);
}

.game-feature-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.game-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.game-card-tag {
    background: rgba(255, 140, 66, 0.12);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 140, 66, 0.15);
}

.game-showcase-store {
    display: flex;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.steam-badge {
    background: rgba(220, 20, 60, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(220, 20, 60, 0.25);
}

.play-badge {
    background: rgba(255, 140, 66, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 140, 66, 0.25);
}

.webgl-badge {
    background: rgba(220, 20, 60, 0.15);
    color: #fd79a8;
    border: 1px solid rgba(220, 20, 60, 0.25);
}

.game-showcase:hover .store-badge {
    background: rgba(220, 20, 60, 0.25);
}

.game-showcase:hover .webgl-badge {
    background: rgba(220, 20, 60, 0.25);
}

.game-badge-demo {
    background: rgba(220, 20, 60, 0.9);
}

.demo-label {
    display: inline-block;
    background: rgba(220, 20, 60, 0.15);
    color: #fd79a8;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(220, 20, 60, 0.25);
    width: fit-content;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 32px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s, border-color 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.contact-card svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-card span {
    font-size: 1rem;
    font-weight: 500;
}


.footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(8px); }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .hero {
        padding: 100px 16px 60px;
        min-height: 100svh;
    }

    .hero-flex {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero-profile {
        width: 120px;
        height: 120px;
    }

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

    .hero-greeting {
        font-size: 1rem;
    }

    .hero-name {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 0.92rem;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .highlight-card {
        padding: 16px 10px;
    }

    .highlight-number {
        font-size: 1.4rem;
    }

    .highlight-label {
        font-size: 0.75rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .game-showcase {
        grid-template-columns: 1fr;
    }

    .game-showcase-image img {
        min-height: 200px;
    }

    .game-showcase-features {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content li,
    .timeline-content p {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }
}

.mechawild-preview {
    position: relative;
    cursor: pointer;
}

.play-demo-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 20, 60, 0.9);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Calibri', 'Candara', 'Segoe UI', 'Optima', 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: background 0.3s, transform 0.3s;
    z-index: 2;
}

.play-demo-btn:hover {
    background: rgba(220, 20, 60, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

.mechawild-embed {
    position: relative;
}

.mechawild-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 20px 0 0 20px;
}

.close-demo-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 10, 26, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Calibri', 'Candara', 'Segoe UI', 'Optima', 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
    z-index: 2;
}

.close-demo-btn:hover {
    background: rgba(220, 20, 60, 0.8);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #e8e4f8 0%, #d0edf0 50%, #f0f0f8 100%);
}

[data-theme="light"] .hero-bg {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(220, 20, 60, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 140, 66, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .hero-name {
    background: linear-gradient(135deg, #dc143c, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="light"] .btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

[data-theme="light"] .game-showcase {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .game-showcase:hover {
    box-shadow: 0 16px 50px rgba(220, 20, 60, 0.15);
}

[data-theme="light"] .contact-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .footer {
    background: #e4e4f0;
}

[data-theme="light"] .nav-toggle span {
    background: var(--text);
}

/* ========== GAMES LOGO GRID ========== */
.game-platform-section {
    margin-top: 48px;
}

.platform-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(220, 20, 60, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.games-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.game-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.game-logo-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 24px;
    overflow: visible;
}

.logo-thumb {
    width: 130px;
    height: 130px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid var(--border);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: block;
}

.game-logo-card:hover .logo-thumb {
    transform: translateY(-6px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(220, 20, 60, 0.35);
}

.game-hover-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 300px;
    background: var(--bg-card);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

.game-logo-card.popup-active .game-hover-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.popup-gif-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.popup-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.popup-body {
    padding: 16px;
}

.popup-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.popup-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-badge.steam {
    background: rgba(23, 26, 33, 0.9);
    color: #c2d4f5;
    border: 1px solid #3d5a8a;
}

.popup-badge.mobile {
    background: rgba(0, 150, 100, 0.15);
    color: #4ade80;
    border: 1px solid rgba(0, 200, 100, 0.3);
}

.popup-badge.demo {
    background: rgba(220, 20, 60, 0.15);
    color: var(--primary);
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.popup-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.popup-link {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Calibri', 'Candara', 'Segoe UI', sans-serif;
    transition: background 0.2s, transform 0.2s;
}

.popup-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.logo-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    max-width: 130px;
}

/* MechaWild embed section */
.mechawild-embed-section {
    background: var(--bg-card);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin: 16px 0 32px;
}

.mechawild-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.mechawild-embed-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.mechawild-embed-section iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 40px rgba(220, 20, 60, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.testimonial-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 2px;
}

.testimonial-relation {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
    padding-left: 16px;
    border-left: 3px solid rgba(220, 20, 60, 0.3);
}

/* Responsive for logo grid */
@media (max-width: 768px) {
    .games-logo-grid {
        gap: 20px;
        justify-content: center;
    }

    .game-platform-section {
        margin-top: 32px;
    }

    .game-logo-wrap {
        width: 100px;
        height: 100px;
    }

    .logo-thumb {
        width: 100px;
        height: 100px;
    }

    .logo-name {
        font-size: 0.75rem;
    }

    .game-hover-popup {
        position: fixed;
        bottom: 60px;
        left: 16px;
        right: 16px;
        top: auto;
        width: auto;
        max-width: 100%;
        transform: translateY(20px);
        border-radius: 20px;
        z-index: 1000;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .game-logo-card.popup-active .game-hover-popup,
    .game-logo-card.popup-active:hover .game-hover-popup {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .popup-gif-wrap {
        height: 220px;
    }
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.testimonial-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, #dc143c, #ff8c42);
    color: #fff;
    letter-spacing: 1px;
}
