@import url("variables.css");
@import url("theme-light.css");
@import url("gradient-blur.css");
@import url("linear-gradient.css");
@import url("text-switch.css");

body {
    margin: 0px;
    font-family: "Inter", sans-serif;
    height: 100vh;
    background: var(--bg-color);
}

p {
    margin: 0px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: fixed;
    width: var(--full-width);
    left: 0;
    z-index: 9;

    & .header-section {
        display: flex;
        align-items: center;
        z-index: 10;
        color: var(--text-color);

        &.logo-section {
            gap: 10px;
            z-index: 99;
            position: relative;
            text-decoration: none;
            transition: .2s;

            &:hover {
                opacity: .5;
                cursor: pointer;
            }
            &:hover&::after {
                content: "";
                background: url("/assets/media/logo-outline.svg");
                left: -1px;
                top: 0px;
                background-size: cover;
                position: absolute;
                pointer-events: none;
                width: 100%;
                height: 100%;
            }

            & p {
                font-size: 22px;
                font-weight: 800;
                font-family: "Roboto Mono", monospace;
            }
            & i {
                font-size: 25px;
            }
        }

        &.links-section {
            gap: 30px;
            position: absolute;
            width: 100%;
            left: 0;
            display: flex;
            justify-content: center;

            .text-unblurred, .text-blurred {
                transition: .2s;
            }

            & a {
                color: var(--link-color);
                font-weight: 600;
                text-decoration: none;
                user-select: none;
                transition: .2s;
            }
            & a:hover {
                color: var(--text-color);
                cursor: pointer;
            }
        }
    }
}

.hero {
    background-color: var(--bg-color);
    background-image: linear-gradient(
      var(--grid-first) 2px,
      transparent 2px
    ),
    linear-gradient(90deg, var(--grid-first) 2px, transparent 1px),
    linear-gradient(var(--grid-second) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-second) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    color: white;
    width: var(--full-width);
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px;
    padding-top: 0px;
    padding-bottom: 0px;

    & .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 25px;
        gap: 30px;
        color: var(--text-color);

        & h1 {
            background: -webkit-linear-gradient(var(--text-color), #b0b0b000);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 120px;
            font-size: 100px;
            margin: auto;
        }

        & p {
            width: 50%;
        }

        .hero-container__buttons {
            display: flex;
            align-items: center;
            gap: 10px;

            a {
                color: var(--text-color);
                border: 1px solid var(--text-color);
                border-radius: 10px;
                padding: 8px 15px;
                text-decoration: none;
                font-weight: 500;
                display: flex;
                align-items: center;
                gap: 10px;
                transition: .2s;
            }
            a:hover, a.active {
                background: var(--text-color);
                color: var(--bg-color);
                cursor: pointer;
            }
        }

        .hero-footer {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 30%;
            pointer-events: none;
            background: linear-gradient(0deg, var(--bg-color), transparent);
        }
    }
}

.libs {
    padding-top: 100px;
    padding-bottom: 100px;
    color: var(--text-color);
    padding-left: 80px;
    padding-right: 80px;

    h1 {
        margin-top: 0px;
    }

    .description {
        opacity: .5;
    }

    .libs-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        margin-top: 50px;

        .lib {
            background: var(--element-bg);
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--element-border);
            color: var(--text-color);
            text-decoration: none;
            transition: .2s;

            &:hover {
                opacity: .5;
            }

            .lib-cover {
                height: 80px;
                background: var(--element-border);
            }

            .lib-content {
                padding: 10px;
                display: flex;
                flex-direction: column;
                gap: 5px;

                .lib-tag {
                    font-size: 12px;
                    opacity: .2;
                }

                .lib-title {
                    font-weight: 700;
                    font-size: 14px;
                    display: flex;
                    align-items: center;
                    gap: 2px;

                    i {
                        color: var(--checkmark-color);
                        background: white;
                        border-radius: 100%;
                        corner-shape: scoop;
                    }
                }

                .lib-description {
                    opacity: .5;
                    font-size: 12px;
                }
            }
        }
    }
}

.apps {
    padding-top: 100px;
    padding-bottom: 100px;
    color: var(--text-color);
    padding-left: 80px;
    padding-right: 80px;

    h1 {
        margin-top: 0px;
    }

    .description {
        opacity: .5;
    }

    .apps-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-top: 50px;

        .app {
            background: var(--element-bg);
            border-radius: 10px;
            border: 1px solid var(--element-border);
            overflow: hidden;
            color: var(--text-color);
            text-decoration: none;
            transition: .2s;

            &:hover {
                opacity: .5;
            }

            &.disabled {
                opacity: .5;
                pointer-events: none;
                filter: grayscale(1);
            }

            .app-cover {
                height: 150px;
                display: flex;
                align-items: center;
                justify-content: center;

                img {
                    width: 100px;
                }
            }

            .app-content {
                padding: 20px;
                display: flex;
                flex-direction: column;
                gap: 5px;
                justify-content: space-between;
                height: calc(100% - 190px);

                .app-content__section {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                }

                .app-name {
                    font-weight: 800;
                    font-size: 20px;
                    display: flex;
                    gap: 20px;
                    justify-content: space-between;
                    width: 100%;

                    .app-support {
                        display: flex;
                        gap: 10px;
                        opacity: .5;
                        align-items: center;

                        * {
                            font-size: 15px;
                        }
                    }
                }

                .app-description {
                    font-size: 15px;
                    opacity: .5;
                    line-height: 22px;
                }

                .app-price {
                    margin-top: 30px;

                    .app-price__title {
                        opacity: .5;
                        font-size: 12px;
                        margin-bottom: 5px;
                    }
                }
                .app-price__container {
                    display: flex;
                    gap: 10px;

                    .app-price__value {
                        font-size: 30px;
                        font-weight: 700;
                    }
                    .app-price__per::before {
                        content: "/ ";
                        opacity: .5;
                    }

                    .app-price__per {
                        opacity: .5;
                        font-size: 15px;
                    }
                }
            }
        }
    }
}

.footer {
    border-top: 1px solid var(--element-border);
    background: var(--element-bg);
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.lighting {
    background: #ffffff08;
    transition: .2s;
}

.mobile__menu-handler {
    display: none;
}

@media screen and (max-width: 700px) {
    .header {
        justify-content: center;
    }

    .links-section {
        opacity: 0;
        filter: blur(20px);
        pointer-events: none;
        gap: 15px!important;
        top: 80px;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        padding: 25px 0px;
        transition: .2s;
    }
    .links-section.show {
        opacity: 1;
        pointer-events: all;
        filter: blur(0px);
        gap: 30px;
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        padding-top: 80px;
        display: flex;
        justify-content: center;
    }

    .links-section a {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--element-border);
        padding-bottom: 15px;
    }
    .links-section a:last-child {
        border: none;
        padding-bottom: 0px;
    }

    .mobile__menu-handler {
        display: block;
        position: absolute;
        left: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--bg-color);
        z-index: 99;
        background: var(--text-color);
        font-variation-settings: 'wght' 800;
        border-radius: 100%;
    }
    .mobile__menu-handler span {
        pointer-events: none;
    }

    .hero {
        padding: 0px;
    
        .hero-container {
            p {
                width: 80%!important;
            }
            h1 {
                font-size: 50px!important;
                line-height: 50px!important;
            }

            .hero-container__buttons {
                display: flex;
                flex-direction: column;

                a {
                    width: 100%;
                    justify-content: center;
                }
            }
        }
    }

    .libs {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 50px;
        padding-bottom: 50px;

        .libs-container {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .apps {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 50px;
        padding-bottom: 50px;

        .apps-container {
            grid-template-columns: repeat(1, 1fr);
        }
    }
}