@charset "utf-8";

:root {
    --primary: #e9e9e9;
    --accent: #26A69A;
    --background: rgba(0,0,0,0.5);
    --text: #ffffff;
    --card-bg: #1a1a1a;
    --border: #ffffff;
    --overlay: rgba(0, 0, 0, 0.2);
    --link: #ffffff;
    --link-hover: #26A69A;
    --footer-link: #aaaaaa;
    --footer-link-hover: #000000;
    --text-length: 12;
    --animation-duration: 4s;
    --smooth-factor: 2;
}

body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans SC', Arial, sans-serif;
    line-height: 1.8;
    background-color: var(--background);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    color: var(--text);
    transition: all 0.3s ease;
    height: 100vh;
}

html {
    scroll-behavior: smooth;
    background: url(image/background.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

a {
    text-decoration: none;
    color: var(--link);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
}

body.dark-mode .header {
    background-color: rgba(0, 0, 0, 0.45);
}

.header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 95%;
    margin: 0 auto;
}

.header a {
    color: var(--text);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.header a:focus {
    outline: 0.125rem solid var(--accent);
    outline-offset: 0.125rem;
}

.header-left {
    display: flex;
    align-items: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    .header nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    .header a {
        display: block;
        text-align: left;
    }
    .header-right {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}

.back {
    text-align: center;
    padding-top: 10rem;
    width: 100%;
    height: auto;
    padding-bottom: 1rem;
}

button {
    background: transparent;
    border: 0.1rem solid white;
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: black;
    color: white;
    border: none;
}

main {
    width: 95%;
    margin: 0 auto;
}

.typing-container {
    height: 20%;
    padding-top: 10rem;
    padding-bottom: 10rem;
}

#typedText {
    text-align: center; 
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--text);
    }
}