html {
    scroll-behavior: smooth;
}
/* Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oswald:wght@200..700&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rajdhani:wght@300;400;500;600;700&family=Sora:wght@100..800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oswald:wght@200..700&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rajdhani:wght@300;400;500;600;700&family=Rubik:ital,wght@0,300..900;1,300..900&family=Sora:wght@100..800&display=swap');

:root {
    --bg-color: #060606;
    --white-color: #ffffff;
    --red-color: #ff104f;
    --icon-color: #ffffff10;
    --after-color: #ff494a;
    --grey-color: #9f9f9f;
    --border-color: #ff494a29;
    --black-color: #141414;
    --primary-color: #ffffff14;
    --top-color: #e3e3e333;
    --font-primary: "Rubik", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Rajdhani", sans-serif;
}

body {
    background-color: var(--bg-color);
}

nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12%;
}

.logo {
    color: var(--white-color);
    font-size: 34px;
    font-weight: 600;
    cursor: pointer;
}

nav ul li {
    display: inline-block;
    margin: 0 12px;
}

nav ul li a {
    color: var(--white-color);
    font-weight: 600;
    font-size: 17px;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    background-color: var(--red-color);
    height: 2px;
    width: 0;
    left: 0;
    bottom: -2px;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--red-color);
}

.nav-icons {
    display: flex;
    gap: 10px;
}

.nav-icons i {
    color: var(--white-color);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: var(--icon-color);
    cursor: pointer;
    transition: 0.2s;
}

.nav-icons i:hover {
    background-color: var(--red-color);
}

nav .ri-menu-line {
    display: none;
    color: var(--white-color);
}

@media screen and (max-width:900px) {
    nav {
        position: relative;
    }

    .menu {
        position: absolute;
        top: 100%;
        width: 100%;
        left: -100%;
        transition: 0.6s;
        background-color: var(--after-color);
        z-index: 999;
    }

    nav ul li {
        display: block;
        padding-left: 12% !important;
        padding: 10px 0;
        margin: 5px 0;
    }

    .showmenu {
        left: 0;
    }

    .nav-icons i {
        display: none;
    }

    nav .ri-menu-line {
        display: block;
    }
}

/* Header Section */

header {
    padding: 80px 12%;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-left-content h3 {
    color: var(--white-color);
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    text-transform: uppercase;
}

.hero-left-content h1 {
    font-size: 90px;
    color: var(--white-color);
    line-height: 115%;
}

.hero-left-content button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--after-color);
    border: none;
    height: 50px;
    width: 200px;
    color: var(--white-color);
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
}

.hero-content {
    position: absolute;
    bottom: -50%;
    left: 28%;
    z-index: 1;
}

.hero-content h1 {
    -webkit-text-stroke: 1.25px var(--after-color);
    font-size: 150px;
    font-weight: 700;
    line-height: 115%;
    color: transparent;
    text-transform: uppercase;
    animation: up-down 1s infinite alternate;
}

.hero-img {
    position: absolute;
    top: 5%;
    left: 28%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    max-height: 100vh;
}

.hero-img img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    object-position: top center;
    display: block;
}

.hero-right-content h4 {
    color: var(--white-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
}

.hero-right-content p {
    color: var(--grey-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin-top: 20px;
}

.hero-right-content p span {
    color: var(--after-color);
}

.hero-right-content h2 {
    color: var(--white-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 10px;
    margin-top: 40px;
}

.header-icon {
    display: flex;
    gap: 10px;
}

.header-icon i {
    color: var(--white-color);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: var(--icon-color);
    cursor: pointer;
    transition: 0.2s;
}

.hero-text {
    position: absolute;
    bottom: -40%;
    left: 15%;
    z-index: -1;
}

.hero-text h2 {
    -webkit-text-stroke: 1.25px var(--grey-color);
    font-family: var(--font-primary);
    font-size: 170px;
    font-weight: 700;
    line-height: 115%;
    color: transparent;
    text-transform: uppercase;
    animation: up-down 1s infinite alternate;
}

@keyframes up-down {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

@media screen and (max-width:1100px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-left-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-left-content h1 {
        font-size: 70px;
    }

    .hero-content h1 {
        font-size: 120px;
        left: 20%;
    }

    .hero-img {
        position: relative;
        width: 100%;
        left: auto;
    }

    .hero-img img {
        width: 100%;
        height: auto;
    }

    .hero-text {
        top: 60%;
        left: auto;
    }

    .hero-content {
        top: 65%;
    }

    .hero-text h2 {
        font-size: 140px;
    }

    .header-icon {
        justify-content: center;
    }
}

@media screen and (max-width:900px) {
    .hero-text {
        top: 60%;
    }

    .hero-text h2 {
        font-size: 120px;
    }

    .hero-content {
        left: 20%;
    }
}

@media screen and (max-width:768px) {
    .hero-left-content h1 {
        font-size: 50px;
        line-height: 1.2;
    }

    .hero-content {
        top: 60%;
        left: 25%;
    }

    .hero-content h1 {
        font-size: 80px;
        text-align: center;
    }

    .hero-text {
        top: 55%;
    }

    .hero-text h2 {
        font-size: 100px;
        text-align: center;
    }

    .header-icon {
        justify-content: center;
    }
}

@media screen and (max-width:500px) {
    .hero-left-content h3 {
        font-size: 20px;
    }

    .hero-content {
        top: 60%;
        left: 18%;
    }

    .hero-content h1 {
        font-size: 70px;
    }

    .hero-text {
        top: 55%;
        left: 10%;
    }

    .hero-text h2 {
        font-size: 70px;
    }
}

/* Achievement Section */

.achievement {
    margin-top: 30%;
    padding: 0 12%;
}

.achievement-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.achievement-card {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 3px solid var(--border-color);
    padding: 40px 0 40px 0;
    transition: 0.4s;
    text-align: center;
    cursor: pointer;
}

.achievement-card i {
    color: var(--after-color);
    font-size: 50px;
    margin-bottom: 30px;
}

.achievement-card h3 {
    color: var(--white-color);
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
    margin-bottom: 10px;
    position: relative;
}

.achievement-card h3::after {
    position: absolute;
    content: "";
    background-color: var(--red-color);
    height: 3px;
    width: 0;
    left: 23%;
    bottom: -2px;
    transition: 0.3s;
}

.achievement-card h3:hover::after {
    width: 55%;
}

.achievement-card h3:hover {
    color: var(--after-color);
}

.achievement-card p {
    color: var(--grey-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

@media screen and (max-width:1100px) {
    .achievement {
        margin-top: 10px;
    }
}

@media screen and (max-width:900px) {
    .achievement-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width:768px) {
    .achievement-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:500px) {
    .achievement-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Experience Seciton */

.experience {
    display: flex;
    padding: 80px 12%;
    gap: 40px;
}

.experience-section {
    width: 50%;
    background: linear-gradient(130deg, var(--black-color), var(--after-color));
    border-radius: 20px;
    padding: 36px 52px 51px 52px;
}

.ex-section {
    display: flex;
    align-items: center;
    gap: 50px;
}

.experience-text h1 {
    color: var(--white-color);
    font-size: 167px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
}

.experience-content h2 {
    color: var(--white-color);
    font-size: 48px;
    font-weight: 700;
    line-height: 130%;
}

.experience-section p {
    color: var(--white-color);
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    font-family: var(--font-primary);
}

.experience-container {
    width: 50%;
}

.experi-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.experience-card {
    text-align: center;
    background: var(--black-color);
    border-radius: 20px;
    padding: 34px 7px;
    height: 100%;
    width: 100%;
    transition: 0.6s;
    cursor: pointer;
}

.experience-card:hover {
    box-shadow: 0 0 15px var(--after-color);
}

.experience-card h3 {
    color: var(--white-color);
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
}

.experience-card span {
    color: var(--grey-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin-top: 4px;
}

@media screen and (max-width:1100px) {
    .experience {
        flex-direction: column;
    }

    .experience-section {
        width: 100%;
    }

    .experience-container {
        width: 100%;
    }
}

@media screen and (max-width:500px) {
    .experience-section {
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .ex-section {
        flex-direction: column;
        gap: 10px;
    }

    .experi-section {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Service Section */

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 12%;
}

.service h3 {
    color: var(--after-color);
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 1px;
    font-family: var(--font-primary);
    margin-bottom: 10px;
}

.service h2 {
    color: var(--white-color);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
}

.service a {
    display: inline-block;
    color: var(--white-color);
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.service-container {
    display: flex;
    gap: 60px;
    margin-top: 5%;
}

.service-section {
    width: 50%;
}

.service-content {
    width: 100%;
    border-radius: 20px;
    background: var(--black-color);
    padding: 36px 40px 36px 40px;
    margin-bottom: 20px;
    transition: 0.6s;
    cursor: pointer;
}

.service-content:hover {
    box-shadow: 0 0 15px var(--after-color);
}

.service-content h1 {
    color: var(--white-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
}

.service-content p {
    color: var(--grey-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    margin-top: 22px;
}

.service-img {
    width: 50%;
}

.service-img img {
    width: 100%;
}

@media screen and (max-width:1100px) {
    .service-container {
        flex-direction: column-reverse;
    }

    .service-section {
        width: 100%;
    }

    .service-img {
        width: 100%;
    }
}

@media screen and (max-width:768px) {
    .service h2 {
        font-size: 5vw;
    }

    .service a {
        width: 60%;
    }
}

@media screen and (max-width:500px) {
    .service a {
        width: 85%;
    }
}

/* Eduaction Section */

.education {
    padding: 80px 12%;
}

.education h1 {
    color: var(--white-color);
    font-size: 32px;
    font-weight: 700;
    line-height: 42px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.education-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
    gap: 20px;
}

.education-content {
    background-color: var(--black-color);
    width: 100%;
    height: 100%;
    padding: 50px 40px;
    border-radius: 20px;
    transition: 0.6s;
    cursor: pointer;
}

.education-content:hover {
    box-shadow: 0 0 15px var(--after-color);
}

.education-content h2 {
    color: var(--white-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 5px;
}

.education-content h3 {
    color: var(--white-color);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

.education-content p {
    color: var(--grey-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin-top: 18px;
}

@media screen and (max-width:768px) {
    .education-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* About Section */

.about {
    padding: 80px 12%;
    display: flex;
    gap: 60px;
}

.about-img {
    width: 55%;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
}

.about-content {
    width: 45%;
}

.about-content h1 {
    color: var(--white-color);
    font-size: 32px;
    font-weight: 700;
    line-height: 42px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-text {
    margin-top: 30px;
}

.about-text h4 {
    color: var(--after-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
}

.about-text h2 {
    color: var(--white-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
}

.about-text h3 {
    color: var(--white-color);
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    margin-top: 6px;
}

.about-text p {
    color: var(--grey-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin-top: 16px;
}

@media screen and (max-width:1100px) {
    .about {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
    }

    .about-content {
        width: 100%;
    }
}

@media screen and (max-width:500px) {
    .about-text p {
        width: 71%;
    }
}

/* Brand Section */

.brand {
    padding: 8px 12%;
}

.brand-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.brand-logo {
    border: 1px solid var(--primary-color);
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.brand-containers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width:1100px) {
    .brand-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-containers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:500px) {
    .brand-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .brand-containers {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Portfolio Section */

.portfolio {
    padding: 80px 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--black-color);
    border-radius: 40px;
}

.portfolio h3 {
    color: var(--after-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portfolio h1 {
    color: var(--white-color);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
}

.portfolio p {
    color: var(--grey-color);
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.portfolio-containers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.portfolio-img img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    padding: 20px;
}

.port-img img {
    width: 100%;
    object-fit: cover;
    margin-top: 20%;
    border-radius: 20px;
    padding: 20px;
    border: 2px solid var(--primary-color);
}

.portfolio-content h2 {
    color: var(--white-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    margin-top: 18px;
}

.portfolio-content h2:hover {
    color: var(--after-color);
}

.portfolio-content h4 {
    color: var(--grey-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin-top: 10px;
}

.icons {
    display: flex;
    justify-content: end;
    margin-top: -60px;
}

.icons i {
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    height: 50px;
    width: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

@media screen and (max-width:900px) {
    .portfolio h1 {
        font-size: 5vw;
    }
}

@media screen and (max-width:768px) {
    .portfolio p {
        width: 55%;
    }

    .portfolio-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .portfolio-containers {
        grid-template-columns: repeat(1, 1fr);
    }

    .port-img img {
        margin-top: 10px;
    }
}

@media screen and (max-width:500px) {
    .portfolio p {
        width: 90%;
    }

    .portfolio-content h2 {
        font-size: 20px;
    }
}












/* MySkill Section */

.myskill {
    padding: 80px 12%;
    background-color: var(--black-color);
    border-radius: 40px;
}

.myskill h3 {
    color: var(--after-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-primary);
    text-align: center;
}

.myskill h1 {
    color: var(--white-color);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

/* MySkill Section: 横向排列且高度对齐 */
.myskill-container {
    margin-top: 50px;
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

/* MySkill 内容卡片及动画 */
.myskill-content {
    width: 300px;
    height: 500px; /* 统一高度，保证完全对齐 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 重点：顶部+中部+底部自动撑满 */
    align-items: center;
    border-top: 2px solid var(--top-color);
    padding: 40px 20px;
    text-align: center;
    gap: 16px;

    /* 新增进入动画初始状态 */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.myskill-content.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.myskill-content i {
    font-size: 36px; /* 调整图标大小更协调 */
    color: var(--after-color); /* 统一为主题色 */
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* 增加图标与标题之间的距离 */
}

.myskill-content span {
    color: var(--after-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.myskill-content h2 {
    color: var(--white-color);
    font-size: 24px;
    font-weight: 700;
    text-align: center; /* 确保标题居中 */
    margin-top: 10px;
}

.myskill-content p {
    color: var(--grey-color);
    font-size: 14px;
    line-height: 24px;
    max-width: 260px;
    flex-grow: 1;
    text-align: center; /* 确保段落居中 */
}

.myskill-content a {
    color: var(--white-color);
    font-weight: bold;
    font-size: 14px;
}

@media screen and (max-width:900px) {
    .myskill-container {
        gap: 20px;
    }
    .myskill-content {
        min-width: 200px;
        max-width: 100%;
        width: 100%;
        padding: 40px 8px;
    }
}

@media screen and (max-width:768px) {
    .myskill h1 {
        font-size: 6vw;
    }
}

@media screen and (max-width:500px) {
    .myskill-content p {
        width: 85%;
    }
}

/* Testimonial Section */

.testimonial {
    padding: 80px 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial h3 {
    color: var(--after-color);
    text-transform: uppercase;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 1px;
}

.testimonial h1 {
    color: var(--white-color);
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
}

.testi-swiper {
    width: 100% !important;
}

.test-card {
    margin-top: 50px;
    width: 100%;
    border-radius: 20px;
    padding: 30px;
    background-color: var(--black-color);
}

.test-card p {
    line-height: 1.7;
    font-size: 18px;
    font-family: var(--font-primary);
    color: var(--grey-color);
    font-weight: 400;
    margin-top: 43px;
    margin-bottom: 38px;
}

.test-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 12px;
}

.test-card span {
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--grey-color);
}

@media screen and (max-width:500px) {
    .testimonial h1 {
        font-size: 6vw;
    }
}

/*  Blog Section */

.blog {
    padding: 80px 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog h3 {
    color: var(--after-color);
    text-transform: uppercase;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 1px;
}

.blog h1 {
    color: var(--white-color);
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    width: 100%;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
}

.blog-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.blog-content {
    padding: 30px;
}

.blog-content h2 {
    color: var(--white-color);
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 16px;
}

.blog-content h2:hover {
    color: var(--after-color);
}

.blog-content p {
    color: var(--grey-color);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0.5px;
}

.blog-content p:hover {
    color: var(--after-color);
}

@media screen and (max-width:1100px) {
    .blog h1 {
        font-size: 4vw;
    }

    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:500px) {
    .blog-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Footer Section */

footer {
    background-color: var(--black-color);
    padding: 80px 12%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 120px;
}

.footer-contents {
    background: url(Image/download.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
    min-height: 50vh;
}

.footer-contents h1 {
    color: var(--white-color);
    font-weight: 700;
    margin-top: 22px;
    font-size: 38px;
    line-height: 1.2;
}

.footer-contents h1 span {
    font-weight: 400;
}

.footer-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-bottom: 19px;
    border-bottom: 2px solid var(--primary-color);
    width: 250px;
}

.footer-text h3 {
    color: var(--white-color);
    font-weight: 400;
}

.footer-text i {
    color: var(--white-color);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.footer-content h2 {
    color: var(--white-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 40px;
}

.footer-content ul li a {
    color: var(--white-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    position: relative;
}

.footer-content ul li a::after {
    content: "";
    position: absolute;
    background-color: var(--red-color);
    height: 2px;
    width: 0;
    left: 0;
    bottom: -2px;
    transition: 0.3s;
}

.footer-content ul li a:hover::after {
    width: 100%;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.foot-icons i {
    height: 40px;
    width: 40px;
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foot-text a {
    color: var(--white-color);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
}

.footer-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-icons i {
    color: var(--white-color);
    font-size: 17px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.6s;
    background: var(--icon-color);
}

.footer-icons i:hover {
    background-color: var(--after-color);
}

@media screen and (max-width:1100px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width:768px) {
    .footer-container {
        grid-template-columns: repeat(1, 1fr);
    }
}



/* Report Library Section */
#report-library {
  padding: 80px 12%;
  background: var(--black-color);
}
#report-library h2 {
  color: #ffd166;
  border-bottom: 3px solid #ffd166;
  display: inline-block;
  padding-bottom: 0.25rem;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.report-card {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s;
}
.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}

.report-card h3 {
  color: #ff6b6b;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.report-card p {
  flex: 1;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.report-card .btn {
  align-self: start;
}


/* Anime.js 动画相关基础样式 */

/* Animation for project-card, education, experience, and latest-insight for consistency */
.project-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.education,
.experience {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.education.show,
.experience.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animation for latest-insight (consistent with project-card, education, experience) */

.latest-insight {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.latest-insight.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 新增 .latest-insight-card 动画样式 */
.latest-insight-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.latest-insight-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-detail-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.project-detail-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-icon {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
    cursor: pointer;
}

.contact-item {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}


/* ====== Scroll Animation (Slide In) ====== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}