/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

h1, h2, h3 {
    color: #a1a1a1;
}
/* Style des titres de section */
h2 {
    font-weight: bold; /* Met en gras */
    color: #616161; /* Change la couleur en noir */
    text-decoration: underline; /* Souligne */
}
p {
    color: #666;
}

/* Header */
header {
    background-color: #282c34;
    color: #a1a1a1;
    text-align: center;
    padding: 50px 20px;
}

    header nav ul {
        list-style-type: none;
        padding: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

        header nav ul li {
            margin: 10px 15px;
        }

            header nav ul li a {
                color: #a1a1a1;
                text-decoration: none;
                font-weight: bold;
                transition: color 0.3s, transform 0.3s;
            }

                header nav ul li a:hover {
                    color: #ff6b6b; /* Juicy hover color */
                    transform: scale(1.1);
                }

/* About Section */
#about {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
}

    #about p {
        max-width: 90%;
        margin: 0 auto;
        line-height: 1.6;
    }

@media (min-width: 768px) {
    #about p {
        max-width: 600px;
    }
}

/* Featured Projects Section */
#featured-project {
    text-align: center;
    margin: 50px auto;
}
#featured-project .project {
    display: inline-block;
    max-width: 800px;
    text-align: center;
}
#featured-project img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
}

/* Projects Section */
#projects {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.project-grid {
    display: flex;
    justify-content: center;
    gap: 20px; /* Maintain consistent gap between project panels */
    flex-wrap: wrap;
}

.project {
    background-color: white;
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 300px;
    margin: 12px; 
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center; 
}

    .project:hover {
        transform: translateY(-10px);
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    }

    .project img {
        width: 100%;
        height: 200px; 
        object-fit: cover;
        border-radius: 10px;
    }

    .project h3 {
        margin: 10px 0;
        font-size: 1.2em;
        color: #a1a1a1;
    }

    .project p {
        margin: 5px 0;
        font-size: 0.9em;
        line-height: 1.5;
    }

    .project ul {
        padding: 0; 
        list-style-type: none; /* Removes bullet points */
    }

        .project ul li {
            text-align: center; /* Centers each list item */
            margin: 5px 0; /* Adds spacing between items */
        }

.project-link {
    display: inline-block;
    text-decoration: none; 
    color: inherit;
}

    /* Ensure the hover effect applies to the project card */
    .project-link .project {
        cursor: pointer; /* Pointer cursor to indicate clickability */
    }

        .project-link .project:hover {
            transform: translateY(-10px);
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        }

    /* Ensure the hover effect applies to the project card */
    .project-link .project {
        cursor: pointer; /* Pointer cursor to indicate clickability */
    }

        .project-link .project:hover {
            transform: translateY(-10px);
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        }

/* Project Detail Styles */
.project-detail {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Centers the project detail */
    max-width: 800px; /* Limits the width for readability */
}

    .project-detail h2 {
        color: #333; /* Darker color for project titles */
    }

    .project-detail img {
        width: 100%; /* Responsive images */
        border-radius: 10px;
    }

.project-description {
    margin: 20px 0; /* Margin around project description */
    line-height: 1.6; /* Improves readability */
}

.feature {
    background-color: #f9f9f9; /* Light background for features */
    padding: 10px;
    border-left: 5px solid #ff6b6b; /* Highlighting the feature */
    margin: 10px 0; /* Spacing between features */
}

.footer {
    text-align: center; /* Centers text in the footer */
    padding: 10px 0;
    background: #282c34; /* Dark footer */
    color: #a1a1a1; /* Light footer text */
}

/* Color Coding for Skills */
.code-skill {
    background-color: #ff6b6b; /* Red for Coding Languages */
    color: #fff; /* White text for contrast */
    font-weight: bold;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
}

.editor-skill {
    background-color: #4da8da; /* Blue for Editors */
    color: #fff; /* White text for contrast */
    font-weight: bold;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
}

.asset-skill {
    background-color: #4caf50; /* Green for Asset Creation Software */
    color: #fff; /* White text for contrast */
    font-weight: bold;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
}

/* Skills Section */
#skills {
    padding: 50px 20px;
    background-color: #f0f0f0;
    text-align: center;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.skills-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 300px;
}

    .skills-section h3 {
        margin-bottom: 15px;
        color: #333;
    }

    .skills-section ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .skills-section li {
        padding: 8px;
        border-radius: 5px;
        margin-bottom: 10px;
        color: #ffffff;
        font-weight: bold;
        transition: transform 0.3s, box-shadow 0.3s;
    }

        .skills-section li:hover {
            transform: translateY(-5px);
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
        }

/* Colors for Hard Skills */
.code-skill {
    background-color: #ff6b6b; /* Red for Coding Languages */
}

.editor-skill {
    background-color: #4da8da; /* Blue for Editors */
}

.asset-skill {
    background-color: #4caf50; /* Green for Asset Creation Software */
}

.tool-skill {
    background-color: #ffa726; /* Orange for Tools like Office Suite */
}

/* Soft Skills */
.soft-skills li {
    background-color: #b0bec5; /* Light Grey for Soft Skills */
    color: #333;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .skills-section {
        max-width: 100%;
    }
}
