* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Chiron GoRound TC", sans-serif;
    background-color: #f5f5f5;
    color: #505050;
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    position: relative;
}

.blur-in {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(30px);
    transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s ease;
}

.blur-in.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.bounce-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero {
    background-color: #e8e8e8;
}

.hero-container {
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    background-color: #c0c0c0;
    border-radius: 50%;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #808080;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #404040;
    margin-bottom: 20px;
}

#hero .subtitle {
    font-size: 1.3rem;
    color: #808080;
    background-color: #fff;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

#about {
    background-color: #fff;
}

.section-title {
    font-size: 2.5rem;
    color: #404040;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #a0a0a0;
    border-radius: 10px;
}

.about-content {
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-card {
    background-color: #f8f8f8;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.about-card h3 {
    font-size: 1.5rem;
    color: #505050;
    margin-bottom: 20px;
}

.about-card p {
    line-height: 1.8;
    color: #707070;
}

#skills {
    background-color: #f5f5f5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
}

.skill-card {
    background-color: #fff;
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background-color: #c0c0c0;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.skill-card h3 {
    font-size: 1.4rem;
    color: #404040;
    margin-bottom: 15px;
}

.skill-card p {
    font-size: 0.95rem;
    color: #707070;
    line-height: 1.6;
}

#projects {
    background-color: #e8e8e8;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
}

.project-card {
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    width: 100%;
    height: 250px;
    background-color: #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #a0a0a0;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 35px;
}

.project-card h3 {
    font-size: 1.6rem;
    color: #404040;
    margin-bottom: 15px;
}

.project-tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    background-color: #f0f0f0;
    color: #606060;
    font-size: 0.85rem;
    margin-right: 10px;
    margin-bottom: 8px;
    border-radius: 20px;
}

.project-card p {
    color: #707070;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #797878;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-link:hover {
    background-color: #a0a0a0;
    transform: translateX(5px);
}

.project-link i {
    font-size: 1rem;
}

#contact {
    background-color: #fff;
    min-height: 80vh;
}

.contact-description {
    font-size: 1.2rem;
    color: #707070;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-card {
    background-color: #f8f8f8;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #c0c0c0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: #606060;
    margin-bottom: 12px;
}

.contact-card a {
    color: #505050;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #808080;
}

footer {
    background-color: #e8e8e8;
    padding: 40px;
    text-align: center;
    color: #808080;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid,
    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}