/* Base Styles */
:root {
    --background-color: #ffffff;
    --text-color: #2c2c2c;
    --accent-color: #3c1642; /* Deep purple accent */
    --card-bg-color: #f8f8f8;
    --sidebar-bg-color: #d5d5d5;
    --tag-bg-color: #e8e8e8;
    --tag-hover-color: #d0d0d0;
    --border-color: #c0c0c0;
    --success-color: #4caf50;
    --button-hover-color: #3c1642; /* Deep purple hover */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style-type: none;
}

/* Layout */
.cv-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg-color);
    padding: 2rem;
    border-right: 1px solid var(--border-color);
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

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

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar-section h3 i {
    color: var(--accent-color);
}

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

.tag {
    background-color: var(--tag-bg-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

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

.language {
    margin-bottom: 0.8rem;
}

.language-level {
    height: 6px;
    background-color: var(--tag-bg-color);
    border-radius: 3px;
    margin: 0.3rem 0;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background-color: var(--accent-color);
}

.level-bar.native {
    width: 100%;
}

.level-bar.excellent {
    width: 90%;
}

.level-bar.intermediate {
    width: 60%;
}

.level-bar.basic {
    width: 30%;
}

.level-text {
    font-size: 0.8rem;
    color: #666;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-list i {
    color: var(--accent-color);
    width: 20px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: var(--button-hover-color);
    color: var(--background-color);
}

/* Main Content */
.content {
    padding: 2rem;
    flex-grow: 1;
}

.content-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

.section-title i {
    color: var(--accent-color);
}

.section-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--accent-color);
    color: var(--background-color);
}

.job-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px 0 0 4px;
}

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

.job-title-company h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.job-title-company h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.job-location {
    font-size: 0.9rem;
    color: #666;
}

.job-date {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
    background-color: var(--tag-bg-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    height: fit-content;
}

.job-description p {
    margin-bottom: 1rem;
}

.job-description h5 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.achievements li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.achievements i {
    color: var(--success-color);
    margin-top: 0.3rem;
}

.achievements i.fa-trophy {
    color: gold;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background-color: var(--tag-bg-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--tag-hover-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

/* Creative Work CTA Section */
.creative-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.creative-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.creative-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.creative-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

.creative-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.creative-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(60, 22, 66, 0.2);
}

.creative-btn i {
    transition: transform 0.3s ease;
}

.creative-btn:hover i {
    transform: translateX(3px);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-item a {
    font-size: 1.1rem;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .cv-container {
        box-shadow: none;
    }
    
    .sidebar, .job-card, .skill-category {
        background-color: white;
        box-shadow: none;
    }
    
    .download-button {
        display: none;
    }
    
    .job-card::before {
        display: none;
    }
    
    .tag, .skill-tag, .job-date {
        background-color: #f0f0f0;
        color: #333;
    }
    
    a {
        color: #0066cc;
    }
}

/* Responsive Styles */
@media (min-width: 768px) {
    .cv-container {
        flex-direction: row;
        min-height: 100vh;
    }
    
    .sidebar {
        width: 350px;
        position: relative;
        height: auto;
    }
    
    .content {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .job-header {
        flex-direction: column;
    }
    
    .job-date {
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

/* Accessibility Enhancements */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }
.job-card:nth-child(7) { animation-delay: 0.7s; }
.job-card:nth-child(8) { animation-delay: 0.8s; }
