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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: white;
    bottom: -50px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 30px) rotate(5deg);
    }
    50% {
        transform: translate(-10px, 20px) rotate(-3deg);
    }
    75% {
        transform: translate(15px, -10px) rotate(2deg);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Greeting Section */
.greeting-section {
    text-align: center;
    margin-bottom: 30px;
}

.greeting {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.quote-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.quote-card:hover {
    transform: scale(1.02);
}

.quote-text {
    font-size: 1.1rem;
    color: #333;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}

.quote-author {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

/* Avatar */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.profile-info h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.title {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Typing Effect */
.typing-text {
    display: inline-block;
    border-right: 2px solid #667eea;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #667eea; }
    51%, 100% { border-color: transparent; }
}

.location {
    color: #666;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {
    background: white;
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

/* Education */
.education-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: scale(1.02);
}

.education-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.degree {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category h3 {
    font-size: 1rem;
    color: #667eea;
    margin-bottom: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f0f5;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Projects */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-card {
    background: #f9f9fc;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.project-header h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
}

.project-date {
    color: #888;
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-desc {
    padding-left: 20px;
    color: #555;
}

.project-desc li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Certificate */
.certificate-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.certificate-card:hover {
    transform: scale(1.02);
}

.certificate-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.certificate-issuer {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.certificate-desc {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* About */
.about-card {
    background: #f9f9fc;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #764ba2;
}

.about-card p {
    color: #555;
    line-height: 1.8;
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    padding: 20px;
    font-size: 0.9rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
    z-index: 100;
}

.lang-toggle:hover {
    transform: scale(1.1);
    background: #667eea;
    color: white;
}

/* Dark Theme */
body.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark .greeting {
    color: #fff;
}

body.dark .quote-card {
    background: #1f1f3d;
}

body.dark .quote-text {
    color: #e0e0e0;
}

body.dark .header,
body.dark .section {
    background: #1f1f3d;
    color: #fff;
}

body.dark .section-title,
body.dark .project-header h3,
body.dark .profile-info h1 {
    color: #fff;
}

body.dark .tag {
    background: #2a2a4a;
    color: #aaa;
}

body.dark .project-card,
body.dark .about-card {
    background: #2a2a4a;
}

body.dark .project-desc,
body.dark .certificate-desc {
    color: #aaa;
}

body.dark .social-link {
    background: #2a2a4a;
    color: #fff;
}

body.dark .location,
body.dark .project-date {
    color: #888;
}

body.dark .lang-toggle {
    background: #1f1f3d;
    color: #667eea;
}

body.dark .lang-toggle:hover {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 20px;
    }

    .header {
        padding: 25px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
}