@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Epilogue:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    /* color */
    ---color-theme-fg: #ff5300;
    ---color-theme-bg: #fafafa;

    ---color-dark-fg: #ffffff50;
    ---color-dark-bg: #000000;

    ---color-light-fg: #00000050;
    ---color-light-bg: #ffffff;

    --color-sub-bg: #fafafa66;
    /* CSS Transparenz: https://www.mediaevent.de/css/transparenz.html */
    --color-sub-fg: #ff5300;

    /* space */
    --space-s: 0.5rem;
    --space-m: 1rem;
    --space-l: 4rem;
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    line-height: 1.5;
    font-family: "Epilogue", sans-serif;
    font-weight: 300;

    color: var(---color-theme-fg);
}

.dark {
    color: var(---color-dark-fg);
}

.font-headline {
    font-family: "Dela Gothic One", sans-serif;
}

::-moz-selection {
    /* Code for Firefox */
    color: var(---color-theme-bg);
    background: var(---color-theme-fg);
}

::selection {
    color: var(---color-theme-bg);
    background: var(---color-theme-fg);
}

.btn-txt {
    transition: 0.3s;
}

.btn-txt:hover {
    font-weight: 900;
    transition: 0.3s;
}

.btn-fill {
    font-size: 1rem;
    border: solid var(---color-theme-fg) 1px;
    background-color: var(---color-theme-fg);
    color: var(---color-theme-bg);
    padding: 0.6rem 1.2rem;
    transition: 0.3s;
}

 .btn-dark {
        border: solid var(---color-dark-fg) 1px;
       background-color: none;
           backdrop-filter: blur(5px);
    font-size: 1rem;
    color:var(---color-dark-fg);
    padding: 0.6rem 1.2rem;
    transition: 0.3s;
}

.btn-dark:hover {
    font-weight: 700;
    transition: 0.3s;
}

.btn-fill:hover {
    font-weight: 700;
    transition: 0.3s;
}

.btn-border {
    font-size: 0.8rem;
    border: solid var(---color-theme-fg) 1px;
    background-color: #ffffffb7;
    backdrop-filter: blur(5px);
    color: var(---color-theme-fg);
    padding: 1rem 2rem;
    margin: 0 2px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    transition: 0.3s;
}

.btn-border.is-active {
    background-color: var(---color-theme-fg);
    color: var(---color-theme-bg);
    font-weight: 700;
    transition: 0.3s;
}

.btn-border:hover {
    background-color: var(---color-theme-fg);
    color: var(---color-theme-bg);
    font-weight: 700;
    transition: 0.3s;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(---color-theme-bg);
    color: var(---color-theme-fg);
    min-height: 100vh;
}

header {
    background-color: var(--color-sub-bg);
    backdrop-filter: blur(20px);
    border-bottom: solid #ffffff30;
    border-width: 1px;
    position: fixed;
    z-index: 1;
    width: 100%;
}

.header-dark {
    background-color: #ffffff1b;
    border-bottom: solid #ffffff1f;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1250px;
    margin: auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.2rem;
}

.about {
    position: fixed;
    left: 50%;
    font-size: 1rem;
    transform: translateX(-50%);
}

.contact {
    font-size: 1rem;
}

main {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.intro {
    z-index: 0;
    position: fixed;
    top: 25vh;
    display: flex;
    flex-direction: column;
    text-align: center;
}

ul {
    list-style-type: none;
    display: flex;
}

.overlay {
    position: relative;
    z-index: 0;
    top: 65vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
}

.works-nav {
    display: none;
    position: relative;
    margin-bottom: var(--space-l);
}

.works {
    backdrop-filter: blur(5px);
    border: solid #ffffff30;
    border-width: 1px;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: var(--space-l);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.works.is-all .work:first-child {
  grid-column: 1 / -1; /* 横跨三列 */
}

.work {
    background-color: none;
    border-radius: 12px;
    overflow: hidden;

    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.work.is-hidden {
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
}

.work-thumb {
    display: block;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: 12px;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;

}

.work-thumb:hover img {
    transform: scale(1.04);
}

.work-textbox {
    background-color: none;
    margin: 1rem 1rem;
    height: auto;
}

.name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.category {
    font-size: 0.8rem;
}

footer {
    backdrop-filter: blur(5px);
    border-top: solid #ffffff1b;
    border-width: 1px;
width: 100%;
    padding: 20px;
    margin: auto;
    margin-bottom: var(--space-s);
    text-align: center;
    transform: translateY(125%);
    font-size: 0.8rem;
}

a {
    text-decoration: none;
}

/**************************** einzeln ******************************/

.container {
    position: relative;
    z-index: 0;
    top: 8vh;
    height: 100%;
    display: flex;
    text-align: center;
    flex-direction: column;
    max-width: 1200px;
}

.about-me {
    position: relative;
    z-index: 0;
    top: 8vh;
    height: 100%;

    flex-direction: column;
  display: flex;
    justify-content: space-between;
    align-items: left;
  max-width: 1250px;
  width: 100%;
    margin: auto;
    padding: 1rem 2rem;
}

.about-me-img {
width: 30vw; 
position: absolute; 
top: 30vh; 
right: 0;
padding: 0 2rem;
}

.project {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 4rem;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.project-category {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-sub-fg);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-sub-fg);
    padding: 0 2rem;
}

video {
    margin: 2rem 0;
}

.container img {
    /* css屏蔽图片长按选中下载: https://www.cnblogs.com/beileixinqing/p/17511947.html */
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    pointer-events: none;
}

.gallery-img {
    /* background-color: var(--color-sub-bg); */
    width: 100%;
}

@media only screen and (max-width: 1300px) {
    /* For mobile phones: */

    .intro {
        max-width: 80vw;
    }

            .about-me{
        max-width: 80vw;
    }

    .about-me-img {
        top: 70vh;
width: 80vw; 
}

    .works-nav {
        max-width: 100vw;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.7rem 0;
    }

    .overlay {
        max-width: 100vw;
        top: 55vh;
    }

    .works {
        grid-template-columns: 1fr;
    }

    .work:first-child {
        grid-column: span 1;
    }
}

@media only screen and (max-width: 700px) {
}