:root {
    --primary-color: #1a1a1d; /* Noir profond */
    --secondary-color: #a67c00; /* Doré */
    --accent-color: #d4af37; /* Or */
    --light-bg: #f3f4f6; /* Blanc cassé */
    --dark-bg: #1a1a1d; /* Noir profond */
    --text-color: #333;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar */
.navbar-dark {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: background 0.5s ease, transform 0.3s ease;
}

.navbar-dark .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-brand:hover {
    color: var(--secondary-color);
}

.navbar-dark .nav-link {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-dark .nav-link:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #0d0d0d);
    color: white;
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    animation: fadeIn 2s ease-in-out;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.3;
    z-index: -1;
    animation: moveBg 60s linear infinite;
}

@keyframes moveBg {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 900;
    animation: fadeInDown 1.5s ease-in-out;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.5s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.cta-button {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-bg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1.5s ease-in-out;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    animation: fadeInUp 2s ease-in-out;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(136,80,226,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: radialExpand 15s ease-in-out infinite;
    z-index: 0;
}

.about-section img {
    width: 300px;
    max-width: 100%;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.about-section .content {
    max-width: 600px;
    text-align: left;
    z-index: 1;
    position: relative;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Paragraph Styles for About Section */
.about-section p {
    font-size: 1.2rem;
    color: #333; /* Couleur plus foncée pour un contraste élégant */
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify; /* Justification pour une apparence soignée */
    padding: 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(250, 204, 21, 0.1));
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: 0px; /* Réduction de l'espacement entre les lettres */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.about-section p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.about-section p:hover::before {
    transform: translateX(0);
}

.about-section p:hover::after {
    transform: translateX(0);
}

.about-section p:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-section p span.highlight {
    color: var(--accent-color); /* Accentuation du texte doré */
    font-weight: bold;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.3s ease;
}

.about-section p span.highlight:hover {
    color: var(--secondary-color); /* Change la couleur lors du survol */
}

/* Section Title Styling */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}


/* Experience and Education Section */
.experience-item, .education-item {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--secondary-color); /* Bordure dorée à gauche */
}

.experience-item:hover, .education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.experience-item h3, .education-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-item p, .education-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.experience-item .timeline-date, .education-item .timeline-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
    font-style: italic;
}

.experience-item ul, .education-item ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
}

.experience-item ul li, .education-item ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
}

.experience-item ul li::before, .education-item ul li::before {
    content: '\2022';
    color: var(--secondary-color); /* Puce dorée */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.experience-item .company, .education-item .school {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 5px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}


/* Skills Section */
.skills-section {
    background: var(--light-bg);
}

.skill {
    margin-bottom: 20px;
}

.skill h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.progress {
    background-color: #e0e0e0;
    height: 12px;
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    height: 100%;
    transition: width 0.6s ease;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    animation: radialExpand 20s ease-in-out infinite;
    z-index: 0;
}

.contact-section h2 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1.5s ease-in-out;
    position: relative;
    z-index: 2;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    z-index: 2;
    position: relative;
}

.contact-section .cta-button {
    margin: 5px;
}

.contact-section .btn i {
    margin-right: 8px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

footer p a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

footer p a:hover {
    color: #d97706;
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes radialExpand {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section p {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        margin-bottom: 40px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::before {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.25rem;
    }

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

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-section img {
        margin-bottom: 20px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding-left: 40px;
        padding-right: 20px;
    }

    .timeline-item::before {
        left: 15px;
    }
}

@media (max-width: 576px) {
    /* Hero Section */
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* Navbar */
    .navbar-dark .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-dark .nav-link {
        font-size: 1rem;
    }

    /* Section Styles */
    .section {
        padding: 80px 20px;
    }

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

    /* Cards for Berufserfahrung and Ausbildung */
    .experience-item, .education-item {
        margin-bottom: 20px;
        padding: 20px;
        background-color: var(--light-bg);
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .experience-item:hover, .education-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .timeline {
        padding: 0;
    }

    .timeline-item {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    .timeline-item h3 {
        font-size: 1.3rem;
    }

    .timeline-item p, .timeline-item ul {
        font-size: 0.9rem;
    }

    /* About Section */
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-section img {
        margin-bottom: 20px;
    }

    /* Skills Section */
    .skills-section {
        padding: 60px 20px;
    }

    .skill h5 {
        font-size: 1rem;
    }

    .progress {
        height: 8px;
    }

    /* Contact Section */
    .contact-section {
        padding: 60px 20px;
    }

    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-section p {
        font-size: 1rem;
    }

    /* Footer */
    footer p {
        font-size: 0.9rem;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-item:nth-child(even)::before {
    left: -8px;
    right: auto;
}

.timeline-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    font-style: italic;
}

.timeline-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.timeline-item ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
}

.timeline-item ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
}

.timeline-item ul li::before {
    content: '\2022';
    color: var(--secondary-color); /* Puce dorée */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        margin-bottom: 40px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::before {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 576px) {
    .timeline::before {
        display: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 20px;
        margin-bottom: 20px;
    }

    .timeline-item::before {
        left: 15px;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Place les particules derrière le contenu */
}

@media (max-width: 576px) {

    #break {
        display: block; /* Le span se comportera comme un élément de bloc */
        margin-top: 0.5rem; /* Optionnel: Ajoute un espace entre les lignes */
    }

    #big{
        font-size: 1.5rem;
    }
   
    .about-section img {
        width: 50%;
        max-width: 100%;
        border-radius: 50%;
        margin-bottom: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transform: scale(1);
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }
    
    .about-section img:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
    
    .col-lg-8 p{
        font-size: 1rem;
    }
    
    .about-section h2 {
        color: var(--primary-color);
        margin-bottom: 20px;
        font-size: 2rem;
        background: linear-gradient(to right, #ffffff, var(--accent-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    footer .container p{
        font-size: 0.7rem;
    }
}

/* Global Adjustments for Smaller Devices */
@media (max-width: 576px) {
    body, html {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Défilement fluide sur iOS */
    }

    /* Navbar adjustments */
    .navbar {
        padding: 8px 15px;
        width: 100%;
        padding-right: 70%;
    }

    .navbar-brand {
        font-size: 1.8rem;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .navbar-nav li {
        margin-bottom: 10px;
    }

    /* Hero Section adjustments */
    .hero-section {
        width: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 50px 15px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-section .btn {
        font-size: 1rem;
        padding: 0.7rem 2rem;
    }
}