:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    padding: 30px 20px;
}

.cv-container {
    max-width: 1100px;
    margin: 20px auto;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--primary);
    color: #ffffff;
    padding: 40px 30px;
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e293b;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.profile-section h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: left;
}

.profile-section .title {
    color: #38bdf8;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.4;
}

.contact-section, .skills-section, .education-section {
    margin-bottom: 45px;
}

h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
    padding-bottom: 6px;
}

.contact-section p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-section a {
    color: #e2e8f0;
    text-decoration: none;
}

.contact-section a:hover {
    color: #38bdf8;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    background: #1e293b;
    padding: 6px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.88rem;
    border-left: 3px solid #38bdf8;
    color: #e2e8f0;
}

.edu-item h4 {
    color: #f8fafc;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.edu-item .school {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.edu-item .years {
    font-size: 0.85rem;
    color: #38bdf8;
    margin-bottom: 8px;
}

.edu-item .details {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Main Content Styles */
.main-content {
    padding: 50px 45px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    letter-spacing: -0.3px;
}

.summary p {
    color: #475569;
    font-size: 1.05rem;
    text-align: justify;
}

.company-block {
    margin-bottom: 35px;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 6px;
    border-right: 4px solid var(--accent);
}

.company-header h3 {
    color: var(--primary);
    font-size: 1.25rem;
    text-transform: none;
    border: none;
    padding: 0;
    margin: 0;
    letter-spacing: 0;
    font-weight: 700;
}

.company-header .duration {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

.role {
    margin-bottom: 25px;
    padding-left: 15px;
}

.role-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.role-header h4 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.role-date {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

.role ul {
    padding-left: 18px;
}

.role li {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Responsive View for Mobile Devices */
@media (max-width: 850px) {
    .cv-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        padding: 40px 20px;
    }
    .profile-section h1, .profile-section .title {
        text-align: center;
    }
    .main-content {
        padding: 40px 20px;
    }
    .company-header, .role-header {
        flex-direction: column;
    }
    .company-header .duration, .role-date {
        margin-top: 6px;
        margin-bottom: 6px;
    }
    .role {
        padding-left: 0;
    }
}