@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    background: #f8fafc;
    color: #2d3748;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
}

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

/* Header Styles */
.header {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.profile-section {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4299e1;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.profile-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.profile-info h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4299e1;
    margin-bottom: 15px;
}

.summary {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.contact-item i {
    width: 16px;
    color: #4299e1;
}

.contact-item a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Featured Projects in Header */
.featured-projects {
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.featured-projects h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-projects h3 i {
    color: #4299e1;
}

.projects-preview {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.project-preview-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.project-preview-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.15);
}

.project-icon {
    width: 35px;
    height: 35px;
    background: #4299e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon i {
    color: white;
    font-size: 0.9rem;
}

.project-info {
    flex: 1;
}

.project-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 3px;
}

.project-info h4 a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-info h4 a:hover {
    color: #4299e1;
    text-decoration: underline;
}

.project-info p {
    font-size: 0.8rem;
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-tech-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.project-tech-preview span {
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Learning Resources */
.learning-resources {
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.learning-resources h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.learning-resources h3 i {
    color: #4299e1;
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    width: 100%;
    align-items: stretch;
    justify-items: stretch;
}

.book-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
    height: 100%;
    align-items: center;
}

.book-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.15);
}

.book-icon {
    width: 35px;
    height: 35px;
    background: #48bb78;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.book-icon i {
    color: white;
    font-size: 0.9rem;
}

.book-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 3px;
    line-height: 1.3;
}

.book-info p {
    font-size: 0.75rem;
    color: #4a5568;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent !important;
    color: #4299e1 !important;
    border: 1px solid #4299e1 !important;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    width: auto !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-secondary:hover {
    background: #4299e1 !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card h2 i {
    color: #4299e1;
}

/* Background Colors */
.bg-blue {
    border-left: 3px solid #4299e1;
}

.bg-green {
    border-left: 3px solid #48bb78;
}

.bg-yellow {
    border-left: 3px solid #ed8936;
}

.bg-red {
    border-left: 3px solid #f56565;
}

.bg-light {
    border-left: 3px solid #a0aec0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    gap: 15px;
}

.skill-category h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

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

.skill-tag {
    background: #4299e1;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: scale(1.02);
}

/* Timeline Styles */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: -20px;
    width: 2px;
    background: #e2e8f0;
}

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

.timeline-date {
    min-width: 80px;
    font-weight: 600;
    color: #4299e1;
    font-size: 0.85rem;
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 3px;
}

.timeline-content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4299e1;
    margin-bottom: 10px;
}

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

.timeline-content li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
    color: #4a5568;
    font-size: 0.85rem;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

/* Education Section */
.education-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
}

.education-item p {
    color: #4a5568;
    margin-bottom: 3px;
    font-size: 0.85rem;
}

.education-year {
    color: #4299e1 !important;
    font-weight: 500;
}

/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.interest-item:hover {
    transform: translateY(-2px);
    background: #edf2f7;
}

.interest-item i {
    font-size: 1.5rem;
    color: #4299e1;
}

.interest-item span {
    font-weight: 500;
    color: #2d3748;
    text-align: center;
    font-size: 0.85rem;
}





.btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.btn:hover {
    background: #3182ce;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .profile-info h1 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card {
        padding: 15px;
    }
    
    .featured-projects {
        margin: 15px 0;
        padding: 12px;
    }
    
    .project-preview-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .project-icon {
        margin: 0 auto;
    }
    
    .projects-preview {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .learning-resources {
        margin-top: 20px;
        padding: 15px;
        background: #f7fafc;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
    }
    
    .books-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        align-items: stretch;
        justify-items: stretch;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.3rem;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        width: 100%;
        align-items: stretch;
        justify-items: stretch;
    }
    
    .projects-preview {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12px !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .header {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        padding: 15px !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .action-buttons {
        display: none !important;
    }
    
    .btn {
        background: #333 !important;
        color: white !important;
    }
    
    .skill-tag {
        background: #333 !important;
        color: white !important;
    }
    
    .timeline-item::before {
        background: #333 !important;
    }
    
    .interest-item {
        background: #f5f5f5 !important;
    }
    
    .featured-projects {
        background: #f9f9f9 !important;
    }
}