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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

header {
    background-color: var(--header-bg);
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-right: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

nav a.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.hero {
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, #f8f9fa, white);
    border-radius: 12px;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.chinese-name {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
    transition: all 0.3s ease;
    object-fit: cover;
    display: block;
    margin: 1rem auto;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 123, 255, 0.25);
}

.bio, .summary {
    margin-bottom: 1rem;
}

.reports-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.report-card {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.report-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
    box-shadow: 
        -5px 5px 15px rgba(0, 123, 255, 0.2),
        -10px 10px 30px rgba(0, 123, 255, 0.1);
}

.report-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.report-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.report-card button {
    margin-top: auto;
    align-self: center;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

button:hover {
    background-color: #0056b3;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #f4f4f4;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .reports-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reports-container {
        grid-template-columns: 1fr;
    }
}

.contact {
    text-align: center;
    padding: 1rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.75rem;
}

.social-link {
    text-decoration: none;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #007bff;
    color: white;
}

.social-link i {
    margin-right: 0.5rem;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-container {
    margin-bottom: 2rem;
    text-align: center;
}

#searchReports {
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#searchReports:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background-color: #0056b3;
}

/* Add mouse movement effects */
.mouse-effect {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    z-index: 9999;
}

.mouse-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: rgba(0, 123, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.1s;
}

/* Add floating animation for skills */
.skill-bar {
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.typing-text {
    border-right: 2px solid var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--text-color) }
}

.skills {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.skill {
    margin: 1.5rem 0;
}

.skill-name {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.skill-bar {
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00a6ff);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shine 2s infinite;
}

/* Add animation on scroll */
.skill-level {
    width: 0 !important;
}

.skill-level.animate {
    width: var(--skill-percent) !important;
}

.school-link {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
    padding: 0 2px;
    transition: all 0.3s ease;
    position: relative;
}

.school-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #007bff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.school-link:hover {
    color: #0056b3;
}

.school-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
} 

.highlight {
    color: #007bff;
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Improve typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
}

/* Enhance hero section */
.hero {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #f8f9fa, white);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.chinese-name {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Polish section headings */
section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

/* Enhance skill bars */
.skill-bar {
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00a6ff);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shine 2s infinite;
}

/* Enhance contact section */
.contact {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.social-link {
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

/* Enhance footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    margin-top: 4rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .chinese-name {
        font-size: 1.6rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

.team-badge {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin: 0 4px;
    display: inline-block;
    transform: translateY(-2px);
}