:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    position: relative;
}

.profile {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile .title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.contact, .skills, .languages {
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
}

.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.contact i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.skill {
    margin-bottom: 1rem;
}

.skill p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.languages p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 2.5rem;
}

.about, .experience, .education, .projects {
    margin-bottom: 2.5rem;
}

.main-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.main-content h2::after {
    background: var(--primary-color);
}

.about p {
    color: var(--light-text);
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.timeline-item h4 {
    color: var(--light-text);
    font-weight: normal;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.timeline-item ul {
    padding-left: 1.25rem;
}

.timeline-item li {
    margin-bottom: 0.5rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Education */
.education-item {
    margin-bottom: 1.5rem;
}

.education-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.education-item p {
    color: var(--light-text);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.project-card p {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background: #e0f2fe;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: white;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .main-content, .sidebar {
        padding: 1.5rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.about, .experience, .education, .projects {
    animation: fadeIn 0.6s ease-out forwards;
}

.experience { animation-delay: 0.2s; }
.education { animation-delay: 0.4s; }
.projects { animation-delay: 0.6s; }
