body {
    margin: 0;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    font-family: 'JetBrains Mono', monospace !important;
    line-height: 2 !important;
    font-size: 18px !important;
}


.code-block {
    background: #0d1117;
    color: #ffffff;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    width: 80%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.code-block pre {
    margin: 0;
    white-space: pre;
}

code {
    display: block;
}

.keyword {
    color: #ff7b72;
    font-weight: bold;

}

.function {
    color: #7ee787;
}

.string {
    color: #a5d6ff;
}

.comment {
    color: #8b949e;
}

.operator {
    color: #ff7b72;
}

.hr > hr {
    width: 50%;
}

.hr {
    place-items: center;
}

nav li {
    border-right: solid black 0.15rem;
    padding: 1rem;
}

#linkedin {
    border-right: none;
}

span {
    font-size: large;
}

.navbar-brand {
    margin-left: 1rem;
}

#logo-round {
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


main {
    margin: 5rem 0;

}

#first-section {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 2fr 0.5fr;
    align-items: center;
    gap: 3rem;
    margin: 3rem auto;
}

table {
    margin: 5rem auto;
    width: 60%;
    text-align: center;
    border: 0.5rem double transparent;
    border-radius: 1rem;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
    background-color: #f0f4f8;
}

table caption {
    text-align: center;
    caption-side: top;
}

tr {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 2rem;
    margin: 1rem 0;
    padding: 1.5rem;
}

table th, td {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 1rem;
    padding: 1rem;
}

table th {
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
}

table td {
    border-bottom: 0.2rem solid black;
}

#db {
    grid-column: span 2;
}

#db-text {
    background-color: #d69e2e;
}

#front-end {
    background-color: #4CAF50;
}

#back-end {
    background-color: #2196F3;
}

#langages {
    background-color: #FF9800;
}

#frameworks {
    background-color: #805ad5;
}


section {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.code-block {
    align-self: center;
}

section > h1 {
    align-self: flex-start;
}

#moi img {
    width: 100%;
    border-radius: 50%;
    transform-style: preserve-3d;
    perspective: 1000px;

    animation: floatRotate 6s ease-in-out infinite;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.4);

    transition: all 0.3s ease;
}


#buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem auto;
}

.main-button {
    width: 16%;
    font-weight: normal;
    font-size: 1.5rem;
    padding: 3rem;
    border-style: none;
    border-radius: 50%;
    box-shadow: 5px 5px 5px;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: floatRotate 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

.main-button a {
    text-decoration: none;
    color: black;
}


.main-button:hover {
    border-style: double;
    border-color: #007bff;
    border-width: 0.3rem;
    animation: borderMove 1s infinite linear;
    background-color: white !important;
    cursor: pointer;
    transform: scale(1.2);
    font-weight: bolder;
    font-size: 1.5rem;
    color: #3498db;

    a {
        color: #3498db;
    }

}


#line {
    text-align: center;
}


@keyframes floatRotate {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    25% {
        transform: translateY(-10px) rotateX(5deg) rotateY(15deg);
    }

    50% {
        transform: translateY(-5px) rotateX(-2deg) rotateY(0deg);
    }

    75% {
        transform: translateY(-15px) rotateX(3deg) rotateY(-15deg);
    }
}

@keyframes borderMove {
    0% {
        border-color: #007bff;
    }

    25% {
        border-color: #28a745;
    }

    50% {
        border-color: #ffc107;
    }

    75% {
        border-color: #dc3545;
    }

    100% {
        border-color: #007bff;
    }
}


footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.footer-item p {
    font-size: 1.5rem;
}

.footer-item a {
    font-size: 1.5rem;
}


@media screen and (max-width: 768px) {
    #first-section {
        display: flex;
        flex-direction: column;
    }

    #moi {
        width: 45%;
    }

    section {
        width: 80%;
    }


    #buttons {
        flex-direction: column;
        gap: 2rem;

    }

    .main-button {
        padding: 1rem;
        width: 75%;
    }

    nav li {
        border-right: none;
        border-bottom: solid black 0.15rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 992px) {

    #first-section {
        grid-template-columns: 0.1fr 1fr 2fr 0.1fr;
        gap: 2rem;
    }

    #buttons {
        justify-content: space-around;
    }

    .main-button {

        padding: 1.5rem;
    }

    table {
        width: 85%;

    }
}