/* =============================================================================
   Scanfluence — Global base & normalization
   Load after design-tokens.css. Page CSS may extend; avoid resetting here twice.
   ============================================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}


/* —— Global typography mapping —— */

h1,
h2,
h3,
h4,
h5 {
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif !important;
}

body,
p,
span,
button,
article,
a,
li,
small,
label,
input,
textarea {
    font-family: "Exo", system-ui, -apple-system, sans-serif !important;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}


/* —— Unified container —— */

.container {
    width: 100%;
    max-width: var(--container-max) !important;
    margin-inline: auto;
    padding-inline: var(--container-padding) !important;
}


/* —— Section vertical rhythm (opt-in via class to avoid breaking legacy div-only sections) —— */

.site-section {
    padding-block: var(--section-y-md);
}

.site-section--lg {
    padding-block: var(--section-y-lg);
}

.site-section--sm {
    padding-block: var(--section-y-sm);
}


/* —— Heading hierarchy (semantic defaults; pages may override in context) —— */

h1,
.h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: var(--lh-heading);
    color: var(--color-heading);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-5);
}

h2,
.h2 {
    font-family: var(--font-heading) !important;
    font-size: var(--fs-h2) !important;
    font-weight: 700 !important;
    line-height: var(--lh-heading) !important;
    color: var(--color-heading);
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-4);
}

h3,
.h3 {
    font-family: var(--font-heading) !important;
    font-size: var(--fs-h3) !important;
    font-weight: 600 !important;
    line-height: var(--lh-tight) !important;
    color: var(--color-heading);
    margin: 0 0 var(--space-3);
}

h4,
.h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-h4) !important;
    font-weight: 600 !important;
    line-height: var(--lh-tight);
    color: var(--color-heading);
    margin: 0 0 var(--space-3);
}

h5,
.h5 {
    font-family: var(--font-heading);
    font-size: var(--fs-h5) !important;
    font-weight: 600 !important;
    line-height: var(--lh-tight);
    color: var(--color-heading);
    margin: 0 0 var(--space-2);
}

h6,
.h6 {
    font-family: var(--font-heading);
    font-size: var(--fs-h6) !important;
    font-weight: 600 !important;
    line-height: var(--lh-tight);
    color: var(--color-heading);
    margin: 0 0 var(--space-2);
}

p {
    font-size: var(--fs-text-common) !important;
    margin: 0 0 var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

span {
    font-size: var(--fs-text-common) !important;
}

.prose p,
.text-balance {
    max-width: var(--content-max-prose);
}

.text-muted,
small,
.caption {
    font-size: var(--fs-caption) !important;
    color: var(--color-text-muted);
    line-height: var(--lh-body);
}


/* —— Primary buttons (shared marketing + product) —— */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: var(--fs-body-sm) !important;
    font-weight: 600;
    line-height: 1.2;
    border: none;
    text-decoration: none;
    transition: background-color var(--duration-base), color var(--duration-base), box-shadow var(--duration-base), transform var(--duration-base), opacity var(--duration-base);
}

.btn-primary {
    background: var(--gradient-brand-tilt);
    color: var(--color-on-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gradient-hero-cta);
    color: var(--color-text);
}

.btn-secondary:hover {
    filter: brightness(0.98);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-surface);
}

.btn-gradient {
    background: var(--gradient-brand-tilt);
    color: var(--color-on-dark);
    box-shadow: var(--shadow-md);
}

.btn-gradient:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.main_description {
    font-size: 17px !important;
}

.font_32 {
    font-size: 30px !important;
    line-height: 38px;
}

.cardtilemain {
    background-image: url(/assets/images/dev2image/defaulttilebg.png);
    transition: all 0.5s ease-in-out;
}


/* .cardtilemain:hover {
    background-image: url(/assets/images/dev2image/hovertilebg.png);
    transform: rotateY(180deg);
}

.cardtilemain:hover .hoverrotate {
    transform: rotateY(180deg);
} */


/* wrapper (hover area stable rahega) */

.card-wrap {
    perspective: 1000px;
    display: inline-block;
}

.cardtilemain {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.card-wrap:hover .cardtilemain {
    transform: rotateY(180deg);
    background-image: url(/assets/images/dev2image/hovertilebg.png) !important;
}

.card-wrap:hover .hoverrotate {
    transform: rotateY(180deg);
}

.center_cardtilemain {
    /* transform: rotateY(0deg); */
    background-image: url(/assets/images/dev2image/hovertilebg.png);
}

.center_cardtilemain h3,
.center_cardtilemain p {
    color: #fff;
}


/* jab kisi bhi card pe hover ho */

.cards-parent:hover .center_cardtilemain {
    /* transform: rotateY(180deg); */
    background-image: url(/assets/images/dev2image/defaulttilebg.png);
}


/* .cards-parent:hover .center_cardtilemain  */

.cards-parent:hover #centercard h3 {
    color: #262261;
    transform: rotateY(0deg) !important;
}

.cards-parent:hover #centercard p {
    color: #000;
    transform: rotateY(180deg);
    opacity: 0;
}

#centercard:hover #centercard h3 {
    color: #fff;
    transform: rotateY(180deg) !important;
}

#centercard:hover #centercard p {
    opacity: 100;
}

.cards-parent:hover .center_cardtilemain .hoverrotate {
    transform: rotateY(180deg);
}

.cards-parent:hover .center_cardtilemain h3 {
    color: var(--color-primary);
}

.cards-parent:hover .center_cardtilemain p {
    color: black;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cards-parent {
    scroll-padding-left: 50%;
    scroll-padding-right: 50%;
}


/* slider_wrap css */

.slider_wrap {
    flex: 0 0 calc((100% - (var(--live-gap) * (var(--live-per-view) - 1))) / var(--live-per-view));
    perspective: 1000px;
}

.live-card {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.slider_wrap:hover .live-card {
    transform: rotateY(180deg);
}

.slider_wrap:hover .live-card h3,
.slider_wrap:hover .live-card p {
    transform: rotateY(180deg);
}

@media screen and (max-width: 1536px) {
    .font_32 {
        font-size: 26px !important;
        line-height: 34px;
    }
}

@media screen and (max-width: 1024px) {
    .journey-card-visual {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .main_description {
        font-size: 16px !important;
    }
    .font_32 {
        font-size: 22px !important;
        line-height: 28px;
    }
}