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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "century gothic", sans-serif;
    /*ajouter*/
    scroll-behavior: smooth;
    list-style: none;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --main-color: #FFAE00;
    --white-color: #fff;
    --disabled-color: #fff3;

    /*root2*/
    
    --text-color: #FFFFFF;
    --main-bg:  #5CD2B9;       /*#000000;*/
    --sec-color:  #FFAE00; /*#5CD2B9;*/
    --pri-color:   #323946;        /*#151515; */
    --p-color:   #FFFFFF;             /*#AAAAAA;*/

    --h1-font: 4rem;
    --h2-font:2.25rem;
    --h3-font: 1.875rem;
    --h4-font: 3.125rem;
    --h6-font: 1.6rem;
    --p-font: 1.2rem;
}

html {
    font-size: 62.5%;
}

body {
    color: var(--white-color);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
}

header.active {
    animation: show-header 1.5s linear forwards;
    animation-delay: 1.2s;
}

@keyframes show-header {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.logo {
    /*font-size: 3rem;
    color: var(--white-color);
    font-weight: 700;
     margin-top: 3%;*/
    width: 70px;
    cursor: pointer;
    margin-left: -2%;
}

nav a {
    font-size: 2rem;
    color: var(--white-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .5s;
}

nav a:hover,
nav a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 4rem;
    display: none;
}

.bars-box {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.bars-box .bar {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: hide-bars .5s ease-in-out both;
    animation-delay: calc(.1s * var(--i));
}

@keyframes hide-bars {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

.bars-box.active .bar {
    animation: show-bars .5s ease-in-out both;
    animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

section {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10rem 9% 2rem;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

section.active {
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
        overflow: auto;
    }
}


.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.heading span {
    color: var(--main-color);
}



/*SERVICE */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.services-container .services-box {
    padding: 3rem 2.5rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--second-bg-color);
    border-radius: 1rem;
    transition: .5s;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box .icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services-box .icon i {
    font-size: 4.5rem;
    transition: .5s;
}

.services-box:hover .icon :not(a i) {
    color: var(--main-color);
}

.services-box .icon a {
    display: inline-flex;
    background: var(--white-color);
    border-radius: 50%;
    padding: 1rem;
    transition: .5s;
}

.services-box:hover .icon a {
    background: var(--main-color);
}

.services-box .icon a i {
    font-size: 3rem;
    color: var(--bg-color);
    transform: rotate(225deg);
}

.services-box .icon a:hover i {
    transform: rotate(180deg);
}

.services-box h3 {
    font-size: 3rem;
    margin: .5rem 0 2rem;
    transition: .5s;
}

.services-box:hover h3 {
    color: var(--main-color);
}

.services-box p {
    font-size: 1.6rem;
}

/* Modal Styles */
.modal {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: black
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: 0.3s;
}

.close:hover {
    color: var(--main-color);
}


/*FIN SERVICE */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.portfolio-detail {
    display: none;
}

.portfolio-detail.active {
    display: block;
}
/*
.portfolio-box .numb {
    font-size: 8rem;
    -webkit-text-stroke: .07rem var(--white-color);
    color: transparent;
    line-height: 1;
}*/

.portfolio-box h3 {
    font-size: 3.5rem;
    margin: .8rem 0 2rem;
}

.portfolio-box p {
    font-size: 1.6rem;
}

.portfolio-box .tech {
    margin: 2rem 0;
    color: var(--main-color);
    border-bottom: .1rem solid var(--white-color);
    padding-bottom: 2rem;
}
.portfolio-box .live-github {
    display: flex; /* Activer le modèle Flexbox */
    justify-content: center; /* Centrer horizontalement */
    gap: 1rem; /* Espacement entre les éléments */
    margin-top: 2rem; /* Ajouter un espace au-dessus si nécessaire */
}


.portfolio-box .live-github a {
    position: relative;
    display: inline-flex;
    padding: 1.3rem;
    font-size: 2rem;
    color: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    background: var(--second-bg-color);
    transition: .5s;
    
}

.portfolio-box .live-github a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/*.portfolio-box .live-github a:first-child {
    margin-right: 1.5rem;
}*/



.portfolio-box .live-github a span {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    font-size: 1.6rem;
    white-space: nowrap;
    padding: .5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    background: var(--white-color);
    color: var(--bg-color);
    opacity: 0;
    transition: .2s;
    
}

.portfolio-box .live-github a:hover span {
    top: -70%;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.portfolio-box .portfolio-carousel {
    width: 100%;
    height: 45rem;
    border-radius: 1rem;
    overflow: hidden;
}

.portfolio-carousel .img-slide {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    height: inherit;
    transition: transform 0.5s ease-in-out; /* Augmenter la durée de la transition */
    
}


.portfolio-carousel .img-item {
    height: inherit;
}

.portfolio-carousel .img-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.portfolio-box .navigation {
    text-align: right;
    margin-top: 2rem;
}

.portfolio-box .navigation button {
    display: inline-flex;
    padding: .4rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    font-size: 4rem;
    color: var(--main-color);
    cursor: pointer;
}

.portfolio-box .navigation button.disabled {
    border-color: var(--second-bg-color);
    color: var(--disabled-color);
}

.portfolio-box .navigation .arrow-right {
    margin-left: 1.5rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
}

.contact-container .contact-box:first-child {
    align-self: center;
}

.contact-box h2 {
    font-size: 4.5rem;
}

.contact-box p {
    font-size: 1.6rem;
}

.contact-box .desc {
    margin: 1.5rem 0 2.5rem;
}

.contact-box .contact-detail {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.contact-detail i {
    display: inline-flex;
    background: var(--second-bg-color);
    color: var(--main-color);
    font-size: 3rem;
    padding: 1.2rem;
    border-radius: .6rem;
    margin-right: 1.5rem;
}

.contact-detail .detail p:first-child {
    color: var(--main-color);
}

.contact-box form {
    background: var(--second-bg-color);
    padding: 2.5rem 3.5rem 3.5rem;
    border-radius: 1rem;
    text-align: center;
}

.contact-box .heading {
    font-size: 3.5rem;
}

.contact-box .field-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-box .field-box input,
.contact-box .field-box textarea {
    padding: 1.5rem;
    background: var(--bg-color);
    border: .15rem solid var(--bg-color);
    border-radius: .6rem;
    font-size: 1.6rem;
    color: var(--white-color);
}

.contact-box .field-box textarea {
    grid-column: 1 / -1;
    height: 26rem;
    resize: none;
}

.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus {
    border-color: var(--main-color);
}

.contact-box .btn {
    margin-top: 2rem;
    cursor: pointer;
}





/* Product-section */
.product{
    background-color: var(--bg-color);
}
.pro-top h2{
    margin-top: 2rem;
    color: var(--white-color);
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}
.pro-lidt{
    text-align: center;
    margin-bottom: 70px;
}
.pro-lidt a{
    color: var(--white-color);
    font-size: 18px;
    font-weight: 500;
    margin: 0px 20px;
    text-transform: uppercase;
    padding: 3px 0;
    border-bottom: 2px solid transparent;
    transition: all .42s;
}
.pro-lidt #hot{
    border-bottom: 2px solid var(--white-color);
}
.pro-lidt a:hover{
    border-bottom: 2px solid var(--white-color);
}
.main-product{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    gap: 3rem;
}
.pro-img{
    overflow: hidden;
}
.row img{
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    cursor: pointer;
    transition: all .42s;
}
.row img:hover{
    transform: scale(1.1);
    border-radius: 46px;
}
.pri-ratting{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pro-text h4{
    color: var(--white-color);
    font-size: 18px;
    text-transform: capitalize;
    font-weight: 500;
    margin: 10px 0px 4px 0px;
}
.pro-price{
    color: var(--main-color);
    font-size: 20px;
    font-weight: 400;
}
.ratting h6{
    color: var(--white-color);
    font-size: 35px;
    font-weight: 600;
}
.ratting i{
    color: #F5D426;
}

/* Offer-section */
.offer{
    width: 100%;
    height: 100%;
    background-image: url(images/offer-back.png);
    background-position: center;
    background-size: cover;
}
.main-offer{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem;
}
.offer-img img{
    max-width: 100%;
    width: 500px;
    height: auto;
}
.offer-text h2{
    color: var(--main-color);
    font-size: 45px;
    font-size: 600;
    text-transform: inherit;
    margin-bottom: 20px;
}
.offer-text p{
    max-width: 500px;
    color: var(--white-color);
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 30px;
}
.offer-days{
    text-align: center;
}
.days-info{
    display: inline-block;
    margin-right: 25px;
    background-color: var(--white-color);
    padding: 20px 15px 20px 20px;
    margin-bottom: 50px;
    cursor: pointer;
    transition: all .42s;
}
.days-info:hover{
    transform: translateY(-5px);
}
.days-info h5{
    color: #000;
    font-size: 30px;
}
.days-info h6{
    color: #000;
    font-size: 16px;
    text-transform: capitalize;
}
.offer-btn{
    text-align: center;
}
.offer-btn a{
    display: inline-block;
    color: #FFF;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
    border: 2px solid #000;
    background-color: #000;
    padding: 10px 35px;
    border-radius: 30px;
    transition: all .42s;
}
.offer-btn a:hover{
    background-color: transparent;
    color: #000;
}  


 /* Team section css  */

 .team-top{
    text-align: center;
 }

 
 .team-top h4{
    color: var(--sec-color);
    font-size: var(--h6-font);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
 }
 .team-top h2{
    color: var(--text-color);
    font-size: var(--h4-font);
    font-weight: 700;
    text-transform: capitalize;
    font-family: "Work Sans" serif;
 }
 .team-top h2 span{
    color: var(--sec-color);
 }
 .team-top hr{
    border: 2px solid var(--sec-color);
    width: 15%;
    margin: 15px 0px;
    display: inline-block;
 }
 .team-top p{
    max-width: 600px;
    color: var(--p-color);
    font-size: var(--h6-font);
    font-weight: 400;
    line-height: 28px;
    margin: 0px auto 45px;
 }

 .team-member{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    gap: 4rem;
 }

 .member{
    background: var(--pri-color);
    display: flex;
    align-items: center;
    padding: 10px 10px;
    border-radius: 8px;
    gap: 1.5rem;
 }

 .mem-img img{
    max-width: 100%;
    width: 300px;
    height: auto;
    filter: grayscale(0%);
    transition: all .42s;
 }

 
 .mem-img img:hover{
    filter:  grayscale(100%);
 }
 .mem-text h4{
    color: var(--text-color);
    font-size: 25px;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 6px;
 }
 .mem-text h5{
    color: var(--sec-color);
    font-size: var(--h6-font);
    font-weight: 400;
    text-transform: capitalize;
    margin-bottom: 11px;
 }
 .mem-text p{
    max-width: 450px;
    color: var(--p-color);
    font-size: var(--p-font);
    line-height: 25px;
    margin-bottom: 15px;
 }
 .mem-social i{
    color: var(--sec-color);
    font-size: 24px;
    margin-right: 15px;
    transition: all .42s;
 }
 .mem-social i:hover{
    color: var(--text-color);
 }


/* Breakpoints */
@media screen and (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media screen and (max-width: 992px) {
    header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }
}

@media screen and (max-width: 810px) {
    .contact-box .field-box {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        background: var(--bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        text-align: center;
        z-index: 10;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        margin: 4rem 0;
    }

    .resume-container,
    .portfolio-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .resume-container {
        gap: 3rem;
    }

    .portfolio-container .portfolio-box:first-child {
        order: 1;
    }

    .contact-box .field-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-top h2,
    .heading {
          margin-top: 2rem;
    }
    .live-github{
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 600px) {
    
    .contact-box .field-box {
        grid-template-columns: 1fr;
    }

    
}

@media screen and (max-width: 450px) {
    html {
        font-size: 50%;
    }
}

@media screen and (max-width: 400px) {
    
    .resume-box h2,
    .resume-box .heading,
    .resume-box .desc,
    .resume-detail.about .resume-item {
        text-align: center;
    }
    .pro-top h2,
    .heading {
        margin-top: 2rem;
  }
  .live-github{
      margin-bottom: 2rem;
  }


    .contact-box form {
        padding: 2.5rem 3rem 3.5rem;
    }

    .contact-box h2 {
        font-size: 3.5rem;
    }
}

/*team*/

.team-top h4{
    margin-top: 2rem;
    margin-bottom: 10px;
    transition: .3s;
 }
 .team-top h2{
    font-size: 36px;
    transition: .3s;
 }
 .team-member{
    gap: 2rem;
 }
 .member{
    display: block;
 }
 .mem-img{
    text-align: center;
 }
 .mem-img img{
    width: 250px;
    margin-bottom: 20px;
 }
 .test-left h4{
    margin-bottom: 10px;
 }
 .test-left h2{
    font-size: 36px;
 }