html {
    scroll-behavior: smooth;
}

/* SPLASH SCREEN */
.splash-screen {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
}

.intro-text {
    overflow: hidden;
    animation: grow 1s infinite;
}

@keyframes grow {
    0% {
        transform: translate3d(3px, 2px, 1px);
    }

    20% {
        transform: translate3d(3px, -5px, 2px);
    }

    40% {
        transform: translate3d(-3px, 5px, 1px);
    }

    60% {
        transform: translate3d(3px, 5px, 2px);
    }

    80% {
        transform: translate3d(3px, 5px, -20px);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* animated background */
#background-video {
    position: fixed;
    min-height: 100%;
    min-width: 100%;
    right: 0;
    bottom: 0;
}
#background-still{
    display: none;
}

.blackbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 80%;
    background: rgba(0, 0, 0, 0.349);
    box-shadow: 5px 0 40px 20px rgba(0, 0, 0, 0.8), -5px 0 40px 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

body {
    font-family: 'Roboto', sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    background: #000000;
    overflow-x: hidden;
}

p {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 1.2rem;
    overflow-x: auto;
}

section {
    display: flex;
    flex-direction: column;
    min-height: 20rem;
    max-height: fit-content;
    padding: 1rem;
    overflow: hidden;
}


h1 {
    font-family: 'Share Tech', sans-serif;
    margin: 0.5rem;
    font-weight: 400;
    position: relative;
    width: fit-content;
    display: flex;
    flex-direction: row;
    font-size: 5vw;
    color: #ffffff;
    padding-left: 12%;
}


/* Non-Splash Content Styling*/
.main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    margin: 0;
    margin-top: 4rem;
}



.section-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
    margin: 0;
    height: fit-content;
}

/* Navbar */
.navbar-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    left: 25%;
    right: 0;
    width: 50%;
    height: 5rem;
    z-index: 1000;
}

.nav-header {
    position: fixed;
    top: 0;
    left: 25%;
    right: 25%;
    box-shadow: 0.25rem 0 0.5rem rgb(85, 85, 85);
    z-index: 100;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    border-radius: 0 0 5rem 5rem;
    background-color: rgba(255, 255, 255, 1);
}

.nav-header.hide {
    transform: translateY(-110%);
}

.nav-list {
    padding: 0;
}

.nav-header li {
    list-style: none;
    padding: 3em;
    display: inline;
}

.nav-header li a {
    font-family: 'Share Tech', sans-serif;
    text-decoration: none;
    color: #095866;
    /* color: #074241; */
    font-size: 1.5vw;
}

.nav-header li a:hover {
    text-decoration: underline;
}

#nav-caret {
    position: relative;
    pointer-events: none;
    top: 5%;
    width: 5rem;
    height: 3rem;
}

.navbar-container:hover .nav-header {
    transform: translateY(0);
}



/* NAME */
.name {
    position: relative;
    justify-content: center;
    font-size: 8vw;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    /* test font/style */
    font-family: 'WDXL Lubrifont TC', sans-serif;
    color: transparent;
    -webkit-text-stroke: 1px white;
    text-shadow: -4px -4px white;
    text-transform: uppercase;
    z-index: 1;
}

.name:nth-child(1) {
    transform: translateY(-10rem);
}

/* glitch effect */
.glitched {
    position: relative;
    text-shadow: 0.05em 0 0 #00fffb28, -0.03em -0.04em 0 #00ff8027;
}

.glitched::before,
.glitched::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitched::before {
    color: #00ff8027;
    z-index: -1;
    animation: glitch-effect 0.3s infinite;
}

.glitched::after {
    color: #00fffb28;
    z-index: -2;
    animation: glitch-effect 0.3s infinite reverse;
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
        opacity: 0.7;
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
        opacity: 0;
    }
}





/* Welcome */
#home {
    padding-top: 0;
    margin-bottom: 5rem;
}

#welcome-content {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    height: fit-content;
    padding-left: 12.5%;
    padding-right: 10%;
    gap: 2em;
}

.welcome-textbox {
    position: relative;
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: visible;
}

.welcome-textbox p {
    font-size: 1.5rem;
    text-shadow:
        1px 1px 2px rgb(0, 0, 0),
        0 0 1em rgb(77, 77, 77),
        0 0 0.2em rgb(66, 66, 66);
}

.welcome-image-container {
    position: relative;
    right: 0;
    height: fit-content;
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
}

.welcome-image {
    position: relative;
    width: 100%;
    right: 0;
}


/* Projects */
#projects {
    margin-bottom: 10em;
}

#projects-content {
    padding-left: 12.5%;
    padding-right: 10.5%;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 1rem;
}

.language-icons-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: fit-content;
    width: 100%;
}

.language-icons-container img {
    position: relative;
    /* background: linear-gradient(0.25turn,rgb(0, 0, 0), rgba(255, 255, 255, 0.151), rgb(0, 0, 0)); */
    width: 10vw;
    height: 10vw;
    transform: translateX(-100%);
    opacity: 0;
}

/* Stagger odd children */
.language-icons-container img:nth-child(odd) {
    left: 35%;
}

.projects-menu-container {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.projects-menu {
    font-family: 'Roboto', sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: fit-content;
    margin-right: 1rem;
    width: 100%;
    border-radius: 0.5rem;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 1;
    border: 2px white;
    border-style: solid none none none;
}

.dropdown {
    position: relative;
    width: 100%;
    text-align: center;
}

.dropdown-button {
    cursor: pointer;
    position: sticky;
    top: 0px;
    background: rgba(0, 0, 0, 0.2);
    color: rgb(255, 255, 255);
    width: 100%;
    height: 5rem;
    border-radius: 0.25rem;
    font-family: inherit;
    font-weight: 300;
    font-size: large;
    border: 2px rgb(255, 255, 255);
    border-style: none none solid none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.button-text {
    font-family: 'Share Tech', sans-serif;
    font-size: 2rem;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    margin: 0;
}

.dropdown-button img {
    position: absolute;
    width: 3rem;
    opacity: 0;
    right: 2vw;
    pointer-events: none;
}


.dropdown-content {
    position: relative;
    color: rgb(255, 255, 255);
    left: 0;
    height: 60rem;
    background: rgba(255, 255, 255, 0.315);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 3px 3px rgb(0, 0, 0);
    font-family: inherit;
    font-weight: 100;
    overflow-x: auto;
    z-index: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0);
}


.dropdown-section {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-style: solid none none none;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 2%;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
    height: 15rem;
}

.content-overview {
    padding: 0.5rem;
}

.title-and-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3rem;
    align-items: center;
    width: 100%;
    height: 80%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-style: none solid none none;
}

.title-and-link p {
    font-weight: 400;
}

.link-container {
    border: 1px solid rgb(250, 250, 250);
    border-radius: 5rem;
    width: 70%;
    padding: 0.25rem;
}

.link-container:hover,
.link-container:hover a {
    background-color: white;
    color: black;
}

.title-and-link a {
    text-decoration: none;
    font-weight: 300;
    color: white;
}

.link-description {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    width: 95%;
    max-height: 15rem;
    overflow-y: auto;
    border-radius: 0.5rem;
    white-space: pre-line;
    padding: 0.5rem;
}




/* Experience */

/* Contact Me */
.contactme-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#contact-me-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
}

/* social media links panels */
.panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50rem;
}

#left-panel {
    align-items: flex-end;
}

.panel .img-container {
    display: flex;
    align-items: flex-start;
    height: fit-content;
    width: 100%;
}

#left-panel .img-container {
    justify-content: flex-end;
}

.panel .corner-decoration {
    position: absolute;
    width: 15em;
}

.socialmedia-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    width: 10rem;
    margin-top: 5rem;
    gap: 5rem;
}

#left-panel .socialmedia-icons {
    margin-right: 2vw;
}

#right-panel .socialmedia-icons {
    margin-left: 2vw;
}

.socialmedia-icons img {
    position: relative;
    width: 5em;
}

.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 50rem;
    width: 30em;
    background: transparent;
    gap: 2rem;

    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.212);
    padding-bottom: 5px;
}

.contact-form h2 {
    font-family: 'Share Tech', sans-serif;
    font-size: 3rem;
    margin: 0;
}

.contact-inputs {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    width: 90%;
    border: 1px rgba(255, 255, 255, 0.4) solid;
    outline: none;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    height: 2rem;
    padding: 10px;
    border-radius: 5px;
}

.contact-inputs {
    box-sizing: border-box;
}

.contact-inputs:hover {
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.contact-inputs:focus {
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
}

.contact-form textarea {
    height: 25rem;
}

.contact-form::placeholder {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
}

.contact-form button {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 25px;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    outline: none;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    width: 10rem;
}

.contact-form button:hover,
.contact-form button:hover i {
    background: white;
    color: black;
}

.contact-form button:active {
    transform: scale(0.95);
}



/* Form submission result */
#result {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    align-items: center;
    width: 90%;
    height: 90%;
    border-radius: 10px;
    backdrop-filter: blur(50px);
}


/* Footer */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.attributes {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff5e;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
}

.attributes p {
    margin: 0;
    padding: 0.5rem;
    text-align: center;
    font-size: 10px;
}

.attributes a {
    text-decoration: none;
    padding: 0.5rem;
    color: #ffffff;
    font-weight: 200;
    font-size: 10px;
}


/* Media Queries */
/* Mobile */
@media (max-width: 768px) {

    #background-video {
        display: none;
    }
    .blackbox {
        display: none;
    }
    #background-still{
        display: flex;
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 0;
        left: 0;
        position: fixed;
        z-index: -1;
    }

    .name{
        font-size: 65px;
    }

    .glitched {
        animation: none;
    }

    h1 {
        font-size: 300%;
        padding-left: 0;
        min-height: 4rem;
        text-align: center;
    }

    .nav-header {
        position: fixed;
        left: 0;
        right: 0;
        flex-direction: row;
        height: 4rem;
        width: 100%;
        border-radius: 0 0 0 0;
        transform: translateY(0);
    }

    .nav-header.hide {
        transform: translateY(0);
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        width: fit-content;
        align-items: center;
        justify-content: center;
        padding: 0;
        gap: 3rem;
    }

    .nav-list li {
        padding: 0;
    }

    .nav-list li a {
        font-size: 1.25rem;
    }

    .mode-switch-container {
        display: none;
    }

    #welcome-content {
        flex-direction: column;
        width: auto;
        align-items: center;
    }

    .welcome-textbox {
        padding: 1rem;
        position: relative;
        width: 100%;
        height: fit-content;
    }

    .welcome-image-container img {
        display: none;
    }

    /* projects section */
    #projects-content {
        padding: 0.5%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .projects-menu {
        height: fit-content;
        opacity: 1;
    }

    .button-text {
        opacity: 1;
        font-size: 6vw;
    }
    .dropdown-button {
        background: rgba(0, 0, 0, 0.7);
    }

    .dropdown-button img {
        position: absolute;
        width: 1.5rem;
        opacity: 1;
        right: 0.25rem;
    }

    .link-container {
        border-radius: 1rem;
    }

    /* contact me */
    #contact-me {
        padding: 0;
    }

    #contact-me-content {
        padding: 0;
    }

    .contact-form {
        width: 100%;
        backdrop-filter: blur(50px);
    }
    .contact-form h2{
        text-align: center;
    }

    .corner-decoration {
        opacity: 0;
    }

    .contact-form button,
    .contact-form button i {
        background: white;
        color: black;
    }

    .panel {
        display: none;
    }

    .language-icons-container {
        display: none;
    }

    .attributes {
        flex-direction: column;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {

    /*  #background-video{display: none;} */
    .blackbox {
        display: none;
    }

    .glitched {
        animation: none;
    }



    .nav-header {
        position: fixed;
        left: 0;
        right: 0;
        flex-direction: row;
        height: 4rem;
        width: 100%;
        border-radius: 0 0 5rem 5rem;
        transform: translateY(0);
        ;
    }

    .nav-header.hide {
        transform: translateY(0);
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        width: fit-content;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .nav-list li {
        padding: 4%;
    }

    .nav-list li a {
        font-size: 4vw;
    }

    h1 {
        font-size: 8vw;
        padding: 0;
    }

    #welcome-content {
        flex-direction: column;
        width: auto;
        align-items: center;
        padding: 1%;
    }

    .welcome-textbox {
        width: 90%;
        height: fit-content;
        backdrop-filter: blur(60px);
        border-radius: 0.5rem;
        border: 1px solid white;
        padding: 1rem;
    }

    .welcome-textbox p {
        font-size: 1.25rem;
    }

    .welcome-image-container img {
        display: none;
    }

    /* projects section */
    #projects-content {
        padding: 1%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .projects-menu {
        width: 90%;
        margin-right: 0;
    }

    .button-text {
        opacity: 1;
        font-size: 5vw;
    }
    .dropdown-button{
        background: rgba(0, 0, 0, 0.5);
    }

    .dropdown-button img {
        opacity: 1;
    }

    .dropdown-content {
        backdrop-filter: blur(50px);
    }

    .language-icons-container {
        display: none;
    }
}