html {
    scroll-behavior: smooth;
    overflow: hidden;
}

@keyframes rainbowFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes altanim {
    0% {
        transform: translateY(-200%) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes backgroundanim {
    0% {
        filter: blur(40px);
        transform: scale(1.1);
    }

    100% {
        filter: blur(0px);
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-200%);
        opacity: 0.6;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(to bottom, #ffe589, #ffdf89, #ffda89, #ffd489, #ffcf8a, #ffd18f, #fed294, #fed499, #fedca4, #fee4b0, #feecbc, #fff3c8);
    background-size: cover;
    background-position: center;
    animation: backgroundanim 1.2s cubic-bezier(0.15, 0, 0.2, 1) forwards;
}

header {
    position: fixed;
    top: 10px;
    left: 2.5%;
    width: 95%;
    height: 38px;
    background-image: linear-gradient(to bottom, rgba(68, 68, 68, 0.8) 0%, rgba(45, 45, 45, 0.8) 50%, rgba(13, 13, 13, 0.8) 50%, rgba(51, 51, 51, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    animation: slideDown 1s cubic-bezier(0.15, 0, 0.2, 1) forwards;
    padding: 0 15px;
    box-sizing: border-box;
}

.logo {
    font-size: 17px;
    font-weight: 600;
    font-family: Helvetica;
    background: linear-gradient(to right, #ff3b30, #ffcc00, #4cd964, #007aff, #ff3b30);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowFlow 4s linear infinite;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

nav {
    display: flex;
    height: 100%;
    justify-content: center;
    flex-grow: 1;
}

.copyright {
    font-family: Helvetica;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

hb {
    height: 100%;
    padding: 0 15px;
    cursor: pointer;
    color: white;
    font-family: Helvetica;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

    hb.active {
        background: rgba(255, 255, 255, 0.2);
        text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }

body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

section {
    flex: 0 0 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-box {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.6) 100%);
    backdrop-filter: blur(20px);
    padding: 40px;
    width: 80%;
    max-width: 900px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(0,0,0,0.05);
    color: #222;
    text-align: center;
    display: flex;
    flex-direction: column;
    animation: altanim 0.8s cubic-bezier(0.15, 0, 0.2, 1) forwards;
}

.BodyHeader {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: Helvetica;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-family: Helvetica;
}

#bg-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #222;
    width: 220px;
    outline: none;
    font-family: Helvetica;
}

.experimental-tag {
    color: #ff3b30;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 34px;
}

input:checked + .slider {
    background-color: #007aff;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

a, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
}

.content-box a {
    color: #007aff;
    transition: opacity 0.2s ease;
}

    .content-box a:hover {
        text-decoration: underline;
        opacity: 0.8;
    }

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.social-links i, 
.social-links img {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    filter: opacity(0.8);
    color: #222;
}

.social-links img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(0%) saturate(0%) hue-rotate(167deg) brightness(93%) contrast(91%) opacity(0.8);
}

.social-links a:hover i, 
.social-links a:hover img {
    transform: scale(1.2);
    filter: opacity(1);
}

.sub-text {
    display: block;
    font-size: 12px;
    color: #8e8e93;
    margin-top: -10px;
    font-family: Helvetica, sans-serif;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.skill-box {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.6) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    display: block;
    filter: brightness(0) saturate(100%) invert(10%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(13%) contrast(90%);
}

.skill-name {
    font-weight: 600;
    color: #222;
    font-size: 14px;
    margin-bottom: 6px;
    font-family: Helvetica;
}

.skill-description {
    font-size: 12px;
    color: #666;
    font-family: Helvetica;
    line-height: 1.4;
}