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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #fafafa;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.hero {
    padding: 25px 30px 40px 30px;
    background: #fdfdfd;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 700;
}

.hero-links {
    font-size: 1rem;
    color: #6b7280;
    text-align: right;
}

.hero-links a {
    color: #2c3e50;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s ease;
}

.hero-links a:hover {
    color: #374151;
}

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

.divider {
    border: none;
    border-top: 1px solid #e1e8ed;
    margin: 0 0 25px 0;
}

.about-section p {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 15px;
}

.about-section p:last-child {
    margin-bottom: 0;
}


.section {
    padding: 30px;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #2c3e50;
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    padding: 12px 24px;
    background: #fdfdfd;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    transition: box-shadow 0.2s ease;
    font-weight: 500;
}

.social-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.work-item,
.project-item {
    margin-bottom: 25px;
}

.work-item h3,
.project-item h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 3px;
    font-weight: 600;
}

.work-item .company,
.project-item .type {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.work-item .duration {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.work-item p,
.project-item p {
    color: #4b5563;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 20px 20px 30px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-links {
        text-align: left;
        margin-top: 15px;
    }

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

    .section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .section {
        padding: 15px;
    }

    .hero {
        padding: 15px 15px 25px 15px;
    }

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

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f1419;
        color: #f9fafb;
    }

    .card {
        background: #1c2128;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .hero {
        background: #1c2128;
        color: #f9fafb;
    }

    .hero-links a {
        color: #f9fafb;
    }

    .hero-links a:hover {
        color: #e5e7eb;
    }

    .divider {
        border-top: 1px solid #374151;
    }

    .about-section p {
        color: #e5e7eb;
    }

    .section h2 {
        color: #f9fafb;
        border-bottom: 1px solid #374151;
    }

    .work-item h3,
    .project-item h3 {
        color: #f9fafb;
    }

    .work-item .company,
    .project-item .type {
        color: #d1d5db;
    }

    .work-item .duration {
        color: #9ca3af;
    }

    .work-item p,
    .project-item p {
        color: #e5e7eb;
    }

    .work-item,
    .project-item {
        border: none;
    }

    .social-link {
        background: #1c2128;
        color: #f9fafb;
        border: 1px solid #374151;
    }

    .social-link:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}
