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

/* Effet de traînée du curseur désactivé */

:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #6B46C1;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-dark: #ffffff;
    --border-color: #2a2a2a;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 2px 4px 0 rgb(0 0 0 / 0.3);
    --shadow-lg: 0 4px 8px 0 rgb(0 0 0 / 0.3);
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}


.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.6s ease;
}


.logo-link:hover .logo-img {
    transform: rotate(360deg) scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.dropdown-menu a.active {
    background: rgba(107, 70, 193, 0.15);
    color: var(--accent-color);
    font-weight: 600;
}

.dropdown .nav-link i {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.nav-item:last-child .nav-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-item:last-child .nav-link:hover {
    background: rgba(107, 70, 193, 0.2);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(107, 70, 193, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

/* Section réseaux sociaux sur la page contact */
.contact-social-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.contact-social-section .social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.contact-social-section .social-link {
    padding: 0.7rem 1.2rem;
    background: rgba(107, 70, 193, 0.1);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 110px;
    justify-content: center;
}

.contact-social-section .social-link:hover {
    background: rgba(107, 70, 193, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.2);
}

.contact-social-section .social-link i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.contact-social-section .social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
    color: #0077b5;
    transform: translateY(-3px) scale(1.05);
}

.contact-social-section .social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.2);
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .contact-social-section .social-links {
        justify-content: center;
    }
    
    .contact-social-section .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .hero-projects {
        padding: 80px 0 40px;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .projects-intro {
        padding: 30px 0;
    }

    .intro-content h2 {
        font-size: 1.2rem;
    }

    .intro-content p {
        font-size: 0.9rem;
    }

    .projects-cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Sections projets améliorées */
.hero-projects {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(107, 70, 193, 0.02) 100%);
    text-align: center;
}

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

.hero-projects .page-subtitle {
    text-align: center;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Akira Expanded', sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.projects-intro {
    padding: 40px 0;
    background: var(--bg-primary);
}

.intro-content {
    max-width: 500px;
    margin: 0;
    text-align: left;
}

.intro-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: left;
}

.intro-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
}

.projects-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(107, 70, 193, 0.05) 100%);
    text-align: center;
}

.cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 70, 193, 0.3);
}

/* Placeholders pour les projets */
.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(107, 70, 193, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    min-height: 200px;
}

.project-placeholder i {
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.project-card:hover .project-placeholder {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.15) 0%, rgba(107, 70, 193, 0.08) 100%);
}

.project-card:hover .project-placeholder i {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Arrière-plan animé géré par JavaScript */
.hero {
    background: 
        radial-gradient(circle at 25% 25%, rgba(107, 70, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(107, 70, 193, 0.08) 0%, transparent 50%);
}



.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 100px;
}

.hero-main-title {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.main-title {
    font-family: 'Akira Expanded', sans-serif;
    font-size: 15rem;
    font-weight: 800;
    margin: 0;
    line-height: 0.7;
    color: var(--text-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
}

.main-title-second {
    font-family: 'Akira Expanded', sans-serif;
    font-size: 15rem;
    font-weight: 800;
    margin: 0;
    line-height: 0.7;
    color: var(--text-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
}


.main-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 4rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
}

.btn-contact-jago {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.btn-contact-jago:hover {
    background: rgba(107, 70, 193, 0.2);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(107, 70, 193, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.3);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
    position: relative;
    z-index: 2;
    margin-left: 2rem;
}

.hero-graphic {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.graphic-element:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.08), transparent);
    animation-delay: 0s;
}

.graphic-element:nth-child(2) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.12), transparent);
    animation-delay: -2s;
}

.graphic-element:nth-child(3) {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.15), transparent);
    animation-delay: -4s;
}


.about {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}


.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.skills {
    padding: 3rem 0;
}

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

.skill-category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Tache violette supprimée */

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: rgba(107, 70, 193, 0.05);
    border-color: rgba(107, 70, 193, 0.3);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.skill-item span {
    font-weight: 500;
    min-width: 80px;
    color: var(--text-primary);
}

.skill-category:hover .skill-item span {
    color: var(--text-primary);
}

.skill-category:hover .skill-item i {
    color: var(--accent-color);
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0;
    transition: width 2s ease-out;
}

.portfolio {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portfolio-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-link:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.experience {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    --particles-play-state: paused;
}

.experience::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 15px 45px, rgba(107, 70, 193, 0.4), transparent),
        radial-gradient(3px 3px at 75px 120px, rgba(107, 70, 193, 0.3), transparent),
        radial-gradient(2px 2px at 180px 25px, rgba(107, 70, 193, 0.5), transparent),
        radial-gradient(1px 1px at 240px 95px, rgba(107, 70, 193, 0.4), transparent),
        radial-gradient(3px 3px at 310px 65px, rgba(107, 70, 193, 0.3), transparent),
        radial-gradient(2px 2px at 55px 180px, rgba(107, 70, 193, 0.5), transparent),
        radial-gradient(1px 1px at 145px 155px, rgba(107, 70, 193, 0.4), transparent),
        radial-gradient(2px 2px at 285px 10px, rgba(107, 70, 193, 0.3), transparent),
        radial-gradient(3px 3px at 125px 85px, rgba(107, 70, 193, 0.4), transparent),
        radial-gradient(1px 1px at 220px 140px, rgba(107, 70, 193, 0.5), transparent),
        radial-gradient(2px 2px at 35px 110px, rgba(107, 70, 193, 0.3), transparent),
        radial-gradient(1px 1px at 195px 170px, rgba(107, 70, 193, 0.4), transparent);
    background-repeat: repeat;
    background-size: 350px 200px;
    animation-name: particlesFloat;
    animation-duration: 25s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-play-state: var(--particles-play-state);
    pointer-events: none;
    z-index: 1;
}

@keyframes particlesFloat {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(20px) translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateX(-10px) translateY(-60px) rotate(180deg);
    }
    75% {
        transform: translateX(30px) translateY(-90px) rotate(270deg);
    }
    100% {
        transform: translateX(0px) translateY(-120px) rotate(360deg);
    }
}

.timeline-horizontal {
    position: relative;
    margin: 1.5rem 0;
    padding: 0 60px;
}

.timeline-wrapper {
    overflow: hidden;
    position: relative;
}

.timeline-track {
    display: block;
    position: relative;
}

.timeline-item {
    flex: 0 0 100%;
    min-width: 0;
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.timeline-item.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-date-integrated {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.timeline-content h4 {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-image {
    margin: 1rem 0;
    text-align: center;
}

.timeline-img {
    width: 100%;
    max-width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.timeline-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
}

.timeline-nav:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.timeline-nav:hover:not(:disabled) i {
    color: var(--secondary-color);
}

.timeline-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.timeline-nav-prev {
    left: 0;
}

.timeline-nav-next {
    right: 0;
}

.timeline-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-social {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.footer-social h4 {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: rgba(107, 70, 193, 0.08);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s ease;
    min-width: 90px;
    justify-content: center;
}

.social-link:hover {
    background: rgba(107, 70, 193, 0.15);
    border-color: rgba(107, 70, 193, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.social-link i {
    font-size: 0.9rem;
    width: 14px;
    text-align: center;
    opacity: 0.8;
}

.social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: #0077b5;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
    color: #0077b5;
    transform: translateY(-3px) scale(1.05);
}

.social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.12);
    border-color: rgba(225, 48, 108, 0.3);
    box-shadow: 0 2px 6px rgba(225, 48, 108, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .social-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    .social-link i {
        font-size: 0.9rem;
        width: 14px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.scroll-to-top:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover i {
    color: var(--secondary-color);
}

.scroll-to-top i {
    font-size: 1rem;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem auto;
    animation: logoSpin 2s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(107, 70, 193, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.loader-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
    width: 0%;
    animation: progressLoad 1.5s ease-out forwards;
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }
.loader-dot:nth-child(3) { animation-delay: 0s; }

@keyframes logoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.05);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    75% {
        transform: rotate(270deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes progressLoad {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 30px rgba(107, 70, 193, 0.3);
    }
    100% {
        text-shadow: 0 0 50px rgba(107, 70, 193, 0.6), 0 0 80px rgba(107, 70, 193, 0.3);
    }
}


/* Animations d'arrière-plan gérées par JavaScript */

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .logo-img {
        height: 50px;
    }

    .hero-container {
        min-height: 100vh;
        padding-top: 80px;
    }

    .name-container {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .main-title {
        font-size: 4rem;
        word-break: break-word;
    }

    .main-title-second {
        font-size: 4rem;
        word-break: break-word;
    }


    .main-description {
        font-size: 0.85rem;
    }

    .hero-container {
        padding-top: 70px;
    }

    .hero-visual {
        margin-left: 0;
        margin-top: 2rem;
    }

    .hero-graphic {
        width: 300px;
        height: 300px;
    }

    .graphic-element:nth-child(1) {
        width: 200px;
        height: 200px;
    }

    .graphic-element:nth-child(2) {
        width: 150px;
        height: 150px;
    }

    .graphic-element:nth-child(3) {
        width: 100px;
        height: 100px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .timeline-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-horizontal {
        padding: 0 50px;
    }

    .timeline-nav-prev {
        left: 0;
    }

    .timeline-nav-next {
        right: 0;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-img {
        max-width: 100%;
        height: 150px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

.page-hero {
    padding: 7rem 0 2rem;
    background: var(--bg-primary);
    text-align: center;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 5rem 0 1.5rem;
    }
    
    .about {
        padding: 2rem 0;
    }
    
    .values {
        padding: 2rem 0;
    }
    
    .skills {
        padding: 2rem 0;
    }
    
    .experience {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .values-grid {
        gap: 1.5rem;
    }
    
    .skills-grid {
        gap: 1.5rem;
    }
    
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
    
    @media (max-width: 768px) {
        .page-title {
            font-size: 2rem;
            margin-bottom: 0.8rem;
        }
        
        .page-subtitle {
            font-size: 1rem;
        }
    }

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-hero-left {
    text-align: left;
}

.page-hero-left .page-subtitle {
    margin: 0;
}

.values {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(107, 70, 193, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem 0;
    border: 2px solid rgba(107, 70, 193, 0.6);
    box-shadow: 0 0 15px rgba(107, 70, 193, 0.3);
}

.value-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
    filter: brightness(1.2);
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.tools {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

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

.tool-category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.tool-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: rgba(107, 70, 193, 0.05);
    border-color: rgba(107, 70, 193, 0.3);
}

.tool-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    color: var(--text-primary);
}

.tool-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 20px;
}

.tool-item span {
    font-weight: 500;
    color: var(--text-primary);
}

.achievements {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid rgba(107, 70, 193, 0.3);
}

.achievement-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.achievement-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.availability {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.availability-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.availability-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.availability-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem 0;
}

.availability-icon i {
    font-size: 1.5rem;
    color: white;
}

.availability-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.availability-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.projects-hero {
    padding: 8rem 0 4rem;
    background: var(--bg-primary);
    text-align: center;
}

.projects-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.projects-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.projects-categories {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}


.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--accent-color);
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--primary-color);
    gap: 1rem;
}

.category-hero {
    padding: 8rem 0 2rem;
    background: var(--bg-primary);
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.projects-grid-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}


.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-img[src*="Affiche EDT"] {
    object-position: center 85%;
}

.project-img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 90%;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 2rem;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

#lightbox-img {
    max-width: 60%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.lightbox-info {
    color: white;
    text-align: left;
    flex: 1;
    max-width: 400px;
    padding-left: 1rem;
}

.lightbox-caption {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.lightbox-description {
    margin-bottom: 1.5rem;
}

.lightbox-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.lightbox-tools {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: inline-block;
    width: fit-content;
}

.lightbox-tools h4 {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
}

.lightbox-tools p {
    color: white;
    font-size: 0.75rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        max-width: 90%;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    #lightbox-img {
        max-width: 100%;
        max-height: 50vh;
    }
    
    .lightbox-info {
        text-align: center;
        padding-left: 0;
        max-width: 100%;
    }
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.project-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.cv-download {
    margin-top: 2rem;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.project-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .name-container {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .main-title {
        font-size: 3rem;
        word-break: break-word;
    }

    .main-title-second {
        font-size: 3rem;
        word-break: break-word;
    }


    .main-description {
        font-size: 0.8rem;
    }

    .hero-container {
        padding-top: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
    }

    .projects-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
