*{
    margin: 0;
    scroll-behavior: smooth;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins',sans-serif;
}
:root{
    --primary:#0ef;
    --background:#081b29;
    --header:#051129;
    --text-primary:#ededed;
    --text-muted:#b1b8c7;
    --max-width:1100px;
}
body{
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px;
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px clamp(16px, 5vw, 80px);
    background-color: rgba(5, 17, 41, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.navbar{
    display: flex;
    align-items: center;
}
.logo{
    position: relative;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: RouleDroit 1s ease forwards;
}
.navbar a{
    display: inline-block;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0;
    margin-inline: clamp(6px, 1.5vw, 18px);
    transition: .3s ease;
    opacity: 0;
    animation: RouleHaut .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.navbar a:hover{
    color: #3ef;
}
.Home{
    position: relative;
    width: 100%;
    justify-content: space-between;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(8, 27, 41, 0.85), rgba(8, 27, 41, 0.95)), url(../img/TBC_P\ \(160\).jpg) center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: clamp(120px, 16vh, 160px) clamp(16px, 8vw, 120px) clamp(60px, 10vh, 120px);
}
.home-content{
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.home-content h3{
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: RouleBas 1s ease forwards;
    animation-delay: .7s;
}
.home-content h3:nth-of-type(2){
    margin: 8px 0 16px;
    animation: RouleHaut 1s ease forwards;
    animation-delay: .7s;
}
.home-content h3 span{
    color: #3ef;
}
.home-content h1{
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: RouleDroit 1s ease forwards;
    animation-delay: 1s;
}
.home-content p{
    font-size: clamp(16px, 3.2vw, 18px);
    font-weight: 400;
    opacity: 0;
    animation: RouleGauche 1s ease forwards;
    animation-delay: 1s;
    margin-bottom: 24px;
}
.home-content .bx-download{
    position: relative;
    top: 5px;
    margin-right: 8px;
    font-size: 25px;
    font-weight: 700;
}
.home-sci a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid #3ef;
    border-radius: 50%;
    font-size: 20px;
    color: #3ef;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: RouleGauche 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}
.home-sci a:hover{
    background-color: #3ef;
    color: #081b29;
    box-shadow: 0 0 20px #3ef;
}
.btn-box{
    display: inline-block;
    padding: 9px 20px;
    background: #3ef;
    border-radius: 40px;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: RouleHaut 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan
}
.btn-box:hover{
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan,0 0 50px cyan,
    0 0 100px cyan,0 0 200px cyan
}
.about{
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(2rem, 6vw, 4rem);
    padding: clamp(60px, 12vh, 120px) clamp(16px, 8vw, 120px);
}
.about-img .back{
    position: absolute;
    top: 24%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: min(420px, 65vw);
    aspect-ratio: 1 / 1;
    background-color: rgba(8, 22, 31, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 238, 255, 0.25);
    border: 3px solid var(--primary);
    animation: RouleDroit 1s ease forwards;
    pointer-events: none;
    z-index: 0;
}
.about-img{
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-img img{
    max-width: min(360px, 80vw);
    width: 100%;
    height: auto;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    animation: RouleDroit 1s ease forwards;
}
.about-text{
    position: relative;
    z-index: 1;
    max-width: min(540px, 90vw);
}
.Center{
    position: relative;
    top: 40px;
}
.Center2{
    position: relative;
    top: 30px;
}
.about-text .bx-link{
    position: relative;
    top: 5px;
    margin-right: 8px;
    font-size: 25px;
    font-weight: 700;
}
.about-text h2{
    font-size: clamp(32px, 6vw, 54px);
}
.about-text h2 span{
    color: var(--primary);
}
.about-text h4{
    font-size: 29px;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin: 15px 0 30px;
}
.about-text p{
    position: relative;
    color: aliceblue;
    font-size: clamp(15px, 3vw, 18px);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    top: 0;
}
.services-list{
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}
.services{
    width: min(100%, var(--max-width));
    margin: clamp(40px, 10vh, 100px) auto 0;
    padding: clamp(60px, 10vh, 120px) clamp(16px, 6vw, 40px);
}
.sous-titre{
    text-align: center;
    font-size: clamp(32px, 6vw, 52px);
    padding-bottom: clamp(32px, 6vw, 70px);
}
.sous-titre span{
    color: #0ef;
}
.container{
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: clamp(32px, 6vw, 70px) clamp(16px, 6vw, 40px);
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: clamp(16px, 4vw, 32px);
    margin-top: clamp(24px, 5vw, 60px);
}
.services-list div{
    background-color: rgba(1, 11, 26, 0.6);
    padding: clamp(24px, 5vw, 40px);
    font-size: 15px;
    font-weight: 400;
    border: 1px solid rgba(62, 239, 255, 0.1);
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s;
    box-shadow: 1px 1px 20px #012290f7;
}
.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div a{
    text-decoration: none;
    color: #000000;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}
.lire{
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    border-radius: 40px;
    font-size: 12px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: RouleHaut 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px var(--primary),
    0 0 25px var(--primary)
}
.lire:hover{
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan,0 0 50px cyan,
    0 0 100px cyan,0 0 200px cyan
}
.services-list div:hover{
    transform: translateY(-10px);
}

.section-wrapper{
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding-inline: clamp(16px, 6vw, 40px);
}
.skills-section{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 6vw, 48px);
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: clamp(40px, 10vh, 100px) clamp(16px, 6vw, 40px);
}
.container1{
    width: min(100%, 520px);
    min-height: 0;
    padding: clamp(32px, 6vw, 60px) clamp(18px, 5vw, 48px);
    margin: clamp(16px, 4vw, 32px) auto;
    background-color: rgba(1, 11, 26, 0.6);
    border-radius: 24px;
    box-shadow: 0 0 25px rgba(1, 34, 144, 0.35);
}
.heading1{
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 5px;
    margin-bottom: 50px;
}
.bar{
    font-size: 23px;
}
.Technical-bars .bar{
    margin: 24px 0;
}
.Technical-bars .bar:first-child{
    margin-top: 0;
}
.Technical-bars .bar:last-child{
    margin-bottom: 0;
}
.Technical-bars .bar .info{
    margin-bottom: 5px;
}
.Technical-bars .bar .info span{
    font-size: 16px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}
.Technical-bars .bar .progress-line{
    position: relative;
    border-radius: 10px;
    width: 100%;
    height: 5px;
    background-color: #000000;
    animation: animate 1s cubic-bezier(1,0,0.5,1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}
@keyframes animate{
    100%{
        transform: scaleX(1);
    }
}
.Technical-bars .bar .progress-line span{
    height: 100%;
    background-color: #0ef;
    position: absolute;
    border-radius: 10px;
    animation: animate 1s 1s cubic-bezier(1,0,0.5,1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}
.progress-line.html span{
    width: 90%;
}
.progress-line.css span{
    width: 60%;
}
.progress-line.JavaScript span{
    width: 55%;
}
.progress-line.php span{
    width: 50%;
}
.progress-line.react span{
    width: 50%;
}
.progress-line span::after{
    position: absolute;
    padding: 1px 8px;
    background-color: #000000;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    top: -28px;
    right: -20px;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}
.progress-line.html span::after{
    content: "90%";
}
.progress-line.css span::after{
    content: "60%";
}
.progress-line.JavaScript span::after{
    content: "55%";
}
.progress-line.php span::after{
    content: "50%";
}
.progress-line.react span::after{
    content: "50%";
}
.progress-line span::before{
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom-width: 0px;
    border-right-width: 0px;
    border-top-color: #000000;
    top: -10px;
    right: 0;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}
@keyframes showText{
    100%{
        opacity: 1;
    }
}
.radial-bars{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 24px;
}
.radial-bars .radial-bar{
    flex: 1 1 200px;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    position: relative;
}
.radial-bars .radial-bar svg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 140px;
    height: 140px;
}
.radial-bars .radial-bar .progress-bar{
    stroke-width: 10;
    stroke: #000000;
    fill: transparent;
    stroke-dashoffset: 502;
    stroke-dasharray: 502;
    stroke-linecap: round;
    animation: animate-bar 1s linear forwards;
}
@keyframes animate-bar{
    100%{
        stroke-dashoffset: -1;
    }
}
.path{
    stroke-width: 10;
    stroke: #0ef;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}
.path-1{animation: animate-path1 1s 1s linear forwards;}
.path-2{animation: animate-path2 1s 1s linear forwards;}
.path-3{animation: animate-path3 1s 1s linear forwards;}
.path-4{animation: animate-path4 1s 1s linear forwards;}

@keyframes animate-path1{
    100%{
        stroke-dashoffset: 50;
    }
}
@keyframes animate-path2{
    100%{
        stroke-dashoffset: 175;
    }
}
@keyframes animate-path3{
    100%{
        stroke-dashoffset: 125;
    }
}
@keyframes animate-path4{
    100%{
        stroke-dashoffset: 75;
    }
}
.radial-bar .percentage{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
    font-size: 17px;
    font-weight: 900;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}
.radial-bar .text{
    width: 100%;
    position: absolute;
    text-align: center;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.main-text{
    width: min(100%, var(--max-width));
    margin: clamp(60px, 12vh, 120px) auto 0;
    padding-inline: clamp(16px, 6vw, 40px);
}
.portfolio{
    width: min(100%, var(--max-width));
    margin: clamp(40px, 10vh, 100px) auto 0;
    padding: 0 clamp(16px, 6vw, 40px) clamp(60px, 10vh, 100px);
}
.main-text h2{
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1.1;
    text-align: center;
}
.main-text h2 span{
    color: #0ef;
}
.portfolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(16px, 4vw, 32px);
    margin-top: clamp(24px, 5vw, 60px);
}
.row{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}
.row img{
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.1),#0ef);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;
}
.layer h5{
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}
.layer p{
    color: #081b29;
    font-size: 1rem;
    line-height: 1.8;
}
.layer i{
    color: #ff004f;
    margin-top: 20px;
    font-size: 20px;
    background: #000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.row:hover img{
    transform: scale(1.1);
}
.row:hover .layer{
    height: 100%;
}

.contact{
    width: min(100%, var(--max-width));
    margin: clamp(60px, 12vh, 140px) auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(2rem, 6vw, 4rem);
    padding: clamp(32px, 6vw, 60px) clamp(16px, 6vw, 40px);
    background: rgba(1, 11, 26, 0.6);
    border-radius: 32px;
    box-shadow: 0 0 25px rgba(1, 34, 144, 0.35);
}
.contact-text h2{
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.2;
    text-align: left;
}
.contact-text h2 span{
    color: var(--primary);
}
.contact-text h4{
    margin: 15px 0;
    color: rgba(255,255,255,0.85);
    font-size: 20px;
    font-weight: 600;
}
.contact-text p{
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}
.contact-list{
    margin-bottom: 3rem;
    list-style: none;
    padding: 0;
}
.contact-list li{
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-list i{
   display: inline-block;
   color: var(--primary);
   font-size: 20px;
   font-weight: 600;
   transition: all .4s ease;
}
.contact-list li:hover{
    transform: scale(1.01) translateY(-5px);
    color: #0ef;
    cursor: pointer;
}
.contact-icons{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.contact-icons i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
    margin: 0;
    transition: .5s ease;
    opacity: 0;
    animation: RouleGauche 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.contact-icons i:hover{
    background: #0ef;
    color: #000;
    box-shadow: 0 0 20px #0ef;
}
.contact-form form{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-form form input,
.contact-form form textarea{
    border: none;
    outline: none;
    width: 100%;
    padding: 18px;
    background: rgba(85, 85, 87, 0.3);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
}
.contact-form textarea{
    resize: none;
    height: 220px;
}
.contact-form form .send{
    display: inline-block;
    padding: 10px 10px;
    background: #3ef;
    border-radius: 40px;
    font-size: 20px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: RouleHaut 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #0ef,
    0 0 25px #0ef;
    align-self: flex-start;
}
.contact-form form:hover .send{
    cursor: pointer;
    box-shadow: 0 0 5px cyan;
}
.last-text p{
    width: 100%;
    text-align: center;
    padding: 24px clamp(16px, 6vw, 40px);
    background: rgba(7, 85, 91, 0.4);
    font-weight: 300;
    margin-top: clamp(48px, 10vh, 120px);
}
.top{
    position: fixed;
    bottom: 2.1rem;
    right: 2.1rem;
}
.top i{
    color: #000;
    background: #0ef;
    font-size: 20px;
    padding: 10px;
    border-radius: 0.5rem;
}

@keyframes RouleDroit{
    0%{
        transform: translateX(-100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes RouleGauche{
    0%{
        transform: translateY(100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}
@keyframes RouleHaut{
    0%{
        transform: translateY(100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}
@keyframes RouleBas{
    0%{
        transform: translateY(100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}


.hamburger{
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: transform .3s ease;
}
.hamburger i{
    pointer-events: none;
}

@media (max-width: 1200px){
    .header{
        padding: 12px clamp(16px, 4vw, 48px);
    }
    .Home{
        padding: clamp(110px, 14vh, 140px) clamp(16px, 7vw, 80px) clamp(56px, 9vh, 100px);
    }
    .navbar a{
        font-size: 15px;
    }
}

@media (max-width: 992px){
    body{
        padding-top: 70px;
    }
    .Home{
        min-height: auto;
        padding-top: clamp(96px, 18vh, 140px);
    }
    .about{
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text{
        margin: 0 auto;
    }
    .Center,
    .Center2{
        top: 0;
    }
    .about-text p{
        margin-bottom: 2rem;
    }
    .about-img .back{
        width: min(360px, 75vw);
    }
    .skills-section{
        grid-template-columns: 1fr;
    }
    .contact{
        grid-template-columns: 1fr;
        padding: clamp(32px, 6vw, 60px);
    }
    .contact-text h2{
        text-align: center;
    }
    .contact-text h4,
    .contact-text p,
    .contact-list{
        text-align: center;
    }
    .contact-list li{
        justify-content: center;
    }
    .contact-icons{
        justify-content: center;
    }
}

@media (max-width: 768px){
    body{
        padding-top: 64px;
    }
    .header{
        padding: 12px clamp(16px, 6vw, 32px);
    }
    .navbar{
        position: absolute;
        right: clamp(16px, 6vw, 40px);
        top: calc(100% + 16px);
        width: min(260px, 80vw);
        padding: 16px;
        background: rgba(5, 17, 41, 0.95);
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.25);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        display: none;
    }
    .navbar.active{
        display: flex;
    }
    .navbar a{
        margin: 0;
        padding: 10px 14px;
        border-radius: 10px;
    }
    .navbar a:hover{
        background: var(--primary);
        color: #081b29;
    }
    .hamburger{
        display: block;
    }
    .Home{
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .home-content{
        align-items: center;
    }
    .home-content p{
        margin: 0 auto;
    }
    .home-sci a{
        margin: 20px 10px 0;
    }
    .btn-box{
        width: fit-content;
        margin-inline: auto;
        padding: 9px 18px;
        font-size: 14px;
        letter-spacing: 0.4px;
    }
    .portfolio{
        padding-inline: clamp(16px, 7vw, 32px);
    }
}

@media (max-width: 600px){
    .Home{
        padding: 120px clamp(14px, 8vw, 24px) 80px;
    }
    .about-img .back{
        display: none;
    }
    .home-content h3{
        font-size: 26px;
    }
    .about{
        padding: clamp(48px, 12vh, 100px) clamp(14px, 8vw, 24px);
    }
    .about-text h4{
        font-size: 24px;
    }
    .services{
        padding: clamp(48px, 12vh, 100px) clamp(14px, 8vw, 24px);
    }
    .skills-section{
        padding: clamp(48px, 12vh, 100px) clamp(14px, 8vw, 24px);
    }
    .container1{
        padding: clamp(28px, 8vw, 44px);
    }
    .contact{
        padding: clamp(40px, 12vw, 56px) clamp(14px, 8vw, 24px);
    }
    .contact-icons a{
        margin: 20px 10px 0;
    }
    .portfolio-content{
        grid-template-columns: 1fr;
    }
    .top{
        right: 1.2rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 420px){
    .home-content h1{
        font-size: 34px;
    }
    .home-content h3{
        font-size: 22px;
    }
    .btn-box{
        width: 100%;
        text-align: center;
    }
    .services-list div{
        padding: 24px;
    }
    .contact-form form .send{
        width: 100%;
        text-align: center;
    }
    .last-text p{
        font-size: 14px;
    }
}