/* CSS Variables for theming */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.7);
    --surface-primary: rgba(255, 255, 255, 0.05);
    --surface-secondary: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* Particle canvas background */
#neuralNetworkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Header Section */
.header-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-left: 200px;
    padding: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 3rem;
}

.header-info {
    flex: 1;
}

.header-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
}

.header-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.header-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.header-contact {
    flex-shrink: 0;
}

/* Modern Language Toggle Switch */
.language-switch {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.language-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.language-label {
    display: block;
    width: 80px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 11;
}

.language-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.language-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.language-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 18px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.language-checkbox:checked + .language-label .language-slider::before {
    transform: translateX(40px);
}

.language-option {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    z-index: 2;
    position: relative;
}

.language-checkbox:not(:checked) + .language-label .language-option[data-lang="en"] {
    color: var(--text-primary);
}

.language-checkbox:checked + .language-label .language-option[data-lang="fr"] {
    color: var(--text-primary);
}

/* Sidebar Language Toggle */
.sidebar-language-toggle {
    padding: 0 1rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* Contact Button Styles */
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--text-primary);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #004494 100%);
}

.contact-button:active {
    transform: translateY(0);
}

.contact-icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke-width: 2.5;
}

/* Header Contact Button Specific */
.header-contact-btn {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 2rem 0;
    border-right: 1px solid var(--border-color);
}

/* Sidebar Contact Section */
.sidebar-contact {
    padding: 0 1rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-contact-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 8px;
}

.sidebar-contact-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #004494 100%);
}

.nav-item {
    display: block;
    margin: 0.5rem 0;
}

.nav-item a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item a:hover {
    background: var(--surface-primary);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.nav-item a.active {
    background: var(--surface-secondary);
    border-left-color: var(--primary-color);
}

/* Main Content */
.main-content {
    margin-left: 200px;
    min-height: 100vh;
}

/* Section Styles */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
}

.section-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Background Elements */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
}

.summary-section .content {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Overview Section */
.overview-section {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(34, 139, 58, 0.05) 100%);
}

.overview-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.overview-item {
    text-align: center;
    padding: 2rem;
}

.number-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.number-shadow {
    position: absolute;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.number {
    position: relative;
    font-size: 4rem;
    font-weight: 700;
    color: #28a745;
    z-index: 2;
    text-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.overview-item .content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 300px;
}

/* Work History Section */
.work-history-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.work-item {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.work-item:hover {
    background: var(--surface-secondary);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.work-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-icon {
    width: 2rem;
    height: 2rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.work-icon svg {
    width: 100%;
    height: 100%;
}

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

.company {
    font-size: 1.1rem;
    color: #ffc107;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.date {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

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

.description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.description li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ffc107;
    font-size: 0.8rem;
}

/* Skills Section */
.skills-section {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(176, 42, 55, 0.05) 100%);
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.skills-column ul {
    list-style: none;
    padding: 0;
}

.skills-column li {
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skills-column li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #dc3545, #b02a37);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skills-column li:hover {
    background: var(--surface-secondary);
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateX(5px);
}

.skills-column li:hover::before {
    opacity: 1;
}

/* Languages Section */
.languages-section {
    background: linear-gradient(135deg, rgba(102, 16, 242, 0.1) 0%, rgba(81, 13, 194, 0.05) 100%);
}

.languages-content {
    max-width: 600px;
    margin: 0 auto;
}

.language-item {
    display: flex;
    align-items: center;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.language-item:hover {
    background: var(--surface-secondary);
    border-color: rgba(102, 16, 242, 0.3);
    transform: translateY(-2px);
}

.language-dot {
    width: 12px;
    height: 12px;
    background: #6610f2;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 0 10px rgba(102, 16, 242, 0.5);
}

.language-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 2rem;
    min-width: 100px;
}

.language-rating {
    flex: 1;
}

.rating-bar {
    height: 8px;
    background: var(--surface-primary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(135deg, #6610f2, #510dc2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.proficiency {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(18, 130, 147, 0.05) 100%);
}

.timeline-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #17a2b8, #128293);
    border-radius: 1px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: #17a2b8;
    border-radius: 50%;
    margin-right: 2rem;
    box-shadow: 0 0 0 4px rgba(23, 162, 184, 0.2);
    z-index: 2;
    position: relative;
}

.timeline-content-item {
    display: flex;
    align-items: center;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1;
    transition: all 0.3s ease;
}

.timeline-content-item:hover {
    background: var(--surface-secondary);
    border-color: rgba(23, 162, 184, 0.3);
    transform: translateX(5px);
}

.timeline-icon {
    width: 2rem;
    height: 2rem;
    color: #17a2b8;
    margin-right: 1.5rem;
}

.timeline-icon svg {
    width: 100%;
    height: 100%;
}

.timeline-info {
    flex: 1;
}

.timeline-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar-nav {
        width: 180px;
    }
    
    .main-content, .header-section {
        margin-left: 180px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .header-name {
        font-size: 3rem;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 250px;
    }
    
    .sidebar-nav.active {
        transform: translateX(0);
    }
    
    .main-content, .header-section {
        margin-left: 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .header-name {
        font-size: 2.5rem;
    }
    
    .header-title {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .number {
        font-size: 3rem;
    }
    
    .number-shadow {
        font-size: 6rem;
    }
    
    .work-item {
        padding: 1.5rem;
    }
    
    .timeline-content::before {
        left: 15px;
    }
    
    .timeline-dot {
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .header-section {
        padding: 2rem 1rem;
    }
    
    .header-name {
        font-size: 2rem;
    }
    
    .header-title {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .summary-section .content {
        font-size: 1.1rem;
    }
    
    .job-title {
        font-size: 1.3rem;
    }
    
    .company {
        font-size: 1rem;
    }
    
    .language-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .language-text {
        margin-right: 0;
    }
    
    .timeline-content-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Smooth scrolling animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

