/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

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

/* Typography */
h1 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #000;
}

h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: #000;
}

p {
    margin-bottom: 1em;
}

/* Header */
header {
    margin-bottom: 2em;
    text-align: center;
}

#profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5em;
    display: block;
}

#tagline {
    color: #666;
    font-size: 1em;
    margin-bottom: 1em;
}

/* Location */
.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    color: #999;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.location-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Resume Button */
.resume-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 1.5em;
    padding: 0.75em 1.5em;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.resume-button:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    text-decoration: none;
}

.resume-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1em;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

#links-list li,
#writing-list li {
    margin-bottom: 0.5em;
}

#links-list a {
    display: inline-block;
    margin-right: 1em;
}

/* Experience Timeline */
.experience-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 2.5em;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: #0066cc;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0066cc;
}

.experience-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    width: 2px;
    height: calc(100% + 20px);
    background-color: #e5e5e5;
}

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

.experience-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.5em;
    flex-wrap: wrap;
}

.experience-logo {
    flex-shrink: 0;
}

.experience-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.experience-title {
    flex-grow: 1;
}

.experience-role {
    font-weight: 600;
    color: #000;
    font-size: 1.05em;
}

.experience-company {
    color: #0066cc;
    font-weight: 500;
    font-size: 0.95em;
}

.experience-period {
    color: #999;
    font-size: 0.9em;
    white-space: nowrap;
}

.experience-highlights {
    list-style: disc;
    margin-top: 0.8em;
    margin-left: 1.5em;
    color: #555;
    line-height: 1.7;
}

.experience-highlights li {
    margin-bottom: 0.5em;
    padding-left: 0.3em;
}

.experience-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1em;
}

.focus-tag {
    display: inline-block;
    padding: 0.4em 0.8em;
    background-color: #f0f4ff;
    color: #0066cc;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid #d0e0ff;
}

/* Education Timeline */
.education-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 2.5em;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: #0066cc;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0066cc;
}

.education-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    width: 2px;
    height: calc(100% + 20px);
    background-color: #e5e5e5;
}

.education-item:last-child::after {
    display: none;
}

.education-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.5em;
    flex-wrap: wrap;
}

.education-logo {
    flex-shrink: 0;
}

.education-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.education-title {
    flex-grow: 1;
}

.education-degree {
    font-weight: 600;
    color: #000;
    font-size: 1.05em;
}

.education-institution {
    color: #0066cc;
    font-weight: 500;
    font-size: 0.95em;
}

.education-period {
    color: #999;
    font-size: 0.9em;
    white-space: nowrap;
}

.education-focus {
    color: #666;
    margin-top: 0.5em;
    line-height: 1.5;
    font-size: 0.95em;
}

/* Certifications */
#certifications-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
}

.certification-card {
    flex: 1;
    min-width: 280px;
    padding: 1.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.certification-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.certification-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.certification-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
}

.certification-logo {
    flex-shrink: 0;
}

.certification-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    border-radius: 8px;
}

.certification-title {
    flex-grow: 1;
}

.certification-name {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.certification-fullname {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 0.3em;
}

.certification-issuer {
    font-size: 0.85em;
    opacity: 0.8;
}

.certification-date {
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 0.5em;
}

.certification-verify {
    display: inline-block;
    margin-top: 1em;
    padding: 0.6em 1.2em;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.certification-verify:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transform: translateX(2px);
}

/* Projects */
.project {
    margin-bottom: 1.5em;
}

.project-title {
    font-weight: 600;
    color: #000;
}

.project-description {
    color: #666;
    margin-top: 0.3em;
}

.project-link {
    font-size: 0.9em;
    color: #0066cc;
}

/* Writing */
.post-date {
    color: #999;
    font-size: 0.9em;
    margin-right: 0.5em;
}

/* Footer */
footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .experience-item,
    .education-item {
        padding-left: 30px;
    }
    
    .experience-logo img,
    .education-logo img {
        width: 35px;
        height: 35px;
    }
    
    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .experience-period,
    .education-period {
        align-self: flex-start;
    }
    
    .certification-card {
        min-width: 100%;
    }
    
    .resume-button {
        font-size: 0.9em;
        padding: 0.7em 1.3em;
    }
}
