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

:root {
    --green-dark: #1a3c34;
    --green-mid: #2d6a4f;
    --green-light: #40916c;
    --green-accent: #52b788;
    --white: #ffffff;
    --off-white: #f8faf9;
    --gray-100: #f1f5f3;
    --gray-200: #e2e8e4;
    --gray-600: #4a5568;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-200);
    color: var(--gray-800);
    line-height: 1.6;
}

.cv-container {
    max-width: 1100px;
    margin: 20px auto;
    background: var(--white);
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar {
    background: var(--green-dark);
    color: var(--white);
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.photo-wrapper:hover {
    transform: scale(1.05);
    border-color: var(--green-accent);
}

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

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green-accent);
    color: var(--green-accent);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.8;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--green-accent);
}

.summary-text {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.9;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.language-level {
    background: rgba(255,255,255,0.12);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--green-accent);
    color: var(--green-dark);
    border-color: var(--green-accent);
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 15px;
    opacity: 0.7;
    line-height: 1.5;
}

.main-content {
    padding: 45px 40px;
    position: relative;
    background: var(--off-white);
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--gray-200) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: 0.6;
    pointer-events: none;
}

.name-section {
    margin-bottom: 35px;
}

.name-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--green-dark);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.section {
    margin-bottom: 35px;
    position: relative;
    padding: -1%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-icon {
    width: 36px;
    height: 36px;
    background: var(--green-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-dark);
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--green-accent), var(--green-dark));
}

.timeline-item {
    position: relative;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 3px solid var(--green-accent);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--green-accent);
    transform: scale(1.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
}

.timeline-company {
    font-size: 13px;
    color: var(--green-mid);
    font-weight: 500;
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--gray-600);
}

.duration-badge {
    background: var(--green-dark);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-details {
    list-style: none;
    margin-top: 10px;
}

.timeline-details li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-700);
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--green-accent);
    border-radius: 50%;
}

.edu-location {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 2px;
}

.edu-hours {
    font-size: 11px;
    color: var(--green-mid);
    font-weight: 500;
}

@media (max-width: 900px) {
    .cv-container {
        grid-template-columns: 1fr;
        margin: 0;
        border-radius: 0;
    }

    .sidebar {
        padding: 30px 24px;
    }

    .main-content {
        padding: 30px 24px;
    }

    .name-section h1 {
        font-size: 28px;
    }

    .timeline-header {
        flex-direction: column;
    }
}

@media print {
    body {
        background: white;
    }

    .cv-container {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .sidebar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .skill-tag:hover,
    .contact-item:hover,
    .timeline-item:hover .timeline-dot {
        transform: none;
    }
}
