:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f5f7fa;
}

.lateral-resume {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    background: white;
    position: relative;
    overflow: hidden;
}

.sidebar {
    width: 35%;
    background: var(--primary);
    color: white;
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.main-content {
    width: 65%;
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    display: block;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
}

h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
    cursor: pointer;
}

h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
}

h3:hover:after {
    width: 100px;
}

.sidebar h3 {
    color: white;
}

.sidebar h3:after {
    background: var(--accent);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

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

.contact-icon {
    margin-right: 1rem;
    color: var(--accent);
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
}

a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

.main-content a {
    color: var(--accent);
}

.section {
    margin-bottom: 2.5rem;
}

.intro {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.intro:hover {
    color: var(--text);
    transform: translateX(5px);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.skill:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.experience {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 20px;
}

.experience:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.experience:hover:before {
    opacity: 1;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.company {
    font-weight: bold;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.experience:hover .company {
    color: var(--accent);
}

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

.role {
    font-style: italic;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.project {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
}

.project-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
}

.project-name:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.project:hover .project-name:after {
    width: 100px;
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

li:before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: -1rem;
    transition: transform 0.3s ease;
}

li:hover {
    color: var(--accent);
}

li:hover:before {
    transform: scale(1.5);
}

.education-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.education-item:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
}

.education-degree {
    font-weight: bold;
}

.education-school {
    color: var(--text-light);
    font-size: 0.9rem;
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.language {
    background: rgba(52, 152, 219, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Dark theme styles */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-theme .lateral-resume {
    background: #1e1e1e;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

body.dark-theme .main-content {
    background: #1e1e1e;
}

body.dark-theme .sidebar {
    background: #121212;
    border-right: 1px solid #333;
}

body.dark-theme h3 {
    color: #e0e0e0;
}

body.dark-theme .company {
    color: #e0e0e0;
}

body.dark-theme .intro {
    color: #b0b0b0;
}

body.dark-theme .intro:hover {
    color: #e0e0e0;
}

body.dark-theme .skill {
    background: #333;
    color: #e0e0e0;
}

body.dark-theme .project:hover {
    background: rgba(52, 152, 219, 0.1);
}

body.dark-theme .education-item:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* Print styles */
@media print {
    .theme-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .lateral-resume {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .lateral-resume {
        flex-direction: column;
    }

    .sidebar, .main-content {
        width: 100%;
    }

    .sidebar {
        padding: 1.5rem;
    }

    .main-content {
        padding: 1.5rem;
    }
}
