@font-face {
    font-family: 'Soul Daisy';
    src: url('../fonts/soul-daisy.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

body {
    font-family: 'Soul Daisy', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

html,
body {
    overflow-x: hidden;
}

h1 {
    text-align: center;
}

a {
    text-decoration: none;
}

.presentation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.presentation h1 {
    font-size: 28px;

    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    display: inline-block;
    animation:
        typing 3.5s steps(30, end) forwards 0.01s,
        blink-caret 0.5s step-end infinite;
}

@keyframes typing {
    0% {
        width: 0;
        visibility: hidden;
    }

    1% {
        visibility: visible;
    }

    100% {
        width: 16ch;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: orange;
    }
}

.presentation h3 {
    color: rgb(138, 138, 138);
}

.about {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    width: 50%;
}

.left,
.right {

    width: 48%;
}

.left h2,
.right h2 {
    padding-top: 15px;
    padding-bottom: 5px;
}

.link {
    display: flex;
    justify-content: start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.box {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    border-radius: 50px;
    background-color: #f4f4f4;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #333;
}


.box:hover {
    transform: rotate(-10deg);
    background-color: #333;
    color: #fff;
}

.skill {
    display: flex;
    justify-content: start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.fact {
    padding: 5px 10px;
    border: 2px solid #333;
    border-radius: 50px;
    background-color: #f4f4f4;
    cursor: none;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    gap: 5px;
}

.fact:hover {
    background-color: #ddd;
}

.experience {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    flex-direction: column;

}

.job {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    text-decoration: none;
    color: #333;
    border: 2px solid #333;
    border-radius: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.job:hover {
    background-color: #ddd;
}

.job p {
    color: rgb(138, 138, 138);
}

.job u {
    color: #333;
    text-decoration: none;
}

.download-link {
    text-decoration: none;
    color: #333;
    position: relative;
    font-size: 1.2em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.download-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.download-link:hover {
    color: #2c3e50;
}

.download-link:hover::after {
    width: 100%;
}


.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 50px;
    padding: 5px 10px;
    background-color: #f4f4f4;
    color: #333;
    font-family: 'Soul Daisy', sans-serif;
    font-size: 1em;
    border: 2px solid #333;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cv-button i {
    font-size: 1.em;
}

.cv-button:hover {
    background-color: #333;
    color: #fff;
    transform: rotate(-5deg);
}


.perso {
    width: 300px;
    transition: transform 0.3s ease;
}

.perso:hover {
    transform: rotate(-10deg);
}

.me {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cursus {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 30px;
}

.cursus .polaroid:nth-child(odd) {
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 55px;
}

.cursus .polaroid:nth-child(even) {
    cursor: pointer;
    align-self: flex-end;
    margin-top: 55px;
}

.tools {
    overflow: hidden;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 50%;
}

.tool-details {
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.activities {
    position: relative;
    height: 500px;
    align-items: center;
    justify-content: center;
    margin-bottom: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 0 auto;
}

.elmt {
    position: relative;
    width: 100%;
    height: 500px;
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.contact {
    margin-top: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    gap: 20px;
    font-family: 'Soul Daisy', sans-serif;
}

.contact h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.contact p {
    font-size: 18px;
    color: #555;
}

.link {
    display: flex;
    gap: 15px;
}

.modal {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 250px;
    background: white;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transform: scale(0);
    transition: transform 0.3s ease-in-out;
}

.modal.show {
    transform: scale(1);
}

.modal-content {
    text-align: center;
}

.modal img {
    width: 100%;
    border-bottom: 10px solid white;
    border-radius: 10px;
}

.modal p {
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

.close-modal {
    background: red;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: block;
    margin: 10px auto 0;
    border-radius: 5px;
}

.contact-section {
    background-color: #fff;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
    font-family: 'Soul Daisy', sans-serif;
    text-align: center;
    font-size: 2.5em;
    font-weight: normal;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f39c12; 
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #333;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button[type="submit"]:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; 
}


/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        width: 80%;
    }
    .about {
        margin-bottom: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .info {
        padding: 10px;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;

    }

    .left,
    .right {
        width: 85%;
        margin-bottom: 20px;
        align-items: center;
        justify-content: center;

    }

    .left h2,
    .right h2 {
        padding-top: 15px;
        padding-bottom: 5px;
    }

    .tools {
        overflow: hidden;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
        width: 100%;
    }

    .activities {
        position: relative;
        width: 80%;
        height: 500px;
        align-items: center;
        justify-content: center;
        margin-bottom: 150px;
        margin-top: 150px;
    }

}