﻿
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    /*padding-top: 1.1rem;*/
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* =====================================
   HEADER
===================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.4s ease;
}

.header-scrolled {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* =====================================
   SCROLL PROGRESS BAR
===================================== */

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 999999;
    background: transparent;
}

#scrollProgressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient( to right, #ff0080, #00bfff );
    transition: width 0.1s linear;
}

/* =====================================
   SCROLL TO TOP BUTTON
===================================== */

#scrollTopBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #00bfff, #081b2f );
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

    #scrollTopBtn:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    }

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    #scrollTopBtn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        right: 15px;
        bottom: 20px;
    }
}
/* ═══════════════════════════════════════════════
   HERO SECTION
   - Background images slide/change automatically
   - Text content is ALWAYS visible, never moves
═══════════════════════════════════════════════ */

.hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    position: relative;
    height: 35vh; /* ← reduced height */
    max-height: 350px; /* ← never grows beyond this */
    overflow: hidden;
}

/* ────────────────────────────────
   LAYER 1: Background image slides
   Position absolute, behind everything
──────────────────────────────── */
.hero-bg-slider {
    position: absolute;
    inset: 0; /* fills the whole section */
    width: 100%;
    height: 100%;
    z-index: 1; /* lowest layer */
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0; /* hidden by default */
    transition: opacity 1.2s ease-in-out;
}

    .hero-bg-slide.active {
        opacity: 1; /* only active slide is visible */
    }

    .hero-bg-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* ────────────────────────────────
   LAYER 2: Dark overlay
   Always on top of images, behind text
──────────────────────────────── */
.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(10, 20, 45, 0.78) 0%, rgba(10, 20, 45, 0.55) 50%, rgba(10, 20, 45, 0.72) 100% );
    z-index: 2; /* above images, below text */
}

/* ────────────────────────────────
   LAYER 3: Static text content
   ALWAYS VISIBLE — z-index highest
   position: relative so it sits in
   normal flow inside flexbox center
──────────────────────────────── */
.hero-static-content {
    position: relative; /* NOT absolute — stays in flex center */
    z-index: 3; /* always on top of images & overlay */
    width: 100%;
    max-width: 960px;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Title */
.hero-title {
    font-family: 'Barlow Condensed', 'Segoe UI', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.5);
}

    /* Blue underline accent */
    .hero-title::after {
        content: '';
        display: block;
        width: 70px;
        height: 4px;
        background: #4F84C4;
        border-radius: 2px;
        margin: 12px auto 20px;
    }

/* Description paragraph */
.hero-desc {
    font-size: 16.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.90);
    max-width: 780px;
    margin: 0 0 30px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-formerly {
    color: #7ec8e3;
    font-style: italic;
}

.hero-desc strong {
    color: #ffffff;
    font-weight: 700;
}

/* Services 3-column grid */
.hero-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.hero-svc {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

    .hero-svc:hover {
        background: rgba(79, 132, 196, 0.28);
        border-color: rgba(79, 132, 196, 0.55);
        transform: translateY(-3px);
    }

    .hero-svc i {
        color: #7ec8e3;
        font-size: 16px;
        flex-shrink: 0;
    }

    .hero-svc span {
        font-size: 13.5px;
        color: #ffffff;
        font-weight: 500;
        line-height: 1.35;
    }

/* ────────────────────────────────
   LAYER 4: Dots
   Always visible at bottom
──────────────────────────────── */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 4;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.40);
    transition: background 0.3s, transform 0.3s;
}

    .hero-dot.active {
        background: #ffffff;
        transform: scale(1.4);
    }

/* ═══════════════════════════════════════════════
   ALSO UPDATE heroSlider.js — change class names:
   '.hero-slide'  →  '.hero-bg-slide'
═══════════════════════════════════════════════ */

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 900px) {
    .hero-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .hero-static-content {
        padding: 40px 20px;
    }

    .hero-services {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-svc {
        padding: 9px 11px;
    }

        .hero-svc span {
            font-size: 12px;
        }
}

.hero-section1 {
    text-align: center;
    padding: 40px 20px;
    /*background: linear-gradient(90deg, #d4af37, #ff9800);*/
    -webkit-text-fill-color: transparent;
}

.hero-title1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(90deg, #003d57 0%, #3e5b24 30%, #548540 60%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@media (max-width: 992px) {
    .hero-title1 {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .hero-title1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-title1 {
        font-size: 22px;
    }
}

.hero-section1 {
    position: relative;
    overflow: hidden;
    /*background: linear-gradient( 90deg, #ffffff 0%, #f5f7f8 50%, #eef4f6 100% );*/
}

    .hero-section1::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle, rgba(0,0,0,0.08) 2px, transparent 2px);
        background-size: 40px 40px;
        opacity: 0.2;
        pointer-events: none;
    }







.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* ← FULL WIDTH */
    height: 100%; /* ← FULL HEIGHT */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .hero-slide.active {
        opacity: 1;
    }



.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

.hero-content {
    position: absolute; /* sits ON TOP of slides */
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    /* your existing button styles */
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 4;
}

.hero-section {
    position: relative; /* ← THIS is what all the absolute children anchor to */
    height: 97vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute; /* fills the section */
    inset: 0;
    width: 100%;
    height: 100%;
}


.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 30vh;
        min-height: 200px;
    }
}


@media (max-width: 320px) {
    .hero-section {
        height: 20vh;
        min-height: 100px;
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: absolute; /* sits ON TOP of slides */
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    /* your existing button styles */
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 4;
}



/*//baground change that content */

/* ══════════════════════════════════════
   PF = PRODUCT FEATURE FLIP CARDS
   All classes prefixed with pf-
   No conflict with existing styles
══════════════════════════════════════ */

.pf-card {
    height: 420px;
    perspective: 1200px;
    cursor: pointer;
    user-select: none;
}

.pf-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(.4, .2, .2, 1);
}

/* JS toggles this class on .pf-card */
.pf-card.pf-flipped .pf-card-inner {
    transform: rotateY(180deg);
}

/* ── Shared front/back rules ── */
.pf-front,
.pf-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 22px;
    box-sizing: border-box;
    overflow: hidden;
}

/* ══ FRONT FACE ══ */
.pf-front {
    background: linear-gradient(145deg, #ffffff, #f0f6ff);
    box-shadow: 0 10px 30px rgba(79,132,196,0.15);
    border: 1px solid rgba(79,132,196,0.12);
    justify-content: center;
    text-align: center;
}

.pf-front-title {
    font-size: 30px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px;
}

.pf-front-sub {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 auto;
}

.pf-red-text {
    color: #e8415a;
}

.pf-blue-text {
    color: #1e6fa8;
}

.pf-tap-hint {
    margin-top: 20px;
    font-size: 13px;
    color: #4F84C4;
    font-weight: 500;
}

/* ── Icon circle ── */
.pf-icon-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 18px;
}

    .pf-icon-circle i {
        font-size: 36px;
        color: white;
        -webkit-text-fill-color: white;
        background: none;
    }

.pf-red-circle {
    background: linear-gradient(135deg, #04b41f, #04b41f);
}

.pf-blue-circle {
    background: linear-gradient(135deg, #3b9de8, #1e6fa8);
}

/* ══ BACK FACE ══ */
.pf-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    overflow-y: auto;
}

.pf-red-back {
    background: linear-gradient(135deg, #04b41f, #04b41f);
}

.pf-blue-back {
    background: linear-gradient(135deg, #3b9de8, #1e6fa8);
}

.pf-back-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    width: 100%;
}

.pf-back-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    margin: 0 0 14px;
    width: 100%;
}

.pf-back-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.70);
    margin: 0 0 8px;
    width: 100%;
}

.pf-back-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    width: 100%;
}

    .pf-back-list li {
        font-size: 13px;
        color: #ffffff;
        padding: 6px 0;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        line-height: 1.4;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

        .pf-back-list li::before {
            content: "✓";
            flex-shrink: 0;
            font-weight: 700;
            color: #ffffff;
        }

.pf-tap-back {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    text-align: center;
    width: 100%;
    padding-top: 10px;
    margin-top: auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pf-card {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .pf-card {
        height: 540px;
    }
}

@media (max-width: 320px) {
    .pf-card {
        height: 240px;
    }
}

/* Ensure the hero section breaks out completely and is edge-to-edge */
.full-bleed-hero {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 60vh !important; /* Increased height to look premium on full screen */
    max-height: 600px !important;
    min-height: 350px !important;
    overflow: hidden;
    background-color: #000; /* Prevents white flashes during image load */
}

    /* Ensure the absolute container stretches edge-to-edge */
    .full-bleed-hero .hero-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Force slide images to fill the entire browser width without stretching awkwardly */
    .full-bleed-hero .hero-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    /* Slide text overlay positioning over full width layout */
    .full-bleed-hero .slide-text {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 10%; /* Safer margins for text scannability */
        z-index: 3;
        text-align: center;
    }

        .full-bleed-hero .slide-text h1 {
            color: #ffffff;
            font-size: 2.5rem; /* Upgraded font size for wider display screen compatibility */
            font-weight: 700;
            max-width: 1000px;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
        }

/* Responsive adjustments for Tablets and Mobile devices */
@media (max-width: 768px) {
    .full-bleed-hero {
        height: 45vh !important;
    }

        .full-bleed-hero .slide-text h1 {
            font-size: 1.6rem;
        }
}

@media (max-width: 480px) {
    .full-bleed-hero {
        height: 35vh !important;
    }

        .full-bleed-hero .slide-text h1 {
            font-size: 1.2rem;
        }
}

@media (max-width: 320px) {
    .full-bleed-hero {
        height: 20vh !important;
    }

        .full-bleed-hero .slide-text h1 {
            font-size: 1.2rem;
        }
}

/* 1. Force the wrapper to break out of all margins and hit both edges of the screen */
.full-bleed-wrapper {
    width: 100vw !important;
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

/* 2. Set the height and width of the slider container */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: block;
    margin: 0;
    padding: 0;
    background-color: #000;
}

/* 3. Ensure the slides take up the full space of the container */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    /* 4. THE MAGIC FIX FOR IMAGES: Force them to stretch left-to-right without distortion */
    .hero-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Fills the whole box perfectly edge-to-edge */
        object-position: center !important; /* Keeps the center of the image visible */
        display: block;
    }


/* Forces the background to span 100% of the screen width */
.full-bleed-about {
    width: 100vw !important;
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: #000000;
    padding: 70px 0 90px 0;
}

    /* White text overrides for the dark background */
    .full-bleed-about .text-white {
        color: #ffffff !important;
    }

    .full-bleed-about .text-light {
        color: rgba(255, 255, 255, 0.7);
    }

        .full-bleed-about .text-light strong {
            color: #ffffff;
        }

    .full-bleed-about .formerly-light {
        color: #4F84C4;
        font-style: italic;
    }

/* Tighter grid for the service pill cards (matching the 4-5 column look in the image) */
.services-grid-about {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 20px;
}

    .services-grid-about .service-item {
        background: #ffffff;
        color: #222;
        padding: 12px 18px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 14.5px;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(255,255,255,0.05);
        border: none;
        border-left: 4px solid #4F84C4;
    }

        .services-grid-about .service-item i {
            color: #4F84C4;
            font-size: 16px;
        }

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden; /* THIS IS THE MAGIC LINE: Kills horizontal scroll */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f7fb;
    color: #222;
    padding-top: 90px; /* Space for your fixed header */
}


/* ═══════════════════════════════════════════════
   COREVIEW — COMPLETE RESPONSIVE BREAKPOINTS
   Replace / merge with your existing @media blocks
═══════════════════════════════════════════════ */

/* ── 1920px / 16" large screen boost ── */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .containernew {
        max-width: 1560px;
    }

    .section {
        /*padding: 10px 80px;*/
    }

    .header-logo {
        width: 600px;
        height: 80px;
    }

    .slide-text h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 42px;
    }
}

/* ── 1280–1439px (standard 13"–15" laptop) ── */
@media (min-width: 1280px) and (max-width: 1439px) {
    .header-logo {
        width: 480px;
        height: 70px;
    }

    .slide-text h1 {
        font-size: 2rem;
    }

    .section {
        padding: 10px 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .container {
        max-width: 1100px;
    }
}

/* ── 1025–1279px (small laptop / iPad Pro landscape) ── */
@media (min-width: 1025px) and (max-width: 1279px) {
    .header-logo {
        width: 360px;
        height: 60px;
    }

    nav a {
        font-size: 13px !important;
    }

    .hero-section {
        height: 80vh;
    }

    .slide-text h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 10px 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .architecture-section {
        flex-wrap: wrap;
    }

    .product-grid1 {
        grid-template-columns: 1fr;
    }

    .customer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── 769–1024px (tablet portrait / small laptop) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        min-height: 70px;
    }

    .header-logo {
        width: 300px;
        height: 55px;
    }

    .hamburger {
        display: flex;
    }

    nav {
        display: none;
    }

        nav.nav-open {
            display: flex;
        }

    .hero-section {
        height: 65vh;
    }

    .slide-text h1 {
        font-size: 1.6rem;
    }

    .section {
        padding: 10px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .stat-card h3 {
        font-size: 44px;
    }

    .hero-title1 {
        font-size: 26px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid1 {
        grid-template-columns: 1fr;
    }

    .pf-card {
        height: 480px;
    }

    .customer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* ── 481–768px (mobile landscape / small tablet) ── */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        padding-top: 65px;
    }

    .header {
        min-height: 65px;
    }

    .header-logo {
        width: 220px;
        height: 55px;
    }

    .hero-section {
        height: 40vh;
        min-height: 250px;
    }

    .slide-text h1 {
        font-size: 1.3rem;
    }

    .section {
        padding: 10px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .stat-card h3 {
        font-size: 38px;
    }

    .hero-title1 {
        font-size: 22px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid1 {
        grid-template-columns: 1fr;
    }

    .pf-card {
        height: 500px;
    }

    .customer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-logo,
    .customer-logo1 {
        height: 55px;
    }

    .architecture-section {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* ── ≤ 480px (mobile portrait — all phones) ── */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .header {
        min-height: 60px;
    }

    .header-logo {
        width: 180px;
        height: 45px;
    }

    .hero-section {
        height: 30vh;
        min-height: 200px;
    }

    .slide-text h1 {
        font-size: 1.1rem;
    }

    .section {
        padding: 8px 12px;
    }

    .section-title {
        font-size: 22px;
    }

    .about-text {
        font-size: 15px;
    }

    .stat-card h3 {
        font-size: 36px;
    }

    .hero-title1 {
        font-size: 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-grid1 {
        grid-template-columns: 1fr;
    }

    .pf-card {
        height: 540px;
    }

    .pf-front-title {
        font-size: 22px;
    }

    .pf-front-sub {
        font-size: 15px;
    }

    .customer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .customer-card {
        padding: 12px 8px;
        min-height: 80px;
    }

    .customer-logo,
    .customer-logo1 {
        height: 45px;
    }

    .architecture-section {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }

    .map-container {
        height: 250px;
    }
}


/* ═══════════════════════════════════════════════
   MOBILE — SMALL (≤ 375px) iPhone SE, Galaxy A series
═══════════════════════════════════════════════ */
@media (max-width: 375px) {
    body {
        padding-top: 56px;
    }

    .header {
        min-height: 56px;
        padding: 6px 10px;
    }

    .header-logo {
        width: 150px;
        height: 38px;
    }

    .hero-section {
        height: 28vh;
        min-height: 180px;
    }

    .slide-text {
        padding: 10px 40px;
    }

        .slide-text h1 {
            font-size: 0.95rem;
            line-height: 1.35;
        }

    .hero-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .prev-btn {
        left: 6px;
    }

    .next-btn {
        right: 6px;
    }

    .hero-dot {
        width: 7px;
        height: 7px;
        margin: 0 3px;
    }

    .section {
        padding: 8px 10px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-title1 {
        font-size: 17px;
    }

    .stats-grid {
        gap: 14px;
    }

    .stat-card {
        padding: 22px 14px;
    }

        .stat-card h3 {
            font-size: 32px;
        }

        .stat-card p {
            font-size: 12px;
            letter-spacing: 1px;
        }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-grid1 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pf-card {
        height: 520px;
    }

    .pf-icon-circle {
        width: 64px;
        height: 64px;
    }

        .pf-icon-circle i {
            font-size: 28px;
        }

    .pf-front-title {
        font-size: 19px;
    }

    .pf-front-sub {
        font-size: 13px;
    }

    .pf-back-title {
        font-size: 16px;
    }

    .pf-back p {
        font-size: 12px;
        line-height: 1.55;
    }

    .customer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .customer-card {
        padding: 10px 6px;
        min-height: 70px;
    }

    .customer-logo,
    .customer-logo1 {
        height: 38px;
        max-width: 120px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 14px;
    }

    .contact-form button {
        padding: 12px;
        font-size: 16px;
    }

    .contact-info h3 {
        font-size: 18px;
    }

    .contact-info p {
        font-size: 13px;
    }

    .map-container {
        height: 220px;
    }

    #scrollTopBtn {
        width: 42px;
        height: 42px;
        font-size: 18px;
        right: 10px;
        bottom: 15px;
    }

    .service-item {
        padding: 10px 12px;
    }

        .service-item span {
            font-size: 13px;
        }
}












/*//new address*/

/*<meta name="viewport" content="width=device-width, initial-scale=1.0" / >*/
/* MOBILE */
/*@media screen and (max-width: 768px) {
    .dashboard

{
    padding: 8px;
}*/

/*.header {
    flex-direction: column;
    text-align: center;
}

.card {
    min-height: auto;
}

.chart-box {
    padding: 6px;
}

}*/

/* TV / LARGE DISPLAY */
/*@media screen and (min-width: 1920px) {
    .dashboard {
        zoom: 1.15;
    }
}*/

/* 4K TV */
/*@media screen and (min-width: 3000px) {
    .dashboard {
        zoom: 1.6;
    }
}*/





/* ══════════════════════════════════════
   SPECIFIC FIXES FOR TINY SCREENS (320px)
══════════════════════════════════════ */
@media (max-width: 360px) {
    .header {
        padding: 6px 10px;
    }

    /* Adjust branding texts to prevent overlap wrap bugs */
    .coreview-title {
        font-size: 12px;
    }

    .accessible-tech {
        font-size: 9px;
    }

    /* Hero slider adjustments for text readability */
    .hero-section {
        height: 30vh;
    }

    .hero-content h1,
    .slide-text h1 {
        font-size: 0.85rem !important;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.75rem !important;
    }

    /* Ensure architectural cards adapt to full width screen boundaries */
    .architecture-section {
        padding: 15px !important;
        gap: 15px !important;
    }

    .architecture-card {
        width: 100% !important;
        max-width: 280px;
    }

        .architecture-card img {
            height: 180px;
        }

    /* Keep individual customer logo blocks clean in two columns */
    .customer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .customer-card {
        padding: 10px 5px !important;
        min-height: 70px !important;
    }

    .customer-logo, .customer-logo1 {
        height: 35px !important;
    }
}



@media (max-width: 480px) {
    /* Shrink the section titles so they don't break lines awkwardly */
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .section {
        padding: 10px 15px; /* Slightly tighter padding for maximum screen usage */
    }

    /* Force layouts into clean single columns */
    .services-grid,
    .product-grid,
    .product-grid1 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .product-card {
        padding: 20px; /* Reduce padding inside cards so text fits nicely */
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 15px;
        height: auto;
        min-height: 65px;
    }

    .logo {
        gap: 6px;
        max-width: 70%; /* Prevents logo content from crushing the hamburger menu */
    }

    /* Make logos scale smoothly on small screens */
    .header-logo {
        width: 100%;
        max-width: 260px; /* Looks right on 485px and automatically shrinks smaller for 320px */
        height: auto;
    }


    .coreview-title {
        font-size: 14px;
        white-space: nowrap;
    }

    .accessible-tech {
        font-size: 10px;
    }

    /* Rest of your existing 768px rules... */
}




/* ═════════════════════════════════════════════════════
   UNIFIED MOBILE OPTIMIZATION (480px down to 320px)
═════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .hero-section {
        height: 28vh;
        max-height: 220px;
        min-height: 180px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .section {
        padding: 10px 15px; /* Saves horizontal real estate */
    }

    /* Standardizes grids across all mobile profiles */
    .services-grid,
    .product-grid,
    .product-grid1 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .product-card {
        padding: 20px;
    }
}

/* ── TARGETED FIXES FOR MOBILE M (375px Wide Screens) ── */
@media (max-width: 390px) {
    .header {
        padding: 8px 12px;
    }

    /* Keeps logo text perfectly inline without line-breaks */
    .coreview-title {
        font-size: 13px !important;
    }

    .accessible-tech {
        font-size: 9.5px !important;
    }

    /* Scales Slider Headings to match 375px beautifully */
    .slide-text {
        padding: 10px 35px !important;
    }

        .hero-content h1,
        .slide-text h1 {
            font-size: 1.1rem !important;
            line-height: 1.3;
        }

    .hero-content p {
        font-size: 0.9rem !important;
    }

    /* Prevents the 3 stat cards from clipping or looking bloated */
    .stats-grid {
        margin-top: 30px !important;
        grid-template-columns: 1fr !important; /* Stack cleanly for thumbs */
        gap: 15px !important;
    }

    .stat-card {
        padding: 20px 15px !important;
    }

        .stat-card h3 {
            font-size: 38px !important;
        }

        .stat-card p {
            font-size: 12px !important;
        }

    /* Adjusts the "Powering the engine..." header block */
    .hero-title1 {
        font-size: 1.3rem !important;
        line-height: 1.4;
        text-align: center;
    }

    /* Architecture Section */
    .architecture-section {
        padding: 20px !important;
        gap: 20px !important;
    }

    .architecture-card {
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto;
    }

        .architecture-card img {
            height: 200px;
        }

    /* Cleans up customer logo grids */
    .customer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .customer-card {
        padding: 12px 8px !important;
        min-height: 80px !important;
    }

    .customer-logo, .customer-logo1 {
        height: 45px !important;
    }
}

/* ── TARGETED FIXES FOR MOBILE S (320px Wide Screens) ── */
@media (max-width: 330px) {
    .header {
        padding: 6px 8px;
    }

    .coreview-title {
        font-size: 11.5px !important;
    }

    .accessible-tech {
        font-size: 8.5px !important;
    }

    /* Makes text slightly more compact for tiny 320px screens */
    .slide-text {
        padding: 5px 20px !important;
    }

        .hero-content h1,
        .slide-text h1 {
            font-size: 0.95rem !important;
        }

    .architecture-section {
        padding: 15px !important;
    }

    .architecture-card {
        max-width: 280px;
    }

        .architecture-card img {
            height: 170px;
        }

    .customer-grid {
        gap: 6px !important;
    }

    .customer-card {
        padding: 10px 4px !important;
        min-height: 70px !important;
    }

    .customer-logo, .customer-logo1 {
        height: 38px !important;
    }
}



/* ═══════════════════════════════════════════════════════════════════
   UNIFIED FLUID MOBILE EMULATION SYSTEM (From 480px down to 320px)
   Perfect support for Mobile L (425px), Mobile M (375px) & Mobile S (320px)
   ═══════════════════════════════════════════════════════════════════ */

/* ── BASE RESPONSIVE SETTINGS FOR ALL MOBILE (480px & Under) ── */
@media (max-width: 480px) {
    .hero-section {
        height: 28vh;
        max-height: 230px;
        min-height: 190px;
    }

    .section {
        padding: 15px 20px; /* Protects horizontal boundaries */
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    /* Standardizes complex structures into neat mobile columns */
    .services-grid,
    .product-grid,
    .product-grid1 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .product-card {
        padding: 20px;
    }
}

/* ── TARGETED FIXES FOR MOBILE L (425px Wide Screens) ── */
@media (max-width: 440px) {
    /* Balance out Header spacing */
    .header {
        padding: 8px 16px;
    }

    .coreview-title {
        font-size: 14px !important;
    }

    .accessible-tech {
        font-size: 10px !important;
    }

    /* Hero Slider Font Tuning for 425px */
    .slide-text {
        padding: 10px 40px !important;
    }

        .hero-content h1,
        .slide-text h1 {
            font-size: 1.2rem !important;
            line-height: 1.35;
        }

    /* Stats Grid Layout Adjustments */
    .stats-grid {
        margin-top: 40px !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Keep 3-column format if compact */
        gap: 10px !important;
    }

    .stat-card {
        padding: 15px 10px !important;
    }

        .stat-card h3 {
            font-size: 28px !important;
        }

        .stat-card p {
            font-size: 11px !important;
            line-height: 1.2;
        }

    /* Middle section hero title */
    .hero-title1 {
        font-size: 1.45rem !important;
        line-height: 1.4;
        text-align: center;
    }
}

/* ── TARGETED FIXES FOR MOBILE M (375px Wide Screens) ── */
@media (max-width: 390px) {
    .header {
        padding: 8px 12px;
    }

    .coreview-title {
        font-size: 13px !important;
    }

    .accessible-tech {
        font-size: 9.5px !important;
    }

    /* Tighten Slider content boundaries to fit perfectly without overflow */
    .slide-text {
        padding: 10px 32px !important;
    }

        .hero-content h1,
        .slide-text h1 {
            font-size: 1.08rem !important;
        }

    /* Stacking Stats Grid items vertically prevents word-clipping on screens under 400px */
    .stats-grid {
        margin-top: 30px !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .stat-card {
        padding: 20px 15px !important;
    }

        .stat-card h3 {
            font-size: 36px !important;
        }

        .stat-card p {
            font-size: 13px !important;
        }

    .hero-title1 {
        font-size: 1.25rem !important;
    }

    /* Architecture Cards Layout */
    .architecture-section {
        padding: 20px !important;
        gap: 20px !important;
    }

    .architecture-card {
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Client/Partner Logo alignment stabilization */
    .customer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .customer-card {
        padding: 12px 8px !important;
        min-height: 80px !important;
    }

    .customer-logo, .customer-logo1 {
        height: 45px !important;
    }
}

/* ── TARGETED FIXES FOR MOBILE S (320px Wide Screens) ── */
@media (max-width: 330px) {
    .header {
        padding: 6px 8px;
    }

    .coreview-title {
        font-size: 11.5px !important;
    }

    .accessible-tech {
        font-size: 8.5px !important;
    }

    /* Micro text sizing adjustments for ultra-narrow profiles */
    .slide-text {
        padding: 5px 20px !important;
    }

        .hero-content h1,
        .slide-text h1 {
            font-size: 0.95rem !important;
        }

    .hero-title1 {
        font-size: 1.15rem !important;
    }

    .architecture-section {
        padding: 15px !important;
    }

    .architecture-card {
        max-width: 270px;
    }

        .architecture-card img {
            height: 170px;
        }

    .customer-grid {
        gap: 6px !important;
    }

    .customer-card {
        padding: 10px 4px !important;
        min-height: 70px !important;
    }

    .customer-logo, .customer-logo1 {
        height: 38px !important;
    }
}

/* ═══════════════════════════════════════
   CRISP TEXT RENDERING & ALIGNMENT ENGINES
   ═══════════════════════════════════════ */

/* Layout wrapper container */
.pf-img-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    /* Disables browser layer smoothing blurs */
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

/* Card image target selector overrides global app.css limits */
.pf-back .header-logo1 {
    width: 100% !important; /* Let it use the full container width */
    max-width: 600px !important; /* Perfect limit for desktop visual size */
    height: auto !important; /* Keeps original proportion aspect ratio */
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    /* Disables low-resolution blurring on 3D elements */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}

/* ═══════════════════════════════════════
   TABLET RESPONSIVE FIXES (768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .pf-back .header-logo1 {
        max-width: 90% !important; /* Allow it to span most of the card width */
        width: 100% !important; /* Boost size on tablet viewports */
    }
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE FIXES (425px)
   ═══════════════════════════════════════ */
@media (max-width: 425px) {
    .pf-back .header-logo1 {
        max-width: 95% !important; /* Clean, full-bleed footprint on narrow profiles */
        width: 100% !important;
    }

    /* Provides the layout image extra room to display cleanly */
    .pf-back {
        padding: 12px 8px !important;
    }
}


/* ═══════════════════════════════════════
   CARD BACK SIDE TEXT SIZE ACCELERATION 
   ═══════════════════════════════════════ */

/* Target the back layout structure container */


/* 1. Universal Title Adjustment for all Card Backs */
.pf-back-title,
.pf-back h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.5px !important;
}

/* 2. Universal List Text Size Increase for all Card Backs */
.pf-back ul {
    font-size: 14px !important; /* Increased from small 11px to standard clear 14px */
    /* Add breathing room between lines */
    padding-left: 20px !important;
    margin-bottom: 15px !important;
}

    .pf-back ul li {
        font-size: 14px !important;
        /* Generates cleaner spacing between bullet points */
        color: #ffffff !important;
    }

/* 3. Universal Paragraph Text Size Increase (if any exist) */
.pf-back p {
    font-size: 14px !important;
    color: #ffffff !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE MOBILE BREAKPOINTS
   ═══════════════════════════════════════ */

/* Scale slightly downwards on mobile so text never overflows card edges */
@media (max-width: 425px) {

    .pf-back-title,
    .pf-back h3 {
        font-size: 16px !important;
    }

    .pf-back ul,
    .pf-back ul li,
    .pf-back p {
        font-size: 12.5px !important; /* Balanced clarity footprint for phone viewports */
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
    }
}


/* ═══════════════════════════════════════
   LAPTOP L (1440px) IMAGE SIZE EXPANSION
   ═══════════════════════════════════════ */
@media (min-width: 1440px) {
    /* 1. Expand the container to allow more room */
    .pf-img-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px !important;
        margin-bottom: 15px !important;
    }

        /* 2. Target the image inside the container to increase both width and height */
        .pf-img-container .header-logo1 {
            width: 95% !important; /* Fills up the card width safely */
            max-width: 480px !important; /* Increased from 250px/270px to 380px */
            height: 220px !important; /* Forces a larger explicit height footprint */
            object-fit: contain !important; /* Keeps the aspect ratio perfect without stretching details */
            /* Maintains sharp text resolution at larger sizes */
            image-rendering: -webkit-optimize-contrast !important;
            image-rendering: crisp-edges !important;
        }
}



/* ═══════════════════════════════════════
   MOBILE RESPONSIVE ARCHITECTURE FIXES
   ═══════════════════════════════════════ */

@media (max-width: 425px) {
    /* 1. Remove forced structural grid restrictions */
    .architecture-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 10px 5px !important; /* Tighten up outer screen margins */
        width: 100% !important;
    }

    /* 2. Strip out inner white space margins from the card container */
    .architecture-card {
        background: #ffffff !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 8px !important; /* Erases side white padding so images can grow */
        margin: 0 auto !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
    }

        /* 3. Force the architecture diagram image to expand and become big */
        .architecture-card img {
            width: 100% !important; /* Uses full card workspace width */
            max-width: 380px !important; /* Maximum stretch allowance for Mobile L */
            height: auto !important; /* Keeps ratio clean without warp */
            display: block !important;
            margin: 0 auto 10px auto !important;
            object-fit: contain !important;
            /* Anti-blur text rendering engines */
            image-rendering: -webkit-optimize-contrast !important;
            image-rendering: crisp-edges !important;
        }

        /* 4. Text adjustments beneath the expanded graphics */
        .architecture-card h3 {
            font-size: 15px !important;
            margin-top: 5px !important;
            margin-bottom: 4px !important;
        }

        .architecture-card p {
            font-size: 12px !important;
            margin-bottom: 0 !important;
        }
}

/* ═══════════════════════════════════════
   MOBILE M SPECIFIC BALANCING (375px)
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .architecture-card {
        padding: 10px 6px !important;
    }

        .architecture-card img {
            max-width: 340px !important; /* Optimizes print footprint for iPhone sizes */
        }
}

/* ═══════════════════════════════════════
   MOBILE S SPECIFIC BALANCING (320px)
   ═══════════════════════════════════════ */
@media (max-width: 320px) {
    .architecture-card {
        padding: 8px 4px !important;
    }

        .architecture-card img {
            max-width: 290px !important; /* Scales down gracefully without breaking container boundaries */
        }

        .architecture-card h3 {
            font-size: 14px !important;
        }
}




/* ═══════════════════════════════════════
   MOBILE RESPONSIVE EQUAL FLIP CARD FIX
   (Targets: 425px, 375px, and 320px)
   ═══════════════════════════════════════ */

@media (max-width: 425px) {

    /* 1. Remove strict grid row heights so cards can size themselves naturally */
    .product-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        padding: 10px !important;
        height: auto !important;
    }

    /* 2. Force the card container to match dynamic content heights */
    .pf-card {
        height: auto !important;
        min-height: 380px !important; /* Baseline height for cards with less text */
        perspective: 1000px !important;
    }

    /* 3. Ensure inner wrapper fills the container height */
    .pf-card-inner {
        height: 100% !important;
        position: relative !important;
        display: flex !important;
    }

    /* 4. Make Front and Back sides completely equal in layout and size */
    .pf-front,
    .pf-back {
        position: relative !important; /* Changes from absolute to hold structural space */
        width: 100% !important;
        height: auto !important;
        min-height: 380px !important; /* Guarantees front matches back baseline */
        /* Smooth vertical packing */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        /* Padding and box matching */
        padding: 20px 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        /* Keep original CSS card flips working cleanly */
        backface-visibility: hidden !important;
    }

    /* Absolute position fix exclusively for the card flip overlay state */
    .pf-back {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow-y: auto !important; /* Adds smooth internal scrolling if text is exceptionally massive */
        -webkit-overflow-scrolling: touch;
    }

    /* 5. Typography tuning so descriptions fit perfectly inside 425px - 320px boundaries */
    .pf-back-desc {
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin-top: 5px !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    .pf-front-sub {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .pf-front-title,
    .pf-back-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        font-weight: bold !important;
    }

    .pf-tap-hint {
        margin-top: auto !important; /* Automatically pushes hint to the bottom of the front side */
        padding-top: 15px !important;
    }
}

/* ═══════════════════════════════════════
   MOBILE S TWEAKS (320px) 
   ═══════════════════════════════════════ */
@media (max-width: 320px) {
    .pf-card,
    .pf-front,
    .pf-back {
        min-height: 410px !important; /* Slightly taller default baseline for tight screens */
    }

    .pf-back-desc,
    .pf-front-sub {
        font-size: 12px !important; /* Slightly crisper size for tiny screens */
        line-height: 1.4 !important;
    }
}


/* ═══════════════════════════════════════
   PRODUCT FEATURES LONG CARD MOBILE FIX
   (Targets exclusively: 425px, 375px, 320px)
   ═══════════════════════════════════════ */

@media (max-width: 425px) {
    /* 1. Target only the long card container to expand its size */
    .pf-card.pf-card-long {
        height: auto !important;
        min-height: 520px !important; /* Increases size significantly to fit all 14 bullet points */
    }

        /* 2. Sync front and back inner components to match the new large height layout */
        .pf-card.pf-card-long .pf-front,
        .pf-card.pf-card-long .pf-back {
            min-height: 520px !important;
            height: 100% !important;
            padding: 18px 14px !important;
            display: flex !important;
            flex-direction: column !important;
        }

            /* 3. Give breathing room and perfect legibility to the back list */
            .pf-card.pf-card-long .pf-back ul {
                font-size: 12.5px !important; /* Increases text size so it is highly readable */
                line-height: 1.45 !important;
                padding-left: 18px !important;
            }

                .pf-card.pf-card-long .pf-back ul li {
                    margin-bottom: 5px !important; /* Generates a clean gap between points */
                }

            /* 4. Align layout hint on the front side to stick to the new larger bottom boundary */
            .pf-card.pf-card-long .pf-front .pf-tap-hint {
                margin-top: auto !important;
                padding-top: 20px !important;
            }
}

/* ═══════════════════════════════════════
   MOBILE M (375px) & MOBILE S (320px) ADAPTATION
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .pf-card.pf-card-long,
    .pf-card.pf-card-long .pf-front,
    .pf-card.pf-card-long .pf-back {
        min-height: 560px !important; /* Slightly taller on narrower screens as text wraps more */
    }
}

@media (max-width: 320px) {
    .pf-card.pf-card-long,
    .pf-card.pf-card-long .pf-front,
    .pf-card.pf-card-long .pf-back {
        min-height: 640px !important; /* Maximum height allocation for the narrowest 320px viewport */
    }

        .pf-card.pf-card-long .pf-back ul {
            font-size: 11.5px !important; /* Slightly optimized text scaling for tiny screens */
        }
}


/* ═══════════════════════════════════════
   HRMS SPECIFIC CARD SIZE ACCELERATION
   (Targets exclusively: 425px, 375px, 320px)
   ═══════════════════════════════════════ */

@media (max-width: 425px) {
    /* 1. target the isolated container to extend its sizing footprint */
    .pf-card.pf-card-hrms {
        height: auto !important;
        min-height: 480px !important; /* Slightly increased to fit paragraphs elegantly */
    }

        /* 2. Scale both the front and back inner face containers together */
        .pf-card.pf-card-hrms .pf-front,
        .pf-card.pf-card-hrms .pf-back {
            min-height: 480px !important;
            height: 100% !important;
            padding: 18px 15px !important;
            display: flex !important;
            flex-direction: column !important;
        }

            /* 3. Text formatting optimization inside the back side */
            .pf-card.pf-card-hrms .pf-back .pf-back-desc {
                font-size: 12.5px !important; /* Extremely clean and legible text profile */
                line-height: 1.45 !important;
                text-align: left !important;
                margin-top: 5px !important;
            }

            /* 4. Force tap indicator to anchor safely onto the bottom boundary of the front face */
            .pf-card.pf-card-hrms .pf-front .pf-tap-hint {
                margin-top: auto !important;
                padding-top: 15px !important;
            }
}

/* ═══════════════════════════════════════
   MOBILE M (375px) HEIGHT BALANCE TWEAK
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .pf-card.pf-card-hrms,
    .pf-card.pf-card-hrms .pf-front,
    .pf-card.pf-card-hrms .pf-back {
        min-height: 520px !important; /* Extends depth slightly as strings wrap downwards */
    }
}

/* ═══════════════════════════════════════
   MOBILE S (320px) HEIGHT BALANCE TWEAK
   ═══════════════════════════════════════ */
@media (max-width: 320px) {
    .pf-card.pf-card-hrms,
    .pf-card.pf-card-hrms .pf-front,
    .pf-card.pf-card-hrms .pf-back {
        min-height: 590px !important; /* Maximum height to contain paragraphs securely */
    }

        .pf-card.pf-card-hrms .pf-back .pf-back-desc {
            font-size: 11.5px !important; /* Optimized layout scale for thin screen widths */
        }
}


/* ═══════════════════════════════════════
   COST PER CAR SPECIFIC CARD SIZE REDUCTION
   (Targets exclusively: 425px, 375px, 320px)
   ═══════════════════════════════════════ */

@media (max-width: 425px) {
    /* 1. Target the isolated container to reduce its vertical footprint */
    .pf-card.pf-card-costcar {
        height: auto !important;
        min-height: 290px !important; /* Reduced from the standard 380px since text is short */
    }

        /* 2. Scale both front and back inner face containers down to match precisely */
        .pf-card.pf-card-costcar .pf-front,
        .pf-card.pf-card-costcar .pf-back {
            min-height: 290px !important;
            height: 100% !important;
            padding: 15px 12px !important; /* Slightly more compact padding for the smaller layout */
            display: flex !important;
            flex-direction: column !important;
        }

            /* 3. Tighten margins to fit beautifully inside the reduced height footprint */
            .pf-card.pf-card-costcar .pf-front-sub,
            .pf-card.pf-card-costcar .pf-back .pf-back-desc {
                font-size: 13px !important;
                line-height: 1.4 !important;
                margin-top: 4px !important;
                margin-bottom: 0 !important;
            }

            /* 4. Align tap indicator to the bottom of the shorter card front */
            .pf-card.pf-card-costcar .pf-front .pf-tap-hint {
                margin-top: auto !important;
                padding-top: 10px !important;
            }
}

/* ═══════════════════════════════════════
   MOBILE M (375px) HEIGHT BALANCE TWEAK
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .pf-card.pf-card-costcar,
    .pf-card.pf-card-costcar .pf-front,
    .pf-card.pf-card-costcar .pf-back {
        min-height: 310px !important; /* Slightly taller to prevent text wrapping cutoff */
    }
}

/* ═══════════════════════════════════════
   MOBILE S (320px) HEIGHT BALANCE TWEAK
   ═══════════════════════════════════════ */
@media (max-width: 320px) {
    .pf-card.pf-card-costcar,
    .pf-card.pf-card-costcar .pf-front,
    .pf-card.pf-card-costcar .pf-back {
        min-height: 340px !important; /* Optimized balance for very tight screen width */
    }
}
/* ═══════════════════════════════════════
   FML + SPC SPECIFIC CARD MOBILE REDUCTION
   (Targets exclusively: 425px, 375px, 320px)
   ═══════════════════════════════════════ */

@media (max-width: 425px) {
    /* 1. Target the isolated container to shrink its vertical footprint */
    .pf-card.pf-card-fmlspc {
        height: auto !important;
        min-height: 310px !important; /* Scaled down because content is shorter */
    }

        /* 2. Lock both front and back layout faces to the exact same reduced size profile */
        .pf-card.pf-card-fmlspc .pf-front,
        .pf-card.pf-card-fmlspc .pf-back {
            min-height: 310px !important;
            height: 100% !important;
            padding: 16px 14px !important; /* Compact internal cell margins */
            display: flex !important;
            flex-direction: column !important;
        }

            /* 3. Text layout fine-tuning for crisp presentation */
            .pf-card.pf-card-fmlspc .pf-front-sub,
            .pf-card.pf-card-fmlspc .pf-back .pf-back-desc {
                font-size: 12.5px !important;
                line-height: 1.4 !important;
                margin-top: 5px !important;
                margin-bottom: 0 !important;
            }

            /* 4. Keep tap action indicator safely anchored down to the inner baseline boundary */
            .pf-card.pf-card-fmlspc .pf-front .pf-tap-hint {
                margin-top: auto !important;
                padding-top: 10px !important;
            }
}

/* ═══════════════════════════════════════
   MOBILE M (375px) HEIGHT STABILIZER
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .pf-card.pf-card-fmlspc,
    .pf-card.pf-card-fmlspc .pf-front,
    .pf-card.pf-card-fmlspc .pf-back {
        min-height: 340px !important; /* Prevents text overflow as the container grows narrower */
    }
}

/* ═══════════════════════════════════════
   MOBILE S (320px) HEIGHT STABILIZER
   ═══════════════════════════════════════ */
@media (max-width: 320px) {
    .pf-card.pf-card-fmlspc,
    .pf-card.pf-card-fmlspc .pf-front,
    .pf-card.pf-card-fmlspc .pf-back {
        min-height: 380px !important; /* Perfect height alignment for narrow devices */
    }
}



/* ═══════════════════════════════════════
   COSTING & SUPPLIER CARDS MOBILE REDUCTION
   (Targets exclusively: 425px, 375px, 320px)
   ═══════════════════════════════════════ */

@media (max-width: 425px) {
    /* 1. Shrink the main wrappers to a smaller height blueprint */
    .pf-card.pf-card-costing,
    .pf-card.pf-card-costing .pf-front,
    .pf-card.pf-card-costing .pf-back {
        min-height: 290px !important; /* Perfect low height footprint for Costing */
        height: 100% !important;
    }

    .pf-card.pf-card-supplier,
    .pf-card.pf-card-supplier .pf-front,
    .pf-card.pf-card-supplier .pf-back {
        min-height: 330px !important; /* Slightly taller than costing but still reduced */
        height: 100% !important;
    }

        /* 2. Common layout optimizations for both reduced cards */
        .pf-card.pf-card-costing .pf-front, .pf-card.pf-card-costing .pf-back,
        .pf-card.pf-card-supplier .pf-front, .pf-card.pf-card-supplier .pf-back {
            padding: 15px 13px !important;
            display: flex !important;
            flex-direction: column !important;
        }

        .pf-card.pf-card-costing .pf-back-desc,
        .pf-card.pf-card-supplier .pf-back-desc {
            font-size: 12.5px !important;
            line-height: 1.4 !important;
            margin-top: 4px !important;
        }

        /* 3. Keep front-side indicators anchored cleanly at the bottom */
        .pf-card.pf-card-costing .pf-front .pf-tap-hint,
        .pf-card.pf-card-supplier .pf-front .pf-tap-hint {
            margin-top: auto !important;
            padding-top: 10px !important;
        }
}

/* ═══════════════════════════════════════
   MOBILE M (375px) HEIGHT BALANCE TWEAK
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .pf-card.pf-card-costing,
    .pf-card.pf-card-costing .pf-front,
    .pf-card.pf-card-costing .pf-back {
        min-height: 310px !important; /* Balances word wrapping lines */
    }

    .pf-card.pf-card-supplier,
    .pf-card.pf-card-supplier .pf-front,
    .pf-card.pf-card-supplier .pf-back {
        min-height: 360px !important;
    }
}

/* ═══════════════════════════════════════
   MOBILE S (320px) HEIGHT BALANCE TWEAK
   ═══════════════════════════════════════ */
@media (max-width: 320px) {
    .pf-card.pf-card-costing,
    .pf-card.pf-card-costing .pf-front,
    .pf-card.pf-card-costing .pf-back {
        min-height: 350px !important; /* Prevents overflow on ultra-narrow phones */
    }

    .pf-card.pf-card-supplier,
    .pf-card.pf-card-supplier .pf-front,
    .pf-card.pf-card-supplier .pf-back {
        min-height: 410px !important;
    }
}

/* ═══════════════════════════════════════
   MONTESSORI CARD MOBILE SIZE REDUCTION
   (Targets exclusively: 425px, 375px, 320px)
   ═══════════════════════════════════════ */

@media (max-width: 425px) {
    /* 1. Shrink the main layout container wrapper to sit clean around shorter content */
    .pf-card.pf-card-montessori {
        height: auto !important;
        min-height: 330px !important; /* Reduced layout height to fit 3 small paragraphs precisely */
    }

        /* 2. Match front and back face sizes symmetrically to ensure zero layout clipping */
        .pf-card.pf-card-montessori .pf-front,
        .pf-card.pf-card-montessori .pf-back {
            min-height: 330px !important;
            height: 100% !important;
            padding: 15px 14px !important; /* Compact internal cell block margins */
            display: flex !important;
            flex-direction: column !important;
        }

        /* 3. Optimize descriptive styling layouts */
        .pf-card.pf-card-montessori .pf-back-desc {
            font-size: 12.5px !important;
            line-height: 1.4 !important;
            margin-top: 4px !important;
        }

        /* 4. Securely align the touch hints to the new low inner bottom boundary lines */
        .pf-card.pf-card-montessori .pf-front .pf-tap-hint {
            margin-top: auto !important;
            padding-top: 10px !important;
        }
}

/* ═══════════════════════════════════════
   MOBILE M (375px) HEIGHT BALANCE ADAPTATION
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .pf-card.pf-card-montessori,
    .pf-card.pf-card-montessori .pf-front,
    .pf-card.pf-card-montessori .pf-back {
        min-height: 360px !important; /* Slightly larger to adjust structural row wrapping safely */
    }
}

/* ═══════════════════════════════════════
   MOBILE S (320px) HEIGHT BALANCE ADAPTATION
   ═══════════════════════════════════════ */
@media (max-width: 320px) {
    .pf-card.pf-card-montessori,
    .pf-card.pf-card-montessori .pf-front,
    .pf-card.pf-card-montessori .pf-back {
        min-height: 410px !important; /* Prevents overflow clipping rules on ultra-narrow devices */
    }
}


/* ═══════════════════════════════════════
   STATS CARD MOBILE SIZE EXPANSION
   (Targets exclusively: 425px, 375px, 320px)
   ═══════════════════════════════════════ */

@media (max-width: 425px) {
    /* 1. Force the grid to stack neatly and increase vertical spacing */
    .stats-grid.stats-mobile-custom {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 40px !important; /* Slightly optimized top margin for mobile */
    }

        /* 2. Scale up the actual size/height profile of the stat cards */
        .stats-grid.stats-mobile-custom .stat-card {
            width: 100% !important;
            height: auto !important;
            min-height: 150px !important; /* Increased card depth profile */
            padding: 25px 20px !important; /* Generous internal padding for a larger appearance */
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            text-align: center !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important; /* Refined visual depth */
        }

            /* 3. Scale up the numbers (0+) to make them look bold and prominent */
            .stats-grid.stats-mobile-custom .stat-card h3 {
                font-size: 36px !important; /* Visually distinct prominent numbers */
                font-weight: 700 !important;
                margin-bottom: 8px !important;
            }

            /* 4. Format description texts labels neatly */
            .stats-grid.stats-mobile-custom .stat-card p {
                font-size: 15px !important; /* Highly readable text scale */
                line-height: 1.4 !important;
                margin: 0 !important;
            }
}

/* ═══════════════════════════════════════
   MOBILE M (375px) HEIGHT BALANCE TWEAK
   ═══════════════════════════════════════ */
@media (max-width: 375px) {
    .stats-grid.stats-mobile-custom .stat-card {
        min-height: 160px !important; /* Gives more room for text wrapper breakdowns */
        padding: 28px 18px !important;
    }

        .stats-grid.stats-mobile-custom .stat-card h3 {
            font-size: 34px !important;
        }
}

/* ═══════════════════════════════════════
   MOBILE S (320px) HEIGHT BALANCE TWEAK
   ═══════════════════════════════════════ */
@media (max-width: 320px) {
    .stats-grid.stats-mobile-custom .stat-card {
        min-height: 175px !important; /* Maximizes depth to maintain impact on very thin screens */
        padding: 30px 15px !important;
    }

        .stats-grid.stats-mobile-custom .stat-card h3 {
            font-size: 32px !important; /* Slightly optimized scaling for ultra-narrow viewports */
        }

        .stats-grid.stats-mobile-custom .stat-card p {
            font-size: 14px !important;
        }
}
