*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: "rubikreg";
    src: url("Rubik-Regular.ttf")
}

:root {
    --primary-color: #33CBCB;
    --primary-text: #139B9B;
    --primary-link-color: #33CBCB;
    --primary-color-dark: #000000;
    --secondary-color: #FF7648;
    --secondary-link-color: #e8420b;
    --default-background-color: #F2F2F2;
    --paper-background-color: #C2EFEF;
    --cm-paper-bg: #ffff;
    --primary-text-color: #5F6368;
    --secondary-text-color: #000000;
    --regular-font: "rubikreg";
}

body {
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: var(--default-background-color);
    font-family: 'rubikreg', 'rubiklight', Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

footer {
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    text-wrap: nowrap;
    padding: 10px;
}

hr {
    width: 100%;
    margin-left: 10px;
    margin-right: 10px;
}

.logo-text-cont {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    width: 92%;
    align-items: center;
    gap: 20px;
}

.textlogo {
    font-size: 30px;
    font-weight: bolder;
}

.logobig {
    width: 80px;
    height: auto;
}

.about-cont {
    display: flex;
    flex-direction: row;
    width: 95%;
    justify-content: space-between;
    align-items: center;
}

.contacts-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.contacts {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
}

.contact-detail {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.contacticon {
    width: 40px;
    height: auto;
}

.contact-style {
    color: var(--primary-text);
    font-size: 14px;
    font-weight: bolder;
}

.about-text-cont {
    display: flex;
    width: 60%;
}

.about-text {
    text-align: right;
    color: var(--primary-text-color);
    font-weight: bold;
    font-size: 14px;
    line-height: 1.6;
}

.show-xs {
    display: none;
}

.show-lg {
    display: flex;
}

.full-width {
    width: 100%;
}

.intro-container {
    display: flex;
}

.flex-row {
    display: flex;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.align-center {
    align-items: center;
}

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

.app-size {
    font-size: 13px;
    color: gray;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-icon {
    width: 15px;
    height: auto;
}

.downloadBtn {
    width: 13rem;
    margin-bottom: 2rem;
    color: white;
    font-weight: bold;
    background-color: var(--secondary-color);
    box-shadow: 1px 2px 5px #00000046;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    font-family: var(--regular-font);
    border-radius: 12px;
}

.downloadBtn:hover {
    background-color: var(--secondary-link-color);
    cursor: pointer;
}

.downloadBtn-container {
    width: 78%;
}

.example-image-normal {
    width: 28%;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px
}

.example-video-normal {
    width: 50%;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

.app-header-background {
    width: 100%;
    max-height: 450px;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.gap-1 {
    gap: 10px
}

.app-info-text {
    width: 88%;
    color: var(--primary-text-color);
    line-height: 1.4;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
    flex-direction: column;
}

.app-info-header {
    color: black;
    font-size: 20px;
    font-weight: bold;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.overflow-x-auto {
    overflow-x: auto;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    margin-left: -10px;
    width: calc(100% + 20px);

    /* Webkit browsers (Chrome, Safari, newer Edge) */
    &::-webkit-scrollbar {
        height: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 12px;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 12px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: var(--primary-text);
    }

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.download-progress-container {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--paper-background-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--primary-color);
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--primary-text-color);
    font-size: 14px;
    font-weight: bold;
}

/* Desktop Content Layout */
.desktop-content {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.desktop-slider {
    width: 60%;
    overflow: hidden;
    margin: 0;
}

.video-container {
    width: 40%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.intro-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* Update existing slider styles */
.slider-container {
    width: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    width: 300%;
    animation: slide 15s linear infinite;
}

.slider-pair {
    width: 50%;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.slider-image {
    width: calc(40% - 10px);
    height: auto;
    object-fit: contain;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(0);
    }

    35% {
        transform: translateX(-33%);
    }

    50% {
        transform: translateX(-33%);
    }

    65% {
        transform: translateX(-66%);
    }

    75% {
        transform: translateX(-66%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause animation on hover */
/* .slider-track:hover {
    animation-play-state: paused;
} */

/*Mobile adjustments*/
@media only screen and (max-width: 600px) {
    .show-lg {
        display: none;
    }

    .show-xs {
        display: flex;
    }

    .logo-text-cont {
        gap: 10px;
        width: 92%;
    }

    .textlogo {
        font-size: 25px;
    }

    .logobig {
        width: 60px;
    }

    .about-cont {
        flex-direction: column;
        gap: 20px
    }

    .contacts-cont {
        width: 100%;
    }

    .contacts {
        width: 92%;
    }

    .about-text-cont {
        width: 92%;
    }

    .downloadBtn {
        width: 100%;
    }

    .downloadBtn-container {
        width: 55%;
    }

    .intro-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .overflow-x-auto {
        /* Completely hide the scrollbar */
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .overflow-x-auto::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, and Opera */
    }

    .desktop-slider {
        display: none;
    }

    .desktop-content {
        display: none;
    }

    .video-container {
        display: none;
    }
}