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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    line-height: 1.6;
    color: var(--dark);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Header Section */
.header {
    background: var(--gradient);
    padding: 50px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.header-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header-info .title {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.95;
}

.contact-item .icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
}

.content {
    padding: 40px;
}

.sidebar {
    background: var(--light);
    padding: 40px 30px;
    border-left: 1px solid var(--border);
}

/* Section Styles */
.section {
    margin-bottom: 35px;
}

.section:last-child {
    margin-bottom: 0;
}

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

/* Experience & Education */
.item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.item-date {
    font-size: 0.85rem;
    color: var(--secondary);
    background: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.item-subtitle {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.item-description {
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.7;
}

.item-description ul {
    margin-top: 8px;
    padding-left: 20px;
}

.item-description li {
    margin-bottom: 5px;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    width: 100%;
}

.skill-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.skill-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Languages */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.language-item:last-child {
    border-bottom: none;
}

.language-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

.language-level {
    font-size: 0.8rem;
    color: var(--secondary);
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Interests/Hobbies */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: white;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Summary */
.summary-text {
    font-size: 0.95rem;
    color: var(--secondary);
    line-height: 1.8;
    text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .header {
        padding: 30px 25px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-info h1 {
        font-size: 1.8rem;
    }

    .contact-info {
        justify-content: center;
    }

    .main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .content, .sidebar {
        padding: 30px 25px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

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