/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-sidebar: #1e293b;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gray);
    min-height: 100vh;
}

.container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    background: var(--bg-sidebar);
    color: var(--bg-white);
    padding: 40px 30px;
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
}

.profile {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.title {
    font-size: 14px;
    color: var(--primary-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    margin-bottom: 16px;
    margin-top: 32px;
}

.sidebar h3:first-of-type {
    margin-top: 0;
}

.contact ul {
    list-style: none;
}

.contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.contact .icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.skills .skill-category {
    margin-bottom: 20px;
}

.skills h4 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.skill-tags span {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.skill-tags span:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.languages ul {
    list-style: none;
}

.languages li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.languages li:last-child {
    border-bottom: none;
}

.languages .level {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    background: var(--bg-white);
    padding: 50px 60px;
    overflow-y: auto;
}

.section {
    margin-bottom: 48px;
}

.section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Experience Styles */
.experience {
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 2px solid var(--primary-light);
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.exp-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.exp-header .company {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    margin-top: 4px;
}

.exp-header .date {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.exp-details {
    list-style: none;
}

.exp-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.exp-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 14px;
    line-height: 1.6;
}

/* Projects Styles */
.projects {
    display: grid;
    gap: 20px;
}

.project {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    gap: 20px;
    transition: var(--transition);
}

.project:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.project-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

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

.project-tech span {
    background: var(--bg-white);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.project-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    align-self: center;
}

.project-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Education Styles */
.edu-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.edu-item .school {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.edu-item .edu-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.edu-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Certificates Styles */
.certificates {
    list-style: none;
}

.certificates li {
    padding: 12px 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.certificates li:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 30px;
    }

    .main-content {
        padding: 30px;
    }

    .profile {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .skills, .languages, .contact {
        display: inline-block;
        width: 100%;
        margin-bottom: 20px;
    }

    .skills .skill-category {
        display: inline-block;
        margin-right: 30px;
        margin-bottom: 10px;
        vertical-align: top;
    }
}

@media (max-width: 600px) {
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project {
        flex-direction: column;
    }

    .project-link {
        align-self: flex-start;
    }
}

/* Print Styles */
@media print {
    .container {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .section {
        page-break-inside: avoid;
    }
}