* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

/* Prevent anchored sections from being hidden behind the fixed navbar */
section {
    scroll-margin-top: 90px;
}
body {
    height: 100vh;
    width: 100%;
    font-family: outfit;
    font-weight: 400;
    font-style: normal;
}
@keyframes text-appear {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-section{
    padding-top: 70px;    
    position: relative;
    z-index: 2; 
    overflow: hidden; 
    margin-left: 20px;
    margin-right: 20px;
}
.hero-img{
    width: 100%;
    height: 90vh;
    z-index: 0;
    overflow: hidden; 
    position: absolute;
    border-radius: 40px;
}
@keyframes changeColor{
    from{background: transparent; 
    backdrop-filter: blur(0px);
    box-shadow: none;
    }
    to{background: transparent; 
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    } 
}
.navbar{
    background: transparent;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    animation: changeColor linear both;
    animation-timeline: scroll(root); 
    animation-range: 0 200px;
}
.menu{
    padding-left: 100px;
    padding-right: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 100px;
}
.logo-img{
    color: #FCFCFB;
    font-size: 26px;
    font-weight: bold;
    width: 120px;
    height: auto;
    max-width: 100%;
    display: block;
    vertical-align: middle;
}


.navbar-link{
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 17px;
    color: #000000;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.28s ease;
    position: relative;
}

/* Underline effect */
.navbar-link::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60%;
    height: 2px;
    background-color: #632BC5;
    opacity: 0.95;
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
}

.navbar-link:hover::after,
.navbar-link:focus::after{
    transform: translateX(-50%) scaleX(1);
}

.navbar-link:hover{
    color: #632BC5;
}

/* Active nav link (set by JS) */
.navbar-link.active{
    color: #632BC5;
}

.navbar-link.active::after{
    transform: translateX(-50%) scaleX(1);
}

/* Company button style */
.navbar-link.company {
  border: 1px solid #E2D7F7;
  background-color: #fff;
}
.navbar-button{
    width: 140px;
    height: 40px;
    font-family: outfit;
    font-weight: 500;
    pointer-events: auto;
    color: #FCFCFB;
    cursor: pointer;
    background-color: #632BC5;
    border-radius: 5px;
    border: none;
    font-size: 15px;
    transition: all .5s;
}
.navbar-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #632BC5;
    border-radius: 3px;
    transition: all 1.6s cubic-bezier(.2,.9,.2,1);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu (glass + smooth slide/fade) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 22px 20px;
    z-index: 99;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.4s ease-out, opacity 0.3s ease-out;
    /* Glassy background similar to navbar */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease-in;
}

.mobile-link {
    padding: 12px 15px;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    transition: color 0.28s ease;
    position: relative;
    display: inline-block;
    width: fit-content;
}

/* Underline effect for mobile links - spans only the text */
.mobile-link::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 8px;
    height: 2px;
    background-color: #632BC5;
    opacity: 0.95;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
}

.mobile-link:hover::after,
.mobile-link:focus::after {
    transform: scaleX(1);
}

.mobile-link:hover {
    color: #632BC5;
}

.mobile-menu-button {
    width: 100%;
    padding: 15px;
    background-color: #632BC5;
    color: #FCFCFB;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .5s;
    margin-top: 10px;
}

.mobile-menu-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.hero-main{
    display: flex;              
    flex-direction: column;    
    justify-content: center;    
    align-items: center;        
    text-align: center;    
    min-height: 100vh;              
    padding: 0 20px;           
    margin-top: 6rem;
    z-index: 10;
    position: relative;
}
.hero-main h1{
    font-size: 50px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;  
    color: black;
}
.hero-line1{
    color: #000000;
}
.hero-line2{
    color: #632BC5;
    display: inline;
    margin-top: 10px;
    background-image: linear-gradient(transparent 60%, rgba(155, 127, 203, 0.2) 60%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}
.hero-paragraph{
    margin-top: 20px;
    max-width: 700px;
    line-height: 1.6;
    color: #6f6f6f;
    font-size: 18px;
    font-weight: 600;
}
.btn{
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 10px;
}
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #6A3BE8;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 15px;
    margin-top: 30px;
}
.primary-btn{
    background-color: #632BC5;
    color: #FCFCFB;
    z-index: 10;
    position: relative;
}
.primary-btn img {
    width: 16px;
}
.hero-image2{
    width: 1500px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
}
.hero-image2 img{
    max-width: 73%;
    height: auto;
    border-radius: 10px; 
    position: relative;
    z-index: 0;
}
.clients-section{
    background: #ffffff;
    padding: 0px 20px;
    text-align: center;
    position: relative;
    z-index: 0;    
    overflow: hidden;
    top: -1rem;
    animation: text-appear both;
    animation-timeline: view();
    animation-range: entry 20% cover 100vh;       
}
.trusted-clients{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #616C6E;
    padding-bottom: 0px;
    font-size: 21px;
}
.carousel{
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 117px;
}
.clients {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9rem;
    padding-right: 5em;
    animation: slide 20s linear infinite;
}
.clients img {
    flex: 0 0 5em;
    max-height: 40px;
}
.client-last-img{
    margin-right: 5rem;
}
@keyframes slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
.carousel::-webkit-scrollbar {
    display: none;
}
.carousel::before,
.carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}
.carousel::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 0.7) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}
.carousel::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 30%,
        rgba(255, 255, 255, 0.7) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}
.solutions-section{
    padding: 60px 100px;
    animation: text-appear both;
    animation-timeline: view();
    animation-range: entry 20% cover 100vh;

}
.solutions-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 27px;      
}
.solutions-header{
    max-width: 600px;
    padding-top: 90px;
    margin-bottom: 50px;  
    grid-column: 1 / span 2;
    position: relative;
}  
.solutions-header h2{
    font-size: 40px;
    font-weight: 600;
    line-height: 1.3;    
    padding-bottom: 50px;
    place-items: center; 
}
.solutions-h2{
    color: #632BC5;
    display: inline;
    background-image: linear-gradient(transparent 60%, rgba(155, 127, 203, 0.2) 60%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}
.solution-card{
    background: #F7F3FF;
    border-radius: 10px;
    padding: 50px 37px;
    padding-bottom: 45px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: rgba(0, 0, 0, .1) 0px 4px 6px -1px,
                rgba(0, 0, 0, .06) 0px 2px 4px -1px;
}
.solution-icon img{
    width: 40px;
    margin-bottom: 20px;
}
.solution-card h3{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.solution-card p{
    font-size: 16px;
    color: #000000;
    font-weight: 400;
    padding-top: 5px;
}
.features1-section{
    padding: 100px;
    background-color:#F7F3FF;
    animation: text-appear both;
    animation-timeline: view();
    animation-range: entry 20% cover 100vh;
}
.features1-grid{
    display: flex;
    align-items: center;
    gap: 60px; 
}
.features1-image{
    flex: 0 0 50%;
    max-width: 50%;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.features1-header{
    flex: 0 0 50%;
    max-width: 50%;
}
.features1-header h2{
    font-size: 40px;
    font-weight: 600;
    line-height: 1.3;    
    padding-bottom: 20px;
    position: relative;
}
.features1-h2{
    color: #632BC5;
    display: inline;
    background-image: linear-gradient(transparent 60%, rgba(155, 127, 203, 0.2) 60%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}
.features1-paragraph{
    color: #6f6f6f;
    padding-bottom: 20px;
    padding-top: 0px;
    font-size: 18px;
    font-weight: 600;
}
.features1-button{
    color: #fff8f5;
    border-radius: 5px;
    margin-top: 1rem;
    box-sizing: border-box;
    display: inline-block;
    unicode-bidi: isolate;
    padding: 15px 28px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    transition: all .5s;
    background-color: #632BC5; 
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.features1-button:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.team-section {
    width: 100%;
    padding: 80px 20px;
    background-image: url(images/team-bg2.png);
    overflow-x: hidden;
    animation: text-appear both;
    animation-timeline: view();
    animation-range: entry 20% cover 100vh;
}
.team-header {
    text-align: center;
    margin-bottom: 60px;
}
.team-h2 {
    font-size: 42px;
    font-weight: 600;
    color: #632BC5;
}
.team-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.arrow {
    background: none;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    transition: transform 0.3s ease;
}
.arrow:hover {
    transform: scale(1.1);
}
.arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ====== CARDS CONTAINER ====== */
.team-cards {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
    width: calc(280px * 4 + 20px * 3);
    max-width: 100%;
    flex-shrink: 0;
}
.team-cards::-webkit-scrollbar {
    display: none;
}
/* ====== CARD ====== */
.team-card {
    position: relative;
    width: 280px;
    min-width: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
    scroll-snap-align: start;
    margin: 0;
}
.team-img-box {
    width: 100%;
}
.team-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* ====== IMAGE BOX ====== */


.features2-section{
    padding: 100px;
    background-color:#ffffff;

    animation: text-appear both;
animation-timeline: view();
animation-range: entry 20% cover 100vh;
}
.features2-grid{
    display: flex;
    align-items: center;
    gap: 60px;
}
.features2-image{
    flex: 0 0 50%;
    max-width: 50%;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.features2-header{
    flex: 0 0 50%;
    max-width: 50%;
    margin-left: 0;
}
.features2-header h2{
    font-size: 40px;
    font-weight: 600;
    line-height: 1.3;    
    padding-bottom: 20px;
    position: relative;
}
.features2-h2{
    color: #632BC5;
    display: inline;
    background-image: linear-gradient(transparent 60%, rgba(155, 127, 203, 0.2) 60%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}
.features2-paragraph{
    color: #6f6f6f;
    padding-bottom: 20px;
    padding-top: 0px;
    font-size: 18px;
    font-weight: 600;
}
.features1-h2-1{
    color: #632BC5;
    display: inline;
    background-image: linear-gradient(transparent 60%, rgba(155, 127, 203, 0.2) 60%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}
.features2-h2-2{
    color: #632BC5;
    display: inline;
    background-image: linear-gradient(transparent 60%, rgba(155, 127, 203, 0.2) 60%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}
.features1-h2-3{
    color: #632BC5;
    display: inline;
    background-image: linear-gradient(transparent 60%, rgba(155, 127, 203, 0.2) 60%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}
.process-section{
    width: 100%;
    padding:4rem 12rem;
    background: linear-gradient(#A877FF, #632BC5);      
    display: flex;
    flex-direction: column;
    gap: 60px;
    color: white;

    animation: text-appear both;
animation-timeline: view();
animation-range: entry 20% cover 100vh;
}
.process-subtitle{
    display: flex;
    justify-content: center;
    align-items: center;    
    font-size: 32px;
    font-weight: 600;
    opacity: 1;
}
.process-grid{
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}
.process-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.process-image{
    width: 52px;
}
.process-text{
    font-size: 22px;
}
.Questions-section{
    padding-right: 150px;    
    padding-left: 150px;
    padding-bottom: 150px;
    background-color:#fff8f5;    
    background: #fff;
    animation: text-appear both;
animation-timeline: view();
animation-range: entry 20% cover 100vh;
}
.Questions-header{
    max-width: 600px;
    margin-bottom: 50px;
    text-align: center;
    color: #000000;
    margin-left: auto;
    margin-right: auto;
}
.Questions-subtitle{
    color: #632BC5;
    font-weight: 600;
    font-size: 17px;
    padding-top: 120px;
    padding-bottom: 10px;
    text-transform: uppercase; 
}
.Questions-h2{
    font-size: 42px;
    font-weight: 600;
    position: relative;
}
.Questions-h2-span{
    font-size: 42px;
    font-weight: 600;
    color: #632BC5;
    display: inline;
    background-image: linear-gradient(transparent 60%, rgba(155, 127, 203, 0.2) 60%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}

.Questions-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);  
    gap: 40px;
}
.Questions-flex{
    display: flex;
    font-weight: 600;
    align-items: center;
    margin-top: 50px;
}
.Questions-number{
    background: #E2D7F7;
    color: #1D1D1D;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
}
.Questions h3{
    color: #000000;  
    font-size: 20px;
    margin-bottom: 10px;
    color: #1D1D1D;  
}
.Questions p{
    color: #6f6f6f;
    line-height: 1.6;
    padding-left: 50px;
    font-size: 18px;
    font-weight: 600;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
}

.Questions-flex{
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.Questions > div.open p{
    max-height: 400px;
    opacity: 1;
    padding-top: 12px;
    padding-bottom: 12px;
}

.Questions-flex::after{
    content: '>';
    margin-left: 12px;
    font-weight: 600;
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: inline-block;
    transform-origin: center;
}
.Questions > div.open .Questions-flex::after{
    transform: rotate(90deg);
}
.Contacts-section{
    background-color: #F7F3FF;    
    padding: 100px 50px;

    animation: text-appear both;
animation-timeline: view();
animation-range: entry 20% cover 100vh;
}
.Contacts-grid{         
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.Contact-card{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.05);
}
.Contact-icon img{
    width: 35px;  
    margin-right: 15px;  
}
.contact-text h3{
    font-size: 24px;
    font-weight: 600;
    color: #632BC5;
    margin-bottom: 5px;
}
.contact-text p{
    font-size: 16px;
    color: #444;
}
.footer{
    background: #000;
    padding: 70px 80px;
    color: #fff;

}
.footer-container{
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    /* align-items: flex-start; */
    /* gap: 60px; */
}
.footer-content{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}
.footer-left{
    max-width: 700px;
}
.footer-logo{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}
/* .footer-logo img {
    width: 189px;
} */
.footer-menu{
    display: flex;
    gap: 38px;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    opacity: 0.9;
    display: inline-block;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.footer-menu a:hover,
.footer-menu a:focus{
    color: #ffffff;
    background-color: rgba(255,255,255,0.06);
    transform: translateY(-4px);
    outline: none;
}

.footer-social{
    display: flex;
    gap: 39px;
    margin-bottom: 30px;
}
.footer-social a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    will-change: transform;
    text-decoration: none;
    color: inherit;
}
.footer-social a:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    background-color: #000000;
}
.footer-social img {
    width: 20px;
    display: block;
}

.footer-copy{
    border-top: 1px solid #ffffff;
    padding-top: 30px;
    font-size: 14px;
    opacity: 0.7;
    margin-top: 20px;
}
.footer-right{
    justify-content: end;
}
.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #6A3BE8;
    color: #fff;
    padding: 15px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 15px;
}
.footer-btn img {
    width: 16px;
}
.footer-text{
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

/* ========================== */
/* RESPONSIVE MEDIA QUERIES */
/* ========================== */

/* Large tablets/small desktops - show 3 cards */
@media screen and (max-width: 1200px) {
    .team-h2 {
        font-size: 36px;
    }
    
    .team-wrapper {
        gap: 12px;
        padding: 0 12px;
    }
    
    .team-cards {
        width: calc(215px * 3 + 12px * 2);
        gap: 12px;
    }
    
    .team-card {
        width: 215px;
        min-width: 215px;
    }
    
    .arrow {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}

/* Tablet - 768px to 1024px */
@media screen and (max-width: 1024px) {
    /* Navbar adjustments */
    .menu {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .navbar-links {
        display: none; /* Hide navigation links on tablet */
    }
    
    .hamburger-menu {
        display: flex;
        order: 2;
    }
    
    .navbar-button {
        display: none; /* Hide on tablet, shown in hamburger menu instead */
    }
    
    /* Hero section */
    .hero-section {
        margin-left: 15px;
        margin-right: 15px;
        padding-bottom: 40px;
    }
    
    .hero-img {
        height: auto;
        min-height: 70%;
    }
    
    .hero-main {
        margin-top: 4rem;
        padding: 0 40px;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-main h1 {
        font-size: 40px;
        line-height: 1.4;
    }
    
    .hero-line2::after {
        width: 100%;
        max-width: 450px;
    }
    
    .hero-paragraph {
        font-size: 16px;
    }
    
    .hero-image2 {
        width: 100%;
        margin-bottom: 0;
        padding: 0 20px;
    }
    
    .hero-image2 img {
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Solutions section */
    .solutions-section {
        padding: 40px 40px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .solutions-header {
        grid-column: 1 / span 2;
        padding-top: 40px;
        text-align: center;
        margin: 0 auto;
    }
    
    .solutions-header h2 {
        font-size: 32px;
        line-height: 1.4;
    }
    
    .solutions-header::after {
        width: 11rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Features sections */
    .features1-section,
    .features2-section {
        padding: 60px 40px;
    }
    
    .features1-grid,
    .features2-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .features1-header h2,
    .features2-header h2 {
        font-size: 32px;
        padding-top: 20px;
        line-height: 1.4;
    }
    
    .features1-image,
    .features2-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .features1-header,
    .features2-header {
        text-align: left;
        padding: 0 16px;
        max-width: 900px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 12px;
    }
    
    .features1-image,
    .features2-image {
        align-self: center;
    }

    /* Center primary/action buttons on tablet */
    .btn,
    .primary-btn,
    .mobile-menu-button,
    .footer-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        max-width: 420px;
    }
    
    .features1-button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        margin-right: auto;
        width: auto;
        max-width: 420px;
    }
    
    .features1-h2::after,
    .features2-h2::after,
    .features1-h2-1::after,
    .features2-h2-2::after,
    .features1-h2-3::after {
        width: auto;
        right: auto;
        max-width: 200px;
    }
    
    /* Process section */
    .process-section {
        padding: 3rem 3rem;
    }
    
    .process-grid {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .process-arow {
        display: none;
    }
    
    /* Team section - now uses fluid clamp() values from base styles */
    
    /* Questions section */
    .Questions-section {
        padding: 80px 40px;
    }
    
    .Questions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .Questions-h2::after {
        width: 10rem;
        right: auto;
    }
    
    /* Contacts section */
    .Contacts-section {
        padding: 60px 40px;
    }
    
    .Contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Mobile - Up to 767px */
@media screen and (max-width: 767px) {
    /* Navbar */
    .navbar {
        height: 70px;
    }
    
    .menu {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .logo-img {
        width: 120px;
        height: auto;
    }
    
    .navbar-links {
        display: none; /* Hide navigation on mobile */
    }
    
    .hamburger-menu {
        display: flex;
        order: 2;
    }
    
    .navbar-button {
        order: 3;
    }
    
    .navbar-button {
        display: none; /* Hide on mobile, shown in hamburger menu instead */
    }
    
    /* Hero section */
    .hero-section {
        margin-left: 12px;
        margin-right: 12px;
        padding-top: 20px;
        padding-bottom: 40px;
    }
    
    .hero-img {
        height: auto;
        min-height: 80%;
        border-radius: 20px;
    }
    
    .hero-main {
        margin-top: 8rem;
        margin-bottom: 2rem;
        padding: 0 15px;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-main h1 {
        font-size: 28px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .hero-paragraph {
        font-size: 15px;
        line-height: 1.5;
        margin-top: 15px;
    }
    
    .primary-btn {
        padding: 12px 18px;
        font-size: 14px;
        margin-top: 20px;
    }
    
    .hero-image2 {
        width: 100%;
        margin-top: 20px;
        padding: 0 10px;
        margin-bottom: 0;
    }
    
    .hero-image2 img {
        max-width: 100%;
        width: 100%;
        object-fit: contain;
    }


    
    /* Clients section */
    .clients-section {
        padding: 20px 10px;
        top: 0;
    }
    
    .trusted-clients {
        font-size: 16px;
        padding-bottom: 10px;
    }
    
    .carousel {
        height: 80px;
    }
    
    .clients {
        gap: 4rem;
    }
    
    .clients img {
        max-height: 30px;
    }
    
    /* Solutions section */
    .solutions-section {
        padding: 40px 20px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solutions-header {
        grid-column: 1;
        padding-top: 20px;
        margin-bottom: 20px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .solutions-header h2 {
        font-size: 26px;
        padding-bottom: 30px;
        line-height: 1.4;
    }
    
    .solutions-header::after {
        width: 8rem;
        height: 18px;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .solution-card {
        padding: 30px 25px;
    }
    
    .solution-card h3 {
        font-size: 17px;
    }
    
    .solution-card p {
        font-size: 15px;
    }
    
    /* Features sections */
    .features1-section,
    .features2-section {
        padding: 40px 20px;
    }
    
    .features1-grid,
    .features2-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Ensure feature sections stack cleanly on mobile */
    .features1-grid,
    .features2-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .features1-header,
    .features2-header {
        margin-left: 0;
    }
        
    .carousel::before,
    .carousel::after {
        width: 100px;
    }
    
    .features1-header h2,
    .features2-header h2 {
        font-size: 24px;
        padding-top: 20px;
        padding-bottom: 15px;
        line-height: 1.5;
    }
    
    .features1-paragraph,
    .features2-paragraph {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .features1-button {
        width: 100%;
        max-width: 280px;
        font-size: 14px;
    }
    
    .features1-image,
    .features2-image {
        width: 100%;
        max-width: 100%;
    }

    /* Place image before text on small screens for features1 (source order has text first) */
    .features1-grid {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 18px;
    }

    .features1-image {
        margin-bottom: 18px;
        display: block;
        max-width: 520px;
        width: 100%;
        height: auto;
    }

    .features1-header,
    .features2-header {
        text-align: left;
        padding: 0 12px;
        max-width: 720px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .features2-image {
        margin-bottom: 18px;
        display: block;
        max-width: 520px;
        width: 100%;
        height: auto;
    }

    .features2-header {
        text-align: left;
        padding: 0 12px;
        max-width: 720px;
    }
    
    /* Remove decorative underlines on mobile */
    .features1-h2::after,
    .features2-h2::after,
    .features1-h2-1::after,
    .features2-h2-2::after,
    .features1-h2-3::after {
        display: none;
    }

    /* Center primary/action buttons on mobile */
    .btn,
    .primary-btn,
    .mobile-menu-button,
    .footer-btn{
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        max-width: 320px;
    }
    
    /* Left-align features buttons on mobile */
    .features1-button {
        margin-left: 0;
        margin-right: auto;
    }

    /* Make mobile menu CTA full width for easy tapping */
    .mobile-menu-button {
        width: 100%;
        max-width: none;
    }
    
    /* Team section - show 2 cards on mobile tablets */
    .team-section {
        padding: 60px 15px;
    }
    
    .team-h2 {
        font-size: 28px;
    }
    
    .team-wrapper {
        gap: 12px;
        padding: 0 12px;
    }
    
    .team-cards {
        width: calc(220px * 2 + 12px);
        gap: 12px;
    }
    
    .team-card {
        width: 220px;
        min-width: 220px;
    }
    
    .arrow {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    /* Process section */
    .process-section {
        padding: 2rem 1.5rem;
        gap: 40px;
    }
    
    .process-subtitle {
        font-size: 24px;
    }
    
    .process-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .process-arow {
        display: none;
    }
    
    .process-text {
        font-size: 18px;
    }
    
    /* Questions section */
    .Questions-section {
        padding: 60px 20px;
    }
    
    .Questions-subtitle {
        font-size: 14px;
        padding-top: 60px;
    }
    
    .Questions-h2 {
        font-size: 26px;
    }
    
    .Questions-h2-span {
        font-size: 26px;
    }
    
    .Questions-h2::after {
        display: none;
    }
    
    .Questions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .Questions-flex {
        margin-top: 20px;
    }
    
    .Questions h3 {
        font-size: 16px;
    }
    
    .Questions p {
        font-size: 14px;
        padding-left: 50px;
    }
    
    .Questions-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* Contacts section */
    .Contacts-section {
        padding: 60px 20px;
    }
    
    .Contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .Contact-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .Contact-icon img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-text h3 {
        font-size: 20px;
    }
    
    .contact-text p {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-left {
        max-width: 100%;
    }
    
    .footer-logo img {
        width: 140px;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .footer-menu a {
        font-size: 16px;
    }
    
    .footer-social {
        gap: 25px;
        justify-content: center;
    }
    
    .footer-btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .footer-text {
        font-size: 13px;
        text-align: center;
    }
    
    .footer-copy {
        text-align: center;
        font-size: 12px;
    }
}

/* Small mobile devices - 480px and below */
@media screen and (max-width: 480px) {
    .hero-section {
        padding-bottom: 30px;
    }

    .hero-main {
        padding: 0 10px;
        padding-bottom: 30px;
    }

    .hero-main h1 {
        font-size: 24px;
        line-height: 1.5;
    }
    
    .hero-paragraph {
        font-size: 14px;
    }
    
    .solutions-header h2 {
        font-size: 22px;
        line-height: 1.5;
    }
    
    .features1-header h2,
    .features2-header h2 {
        font-size: 22px;
        line-height: 1.5;
    }
    
    /* Team section - show only 1 card on small mobile */
    .team-section {
        padding: 50px 10px;
    }
    
    .team-h2 {
        font-size: 24px;
    }
    
    .team-wrapper {
        gap: 10px;
        padding: 0 10px;
    }
    
    .team-cards {
        width: 100%;
        max-width: 280px;
        gap: 0;
    }
    
    .team-card {
        width: 100%;
        min-width: 100%;
        max-width: 280px;
    }
    
    .arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .process-subtitle {
        font-size: 20px;
    }
    
    .Questions-h2,
    .Questions-h2-span {
        font-size: 22px;
    }
}
/* ========================================
   Modal Popup Styles for Devis Gratuit
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 760px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-close:hover {
    background-color: #632BC5;
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    margin-top: 10px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #632BC5;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

.devis-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #632BC5;
    box-shadow: 0 0 0 3px rgba(99, 43, 197, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Phone input with country code */
.phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.country-code-select {
    padding: 14px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    background-color: white;
    cursor: pointer;
    min-width: 110px;
}

.country-code-select:focus {
    border-color: #632BC5;
    box-shadow: 0 0 0 3px rgba(99, 43, 197, 0.1);
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
}

.form-submit-btn {
    background-color: #632BC5;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.form-submit-btn:hover {
    background-color: #4f22a0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 43, 197, 0.3);
}

.form-submit-btn:active {
    transform: translateY(0);
}


.whatsapp-btn:hover {
    background-color: #1fb358;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.form-success-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #632BC5;
    min-height: 320px;
    padding: 20px;
    animation: fadeInScale 0.4s ease forwards;
}

.form-success-overlay.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .modal-container {
        padding: 30px 25px;
        max-width: 95%;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .whatsapp-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}
