* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #0066cc;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --header-height-large: 120px;
    --header-height-small: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height-large);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    height: var(--header-height-small);
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    max-width: 250px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.header.scrolled .logo {
    height: 40px;
    max-width: 180px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-logo {
    height: 120px;
    max-width: 300px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 102, 204, 0.5)) blur(10px);
    opacity: 0;
    animation: fadeInBlur 1.5s ease forwards;
    animation-delay: 0s;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
    display: flex;
    gap: 10px;
}

.hero-char {
    opacity: 0;
    filter: blur(10px);
    animation: fadeInBlur 1.5s ease forwards;
}

.hero-char:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-char:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-char:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-char:nth-child(4) {
    animation-delay: 0.5s;
}

.hero-char:nth-child(5) {
    animation-delay: 0.6s;
}

.hero-char:nth-child(6) {
    animation-delay: 0.7s;
}

.hero-char:nth-child(7) {
    animation-delay: 0.8s;
}

.hero-char:nth-child(8) {
    animation-delay: 0.9s;
}

@keyframes fadeInBlur {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-logo {
        height: 80px;
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    filter: blur(0px) brightness(1);
    transform: scale(1.1);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.3) 0%, rgba(15, 15, 15, 0.7) 100%);
    z-index: -1;
    transition: opacity 0.1s ease-out;
}

.scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-arrow svg {
    width: 40px;
    height: 40px;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-arrow:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.welcome-section {
    padding: 120px 20px 80px;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 1;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: translateY(-10px);
}

.image-container img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.about-text {
    position: relative;
}

.text-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.text-content .intro {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.skills-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-icon svg {
    width: 32px;
    height: 32px;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.skill-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 102, 204, 0.3);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
    margin-right: 0;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.8);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -61px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -61px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-company {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -61px;
    }
}

.projects-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.project-item {
    position: relative;
    display: block;
    width: 90%;
    min-height: 450px;
    margin: 0 auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
    transform: scale(1);
}

.project-info {
    position: absolute;
    bottom: -80px;
    right: 0;
    width: 50%;
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.text-wrapper {
    position: relative;
    overflow: hidden;
}

.text-wrapper h4,
.text-wrapper p {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease 0.5s, transform 0.3s ease 0.5s;
}

.text-wrapper.animate h4,
.text-wrapper.animate p {
    opacity: 1;
    transform: translateX(0);
}

.project-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transform: translateX(-101%);
    z-index: 10;
    animation: none;
}

.text-wrapper.animate .reveal-overlay {
    animation: revealSlide 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealSlide {
    0% {
        transform: translateX(-101%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(101%);
    }
}

.project-arrow {
    align-self: flex-end;
    margin-top: 20px;
}

.project-arrow svg {
    width: 32px;
    height: 32px;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.project-item:hover .project-arrow svg {
    transform: translate(5px, -5px);
}

.footer {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 60px 40px 30px;
    margin: 60px 30px 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 45px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    margin-left: -5px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.license-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.license-link:hover {
    color: var(--text-color);
}

.footer-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--accent-color);
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .nav-link::after {
        bottom: 0;
    }

    .logo {
        height: 50px;
        max-width: 180px;
    }

    .header.scrolled .logo {
        height: 35px;
        max-width: 140px;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .welcome-section {
        padding: 80px 20px 60px;
    }

    .about-section {
        padding: 60px 0;
    }

    .projects-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .projects-grid {
        gap: 30px;
    }

    .project-item {
        min-height: 300px;
    }

    .project-image {
        position: relative;
        width: 100%;
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .project-info {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 0 0 20px 20px;
        padding: 25px;
    }

    .project-info h4 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .project-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .footer {
        padding: 40px 20px 20px;
        margin: 40px 15px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
    }
    
    .footer-right {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        align-items: center;
    }
    
    .footer-logo {
        height: 35px;
        max-width: 160px;
        margin-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .project-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 30px 15px 15px;
        margin: 30px 10px 10px;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .animate-section {
        transform: translateY(40px) scale(0.95);
    }
}

.animate-section {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}