section.project {
    background-color: var(--bg);
    padding: 50px 20px 0;
    text-align: center;

    h2 {
        font-size: 2.5em;
        margin-bottom: 30px;
        color: var(--nav-after);
    }

    .projects-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        color: var(--bg-lighter);

        overflow-y: scroll;
        padding-bottom: 50px;
        margin-top: 60px;

        .project-card {
            position: relative;
            margin-top: 125px;

            .content {
                position: relative;

                background-color: var(--bg);
                border-radius: 10px;
                padding: 20px;
                width: 300px;
                min-height: 200px;
                text-align: left;
                transition: transform 0.3s ease, box-shadow 0.3s ease;

                display: flex;
                flex-direction: column;

                z-index: 101;
        
                h3 {
                    font-size: 1.5em;
                    margin-bottom: 10px;
                    color: var(--nav-after);
                }
        
                p {
                    font-size: 1em;
                    margin-bottom: 15px;
                }
        
                a.btn {
                    width: 25px;
                    height: 25px;
                    color: var(--nav-after);
                    border-radius: 5px;
                    text-decoration: none;
                    transition: background-color 0.3s ease;

                    margin-top: 10px;

                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    align-self: end;

                    &:hover {
                        background-color: #d4af37;
                        color: white;
                    }
                }

                a.btn.reverse {
                    transform: rotateZ(-45deg);
                    margin-top: 0;
                }
        
                &:hover {
                    transform: translateY(-3px);
                    /*box-shadow: 7px 7px 17px var(--shadow);*/
                }

                .project-links {
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                }
            }

            .slider {
                position: absolute;
                display: flex;
                flex-direction: row;

                z-index: 100;

                width: 80%;
                height: 190px;

                left: 10%;

                transform: translateY(-65%);

                background-color: rgba(0, 0, 0, 0.2);

                border-top-left-radius: 15px;
                border-top-right-radius: 15px;

                img {
                    position: absolute;
                    display: none;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;

                    border-top-left-radius: 15px;
                    border-top-right-radius: 15px;
                }

                img.show {
                    display: block;
                }

                .left-slide {
                    content: ' ';
                    position: inherit;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    width: 25px;
                    height: 25px;
                    background-color: var(--bg);
                    border-radius: 50%;
                    left: 5px;
                    transform: translateY(-100%);
                    z-index: 101;
                    cursor: pointer;
                    align-self: center;
                }

                .right-slide {
                    content: ' ';
                    position: inherit;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    
                    width: 25px;
                    height: 25px;
                    background-color: var(--bg);
                    border-radius: 50%;
                    right: 5px;
                    transform: translateY(-100%);
                    z-index: 101;
                    cursor: pointer;
                    align-self: center;
                }
            }
        }
    }
}

.techno {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;

    span {
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.8em;
    }

    .HTML { border: solid 1px #e34c26; }
    .CSS { border: solid 1px #264de4; }
    .JS { border: solid 1px #f0db4f; }
    .PHP { border: solid 1px #8892be; }
    .SQL { border: solid 1px #4479a1; }
    .REACT { border: solid 1px #61dafb; }
    .NODE { border: solid 1px #68a063; }
    .MONGO { border: solid 1px #4db33d; }
    .GIT { border: solid 1px #f34f29; }
    .SASS { border: solid 1px #c69; }
    .BOOTSTRAP { border: solid 1px #563d7c; }
    .WORDPRESS { border: solid 1px #21759b; }
    .PHOTOSHOP { border: solid 1px #31a8ff; }
    .ILLUSTRATOR { border: solid 1px #ff7f00; }
    .XD { border: solid 1px #ff61f6; }
    .FIGMA { border: solid 1px #0acf83; }
    .CPP { border: solid 1px #00599c; }
    .JAVA { border: solid 1px #007396; }
    .PYTHON { border: solid 1px #306998; }
    .CSHARP { border: solid 1px #68217a; }
    .UNITY { border: solid 1px #000000; }
    .BLENDER { border: solid 1px #f5792a; }
    .GIMP { border: solid 1px #5c5543; }
    .INKSCAPE { border: solid 1px #000000; }
    .FLUTTER { border: solid 1px #02569b; }
    .DART { border: solid 1px #0175c2; }
    .FIREBASE { border: solid 1px #ffca28; }
    .HEROKU { border: solid 1px #6762a6; }
    .DOTNET { border: solid 1px #512bd4; }
    .JQUERY { border: solid 1px #0868ac; }
    .ANGULAR { border: solid 1px #dd0031; }
    .VUE { border: solid 1px #42b883; }
    .LARAVEL { border: solid 1px #ff2d20; }
    .SYMFONY { border: solid 1px #111111; }
    .EXPRESS { border: solid 1px #404040; }
    .SOCKETIO { border: solid 1px #010101; }
    .MYSQL { border: solid 1px #4479a1; }
    .POSTGRESQL { border: solid 1px #336791; }
    .SQLITE { border: solid 1px #003b57; }
    .C { border: solid 1px #a8b9cc; }
    .ASSEMBLY { border: solid 1px #808080; }
    .BASH { border: solid 1px #4eaa25; }
    .DOCKER { border: solid 1px #2496ed; }
    .KUBERNETES { border: solid 1px #326ce5; }
    .JENKINS { border: solid 1px #d24939; }
    .ANSIBLE { border: solid 1px #ee0000; }
    .TERRAFORM { border: solid 1px #623ce4; }
    .PUPPET { border: solid 1px #302b6d; }
    .CHEF { border: solid 1px #f14f2e; }
    .SALTSTACK { border: solid 1px #d79a23; }
    .PROMETHEUS { border: solid 1px #e6522c; }
    .GRAFANA { border: solid 1px #f46800; }
    .ELK { border: solid 1px #005571; }
    .NAGIOS { border: solid 1px #cc0000; }
    .ZABBIX { border: solid 1px #ff0000; }
    .GITLAB { border: solid 1px #fc6d26; }
    .GITHUB { border: solid 1px #181717; }
    .BITBUCKET { border: solid 1px #0052cc; }
    .JIRA { border: solid 1px #0052cc; }
    .CONFLUENCE { border: solid 1px #172b4d; }
    .TRELLO { border: solid 1px #0079bf; }
    .KOTLIN { border: solid 1px #0095d5; }
    .SWIFT { border: solid 1px #ffac45; }
    .OBJECTIVEC { border: solid 1px #686868; }
    .RUBY { border: solid 1px #cc342d; }
    .RAILS { border: solid 1px #cc0000; }
    .GO { border: solid 1px #00add8; }
    .RUST { border: solid 1px #dea584; }
    .HASKELL { border: solid 1px #5e5086; }
    .SCALA { border: solid 1px #c22d40; }
    .CLOJURE { border: solid 1px #5881d8; }
    .ELIXIR { border: solid 1px #6e4a7e; }
    .ERLANG { border: solid 1px #a90533; }
    .LUA { border: solid 1px #000080; }
    .PERL { border: solid 1px #39457e; }
    .R { border: solid 1px #276dc3; }
    .TYPESCRIPT { border: solid 1px #007acc; }
    .SHELL { border: solid 1px #89e051; }
    .POWERSHELL { border: solid 1px #012456; }
    .COBOL { border: solid 1px #005f9e; }
    .BASIC { border: solid 1px #ff4500; }
    .FORTRAN { border: solid 1px #4d41b1; }
    .LINUX { border: solid 1px #f5a442; }
    .WINDOWS { border: solid 1px #0078d7; }
    .MACOS { border: solid 1px #6e6e6e; }
    .ANDROID { border: solid 1px #3ddc84; }
    .IOS { border: solid 1px #888888; }
    .ECLIPSE { border: solid 1px #2c2255; }
    .VSCODE { border: solid 1px #0078d7; }
    .INTELLIJ { border: solid 1px #000080; }
    .NETBEANS { border: solid 1px #1b6ac6; }
    .SUBLIME { border: solid 1px #ff9800; }
    .ATOM { border: solid 1px #66595c; }
    .VIM { border: solid 1px #019733; }
    .EMACS { border: solid 1px #7f5ab6; }
    .BRACKETS { border: solid 1px #3389de; }
    .WEBSTORM { border: solid 1px #000080; }
    .PYCHARM { border: solid 1px #4caf50; }
    .PHPSTORM { border: solid 1px #8892be; }
    .RUBYMINE { border: solid 1px #cc342d; }
    .CLION { border: solid 1px #00599c; }
    .RIDER { border: solid 1px #68217a; }
    .APPCODE { border: solid 1px #888888; }
    .GOLAND { border: solid 1px #00add8; }
    .DATAGRIP { border: solid 1px #512bd4; }
    .ANDROIDSTUDIO { border: solid 1px #3ddc84; }
    .XCODE { border: solid 1px #147efb; }
    .VISUALSTUDIO { border: solid 1px #68217a; }
    .VIRTUALBOX { border: solid 1px #183a61; }
    .VMWARE { border: solid 1px #607078; }
    .PUTTY { border: solid 1px #000080; }
    .WINSCP { border: solid 1px #4e9a06; }
    .FILEZILLA { border: solid 1px #bf0000; }
    .SSH { border: solid 1px #d0d0d0; }
}

div.info-projet {
    background-color: var(--bg);
    border-radius: 10000px;
    width: 0;
    height: 0;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

div.info-projet.active {
    border-radius: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 1;
    padding: 0;
    overflow-y: auto;
}

div.info-projet .project-details {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 50px;
    box-sizing: border-box;
    gap: 50px;
    color: white;
}

div.info-projet .images-preview {
    width: 100%;
    height: 40dvh;
    display: flex;
    scroll-snap-type: x mandatory;
}

div.info-projet .images-preview img {
    flex: 0 0 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

div.info-projet .project-main {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

div.info-projet .project-main h2 {
    font-size: 2.5em;
    color: var(--nav-after);
}

div.info-projet .project-main .description {
    font-size: 1em;
    /*text-align: justify;*/
    color: white;

    width: 75%;
    white-space: preserve;
}

div.info-projet .competence-list {
    /*flex: 1;*/
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
}

div.info-projet .project-info {
    /*flex: 1;*/
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

div.info-projet .competence-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

div.info-projet .competence-list li {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: var(--bg-lighter);
    color: black;
    font-size: 0.9em;
    border: 1px solid var(--nav-after);
    width: fit-content;
}

div.info-projet .techno {
    flex-direction: row;
    flex-wrap: wrap;

    justify-content: center;
    align-items: center;

    height: fit-content;
    margin: auto 0;
}

div.info-projet .close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: var(--nav-after);
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s ease;
}

.noscroll {
    overflow: hidden;
}

@media screen and (max-width: 1400px) {
    .project-card {
        margin-top: 0;
    }

    .project-card .content {
        width: 90%;
        min-height: 150px;
    }

    div.info-projet .project-details {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    div.info-projet .project-main .description {
        width: 100%;
    }
    
}