:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--background);
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--surface);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

.hero-greeting {
    font-size: 18px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tag {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: var(--shadow-lg);
}

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

section {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text);
}

.about {
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px;
    background: var(--surface);
    border-radius: var(--radius);
}

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

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.resume {
    background: var(--surface);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
}

.timeline-date {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-role {
    display: inline-block;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.project-date {
    display: inline-block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.project-result {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.education-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.education-degree {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.education-date {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.skills {
    background: var(--background);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: white;
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.skill-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.works {
    background: var(--surface);
}

.works-showcase {
    max-width: 800px;
    margin: 0 auto;
}

.work-featured {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    align-items: center;
}

.work-featured-image {
    width: 300px;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.work-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-featured-content {
    padding: 0;
}

.work-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
}

.work-featured-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.work-featured-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.work-tech span {
    padding: 6px 12px;
    background: var(--surface);
    font-size: 13px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact {
    background: var(--background);
}

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

.contact-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-text-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: var(--text);
    font-weight: 500;
}

.contact-item-text svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-qrcodes {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qrcode-item img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: cover;
}

.qrcode-item span {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer {
    background: var(--text);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 24px;
    }
    
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-featured {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .work-featured-image {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .work-tech {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .contact-text-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .contact-qrcodes {
        gap: 24px;
    }
    
    .qrcode-item img {
        width: 140px;
        height: 140px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .about-stats {
        flex-direction: column;
        padding: 24px;
    }
    
    .skill-card {
        padding: 24px;
    }
    
    .work-featured {
        padding: 24px;
    }
    
    .work-featured-image {
        width: 200px;
        height: 200px;
    }
    
    .work-featured-content h3 {
        font-size: 22px;
    }
    
    .qrcode-item img {
        width: 120px;
        height: 120px;
    }
}
