@import "./styles.css";


:root{
    /* --h-title-color:#3948d2; */
    --h-title-color:#003366;
}

.header {
    border-bottom: solid 2px var(--bs-blue);
    z-index: 10000;
}

.bg-bottom {
    background-color: var(--h-title-color);
}

.top-section {
    position: relative;
    padding: 10rem 0;
    background-position: center;
    background-size: cover;
    height: 25rem;
}

.top-section h2 {
    font-weight: 400;
}

.top-section .top-section-content {
    position: relative;
    z-index: 1;
}

.top-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

section header h2{
    font-family: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--h-title-color);
    font-size: 2.3rem;
    line-height: 4rem;
}

section .main-body{
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2.4rem;
}


.bg-gradient-primary-to-secondary-light {
    background: linear-gradient(45deg, #fcfcfc, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
    background: linear-gradient(45deg, #f0f0f0, #f1f1f1) !important;
}



.on-top {
    position: relative;
    z-index: 10000;
}

.top-bg {
    background-position: center;
    background-size: fill;
    width: 100%;
    height: 100%;
}

.top-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}


#avatar {
    position: relative;
    height: 0;
    top:min(-65px,max(-100px,calc(-1*100vw/12)));
    max-width: 55em;
    margin: 0 1.5rem 0 0;
    float: right;
    z-index: 9000;
}

#avatar img {
    /* height: max(130px,min(200px,calc(100vw/6))); */
    height: max(180px,min(250px,calc(100vw/5)));
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 991px) {
    #avatar {
        margin: 0;
    }
}

.social-badges {
    display: flex;             /* 启用 Flexbox 布局 */
    justify-content: center;   /* 水平居中所有徽章 */
    align-items: center;       /* 垂直居中（以防万一） */
    gap: 30px;                 /* 在徽章之间创建20像素的固定间距 */
    margin-bottom: 1rem;       /* 保持与下方内容的垂直间距 */
}

.social-badges img {
    transform: scale(1.15);     /* 将徽章放大 */
}

/* --- Custom styling for profile badges on the homepage --- */
.profile-badges {
    list-style-type: none; /* Removes the default bullet points */
    padding-left: 0;       /* Removes the default left padding of the list */
}

.profile-badges img {
    transform: scale(1.5);        /* Increases the badge size by 50% */
    transform-origin: left;       /* Scales the badge from its left edge to prevent shifting */
    margin-bottom: 10px;          /* Adds some vertical space between the badges */
}