:root {
    --primary-color: #df2227;
    --text-dark: #3b3b3b;
    --bg-white: #ffffff;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.4;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ==================================
             LAYOUT
================================== */
.container {
    max-width: 960px;
    /* Base Fixed width for Desktop viewing per request */
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================================
             NAVBAR
================================== */
.navbar {
    height: 60px;
    /* Reduced from 70px */
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Optional subtle shadow */
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 30px;
    display: block;
    min-width: 140px;
    /* Protect logo from squishing */
    object-fit: contain;
    object-position: left;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}

.nav-menu li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu li a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 6px 20px;
    border-radius: 20px;
    z-index: 2;
    position: relative;
    white-space: nowrap;
    border: 2px solid transparent;
}

.nav-menu li a.active,
.nav-menu li a:hover {
    color: #ffffff;
    background: url('../images/home/navbar-active-bg.png') no-repeat center/100% 100%;
}

/* Language Selector - Custom HTML Dropdown */
.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.custom-dropdown {
    position: relative;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.dropdown-selected {
    padding: 10px 20px 10px 5px;
    /* Give more push to the right for arrow */
    background: url('../images/home/img-5704bb.png') no-repeat right center;
    background-size: 10px 8px;
    user-select: none;
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 5px);
    right: -10px;
    background: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    width: max-content;
    min-width: 70px;
    padding: 5px 0;
    z-index: 2000;
}

.dropdown-options.show {
    display: flex;
}

.dropdown-options li {
    padding: 10px 20px;
    text-align: center;
    transition: background-color 0.2s;
    user-select: none;
}

.dropdown-options li:hover {
    background-color: var(--bg-gray);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ==================================
             HERO SECTION
================================== */
.hero {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: url('../images/home/banner.png') no-repeat center/cover;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 20px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    display: block;
    margin-bottom: 15px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 64px;
    background: url('../images/home/img-de26d8.png') no-repeat center/contain;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 5px;
}

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

/* ==================================
             GAMES SECTION
================================== */
.games-section {
    padding-top: 60px;
    text-align: center;
}

.section-title-black {
    font-size: 32px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 15px;
}

.section-subtitle-dark {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* GAMES GRID */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 20px;
    margin-bottom: 40px;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.game-icon-img {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-title {
    font-size: 13px;
    color: var(--text-dark);
    margin-top: 15px;
    font-weight: 500;
    line-height: 1.3;
}

/* PUBLISHING CTA  */
.cta-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 40px;
}

.cta-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.btn-publishing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 64px;
    background: url('../images/home/img-c27f82.png') no-repeat center/contain;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 5px;
}

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

.cta-subtext {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* ==================================
        BOTTOM WRAPPER AREA
================================== */
.bottom-wrapper {
    background: url('../images/home/bottom-bg.png') no-repeat top center/cover;
    padding-top: 80px;
}

/* TEAM SECTION */
.team-section {
    text-align: right;
    padding-bottom: 60px;
}

.team-title {
    font-size: 28px;
    color: #ffd659;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: right;
}

.team-desc {
    font-size: 16px;
    color: #ffffff;
    text-align: right;
    margin-bottom: 30px;
    line-height: 1.4;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.team-card-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FOOTER SECTION */
.site-footer {
    padding-top: 40px;
    padding-bottom: 30px;
    background-color: #000000;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 30px;
}

/* Left - Brand & Social */
.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-brand img.f-logo {
    height: 50px;
    object-fit: contain;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a img {
    width: 28px;
    height: 28px;
}

/* Right - Contact */
.footer-contact h5 {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item img {
    width: 16px;
    object-fit: contain;
    margin-top: 3px;
    margin-right: 12px;
}

.contact-item span,
.contact-item a {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.5;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==================================
        RESPONSIVE BREAKPOINTS
================================== */

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

@media (max-width: 820px) {

    /* Navbar Mobile */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        /* Matched Navbar Height */
        left: 0;
        width: 100%;
        height: auto;
        background-color: var(--bg-white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 0 0 10px 0;
        /* Let it display naturally without forced scrollbars */
    }

    .nav-menu.active {
        display: flex !important;
        z-index: 1001;
    }

    .nav-menu li {
        width: 100%;
        justify-content: center;
        padding: 5px 0;
    }

    .nav-menu li:first-child {
        margin-top: 15px;
    }

    .nav-menu li:last-child {
        margin-bottom: 25px;
    }

    /* Hero */
    .hero-title {
        font-size: 40px;
    }

    .hero {
        height: 380px;
    }

    .btn-hero {
        width: 160px;
        height: 54px;
        font-size: 16px;
    }

    /* Games */
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CTA */
    .cta-title {
        font-size: 20px;
    }

    /* Bottom Wrapper */
    .bottom-wrapper {
        padding-top: 50px;
    }

    .team-title {
        text-align: center;
    }

    .team-desc {
        text-align: center;
        font-size: 14px;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand-top {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {

    /* Hero */
    .hero-title {
        font-size: 32px;
    }

    .hero {
        height: 320px;
    }

    /* Games Grid */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }

    .section-title-black {
        font-size: 24px;
    }

    .section-subtitle-dark {
        font-size: 16px;
    }

    /* Team */
    .team-cards {
        grid-template-columns: 1fr;
    }

    .team-card-wrapper img {
        width: 80%;
        margin: 0 auto;
        display: block;
    }

    /* Footer */
    .footer-brand-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ==================================
        INNER PAGES COMMON
================================== */
.inner-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 50px;
}

.custom-hero-flex {
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-intro-text {
    font-size: 18px;
    /* Based on 36px in 1920 */
    color: #ffffff;
    line-height: 1.6;
    max-width: 600px;
    margin-left: 10%;
    /* Approximation of placement from design */
}

.block-section {
    margin-bottom: 80px;
}

.block-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    /* Reduced to match design '38px' red spacing */
}

.block-icon {
    width: 20px;
    /* Guessing based on proportional size next to 18px text */
    height: 20px;
    object-fit: contain;
    margin-left: 15px;
    /* Icon is on the right of the title in the design */
}

.block-title {
    font-size: 18px;
    /* Based on '36px bold' red notation in 1920 design */
    font-weight: 800;
    color: #000;
}

.block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Giving ample space between text and image */
    align-items: center;
}

.block-text p {
    font-size: 15px;
    /* Usually 16px is fine, but text looked slighty smaller related to title */
    color: var(--text-copy);
    margin-bottom: 20px;
    line-height: 1.6;
}

.block-img img {
    width: 100%;
    object-fit: contain;
}

.block-img.align-center {
    display: flex;
    justify-content: center;
}

/* CTA Banner at Bottom */
.footer-cta-banner {
    background-size: cover;
    background-position: center;
    height: 328px;
    /* Half of 656px */
    border-radius: 20px;
    /* Optional, looks like a pill in design */
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.cta-banner-content-left {
    max-width: 450px;
    padding-left: 80px;
}

.cta-p1 {
    font-size: 14px;
    /* Based on "28px" in 1920? Design looks quite small here */
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cta-p2 {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 30px;
}

.btn-pink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff338f;
    /* Vivid pink from the design */
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 51, 143, 0.4);
}

.btn-pink:hover {
    transform: translateY(-2px);
    background-color: #e6207a;
}

/* Responsive */
@media (max-width: 768px) {
    .block-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .inner-hero {
        height: 240px;
    }

    .hero-intro-text {
        font-size: 14px;
        margin-left: 0;
        text-align: center;
    }

    .cta-banner-content-left {
        padding: 40px 20px;
        text-align: center;
        margin: 0 auto;
    }

    .footer-cta-banner {
        height: min-content;
        /* Allow background to stretch or scale on mobile */
        min-height: 250px;
        background-position: right top;
        /* Might need adjustment based on image */
    }
}

/* ==================================
             PUBLISHING
================================== */
.publishing-hero {
    height: 380px;
    /* Reduced height */
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
}

.pub-hero-content {
    max-width: 650px;
    margin: 0 auto;
}

.pub-hero-title {
    font-size: 18px;
    /* Based on 36px in 1920 */
    color: #fff;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
}

.value-section {
    text-align: center;
    margin-bottom: 80px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0;
}

.value-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    text-align: left;
    transition: transform 0.2s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card img {
    height: 38px;
    object-fit: contain;
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-copy);
    line-height: 1.6;
}

/* PROCESS SECTION */
.process-section {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #fafafa;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.timeline-container {
    flex: 1;
    position: relative;
    max-width: 480px;
    padding-left: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 44px;
    /* 20px margin-left + 24px half-circle */
    top: 24px;
    /* Center of first circle */
    bottom: 24px;
    /* Center of last circle assuming last item has 0 mb */
    width: 2px;
    background: url('../images/publishing/line.png') repeat-y center;
    background-size: contain;
    background-color: #e3deff;
    /* Fallback line color to match brand */
    z-index: 1;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

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

.timeline-circle {
    width: 48px;
    height: 48px;
    background: url('../images/publishing/circle-bg.png') no-repeat center/contain;
    color: #ffffff;
    /* Changed to white */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    margin-right: 25px;
}

.timeline-content {
    padding-top: 4px;
}

.timeline-content h4 {
    font-size: 15px;
    font-weight: 800;
    color: #000;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    line-height: 1.5;
}

.process-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.process-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 450px;
    width: 100%;
}

.process-image img {
    width: 100%;
    display: block;
    object-fit: contain;
}

.process-image-text {
    position: absolute;
    /* Create a bounding box mapped to the specific TOP RIGHT purple speech bubble */
    /* Based on Python PIL Pixel Scanning bounding box math */
    top: 8.2%;
    right: 3.6%;
    width: 46.4%;
    height: 20.3%;

    /* Flexbox for perfect mathematical horizontal & vertical center */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;

    color: #fff;
    font-size: clamp(14px, 3vw, 24px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    z-index: 10;
}

@media (max-width: 768px) {
    .value-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        flex-direction: column-reverse;
    }

    .timeline-container {
        padding-left: 0;
    }

    .timeline-container::before {
        left: 24px;
    }

    .publishing-hero {
        height: 320px;
    }
}

/* ==================================
    SHARED MODERN FORM STYLES
================================== */
.modern-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    row-gap: 50px;
}

.form-full-width {
    grid-column: span 2;
}

.modern-form-group {
    position: relative;
}

.modern-form-group input,
.modern-form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    background: transparent;
    font-size: 15px;
    padding: 5px 0 10px 0;
    color: #000;
    font-family: inherit;
    transition: border-bottom-color 0.2s;
}

.modern-form-group label {
    font-size: 14px;
    color: #3b3b3b;
    margin-bottom: 5px;
    display: block;
}

.modern-form-group input:focus,
.modern-form-group textarea:focus {
    outline: none;
    border-bottom-color: #f731ad;
}

.modern-form-group textarea {
    resize: none;
    height: 40px;
}

.btn-pink-large {
    background-color: #f731ad;
    color: #fff !important;
    font-size: 18px;
    font-weight: 800;
    padding: 16px 60px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(247, 49, 173, 0.4);
    margin-top: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.btn-pink-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 49, 173, 0.5);
}

@media (max-width: 768px) {
    .modern-form {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    .form-full-width {
        grid-column: 1;
    }
}