@font-face {
    font-family: HM;
    src: url("../fonts/HarmonyOS_Sans_Medium.ttf");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: HM, sans-serif;
    user-select: none;
}

html,
body {
    width: 100vw;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #f0dcc8 0%,
        #e0c8b0 50%,
        #e8d0b8 100%
    );
}

.background-decoration {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.decoration-shape {
    position: absolute;
    border-radius: 48% 52% 45% 55% / 53% 47% 58% 42%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(230, 170, 115, 0.48) 0%,
        rgba(210, 150, 100, 0.24) 50%,
        transparent 70%
    );
    box-shadow:
        inset 0 0 30px rgba(230, 170, 115, 0.26),
        0 0 20px rgba(210, 150, 100, 0.2);
    backdrop-filter: blur(4px);
    animation: float 25s ease-in-out infinite;
}

.decoration-shape-1 {
    width: 300px;
    height: 300px;
    top: 8%;
    left: 8%;
    animation-delay: 0s;
}

.decoration-shape-2 {
    width: 185px;
    height: 185px;
    top: 38.2%;
    left: 82%;
    animation-delay: -7s;
}

.decoration-shape-3 {
    width: 114px;
    height: 114px;
    top: 61.8%;
    left: 18%;
    animation-delay: -14s;
}

.decoration-shape-4 {
    width: 70px;
    height: 70px;
    top: 23.6%;
    left: 72%;
    animation-delay: -5s;
}

.decoration-shape-5 {
    width: 43px;
    height: 43px;
    top: 14.6%;
    left: 5%;
    animation-delay: -10s;
}

.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.profile-card {
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    padding: 48px 64px;
    border: 1px solid rgba(230, 170, 115, 0.45);
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(245, 235, 225, 0.55) 0%,
        rgba(240, 228, 215, 0.65) 100%
    );
    box-shadow:
        0 8px 32px rgba(195, 135, 85, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    animation: fade-in-up 0.8s ease-out;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(230, 170, 115, 0.5),
        0 8px 24px rgba(195, 135, 85, 0.22);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation:
        avatar-float 3s ease-in-out infinite,
        fade-in-up 0.8s ease-out 0.2s backwards;
}

.profile-avatar:hover {
    box-shadow:
        0 0 0 6px rgba(230, 170, 115, 0.7),
        0 12px 32px rgba(195, 135, 85, 0.28),
        0 0 40px rgba(230, 150, 90, 0.38);
    transform: scale(1.15);
}

.profile-name {
    margin: 16px 0 12px;
    background: linear-gradient(
        135deg,
        #c86840 0%,
        #e08850 50%,
        #c86840 100%
    );
    background-clip: text;
    color: transparent;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(200, 104, 64, 0.18);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fade-in-up 0.8s ease-out 0.4s backwards;
}

.profile-tagline {
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(195, 135, 85, 0.28);
    color: rgba(120, 85, 50, 0.82);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    animation:
        breathe 4s linear infinite,
        fade-in-up 0.8s ease-out 0.6s backwards;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    animation: fade-in-up 0.8s ease-out 0.8s backwards;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(210, 150, 100, 0.38);
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(230, 170, 115, 0.48) 0%,
        rgba(235, 180, 125, 0.38) 100%
    );
    color: rgba(120, 85, 50, 0.78);
    font-size: 1.5rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: linear-gradient(
        135deg,
        rgba(230, 170, 115, 0.68) 0%,
        rgba(235, 180, 125, 0.58) 100%
    );
    box-shadow:
        0 6px 20px rgba(200, 104, 64, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #c86840;
    transform: translateY(-3px) scale(1.1);
}

.social-link:active {
    transform: translateY(-1px) scale(1.05);
}

.site-footer {
    position: fixed;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 10;
    text-align: center;
    animation: fade-in-up 0.8s ease-out;
}

.icp-link {
    color: rgba(120, 85, 50, 0.52);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-link:hover {
    color: rgba(0, 113, 117, 0.85);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999999;
    pointer-events: none;
}

@keyframes breathe {
    0% {
        color: rgba(120, 85, 50, 0.68);
    }
    25% {
        color: rgba(200, 104, 64, 0.88);
    }
    50% {
        color: rgba(215, 140, 90, 0.82);
    }
    75% {
        color: rgba(224, 136, 80, 0.88);
    }
    100% {
        color: rgba(120, 85, 50, 0.68);
    }
}

@keyframes avatar-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@media (max-width: 768px) {
    .profile-card {
        margin: 20px;
        padding: 32px 40px;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .social-links {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        margin: 16px;
        padding: 24px 32px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .social-links {
        gap: 8px;
    }
}
