/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #623672 0%, #68457e 50%, #8c7f8a 100%);
    min-height: 100vh;
}

/* Container */
.cv-container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: #623672;
    color: white;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.download-btn-mobile {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.download-btn-mobile:hover {
    color: #a38ab0;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}

/* Sidebar */
.sidebar {
    width: 350px;
    background: linear-gradient(135deg, #623672 0%, #68457e 100%);
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 2rem 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.nav-menu {
    list-style: none;
    padding: 2rem 0;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #a38ab0;
    color: white;
}

.sidebar-download {
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 1rem;
}


/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem;
    background: white;
    overflow-y: auto;
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.hero-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #623672;
    box-shadow: 0 8px 25px rgba(98, 54, 114, 0.3);
}

.hero-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #623672;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: grid;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.contact-item strong {
    min-width: 120px;
    color: #623672;
    font-weight: 600;
}

.contact-item a {
    color: #68457e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #623672;
    text-decoration: underline;
}

.download-section {
    margin-top: 1.5rem;
}

.download-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #623672 0%, #68457e 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(98, 54, 114, 0.3);
}

.download-btn-main:hover {
    background: linear-gradient(135deg, #68457e 0%, #623672 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 54, 114, 0.4);
}

.download-btn-main i {
    font-size: 1.1rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #623672;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #623672;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #623672;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #a38ab0;
}

/* Experience Items */
.experience-item,
.education-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.experience-item:hover,
.education-item:hover {
    box-shadow: 0 5px 20px rgba(98, 54, 114, 0.1);
    transform: translateY(-2px);
}

.experience-header,
.education-header {
    margin-bottom: 1rem;
/*    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; */
}

.experience-title-section {
    flex: 1;
}

.experience-header h3,
.education-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #623672;
    margin-bottom: 0.5rem;
}

.company,
.institution {
    font-size: 1.1rem;
    font-weight: 500;
    color: #68457e;
    margin-bottom: 0.25rem;
}

.period {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.expand-toggle {
    background: none;
    border: none;
    color: #623672;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.25rem;
    margin-left: 1rem;
}

.expand-toggle.expanded {
    transform: rotate(180deg);
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.experience-details.expanded {
    max-height: 1000px;
}

.responsibilities {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.responsibilities li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #623672;
    font-weight: bold;
}

.achievements {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #623672;
}

.achievements h4 {
    color: #623672;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.achievements ul {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
    color: #555;
    font-size: 0.9rem;
}

.achievements li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #623672;
}

.projects {
    margin-top: 1rem;
}

.project-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.project-item h5 {
    color: #623672;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.project-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.project-link {
    color: #68457e;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.25rem;
}

.project-link:hover {
    text-decoration: underline;
}

/* Language Skills */
.language-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.languages-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.language-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 80px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

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

.language-row.header {
    background: #623672;
    color: white;
    font-weight: 600;
}

.lang-name {
    font-weight: 600;
}

.skill-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    text-align: center;
}

.skill-single {
    text-align: center;
}

.skill-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.skill-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}

.skill-level {
    background: #68457e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.language-row:not(.header) .skill-level {
    background: #a38ab0;
}

.levels-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Digital Skills */
.digital-skills {
    display: grid;
    gap: 1rem;
}

.skill-category {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-header h4 {
    font-size: 1.1rem;
    color: #623672;
    font-weight: 600;
}

.skill-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.skill-badge.advanced {
    background: #623672;
    color: white;
}

.skill-level-indicator {
    color: #666;
    font-size: 0.9rem;
}

.evaluation-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Animations */
.experience-item,
.education-item,
.skill-category {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.experience-item.animate-in,
.education-item.animate-in,
.skill-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for multiple items */
.experience-item:nth-child(2) { transition-delay: 0.1s; }
.experience-item:nth-child(3) { transition-delay: 0.2s; }
.experience-item:nth-child(4) { transition-delay: 0.3s; }
.experience-item:nth-child(5) { transition-delay: 0.4s; }
.experience-item:nth-child(6) { transition-delay: 0.5s; }
.experience-item:nth-child(7) { transition-delay: 0.6s; }
.experience-item:nth-child(8) { transition-delay: 0.7s; }

.education-item:nth-child(2) { transition-delay: 0.1s; }
.education-item:nth-child(3) { transition-delay: 0.2s; }
.education-item:nth-child(4) { transition-delay: 0.3s; }

.skill-category:nth-child(2) { transition-delay: 0.1s; }
.skill-category:nth-child(3) { transition-delay: 0.2s; }
.skill-category:nth-child(4) { transition-delay: 0.3s; }
.skill-category:nth-child(5) { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .cv-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        padding: 2rem;
    }

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

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .hero-info h1 {
        font-size: 2rem;
    }
	
	.download-section {
        text-align: center;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .cv-container {
        margin-top: 70px;
    }

    .sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        width: 300px;
        height: calc(100vh - 70px);
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .close-sidebar {
        display: block;
    }

    .main-content {
        width: 100%;
        padding: 1.5rem;
    }

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

    .profile-image img {
        width: 120px;
        height: 120px;
    }

    .contact-info {
        text-align: left;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .contact-item strong {
        min-width: auto;
    }

    .language-row {
        grid-template-columns: 100px 1fr 1fr 60px;
        gap: 0.5rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .expand-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
	
    .download-btn-main {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }	
	
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

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

    .hero-info h1 {
        font-size: 1.5rem;
    }

    .profile-image img {
        width: 100px;
        height: 100px;
    }

    .language-row {
        grid-template-columns: 80px 1fr 1fr 50px;
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .skill-group {
        gap: 0.25rem;
    }

    .skill-level {
        padding: 0.125rem 0.25rem;
        font-size: 0.7rem;
    }

    .experience-item,
    .education-item,
    .skill-category {
        padding: 1rem;
    }

    .section {
        margin-bottom: 2rem;
    }
	
    .download-btn-main {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .download-btn-main span {
        display: none;
    }

    .download-btn-mobile {
        display: block;
    }	
	
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #623672;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .mobile-header,
    .sidebar,
    .download-btn,
    .download-btn-main,
    .download-btn-mobile,
    .download-section {
        display: none !important;
    }	

    .main-content {
        width: 100%;
        padding: 0;
    }

    .cv-container {
        box-shadow: none;
        margin: 0;
    }

    .experience-item,
    .education-item,
    .skill-category {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
        break-inside: avoid;
    }

    .expand-toggle {
        display: none;
    }

    .experience-details {
        max-height: none !important;
    }
}
