* {
    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: #333;
    background-color: #fff;
}

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

/* Hero Section - Karpathy Style */
.hero {
    text-align: center;
    padding: 80px 0 60px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-image {
    margin-bottom: 30px;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.social-links a {
    color: #666;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #333;
    transform: translateY(-3px);
}

.divider {
    width: 100px;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 auto;
}

/* Content Sections */
section {
    margin-bottom: 80px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
    text-align: center;
}

.about {
    text-align: center;
    padding: 40px 0;
}

.about p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.8;
}

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

/* Experience Section */
.experience-item {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.experience-header {
    margin-bottom: 20px;
}

.experience-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.company {
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.duration {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

.experience-details {
    list-style: none;
    padding: 0;
}

.experience-details li {
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.experience-details li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #999;
    font-weight: bold;
}

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

.skill-category {
    text-align: center;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag {
    background-color: #f5f5f5;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.project-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-links a:hover {
    color: #666;
}

/* Education Section */
.education-item {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.education-header h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.institution {
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.location {
    color: #888;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
}

.grade {
    color: #333;
    font-weight: 600;
    display: block;
    font-size: 1rem;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-category {
    background: #fafafa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.cert-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    color: #555;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.cert-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Trainings Section */
.training-item {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.training-header {
    margin-bottom: 20px;
    text-align: center;
}

.training-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.training-org {
    font-weight: 600;
    color: #666;
    display: block;
    font-size: 1.1rem;
}

.training-details {
    list-style: none;
    padding: 0;
}

.training-details li {
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.training-details li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #999;
    font-weight: bold;
}

/* Free Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.course-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

.course-link {
    display: flex;
    justify-content: center;
}

.course-link a {
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-link a:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0 60px 0;
    margin-top: 80px;
    border-top: 1px solid #f0f0f0;
}

footer p {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .hero {
        padding: 60px 0 40px 0;
        min-height: 70vh;
    }
    
    .social-links {
        gap: 20px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .project-card {
        padding: 20px;
    }
}