* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(200deg, #2b004e, #00b7ff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 200px);
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.text {
    color: white;
}

.text h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.text h2 {
    font-size: 2em;
}

.image img {
    max-width: 300px;   
}

.image {
    transition: 0.3s;
}

.info-cards, .tokhub, .powder, .betterimage, .cryptobot, .site, .libft{
    display: flex;
    justify-content: space-between;
    width: calc(100% - 200px);
    max-width: 1200px;
    margin-top: 20px;
}

.card, .card2, .personnalProject, .schoolprojects, .tokhub, .powder, .betterimage, .cryptobot, .site, .libft{
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    width: calc(50% - 10px);
    text-align: center;
    color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    color: white;
    text-decoration: none;
}

.infos{
    background-color: rgb(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    max-width: 1200px;
    text-align: justify;
    width: calc(100% - 200px);
    color: rgb(255, 255, 255);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    margin-bottom: 20px;
    transition: 0.3s;
    max-height: 270px;
    overflow-y: auto;
}

.personnalProject, .schoolprojects{
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    max-width: 1200px;
    width: calc(100% - 200px);
    text-align: center;
    color: rgb(255, 255, 255);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    transition: 0.3s;
    max-height: 270px;
    overflow-y: auto;
}

.personnalProject::-webkit-scrollbar, .schoolprojects::-webkit-scrollbar, body::-webkit-scrollbar, .infos::-webkit-scrollbar{
    width: 0px;
    background-color: transparent;
}

.personnalProject{
    margin-bottom: 50px;
}

.projects-container1, .projects-container2{
    display: flex;
    flex-direction: row;
}

.tokhub, .powder, .betterimage, .cryptobot, .site, .libft{
    display: flex;
    flex-direction: column;
    width: calc(33% - 10px);
    text-align: center;
    transition : 0.3s
}

.tokhub, .powder, .cryptobot, .betterimage{
    margin-right: 20px;
}


.card{
    margin-right: 10px;
}

.tokhub a, .powder a, .betterimage a, .cryptobot a, .site a, .libft a{
    color: white;
    text-decoration: none;
}

.container:hover, .infos:hover, .card:hover, .card2:hover, .libft:hover, .tokhub:hover, .powder:hover, .personnalProject:hover, .schoolprojects:hover, .betterimage:hover, .cryptobot:hover, .site:hover {
    background-color: rgb(255,255,255,0.18);
    transition: background-color 0.42s;
    box-shadow: 10px 40px 100px rgba(0, 0, 0, 0.3);
    transform: scaleX(1.003) translateY(-3px);
    transition: 0.3s;
}

.image:hover{
    transform: scaleX(1.01) scaleY(1.01) translateY(-3px);
    transition: 0.3s;
}

@media (min-width: 1000px) {
    .card:hover, .card2:hover{
        width: calc(50% + 180px);
        box-shadow: 10px 40px 100px rgba(0, 0, 0, 0.30);
        transition: 0.3s;
    }

    .card2{
        margin-left: 10px;
    }
}

.card h3, .card2 h3{
    font-size: 1.52em;
    margin-bottom: 10px;
}

.card p, .card2 p{
    font-size: 1.2em;
}

.social-link {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.social-link a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

.icon {
    width: 30px;
    margin-right: 10px;
    transition : opacity 0.2s;
}

.icon:hover {
    opacity: 0.6;
    transition : opacity 0.2s;
}

@media (max-width: 1000px) {
    .container {
        flex-direction: column;
        text-align: center;
        width: calc(100% - 42px);
        margin-top: 21px;
    }

    .info-cards{
        flex-direction: column;
        width: calc(100% - 42px);
    }

    .card, .card2{
        width: 100%;
    }

    .card{
        margin-bottom: 20px;
    }

    .infos, .personnalProject, .schoolprojects{
        width: calc(100% - 42px);
        margin-bottom: 21px;
    }

    .projects-container1, .projects-container2{
        flex-direction: column;
    }

    .tokhub, .powder, .betterimage, .cryptobot, .site, .libft{
        width: calc(100%);
        margin-bottom: 21px;
    }

    .image {
        order: 2;
    }

    .text {
        order: 1;
    }
}
