body{
    margin:0;
    background-color: #28283b;
    overflow-x: hidden;
}


.title{
    margin: 80px;

}
h1{
    margin-top: 100px ;

    font-family: 'Lilita One', cursive;
    font-size: 4rem;
    letter-spacing: 4px;
    color: white;
    margin-bottom: -30px;
}
.sous-titre{
    display: flex;
}
h2{
    font-family: 'Lilita One', cursive;
    color: #8AB9F1;
    font-size: 2.5rem;
}
.title-separator{
    color: white;
    padding: 4px;

}

#home{
    color : white;
}

nav {
    margin-top: 20px;
    width: 80vw;
    margin-left: 10vw;
    height: 80px;
    border-radius: 20px;
    background: #212132;
    box-shadow:  40px 20px 60px #1c1c2b,
    -40px -20px 60px #2d2d44;

    display: flex;
    justify-content: space-around;
    align-items: center;
}


nav button{
    font-family: Arial,sans-serif;
    font-weight:500;
    background-color: transparent;
    font-size: 1rem;
    color: #424264;
    border: none;
    padding-bottom: 40px;
    padding-top: 40px;
    transition-duration: 0.4s;
}

 #Contact:hover{
    color:#8AB9F1;
    border-bottom: 1px solid white;
     padding-top: 20px;
}

#Project:hover{
    color:#8AB9F1;
    border-bottom: 1px solid white;
    padding-top: 20px;
}

.button {
    --width: 100px;
    --height: 35px;
    --tooltip-height: 35px;
    --tooltip-width: 90px;
    --gap-between-tooltip-to-button: 18px;
    --button-color: #424264;
    --tooltip-color: #fff;
    width: var(--width);
    height: var(--height);
    background: var(--button-color);
    position: relative;
    text-align: center;
    border-radius: 0.45em;
    font-family: "Arial";
    transition: background 0.3s;
}

.button::before {
    position: absolute;
    content: attr(data-tooltip);
    width: var(--tooltip-width);
    height: var(--tooltip-height);
    background-color: var(--tooltip-color);
    font-size: 0.9rem;
    color: #111;
    border-radius: .25em;
    line-height: var(--tooltip-height);
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
    left: calc(50% - var(--tooltip-width) / 2);
}

.button::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: var(--tooltip-color);
    left: calc(50% - 10px);
    bottom: calc(100% + var(--gap-between-tooltip-to-button) - 10px);
}

.button::after,.button::before {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrapper,.text,.icon {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    color: #fff;
}

.text {
    top: 0
}

.text,.icon {
    transition: top 0.5s;
}

.icon {
    color: #fff;
    top: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 24px;
    height: 24px;
}

.button:hover {
    background: #6c18ff;
}

.button:hover .text {
    top: -100%;
}

.button:hover .icon {
    top: 0;
}

.button:hover:before,.button:hover:after {
    opacity: 0;
    visibility: visible;
}

.button:hover:after {
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.button:hover:before {
    bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}

.cti {
    background-color: #424264;
    padding: 17px 30px;
    border: 3px solid transparent;
    border-radius: 0.6em;
    transition: 0.2s;
}

.cti:hover {
    background-color: transparent;
    border: 3px solid #424264;
    box-shadow: 0px 0px 27px 5px #424264;
}

.CTI {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 17px;
    font-weight: bold;
    overflow: hidden;
    border-right: 4px solid transparent;
    white-space: nowrap;
    margin: 0 auto;
}

.cti:hover .CTI {
    border-right: 4px solid #424264;
    animation: letters 1.75s steps(22, end),
    cursor .4s step-end infinite;
}

@keyframes letters {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes cursor {
    from {
        border-color: transparent
    }

    50% {
        border-color: #8AB9F1;
    }
}


.social-buttons {
    display: flex;
    position: absolute;
    top: 500px;
    right: 100px;
    width: 380px;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    box-shadow: 0px 0px 15px #00000027;
   padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5em;
}

.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    background-color: #fff;
    box-shadow: 0px 0px 4px #00000027;
    transition: 0.3s;
}

.social-button:hover {
    background-color: #f2f2f2;
    box-shadow: 0px 0px 6px 3px #00000027;
}

.social-buttons svg {
    transition: 0.3s;
    height: 20px;
}

.facebook {
    background-color: #3b5998;
}

.facebook svg {
    fill: #f2f2f2;
}

.facebook:hover svg {
    fill: #3b5998;
}

.github {
    background-color: #333;
}

.github svg {
    width: 25px;
    height: 25px;
    fill: #f2f2f2;
}

.github:hover svg {
    fill: #333;
}

.linkedin {
    background-color: #0077b5;
}

.linkedin svg {
    fill: #f2f2f2;
}

.linkedin:hover svg {
    fill: #0077b5;
}

.instagram {
    background-color: #c13584;
}

.instagram svg {
    fill: #f2f2f2;
}

.instagram:hover svg {
    fill: #c13584;
}

.card {
    font-family: 'Roboto',sans-serif;
    font-weight: 100;
    width: 190px;
    height: 254px;
    border-radius: 20px;
    background: #212132;
    position: relative;
    padding: 1.8rem;
    border: 2px solid #2d2d44;
    transition: 0.5s ease-out;
    overflow: visible;
}

.card-details {
    color: #fff;
    height: 100%;
    gap: .5em;
    display: grid;
    place-content: center;
}

.card-button {
    transform: translate(-50%, 125%);
    width: 60%;
    border-radius: 1rem;
    border: none;
    background-color: #8AB9F1;
    color: #fff;
    font-size: 1rem;
    padding: .5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: 0.3s ease-out;
}

.text-body {
    color: rgba(138, 185, 241, 0.49);
}

/*Text*/
.text-title {
    font-size: 1.5em;
    font-weight: bold;
}

/*Hover*/
.card:hover {
    border-color: #8AB9F1;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.card:hover .card-button {
    transform: translate(-50%, 50%);
    opacity: 1;
}


.comp-contain{
    margin-top: 50px;
    display: flex;
    justify-content: space-evenly;

}
.comp-title{
    margin-top: 350px;
    margin-left:70px ;
}



.exp-title{
    color: #8AB9F1;
    margin-top: 150px;
    margin-left:70px ;
    margin-bottom: 100px;
}
.exp-contain{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    width: 100vw;

}
.exp-card{
    justify-self: center;
    justify-content: space-evenly;
    width: 400px;
    position: relative;
    height: 120px;
    background-color: #2d2d44;
    display: flex;
    border-radius: 10px;
    margin-bottom: 100px;
}
.exp-photo {
    position: absolute;
    left: 10px;
    top: 10px;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.25);
}
.exp-card-title{
    width: 400px;
    font-size: 1rem;
    color: white;
    font-family: "Roboto",sans-serif;
    position: absolute;
    top: -40px;
}

.exp-desc{
    font-family: "Roboto",sans-serif ;
    width: 200px;
    font-weight: 400;
    color: rgba(138, 185, 241, 0.49);
    position: absolute;
    height: 100px;
    top: 10px;
    right: 20px;
}
.exp-card svg{
    position: absolute;
    top:20px;
    left: 20px;
}


.contact-form {
    font-family: Roboto,sans-serif;

    margin-top: 100px;
    background-color: #424264;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
}

.contact-form label {
    color: white;
}

.contact-form .heading {
    font-size: 24px;
    color: #8AB9F1;
;
    margin-bottom: 12px;
    font-weight: bold;
    display: block;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 10px;
}

textarea {
    resize: none;
    height: 80px;
    width: 200px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 5px #ff6384;
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}



.contact-form button[type="submit"]:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}
.cont-contain{
    width: 100vw;
    display: flex;
    justify-content:center;
}
.svg-contact{
    position: absolute;
    bottom: -1900px;
    z-index: -1;
    left: 100px;
}


.cont-contain button {
    width: 130px;
    font-family: inherit;
    font-size: 20px;
    background: rgba(138, 185, 241, 0.49);
    color: white;
    margin-left: 85px;
    padding: 0.7em 1em;
    padding-left: 0.9em;
    display: flex;
    align-items: center;
    border: none;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.cont-contain button span {
    display: block;
    margin-left: 0.3em;
    transition: all 0.3s ease-in-out;
}

.cont-contain button svg {
    display: block;
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
}

.cont-contain button:hover .svg-wrapper {
    animation: fly-1 0.6s ease-in-out infinite alternate;
}

.cont-contain button:hover svg {
    transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

.cont-contain button:hover span {
    transform: translateX(5em);
}

.cont-contain button:active {
    transform: scale(0.95);
}

@keyframes fly-1 {
    from {
        transform: translateY(0.1em);
    }

    to {
        transform: translateY(-0.1em);
    }
}

.footer{
    opacity: 0.5;
    gap: 4px;
    height: 50px;
    background-color: transparent;
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items:center ;
    color: #424264;
    font-family: Roboto,sans-serif;
}


.footer img{
    height: 20px;
}


@media (max-width: 750px) {
    nav{
        width: 99vw;
        margin-left: .5vw;
    }
    .title h1{
        font-size: 40px;

    }
    .title h2{
        font-size: 30px;
    }
    .title{
        margin-left: 10px;
    }
    .social-buttons{
        left: 10px;
        width: 300px;
    }
    .comp-contain{
        display: grid;
        grid-template-columns: 1fr;
    }
    .card{
        justify-self: center;
        margin-bottom: 60px;
    }
    .exp-card{
        width: 350px;
    }
    .exp-card-title{
        left: 20px;
    }
    .exp-contain{
        grid-template-columns: 1fr;
    }
}
