@import url(navbar.css);

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --strong-dark-blue: #171826;
    --very-dark-blue: #24263A;
    --dark-blue: #45496A;
    --text-color: #a8baf0;
    --text-strong-color: #656fc7;
    --light-red: #E5857B;
    --very-light-red: #F1B2B2;
    --light-salmon: #bf978f;
    --light-smoke: #f5f5f5;
    --gray: #737373;

    --text-font-size: calc(0.6vw + 1.4vh);
    --texttitle-font-size: calc(1.7vw + 1.8vh);
    --textsubtitle-font-size: calc(1.5vw + 1.6vh);
    --smalltitle-font-size: calc(0.9vw + 1.7vh);
    --smalltext-font-size: calc(0.6vw + 0.9vh);
    --tags-font-size: calc(0.5vw + 0.7vh);
    --home-name-font-size: calc(0.9vw + 3.1vh);
    --text-presentation-font-size: calc(0.9vw + 1.6vh);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--very-dark-blue);
    color: var(--text-color);
    font-size: var(--text-font-size);
    min-height: 100vh;
}

.important-moment {
    font-weight: bold;
    color: var(--text-strong-color);
}

.popup {
    user-select: none;
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: FadeIn 0.3s 1;
}
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes FadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes reverseFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.title, .subtitle {
    margin-bottom: 3rem;
    font-size: var(--texttitle-font-size);
    margin-left: 2em;
    margin-top: 2em;
}

.subtitle {
    font-size: var(--textsubtitle-font-size);
    margin-top: 1em;
}

/* A transfert */
#about-presentation-text {
    font-size: var(--text-presentation-font-size);
    text-align: justify;
}

.about-container, .skills-container {
    width: 80%;
    margin: 0 auto;
    border-radius: 0.5rem;
    background-color: var(--dark-blue);
    padding: 2rem;
}

.about-links-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
    gap: 60px;
}

.about-links-container .btn {
    padding: 10px 65px 10px 65px;
    background-color: var(--strong-dark-blue);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px var(--text-color) solid;
    transition: 0.2s;
}

.about-links-container .btn:hover {
    border-color: var(--light-red);
    background-color: var(--light-smoke);
    color: var(--light-red)
}

.about-links-container .btn-img {
    height: 60px;
    transition: 0.2s;
}

.btn-img:hover path {
    fill: var(--light-red);
    transition: 0.2s;
}


.skills-container {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 50px;
}

.gauge {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-smoke);
    border: var(--strong-dark-blue) 4px solid;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.wave::before {
    content: "";
    position: absolute;
    left: 0;
    top: -37px;
    width: 100%;
    height: 100px;
    background-position: center;
    background-size: 75px 25px;
    animation: wave 4s linear infinite;
    transition: all 1.2s linear;
}

/* Animation des vagues */
@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 143px;
    }
}

/* Couleurs et hauteurs personnalisées pour chaque gauge */
.gauge[data-percentage="55%"] .wave {
    background: var(--light-red);
    height: 55%;
}
.gauge[data-percentage="10%"] .wave {
    background: #5cd05c; 
    height: 10%;
}
.gauge[data-percentage="55%"] .wave::before {
    background: url('/images/waves/wave-red.svg');
    background-repeat: repeat-x;
}
.gauge[data-percentage="10%"] .wave::before {
    background: url('/images/waves/wave-green.svg');
    /* background-repeat: repeat-x; */
}

.percentage {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: var(--strong-dark-blue);
}

.skill-logo {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
}



/* @media (max-width: 1970px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1140px) {
    .skills-container {
        grid-template-columns: repeat(1, 1fr);
        margin: 1rem 1rem 1rem 1rem;
    }
} */