/* ================================================================
   SOFINTE SAS — Main Stylesheet (based on Aivio template)
   Adapted for SOFINTE brand identity
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Urbanist", sans-serif;
}

/* ---- Reset -------------------------------------------------------- */
figure { margin-bottom: 0; }
a { transition: all 0.3s ease; }
a:hover { text-decoration: none; }

/* ---- Typography --------------------------------------------------- */
h1 {
    font-size: 90px;
    line-height: 96px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

h2 {
    font-size: 52px;
    line-height: 62px;
    font-weight: 500;
    color: #D6EDF8;
    letter-spacing: 0.3px;
}

h2 span { color: #86C8E8; }

h3 {
    font-size: 32px;
    line-height: 38px;
    font-weight: 500;
    color: #D6EDF8;
}

h4 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
    color: #D6EDF8;
}

h5 {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: #D6EDF8;
}

h6 {
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    color: #86C8E8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
}

p, .text {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #aac8df;
    word-break: break-word;
}

.text-size-18 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #aac8df;
}

.text-size-16 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #aac8df;
}

html { scroll-behavior: smooth; }

/* ---- Layout helpers ----------------------------------------------- */
.all_row { display: flex; flex-wrap: wrap; }
.all_column { display: flex; }
.all_boxes { flex: 1; display: flex; flex-direction: column; }
.padding-top { padding-top: 100px; }
.padding-bottom { padding-bottom: 100px; }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }

/* ---- Buttons ------------------------------------------------------ */
.primary_btn {
    font-size: 15px;
    min-width: 180px;
    padding: 18px 28px;
    line-height: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 35px;
    position: relative;
    display: inline-block;
    color: #ffffff;
    background-image: linear-gradient(to top, #024B7B 0%, #4484AF 100%);
    transition: all 0.4s ease-in-out;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.primary_btn:hover {
    color: #ffffff;
    background-image: linear-gradient(to top, #4484AF 0%, #86C8E8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(2, 75, 123, 0.4);
}

.primary_btn i {
    font-size: 12px;
    margin-left: 10px;
    color: #ffffff;
}

/* ---- Back to top -------------------------------------------------- */
#button {
    display: inline-block;
    background-color: #024B7B;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 50%;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition: background-color .3s, opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    cursor: pointer;
}

#button::after {
    content: "\f077";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    line-height: 50px;
    color: #fff;
}

#button.show {
    opacity: 1;
    visibility: visible;
}

#button:hover {
    background-color: #4484AF;
}

/* ---- Preloader ---------------------------------------------------- */
.loader-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #071a2b;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.loader div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 51px;
    height: 51px;
    margin: 6px;
    border: 6px solid #4484AF;
    border-radius: 50%;
    animation: loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #4484AF transparent transparent transparent;
}

.loader div:nth-child(1) { animation-delay: -0.45s; }
.loader div:nth-child(2) { animation-delay: -0.3s; }
.loader div:nth-child(3) { animation-delay: -0.15s; }

@keyframes loader-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- HEADER ------------------------------------------------------- */
.header-con {
    z-index: 100;
    top: 0;
    padding: 12px 0;
}

.header-con .navbar-brand img {
    max-height: 50px;
    width: auto;
}

.header-con .navbar-expand-lg .navbar-nav {
    gap: 4px;
}

.header-con .navbar-light .navbar-nav .nav-link {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px !important;
    position: relative;
}

.header-con .navbar-light .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: #86C8E8;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-con .navbar-light .navbar-nav .nav-link:hover::before,
.header-con .navbar-light .navbar-nav .nav-link.active::before {
    transform: scaleX(1);
}

.header-con .navbar-light .navbar-nav .nav-link:hover,
.header-con .navbar-light .navbar-nav .nav-link.active {
    color: #86C8E8;
}

.header-contact {
    margin-left: 20px;
}

/* Mobile navbar */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 10px;
}

.navbar-toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
}

/* ---- HERO BANNER -------------------------------------------------- */
.home_banner_outer {
    min-height: 100vh;
    background: linear-gradient(155deg, #071a2b 0%, #024B7B 55%, #4484AF 100%);
}

.banner-con {
    padding-top: 0;
    padding-bottom: 0;
}

.banner-content-con h1 {
    font-size: 80px;
    line-height: 88px;
    max-width: 700px;
}

.banner-content-con p {
    font-size: 18px;
    line-height: 30px;
    color: #D6EDF8;
    margin-bottom: 40px;
    max-width: 600px;
}

.see-pricing {
    margin-left: 20px;
    font-size: 16px;
    color: #D6EDF8 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.see-pricing:hover {
    color: #86C8E8 !important;
}

.banner-bottom-content {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(134,200,232,0.2);
}

.statistics-wrapper {
    gap: 40px;
}

.statistics-box .counter {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.statistics-box .alphabet {
    font-size: 28px;
    font-weight: 700;
}

.statistics-box .span-text {
    font-size: 14px;
    color: #D6EDF8;
    margin-top: 4px;
}

.best-ai-tools-box {
    background: rgba(2,75,123,0.4);
    border: 1px solid rgba(134,200,232,0.3);
    border-radius: 16px;
    padding: 16px 20px;
    gap: 16px;
    max-width: 280px;
}

.best-ai-tools-box figure img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.best-ai-tools-box .tool-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.best-ai-tools-box .tool-content p {
    font-size: 12px;
    line-height: 18px;
    margin: 0;
}

/* ---- LOGOS MARQUEE ----------------------------------------------- */
.logos-con {
    background: rgba(16,40,64,0.8);
    border-top: 1px solid rgba(68,132,175,0.2);
    border-bottom: 1px solid rgba(68,132,175,0.2);
}

.logo-slider {
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 60px;
    animation: marquee 20s linear infinite;
}

.slider-track li figure img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.slider-track li figure img:hover {
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- ABOUT SECTION ------------------------------------------------ */
.about-con {
    overflow: hidden;
}

.about-inner-con {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-inner-con .heading-title-con p {
    margin: 20px 0 30px;
}

.about-contnt-wrap {
    margin-top: 30px;
    gap: 20px;
}

.satisfied-clients {
    gap: 8px;
}

.satisfied-clients img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #024B7B;
    margin-left: -8px;
}

.satisfied-clients .client-text {
    margin-left: 12px;
}

.satisfied-clients .counter {
    font-size: 24px;
    font-weight: 700;
}

.satisfied-clients .alphabet {
    font-size: 18px;
    font-weight: 700;
}

.satisfied-clients .span-text {
    font-size: 12px;
    color: #D6EDF8;
}

.partner-text {
    font-size: 15px;
    line-height: 22px;
    color: #D6EDF8;
    max-width: 200px;
}

.content-wrap {
    position: relative;
    min-height: 340px;
}

.content-wrap .img1 img {
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
}

.content-wrap .about-img2 img {
    width: 160px;
    border-radius: 12px;
    top: 20px;
    right: 0;
    border: 4px solid #0c1f30;
}

/* ---- OUR SERVICES ------------------------------------------------- */
.our-services-con .heading-title-con {
    margin-bottom: 50px;
}

.services-box {
    background: rgba(2,75,123,0.15);
    border: 1px solid rgba(68,132,175,0.25);
    border-radius: 16px;
    padding: 32px 40px 48px 32px;
    margin-bottom: 24px;
    flex: 1;
    transition: all 0.3s ease;
}

.services-box figure { margin-bottom: 20px; }
.services-box figure img { height: 48px; width: auto; }

.services-box h4 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 20px;
}

.services-box p {
    font-size: 15px;
    line-height: 24px;
    color: #aac8df;
    margin: 0;
}

.services-box a.position-absolute {
    bottom: 18px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(68,132,175,0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.services-box a.position-absolute:hover {
    background: #024B7B;
}

.services-box:hover {
    border-color: #86C8E8;
    box-shadow: 0 8px 40px rgba(2,75,123,0.3);
    transform: translateY(-4px);
}

/* ---- OUR WORK CTA ------------------------------------------------- */
.our-work-con {
    background: linear-gradient(135deg, #024B7B 0%, #0c1f30 100%);
    text-align: center;
}

.our-work-con .heading-title-con p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ---- PROJECTS / CARD GALLERY -------------------------------------- */
.card-gallery {
    margin-top: 40px;
    gap: 16px;
}

.card-container {
    flex: 1;
    min-width: 80px;
    transition: flex 0.5s ease;
}

.card-container.active {
    flex: 3;
}

.custom-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 480px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-top-contnt {
    position: absolute;
    top: 20px;
    left: 20px;
}

.card-top-contnt .badge {
    background: rgba(2,75,123,0.85);
    color: #D6EDF8;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(7,26,43,0.95) 0%, transparent 100%);
    padding: 30px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-content h4 {
    font-size: 18px;
    line-height: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.card-content p {
    font-size: 14px;
    color: #D6EDF8;
    margin: 0;
}

.card-content a {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #024B7B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-left: 16px;
    transition: all 0.3s;
}

.card-content a:hover {
    background: #4484AF;
}

.project-inner-con {
    margin-bottom: 30px;
}

.project-inner-con .heading h6 { margin-bottom: 8px; }
.project-inner-con .heading h2 { margin-bottom: 0; }

/* ---- LEFT / RIGHT GLOW ------------------------------------------- */
.left-glow {
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 400px;
    opacity: 0.35;
    pointer-events: none;
}

.right-glow {
    right: -80px;
    top: 30%;
    max-width: 400px;
    opacity: 0.35;
    pointer-events: none;
}

/* ---- SUB BANNER --------------------------------------------------- */
.sub_banner_outer {
    background: linear-gradient(155deg, #071a2b 0%, #024B7B 60%, #4484AF 100%);
    min-height: 380px;
}

.sub-banner-con {
    padding: 160px 0 60px;
}

.sub-banner-inner-wrap h1 {
    font-size: 64px;
    line-height: 72px;
    margin-bottom: 16px;
}

.sub-banner-inner-wrap p {
    color: #D6EDF8;
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #86C8E8;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #4484AF;
}

.breadcrumb-item.active {
    color: #D6EDF8;
    font-size: 14px;
}

/* ---- FAQ ---------------------------------------------------------- */
.faq-con {
    padding: 100px 0;
}

.faq_content { margin-bottom: 50px; }

.accordion-card {
    border: 1px solid rgba(68,132,175,0.3);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    background: rgba(2,75,123,0.1);
}

.accordion-card .card-header {
    background: transparent;
    border: none;
    padding: 0;
}

.accordion-card .card-header .btn-link {
    color: #86C8E8;
    font-size: 17px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-card .card-header .btn-link:hover {
    color: #D6EDF8;
}

.accordion-card .card-header .btn-link h5 {
    font-size: 17px;
    margin: 0;
    color: inherit;
}

.accordion-card .card-body {
    padding: 0 24px 20px;
}

.accordion-card .card-body p {
    font-size: 15px;
    line-height: 24px;
    color: #aac8df;
    margin: 0;
}

/* ---- BUILD / CTA FINAL ------------------------------------------- */
.build-con {
    background: linear-gradient(135deg, #071a2b 0%, #024B7B 100%);
    padding: 100px 0;
    overflow: hidden;
}

.build-image img {
    max-width: 100%;
}

.build_content h1 {
    font-size: 64px;
    line-height: 72px;
    margin-bottom: 40px;
}

.build_content h1 span {
    color: #86C8E8;
}

/* ---- CONTACT INFO ------------------------------------------------- */
.contact-info-con {
    padding-top: 100px;
    padding-bottom: 80px;
}

.contct-info-box {
    background: rgba(2,75,123,0.15);
    border: 1px solid rgba(68,132,175,0.25);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 24px;
    gap: 20px;
    flex: 1;
    transition: all 0.3s;
}

.contct-info-box:hover {
    border-color: #86C8E8;
    transform: translateY(-3px);
}

.contct-info-box figure {
    flex-shrink: 0;
}

.contct-info-box figure img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.contct-info-box h4 {
    color: #86C8E8;
    font-size: 18px;
    margin-bottom: 8px;
}

.contct-info-box p,
.contct-info-box a {
    font-size: 15px;
    color: #D6EDF8;
    line-height: 24px;
}

.contct-info-box a:hover {
    color: #86C8E8;
}

/* ---- CONTACT FORM ------------------------------------------------- */
.contact-form-con {
    padding: 100px 0;
}

.main-form input,
.main-form textarea,
.main-form select {
    display: block;
    width: 100%;
    background: rgba(2,75,123,0.15);
    border: 1px solid rgba(68,132,175,0.35);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 15px;
    color: #D6EDF8;
    margin-bottom: 20px;
    font-family: "Urbanist", sans-serif;
    transition: border-color 0.3s;
}

.main-form input:focus,
.main-form textarea:focus,
.main-form select:focus {
    outline: none;
    border-color: #86C8E8;
    box-shadow: 0 0 0 3px rgba(134,200,232,0.12);
}

.main-form ::placeholder {
    color: #6a9dbf;
}

.main-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* ---- CONTACT MAP -------------------------------------------------- */
.contact-map-con iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    filter: grayscale(20%) brightness(0.9);
}

/* ---- FOOTER ------------------------------------------------------- */
.footer-con {
    background: #071a2b;
    padding: 80px 0 0;
    border-top: 1px solid rgba(68,132,175,0.2);
}

.footer-logo img {
    max-height: 44px;
    width: auto;
    margin-bottom: 20px;
}

.footer-con .text {
    font-size: 15px;
    color: #7aabcc;
    line-height: 24px;
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons li a {
    width: 38px;
    height: 38px;
    background: rgba(2,75,123,0.4);
    border: 1px solid rgba(68,132,175,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons li a:hover {
    background: #024B7B;
    border-color: #86C8E8;
}

.social-networks {
    font-size: 14px;
    color: #86C8E8;
}

.footer-con .heading {
    color: #86C8E8 !important;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-con .links li,
.footer-con .icon li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-con .links li i,
.footer-con .icon li i {
    color: #86C8E8;
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-con .links li a,
.footer-con .icon li a {
    color: #7aabcc;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 22px;
}

.footer-con .links li a:hover,
.footer-con .icon li a:hover {
    color: #86C8E8;
}

.copyright {
    border-top: 1px solid rgba(68,132,175,0.2);
    padding: 24px 0;
    margin-top: 60px;
    text-align: center;
}

.copyright p {
    font-size: 14px;
    color: #4484AF;
    margin: 0;
}

/* ---- SCROLL DOWN -------------------------------------------------- */
.scroll-down span {
    font-size: 13px;
    letter-spacing: 1px;
    color: #D6EDF8;
}

.scroll-down img {
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ---- Heading title con ------------------------------------------- */
.heading-title-con {
    margin-bottom: 50px;
}

.heading-title-con h6 {
    display: inline-block;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 991px) {
    h1 { font-size: 60px; line-height: 68px; }
    h2 { font-size: 40px; line-height: 50px; }
    .banner-content-con h1 { font-size: 52px; line-height: 60px; }
    .sub-banner-inner-wrap h1 { font-size: 48px; line-height: 56px; }
    .build_content h1 { font-size: 46px; line-height: 54px; }

    .about-inner-con {
        grid-template-columns: 1fr;
    }

    .banner-bottom-content {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .best-ai-tools-box { max-width: 100%; }

    .card-gallery { overflow-x: auto; }
    .card-container { min-width: 280px; }

    .padding-top { padding-top: 70px; }
    .padding-bottom { padding-bottom: 70px; }

    .header-con .navbar-collapse {
        background: #071a2b;
        padding: 20px;
        border-radius: 12px;
        margin-top: 10px;
        border: 1px solid rgba(68,132,175,0.3);
    }

    .header-contact { margin-top: 16px; margin-left: 0; }
}

@media (max-width: 767px) {
    h1 { font-size: 46px; line-height: 54px; }
    h2 { font-size: 32px; line-height: 42px; }
    h3 { font-size: 26px; line-height: 32px; }

    .banner-con { padding-top: 0; }
    .banner-content-con h1 { font-size: 40px; line-height: 48px; }
    .sub-banner-inner-wrap h1 { font-size: 36px; line-height: 44px; }
    .build_content h1 { font-size: 36px; line-height: 44px; }

    .padding-top { padding-top: 50px; }
    .padding-bottom { padding-bottom: 50px; }

    .faq-con { padding: 60px 0; }
    .build-con { padding: 60px 0; }
    .footer-con { padding-top: 50px; }

    .services-box { padding: 24px 24px 50px; }

    .statistics-wrapper { gap: 24px; }
    .statistics-box .counter { font-size: 36px; }
}

@media (max-width: 575px) {
    h1 { font-size: 36px; line-height: 44px; }
    h2 { font-size: 28px; line-height: 36px; }

    .banner-content-con h1 { font-size: 32px; line-height: 40px; }

    #button { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    #button::after { line-height: 42px; }
}
