/* import poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'aldoth';
    src: url('../fonts/AldotheApache.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'aimeriga';
    src: url('../fonts/Aimeriga\ Personal\ Use\ Only.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'desirable';
    src: url('../fonts/DesirableCalligraphy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'brutalism';
    src: url('../fonts/Y2K\ Brutalism\ Typeface.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#models-root {
    width: 100%;
}

.featured-new {
    width: 100%;
    padding: 40px 40px 0 40px;
}

.featured-title {
    font-size: 28px;
    margin: 80px 0 0px;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 24px;
}

.featured-card {
    background-color: #202020;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.featured-embed { 
    width: 100%; 
    height: 300px; 
    border-radius: 8px; 
    overflow: hidden; 
}
.featured-embed iframe { width: 100%; height: 100%; border: none; }

.featured-card-title { font-size: 22px; }

.models-search {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 40px 0 40px;
    margin-top: 30px;
}

.models-search-input {
    width: 100%;
    max-width: 680px;
    background: #202020;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
}

.models-search-input::placeholder { color: rgba(255,255,255,0.6); }

.cards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 24px;
    padding: 60px 40px;
    align-items: stretch;
}

.model-card-tile {
    background-color: #202020;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: auto;
    position: relative;
}

.model-card-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Expand icon to hint that cards open a modal */
.card-expand-icon, .card-expand-all {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 1;
}

.card-expand-svg { width: 18px; height: 18px; fill: #ffffff; }
.card-expand-img { width: 18px; height: 18px; filter: invert(1); }

.card-title { font-size: 28px; }

.card-embed-wrapper {
    width: 100%;
    height: 220px;
    margin-right: 0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Image previews inside card wrapper */
.card-embed-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.card-open-btn {
    display: none;
    background-color: transparent;
    color: white;
    font-size: 14px;
    border-radius: 6px;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.card-open-btn:hover {
    background-color: white;
    color: #181818;
}

.badge-new {
    position: absolute;
    top: 8px;
    right: 42px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Download-all icon sits left of badge */
.card-download-all {
    position: absolute;
    top: 10px;
    right: 42px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.card-download-img { width: 18px; height: 18px; filter: invert(1); }

.badge-new {
    right: 42px;
}

/* When card has downloads, position New badge right after download icon */
.has-download .badge-new {
    right: 74px; /* sits between download (42px) and expand (10px) icons */
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-content {
    background: #121212;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 32px;
}

.modal-content h2 {
    margin-bottom: 20px;
    line-height: 1.2;
}

.modal-content .modal-embed {
    height: 56vh;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-content .model-card {
    margin: 16px 0;
    line-height: 1.6;
}

.modal-content .download-container {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
}

.modal-close {
    position: sticky;
    top: 0;
    background: transparent;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    float: right;
}

body.modal-open { overflow: hidden; }

/* Footer CTA */
.contact-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.contact-cta p { margin: 0; }

/* Contact form */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-row label { font-weight: 500; }
.form-row input, .form-row textarea {
    background: #202020;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
}
.form-row input::placeholder { color: rgba(255,255,255,0.5); }

.karmine {
    font-family: 'aldoth';
    font-size: 40px;
}

.karmine-baseball {
    font-family: 'aimeriga';
    font-size: 40px;
}

.m8 {
    font-family: 'desirable';
    font-size: 20px;
}

.resolve {
    font-family: 'brutalism';
    font-size: 20px;
}

:root {
    --smooth-white: #ffffffcb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ebebeb;
    background-color: #181818;
    overflow-x: hidden;
}

svg {
    object-fit: cover;
    fill: white;
}

h1 {
    font-weight: 500;
    line-height: 1.2;
    font-size: 50px;
}

.small-credits {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}


.logo-container {
    color: var(--smooth-white);
    text-decoration: none;
}

.logo-container p {
    font-size: 35px;
    line-height: 1;
    font-weight: 600;
}

.branding {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.logo .small-credits {
    font-size: 12px;
    text-align: left;
    width: 100%;
}

.video-text-container {
    z-index: 1;
    position: relative;
    width: 100%;
    height: 100dvh;
}

.video-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: 0;
}

.text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.stickers-menu-title p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.stickers-menu-title p svg {
    width: 24px;
    height: 24px;
}

.discover-button {
    position: relative;
    background-color: rgba(24, 24, 24, 0.4);
    color: white;
    font-size: 15px;
    border: solid 1px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.5s ease;
    cursor: pointer;
    margin-top: 20px;
}

.button {
    position: relative;
    background-color: rgba(24, 24, 24, 0.4);
    color: white;
    font-size: 15px;
    border: solid 1px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.discover-button:hover, .download-button:hover, .button:hover {
    background-color: white;
    color: #181818;
}

.navbar-bg {
    position: fixed;
    top: 0;
    width: 100%;
    height: 110px;
    z-index: 10;
    background-color: #181818;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    cursor: pointer;
}

.navbar .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    cursor: pointer;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease; 
}

.navbar ul li:hover a {
    transform: translateY(-2px);
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu ul li {
    display: inline-block;
    position: relative;
}

.menu ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    height: 100%;
}

.dropdown-content {
    display: none !important;
    position: absolute;
    background-color: #181818;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    list-style-type: none;
    padding: 0;
    min-width: 150px;
    border-radius: 5px;
}

.dropdown-content li {
    padding-top: 5px;
    display: block;
    width: 100%;
}

.dropdown-content li:hover {
    background-color: white;
    border-radius: 5px;
}

.dropdown-content li:hover a {
    color: #181818;
}

.dropdown-content li a {
    padding: 10px 20px;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block !important;
}

.menu ul li.dropdown {
    position: relative;
}


.video-container {
    width: 100%;
    height: 100dvh;
    z-index: 100;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {    
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;    
    object-fit: cover;    
    transform: translate(-50%, -50%);
    z-index: -1;
}

.model-container, .model-container-2 {
    width: 100%;
    height: auto;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
    gap: 40px;
}

.infos-container {
    background-color: #dfdfdf;
    color: #181818;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.card-image-container {
    position: relative;
}

.card-image-container img {
    width: 100%;
    position: relative;
}

.card-image-container svg {
    fill: rgb(224, 98, 98);
    position: absolute;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.card-image-container svg:hover {
    scale: 1.1;
}

#wheel-marker {
    top: 54%;
    left: 39.8%;
}

#battery-marker {
    top: 35%;
    left: 10.5%;
}

#weight-marker {
    top: 13%;
    left: 48%;
}

.popup {
    position: absolute;
    background-color: #ebebeb;
    z-index: 1;
    color: black;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

.popup::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.infos-card {
    width: 350px;
    height: 250px;
    padding: 20px;
    margin: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.sketchfab-embed-wrapper {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.sketchfab-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.model-text {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.model-text img {
    width: 20rem;
    margin-bottom: 20px;
    filter: invert(1);
}

.model-card {
    text-align: justify;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 10px;
}

.download-container {
    width: 100%;
    display: flex;
}

.download-button {
    background-color: rgba(24, 24, 24, 0.4);
    color: white;
    font-size: 15px;
    border: solid 1px rgba(255, 255, 255, 0.7);
    font-size: 15px;
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.5s ease;
    cursor: pointer;
    margin: 20px 20px 20px 0px ;
}

.download-button-coming-soon {
    background-color: transparent;
    color: rgb(145, 145, 145);
    font-size: 15px;
    border: solid 1px rgb(145, 145, 145);
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.5s ease;
    cursor: pointer;
    margin: 20px 20px 20px 0px ;
    cursor: default;
}

.title-models {
    width: 100%;
    text-align: center;
    margin-top: 100px;
    font-size: 30px;
}

@keyframes text-animation {
    0% {
        transform: translate(-50%, -50%) rotate(-20deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(20deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-20deg);
    }
}

.arrow {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.arrow svg {
    width: 3.5em;
    height: 3.5em;
    fill: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.contact-container {
    background-color: #181818;
    width: 100%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 20px;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 20px;
}

.contact-container div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    gap: 10px;
}

.contact-container div svg {
    fill: white;
}

.contact-container a {
    text-decoration: none;
    color: white;
}

.contact-container img {
    width: 20px;
    margin-right: 10px;
}

.tuto-slide {
    position: relative; 
    width: 100%; 
    height: 100%;
    overflow: hidden; 
    will-change: transform;
    min-width: 100%;
}

.tuto-container {
    background-color: #181818;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 40px;
    margin-top: 20px;
}

.tuto-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    flex-wrap: wrap;
    margin-bottom: 50px;
}


.tuto-cards {
    background-color: #202020;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 50px;
    padding: 50px;
}

.tuto-cards p {
    width: 100%;
    text-align: justify;
    margin-top: 20px;
}

.tuto-cards a {
    color: dodgerblue;
}

.tuto-cards img {
    max-width: 100%;
    max-height: 800px;
    border-radius: 5px;
    margin-top: 20px;
}

#toggleLangBtn {
    background-color: rgba(24, 24, 24, 0.4);
    color: white;
    font-size: 15px;
    border: solid 1px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    padding: 5px 10px;
    margin-left: 20px;
    margin-top: 4px;
    font-weight: 700;
    transition: all 0.5s ease;
}

#toggleLangBtn:hover {
    background-color: white;
    color: #181818;
    cursor: pointer;
}

/* Image inside modal */
.modal-content .modal-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.tuto-container h2 {
    margin-bottom: 40px;
}

/* CTA card at the end of clients grid */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    text-decoration: none;
    color: inherit;
    padding: 20px;
    height: 308px;
}
.cta-plus {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}
.cta-text {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1400px) {
    .cta-plus { width: 40px; height: 40px; font-size: 26px; }
    .cta-text { font-size: 14px; }
}

@media (max-width: 1400px) {
    .model-card-tile { height: 130px; }
    .cards-grid {
        grid-template-columns: repeat(1, minmax(220px, 1fr));
        padding: 20px;
        gap: 16px;
    }
    #karmine, #karmine-2 {
        font-size: 30px;
    }
    #m8 {
        font-size: 20px;
    }
    #resolve {
        font-size: 18px;
    }
    body {
        font-size: 12px;
    }
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 20px;
        position: relative;
        top: 30px;
    }
    .model-container, .tuto-container {
        flex-direction: column;
        height: 180vh;
        width: 100%;
    }
    .model-text {
        padding: 50px 0;
        width: 80%;
    }
    .model-text img {
        width: 200px;
    }
    .sketchfab-embed-wrapper {
        width: 100%;
        height: 50vh;
    }
    .model-card {
        width: 80%;
        font-size: 15px;
        margin-bottom: 20px;
    }
    .infos-card {
        width: 80%;
        height: auto;
        margin: 10px;
    }
    .contact-container {
        padding: 20px;
        flex-direction: column;
    }
    .contact-container div {
        margin: 10px;
    }

    .arrow {
        display: none;
    }
    .navbar {
        grid-template-columns: repeat(1, 1fr); 
    }
    .download-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .download-button, .download-button-coming-soon {
        margin: 10px;
        width: 60%;
    }
    .download-container a {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .tuto-slide {
        min-height: 300px;
    }
    .tuto-cards {
        width: 90%;
        margin: 20px 0;
    }
    .tuto-container {
        padding: 0 20px;
    }
    .tuto-content {
        display: flex;
        justify-content: center;
    }
    .model-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .model-container-2 {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column-reverse;
    }
    .nav-items {
        display: none !important;
    }
    .navbar {
        display: flex;
        justify-content: space-between;
    }
    .model-content h2 {
        margin-top: 20px;
    }
    .model-card {
        font-size: 12px;
        width: 100%;
    }
    .download-button, .download-button-coming-soon {
        font-size: 12px;
        width: 100%;
    }
    .modal-content {
        max-width: 100%;
        width: calc(100% - 24px);
        padding: 20px;
        border-radius: 8px;
    }
    .model-card-tile {
        height: 90px;
        padding: 12px;
        justify-content: center;
    }
    .card-expand-icon, .card-expand-all, .card-download-all {
        top: 32px;
    }
    .badge-new {
        top: 30px;
    }
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 50px;
    }
    .modal-content .modal-embed { height: 42vh; margin-bottom: 14px; }
    .modal-content .model-card { margin: 12px 0; }
    .card-embed-wrapper {
        display: none;
        width: 100%;
        height: 0;
    }
    .card-title {
        font-size: 16px;
    }
    .card-open-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    .models-search-input {
        max-width: 100%;
        font-size: 14px;
        padding: 10px 12px;
    }
    .featured-new { padding: 20px 20px 0 20px; }
    .featured-title { font-size: 22px; }
    .featured-grid { grid-template-columns: repeat(1, minmax(220px, 1fr)); gap: 16px; }
    .featured-embed { height: 220px; }
    .featured-card-title { font-size: 18px; }
    .contact-container {
        gap: 0px;
        padding: 20px 0px;
    }
    .button {
        font-size: 12px;
        padding: 5px 10px;
    }
    .branding-text {
        display: none;
    }
    .featured-title {
        font-size: 24px;
        margin: 40px 0 0px;
        text-align: center;
        top: 0px;
    }
    .tuto-container h2 {
        margin-bottom: 0px;
    }
}

/* Empty state */
.empty-state {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    background: #202020;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 0 40px 20px 40px;
}

.empty-state::before {
    content: "\26A0"; /* warning symbol */
    display: inline-block;
    font-size: 18px;
    opacity: 0.8;
}

@media (max-width: 1400px) {
    .empty-state { margin: 0 20px 16px 20px; padding: 12px; }
}

