@import url('http://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: #1f242d;
    color: #fff;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

}

.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    opacity: 0;
    transition: 0.3s;
    animation: slideUp 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: #6f63d4;
}

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideDown 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    opacity: 0;
    animation: slideUp 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #6f63d4;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 16px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 0.7;
}

.home-img img {
    max-width: 450px;
    border-radius: 50%;
    margin-right: -20px;
    box-shadow: 0 0 20px #6f63d4;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2s, 3s;

}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #6f63d4;
    border-radius: 50%;
    color: #6f63d4;
    font-size: 20px;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(0.2s* var(--i));

    svg{
        background: transparent;
        fill: #6f63d4;
        width: 18px;  /* 设置宽度 */
        height: 18px; /* 设置高度 */
    }
}

.social-media a:hover{
    background: #6f63d4;
    color: #1f242d;
    box-shadow: 0 0 20px #6f63d4;
}

.social-media a:hover svg {
    fill: #1f242d; /* 修改为 hover 状态的填充颜色 */
    filter: drop-shadow(0 0 10px #6f63d4); /* 添加阴影效果 */
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #6f63d4;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 0 10px #6f63d4;
    font-size: 16px;
    color: #1f242d;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideUp 1s ease forwards;
    animation-delay: 2s;
}

.btn:hover {
    /*鼠标放到按钮上时*/
    box-shadow: 0 0 20px #6f63d4;
}

.btn:active {
    /*鼠标点击按钮时*/
    background: none;
    color: #6f63d4;
    border: 2px solid #6f63d4;
    /*边框*/
}

/*animation*/
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(100px);
    }

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

}

@keyframes slideDown {
    0% {
        transform: translateY(-100px);
    }

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

}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

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

}

/* Media query to remove h3 and h1 in home-content */
@media screen and (max-width: 950px) {
    .home-img {
        display: none;
    }
}

/* Media query to remove p in home-content */
@media screen and (max-width: 795px) {
    .home-content h1 {
        display: none;
    }

    .logo {
        display: none; /* Hide logo */
    }
    .navbar {
        margin-left: -55px;
        display: flex; /* 使用 Flexbox 布局 */
        justify-content: space-between; /* 等距分布链接 */
        width: 100%; /* 占满顶部宽度 */
        padding: 0; /* 去掉额外的内边距 */
    }
    .social-media a{
        margin: 30px 5px 30px 0;
    }
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
    width: .60rem;
    background-color: #1f242d;
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: #42434a;
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #e6e6ef;;
}
