:root {
    --font-size-normal:15px;
}

a {
    text-decoration: none;
    color: black;
}

body {
    width: 100%;
    font-size: var(--font-size-normal);
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    position: fixed;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 20%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.2) 80%, rgba(255, 255, 255, 0) 100%);
    z-index: 99;

    .head-logo a {
        font-family: 'mercure';
        font-style: italic;
        color: black;
        font-size: 2.1rem;
    }
    
    .head-menu {
        ul {
            display: flex;
            gap: 1.5rem;

            li a {
                color: black;
                font-size: 1.3rem;
                font-family: 'mercure';
            }
        }
    }
}

.head-menu ul li a:hover {
    font-style: italic;
    transition: 0.5s;
}

.intro {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 1.5rem;
    height: 100vh;
    overflow: hidden;
    
    .intro-child {
        font-family: 'gt','min';
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 5rem;
    }

    .intro-child-right {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .intro-child-left {
        display: flex;
        flex-direction: column;
        align-items: end;
        text-align: right;
        gap: 0.5rem;
        max-height: 21vh;

        a {
            max-height: 21vh;

            img {
                width: auto;
                height: 100%;
            }
        }
    }

    .swiper {
        width: 100%;
        height: 100vh;
    }

    .swiper-wrapper {
        transition-timing-function: ease-in-out;
    }
}

.works {
    width: 100%;
    padding: 7rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    font-family: 'gt','min';

    .works-child {
        gap: 0.5rem;
        display: flex;
        flex-direction: column;

        .works-child-thum {
            img {
                width: 100%;
            }
        }
    }

    .works-child-num {
        display: flex;
        justify-content: end;
        font-size: 1rem;
        font-family: 'mercure';
        font-style: italic;
    }

    .works-child-txt h4 {
        font-size: 0.8rem;
    }

    .works-child-txt h3 {
        font-size: 1rem;
    }
}

.blank {
    width: 100%;
    height: 100%;
}

.works-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    align-items: end;

    .filter {
        width: 100%;
    }

    .category-container {
        position: relative;
        width: 100%;
        cursor: pointer;
        font-family: 'mercure','min';
    }
    .filter-container {
        display: none;        
        font-family: 'mercure','min';
        position: absolute;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .filter-container.active {
        opacity: 1;
        display: flex;
        bottom: 3rem;
        flex-direction: column;
    }
    
    .category-toggle,.category-item,.filter-button,.filter-category-toggle {
        cursor: pointer;
        font-family: 'mercure','min';
    }

    .num {
        display: flex;
        gap: 1rem;
        align-items: center;

        button {
            border: none;
            cursor: pointer;
            background-color: transparent;
            padding: 3px;
        }
    }
}

.work {
    font-family: 'gt','min';
    width: 100%;
    padding: 7rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;


    .work-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .work-header-left {
        width: 100%;
        display: flex;
        justify-content: end;
    }
    
    .work-header-right {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: end;
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .work-header-title {
        font-size: 1.3rem;
    }
    
    .work-header-year {
        font-family: 'mercure';
        font-size: 1rem;
        font-style: italic;
    }
    
    .work-cont {
        margin-top: 10rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

.grid {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

footer {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    font-family: 'mercure';
    font-size: 0.9rem;
}

.cv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    align-items: center;
    min-height: 100vh;
    gap: 3rem;
    font-family: 'min';

    .projects-article-section {
        text-align: right;
        justify-content: end;
    }

    tr {
        display: flex;
        gap: 1.5rem;
    }
}