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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #f7fafc;
}

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

header {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.profile-img img {
    width: 100%;
    border-radius: 8px;
}

.header-text h1 {
    color: #1a202c;
    margin-bottom: 4px;
    font-size: 2.2em;
    font-weight: 700;
}

.subtitle {
    color: #3182ce;
    font-size: 1.1em;
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4a5568;
    font-size: 0.95em;
}

.contact-item a {
    text-decoration: none;
}

.section {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.section p {
    margin-bottom: 20px;
}

h2 {
    color: #1a202c;
    margin-bottom: 24px;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::after {
    content: "";
    height: 1px;
    background: #e2e8f0;
    flex-grow: 1;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.skill-card {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.skill-card:hover {
    border-color: #3182ce;
}

.skill-card h3 {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #2d3748;
}

.skill-card p {
    font-size: 0.9em;
    color: #718096;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    width: 100%;
    height: 160px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.portfolio-content p {
    color: #4a5568;
    font-size: 0.9em;
    margin-bottom: 16px;
    height: 3.6em;
    overflow: hidden;
}

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

.tag {
    background: #ebf8ff;
    color: #2b6cb0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    border: 1px solid #bee3f8;
}

.experience-item {
    margin-bottom: 24px;
    position: relative;
    padding-left: 24px;
}

.experience-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: -24px;
    width: 2px;
    background: #e2e8f0;
}

.experience-item:last-child::before {
    display: none;
}

.experience-item h3 {
    color: #1a202c;
    font-size: 1.1em;
    margin-bottom: 2px;
}

.experience-item .period {
    color: #718096;
    font-size: 0.85em;
    margin-bottom: 8px;
    font-weight: 500;
}

.experience-item p {
    color: #4a5568;
    font-size: 0.95em;
}

footer {
    text-align: center;
    color: #a0aec0;
    padding: 40px 0;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .contact-info {
        justify-content: center;
    }
    .section {
        padding: 24px;
    }
}