@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.tempo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 500px;
    height: auto;
    padding: 40px 20px;
    background-color: azure;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    border: 2px solid rgb(128, 0, 32);
    margin: 20px auto;
    text-align: center;
}

html{
    overflow-x: hidden;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(
        45deg,
        white 0%,
        white 26%,
        mistyrose 25%,
        mistyrose 60%,
        /* rgb(128 0 32) 60%, */
        rgb(128 0 32) 100%
    )
}

nav{
    width: 100%;
    height: 10vh;
    position: sticky;
}


.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo{
    color: black;
    font-size: 2rem;
    font-weight: bolder;
}

.logo span{
    color: rgb(128,0, 32);
    text-shadow: 0 0 10px red;
}

.hamburg, .cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: black;
    font-size: 2rem;
    display: none;
}

.nav-container .links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transform: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: red;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .contact-btn{
    background-color: transparent;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid rgb(255,228,225);
    transition: 0.2s linear;
}

/* .nav-container .btn-active {
    background-color: mistyrose;
    padding: 5px 20px;
    border: 2px solid red;
    border-radius: 20px;
    
} */

.nav-container .contact-btn a{
    color: white;
    transition: 0.3s linear;
}

.nav-container .contact-btn:hover, .nav-container .contact-btn:hover a{
    background-color: mistyrose;
    color: white;
}

.nav-container .links a:hover{
    color: black;
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: brightness(40%) blur(3px);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    color: white;
    display: flex;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: mistyrose;
}

section{
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .image{
    z-index: -1;
    width: 50%;
}


.main-container .image img{
    width: clamp(150px, 50%, 300px);
    height: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 30px;
    border: rgb(128,0, 32) solid;
    box-shadow: 0 0 20px;
}

.main-container .content{
    color: black;
    width: 40%;
    min-height: 100px;
    
}

.content h1{
    font-size: clamp(1, 2rem + 5vw, 3rem);
}

.content h1 span{
    color: rgb(128,0,32);
    text-shadow: 0 0 10px red;
}

.content .typewriter{
    font-weight: 600;
    font-size: clamp(1rem, 1rem + 5vw, 2rem);
}

.content .typewriter span{
    color: rgb(128,0,32);
    font-size: 2.5rem;
    text-shadow: 0 0 5px red;
    position: relative;
    transition: 0.3s linear;
}

.typewriter span::before{
    content: "Designer";
    animation: words 15s infinite;
}

.typewriter span::after{
    content: "|";
    position: absolute;
    right: -15px;
    color: rgb(128,0,32);
    font-weight: bold;
    animation: cursor 0.7s ease-in-out infinite;
}

@keyframes cursor {
    0%, 49% {
        opacity: 1;
        color: rgb(128,0,32);
    }
    50%, 100% {
        opacity: 0;
        color: rgb(128,0,32);
    }
}

@keyframes words {
    0%, 32%{
        content: "Developpeur";
    }
    33%, 65%{
        content: "Designer";
    }
    66%, 99%{
        content: "Polyvalent";
    }
}

.content p{
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color:transparent;
    border: 0.2rem solid rgb(128,0,32);
    border-radius: 50%;
    color:rgb(128,0,32);
    margin: 5px 10px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: mistyrose;
    background-color: rgb(128,0,32);
    filter: drop-shadow(0 0 10px red);
}

.content button{
    width: 40%;
    height: 6vh;
    margin: 30px;
    background-color: rgb(128,0,32);
    color: white;
    border: none;
    outline: none;
    font-size: 100%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}

.content button:hover{
 scale: 1.1;
 color: rgb(128,0, 32);
 filter:drop-shadow(0 0 10px red);
 background-color: mistyrose;
 font-weight: 700;
 box-shadow: 0 0 30px red;
}

@media (max-width:720px) {
    body{
        height: auto;
        padding-bottom: 20px;
    }

    section {
        min-height: auto;
        padding: 20px 10px;
    }

    nav .logo{
        position: absolute;
        top: 17px;
        left: 15px;
        font-size: 1.5rem;
    }

    .main-container{
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,.cancel{
        display: block;
    }

    .main-container .content{
        width: 90%;
        padding: 20px 10px;
    }

    .content button {
        width: 80%;
        height: auto;
        padding: 12px;
        margin: 20px auto;
    }

    .social-links i{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .cancel{
        color: red;
    }

    .main-container .image{
        width: 90%;
        margin-bottom: 20px;
    }

    .tempo {
        width: 90%;
        margin: 20px auto;
        padding: 30px 15px;
    }

    .tempo h3 {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }
}