/* Base Styling */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent-bg: #eff6ff;
    --accent-text: #1e40af;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 2rem 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem auto;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
}

.title {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    word-break: break-all;
}

.contact-item i {
    width: 18px;
    color: var(--primary-color);
}

.contact-item:hover span {
    color: var(--primary-color);
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

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

.sidebar-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edu-item {
    margin-bottom: 0.75rem;
}

.edu-degree {
    font-weight: 600;
    font-size: 0.95rem;
}

.edu-school {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.edu-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.lang-list {
    list-style: none;
    font-size: 0.9rem;
}

.lang-list li {
    margin-bottom: 0.25rem;
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hobby-tag {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section h2 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 0.75rem;
}

.section h2 i {
    color: var(--primary-color);
}

.summary-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Experience Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role {
    font-size: 1.1rem;
    font-weight: 600;
}

.company {
    color: var(--primary-color);
    font-weight: 500;
}

.date-badge {
    background: var(--accent-bg);
    color: var(--accent-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-list {
    list-style-type: disc;
    margin-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.task-list li {
    margin-bottom: 0.4rem;
}

/* Tech Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: var(--bg-color);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.skill-card {
    background: var(--bg-color);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.skill-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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