:root {
    --bg-page: #fff7f7;
    --bg-soft: #fff1f1;
    --bg-panel: #ffffff;
    --text-main: #1f2937;
    --text-soft: #64748b;
    --brand: #ad0000;
    --brand-dark: #8e0000;
    --line: #e5eaf1;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 16px 32px rgba(15, 23, 42, 0.08);
    --top-surface: linear-gradient(180deg, #fff8f8 0%, #fff3f3 100%);
}

body {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(173, 0, 0, 0.1) 0%,
            rgba(255, 255, 255, 0) 40%
        ),
        radial-gradient(
            circle at 90% 18%,
            rgba(173, 0, 0, 0.08) 0%,
            rgba(255, 255, 255, 0) 36%
        ),
        linear-gradient(180deg, #fffdfd 0%, var(--bg-page) 100%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--top-surface);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(173, 0, 0, 0.04) 0%,
        rgba(17, 24, 39, 0.02) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.brand-red {
    color: var(--brand);
}

.bg-brand {
    background: linear-gradient(135deg, #111 0%, #ad0000 100%);
}

.main-nav {
    background: var(--top-surface);
    border-bottom: 1px solid rgba(173, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.03);
    padding: 0.8rem 0;
    z-index: 1085;
}

/* Merge navbar and hero visually as one continuous top section */
.main-nav + main .hero {
    margin-top: -1px;
}

.main-nav .navbar-brand {
    letter-spacing: 0.01em;
    font-size: 1.9rem;
    font-weight: 700;
    color: #161616;
}

.main-nav .site-brand {
    display: inline-flex;
    align-items: center;
}

.main-nav .site-brand-logo {
    display: block;
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand);
    color: var(--brand);
    font-size: 1.1rem;
    background: #fff;
}

.main-nav .nav-link {
    color: #1c1c1c;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: 0.2s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--brand);
    background: transparent;
}

.main-nav .dropdown-indicator {
    font-size: 0.68rem;
    color: #ad0000;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.main-nav .dropdown-menu {
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
    min-width: 220px;
}

.main-nav .dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    color: #1f2937;
    padding: 0.55rem 0.75rem;
}

.main-nav .dropdown-item:hover {
    background: #f8f8f8;
    color: #ad0000;
}

.main-nav .services-mega-menu {
    min-width: min(980px, 92vw);
    padding: 0.9rem;
}

.main-nav .services-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.main-nav .services-mega-item {
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #111827;
    font-size: 1.05rem;
}

.main-nav .services-mega-item:hover {
    background: #fafafa;
    color: var(--brand);
}

.main-nav .services-mega-arrow {
    color: var(--brand);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.main-nav .nav-cta {
    background: var(--brand);
    border-color: var(--brand);
    border-radius: 16px;
    padding: 0.7rem 1.7rem;
    font-size: 1rem;
    font-weight: 600;
}

.main-nav .nav-cta:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

@media (min-width: 992px) {
    .main-nav .container-fluid {
        max-width: 1720px;
    }

    .main-nav .navbar-collapse {
        display: flex;
        align-items: center;
        gap: 1.2rem;
    }

    .main-nav .nav-item.dropdown {
        position: static;
    }

    .main-nav .navbar-nav {
        gap: clamp(0.35rem, 0.9vw, 0.9rem);
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
    }

    .main-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0.35rem;
    }

    .main-nav .services-mega-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100vw - 64px);
        max-width: 1600px;
        min-width: 0;
        margin-top: 0.5rem;
    }

    .main-nav .services-mega-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    @media (min-width: 1280px) {
        .main-nav .services-mega-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    .main-nav .nav-cta {
        margin-left: 0;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .main-nav .services-mega-menu {
        min-width: 100%;
    }

    .main-nav .services-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .main-nav .services-mega-grid {
        grid-template-columns: 1fr;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    letter-spacing: 0.04em;
    font-weight: 600;
}

.hero-title {
    max-width: 15ch;
    line-height: 1.1;
}

.hero-text {
    max-width: 56ch;
    font-size: 1.06rem;
}

.hero-panel {
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.hero-cta {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    border-radius: 14px;
    padding: 0.78rem 1.7rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.hero-cta:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* Timed one-by-one hero reveal */
.hero-seq {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-soft-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-seq-1 { animation-delay: 0.08s; }
.hero-seq-2 { animation-delay: 0.28s; }
.hero-seq-3 { animation-delay: 0.48s; }
.hero-seq-4 { animation-delay: 0.66s; }
.hero-seq-5 { animation-delay: 0.88s; }

@keyframes hero-soft-reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(1px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-seq,
    .hero-seq-1,
    .hero-seq-2,
    .hero-seq-3,
    .hero-seq-4,
    .hero-seq-5 {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.hero-metric {
    background: #fff;
    border: 1px solid #ebedf0;
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.services-tabs {
    background: transparent;
    color: var(--text-main);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-nav {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.service-nav .nav-link {
    width: 100%;
    text-align: left;
    border-radius: 0;
    color: #334155;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-nav .nav-item:last-child .nav-link {
    border-bottom: 0;
}

.service-nav .nav-link.active {
    background: transparent;
    color: var(--brand);
}

.service-pane {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 100%;
    padding-left: 1.25rem;
}

.service-chip {
    border: 1px solid var(--line);
    color: #334155;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.88rem;
    background: #f8fbff;
}

.service-detail-col {
    border-left: 1px solid var(--line);
}

@media (max-width: 991.98px) {
    .service-detail-col {
        border-left: 0;
    }

    .service-pane {
        padding-left: 0;
    }
}

.service-cta {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    border-radius: 10px;
    padding: 0.72rem 1.25rem;
    font-weight: 600;
}

.service-cta:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.consult-section {
    background: #f8f4f4;
    border-top: 1px solid #f3dede;
    border-bottom: 1px solid #f3dede;
    color: #111827;
}

.consult-section .btn {
    border-radius: 14px;
    padding: 0.78rem 1.45rem;
    font-weight: 600;
}

.footer-main {
    background:
        radial-gradient(
            circle at 15% -20%,
            rgba(223, 41, 53, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 92% 6%,
            rgba(255, 255, 255, 0.08),
            transparent 30%
        ),
        #06080d;
    color: #d8dde8;
    position: relative;
    overflow: hidden;
}

.footer-intro {
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-pro {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.footer-pro .footer-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-pro .footer-tagline {
    color: rgba(216, 221, 232, 0.8);
    font-size: 0.95rem;
}

.footer-pro .footer-hotline-label {
    color: #fff;
    font-weight: 700;
}

.footer-pro .footer-hotline-phone {
    color: #fff;
    font-size: clamp(1.05rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer-pro .footer-hotline-note {
    color: rgba(216, 221, 232, 0.82);
    font-size: 0.95rem;
}

.footer-main .footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.05rem;
    font-size: 1.7rem;
}

.footer-main .brand-name {
    color: #fff;
    font-size: 2.45rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.footer-main .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.2rem;
}

.footer-main .footer-brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 0.5rem 0.65rem;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
}

.footer-main .footer-brand-logo {
    display: block;
    height: 58px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.footer-main a {
    color: rgba(216, 221, 232, 0.88);
    text-decoration: none;
    transition: 0.2s ease;
    font-size: 1.02rem;
}

.footer-main a:hover {
    color: #ffffff;
}

.footer-link-list li {
    margin-bottom: 0.82rem;
    font-size: 1.02rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    color: rgba(216, 221, 232, 0.9);
    font-size: 1.02rem;
}

.footer-contact-item i {
    color: #f8fbff;
    margin-top: 0.15rem;
}

.footer-icon-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-icon-list i {
    width: 1.1rem;
    text-align: center;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(216, 221, 232, 0.9);
    background: rgba(255, 255, 255, 0.04);
}

.footer-social-icons a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.footer-social-icons i {
    font-size: 1rem;
    line-height: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(216, 221, 232, 0.8);
    font-size: 1.02rem;
}

.footer-bottom a {
    font-size: 1.02rem;
}

@media (max-width: 991.98px) {
    .footer-main .brand-name {
        font-size: 2rem;
    }

    .footer-main .footer-title {
        font-size: 1.35rem;
    }

    .footer-link-list li {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .footer-main .brand-name {
        font-size: 1.7rem;
    }

    .footer-main .brand-mark {
        width: 42px;
        height: 42px;
    }

    .footer-main .footer-brand-logo {
        height: 50px;
        max-width: 210px;
    }

    .footer-pro .footer-hotline-phone {
        font-size: 1.08rem;
    }

    .footer-main .footer-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
}

.tools-section {
    background: #f3f5f8;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.testimonials-section {
    background: transparent;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.testimonial-quote {
    color: var(--text-soft);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.testimonial-role {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.star-row {
    color: #f59e0b;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}

.tools-kicker {
    color: var(--brand);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.tools-arrow {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.tools-marquee {
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 6%,
        #000 94%,
        transparent 100%
    );
}

.marquee-row {
    display: flex;
    gap: 1rem;
    width: max-content;
    margin-bottom: 1rem;
    animation: marquee-left 42s linear infinite;
}

.marquee-row.reverse {
    animation-name: marquee-right;
    animation-duration: 48s;
}

.marquee-row:hover {
    animation-play-state: paused;
}

.marquee-chip {
    min-width: 220px;
    height: 84px;
    background: #f5f6f8;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #121826;
    white-space: nowrap;
}

.marquee-chip i {
    color: var(--brand);
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .marquee-chip {
        min-width: 180px;
        height: 72px;
        font-size: 1.1rem;
        padding: 0.75rem 0.95rem;
    }

    .marquee-chip i {
        font-size: 1.2rem;
    }
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.process-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.section-pad {
    padding: 88px 0;
}

#about .card,
#about .border,
#why .card {
    border-color: var(--line) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

#about .card-body,
#why .card-body {
    padding: 1.75rem;
}

#why .feature-card i {
    color: var(--brand) !important;
}

@media (max-width: 991.98px) {
    .section-pad {
        padding: 68px 0;
    }

    .main-nav .navbar-brand {
        font-size: 1.55rem;
    }

    .main-nav .site-brand-logo {
        height: 48px;
        width: auto;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: auto;
    }
}

.feature-card,
.contact-card {
    transition: 0.3s ease;
}

.feature-card:hover,
.contact-card:hover {
    transform: translateY(-6px);
}

.clients-section {
    background: #f3f5f8;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.clients-section-content {
    padding-top: 48px;
}

.clients-copy-block {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.clients-copy-fadein {
    opacity: 0;
    transform: translateY(14px);
    animation: clients-copy-fadein 0.75s ease-out 0.12s forwards;
}

.clients-marquee {
    overflow: hidden;
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 0;
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 6%,
        #000 94%,
        transparent 100%
    );
}

.clients-marquee-row {
    display: flex;
    gap: 0.9rem;
    width: max-content;
    margin-bottom: 0.9rem;
    animation: clients-marquee-left 52s linear infinite;
    will-change: transform;
}

.clients-marquee-row.reverse {
    animation-name: clients-marquee-right;
    animation-duration: 58s;
}

.clients-marquee-row:hover {
    animation-play-state: paused;
}

.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    min-height: 110px;
    padding: 1rem;
    transition: 0.2s ease;
}

a.client-logo-card:hover {
    border-color: #f1c9c9;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}

.client-logo-card img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-marquee-card {
    min-width: 220px;
    min-height: 96px;
    border-radius: 16px;
    border-color: #dce3ed;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    background: #f8fafd;
}

a.client-logo-card.client-marquee-card:hover {
    transform: none;
    border-color: #cfd8e4;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.client-marquee-card img {
    max-height: 48px;
}

.client-grid-card {
    min-height: 126px;
    border-radius: 16px;
    border-color: #dce3ed;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    background: #f8fafd;
}

a.client-logo-card.client-grid-card:hover {
    border-color: #cfd8e4;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.client-grid-card img {
    max-height: 46px;
}

/* Clients layout */
.clients-vertical-marquee {
    height: auto;
    max-height: calc((126px * 3) + (0.75rem * 2));
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-content: start;
}

.clients-v-col {
    overflow: hidden;
}

.clients-v-track {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    will-change: transform;
}

.clients-v-col.up.start-first .clients-v-track {
    animation: clients-vertical-up 28s linear infinite;
}

.clients-v-col.down.start-middle .clients-v-track {
    animation: clients-vertical-down-mid 30s linear infinite;
}

.clients-v-col.up.start-last .clients-v-track {
    animation: clients-vertical-up-last 28s linear infinite;
}

.clients-v-track:hover {
    animation-play-state: paused;
}

@keyframes clients-marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes clients-marquee-right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes clients-vertical-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes clients-vertical-up-last {
    from {
        transform: translateY(-50%);
    }

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

@keyframes clients-vertical-down {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes clients-vertical-down-mid {
    from {
        transform: translateY(-25%);
    }

    to {
        transform: translateY(25%);
    }
}

@keyframes clients-copy-fadein {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .clients-marquee {
        padding: 0;
    }

    .clients-marquee-row {
        gap: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .client-marquee-card {
        min-width: 170px;
        min-height: 78px;
    }

    .client-marquee-card img {
        max-height: 38px;
    }

    .client-grid-card {
        min-height: 96px;
    }

    .client-grid-card img {
        max-height: 36px;
    }

    .clients-vertical-marquee {
        max-height: calc((96px * 3) + (0.75rem * 2));
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clients-v-col.up.start-first .clients-v-track {
        animation: clients-vertical-up 28s linear infinite;
    }

    .clients-v-col.down.start-middle .clients-v-track {
        animation: clients-vertical-down-mid 30s linear infinite;
    }

    .clients-v-col.up.start-last .clients-v-track {
        animation: clients-vertical-up-last 28s linear infinite;
    }

    .clients-copy-block {
        min-height: auto;
    }

    .clients-section-content {
        padding-top: 40px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .clients-copy-fadein {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.service-page-hero {
    background:
        radial-gradient(
            circle at 8% 6%,
            rgba(173, 0, 0, 0.08) 0%,
            rgba(255, 255, 255, 0) 34%
        ),
        radial-gradient(
            circle at 94% 22%,
            rgba(15, 23, 42, 0.05) 0%,
            rgba(255, 255, 255, 0) 40%
        ),
        linear-gradient(180deg, #fcfdff 0%, #f3f7fb 100%);
    border-bottom: 0;
}

.careers-page-hero {
    background:
        radial-gradient(
            circle at 8% 6%,
            rgba(173, 0, 0, 0.08) 0%,
            rgba(255, 255, 255, 0) 34%
        ),
        radial-gradient(
            circle at 94% 22%,
            rgba(15, 23, 42, 0.05) 0%,
            rgba(255, 255, 255, 0) 40%
        ),
        linear-gradient(180deg, #fcfdff 0%, #f3f7fb 100%);
}

.careers-page-hero .service-breadcrumb {
    color: #5c6e85;
}

.careers-page-hero .service-breadcrumb a {
    color: #43566f;
}

.service-breadcrumb {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1.05rem !important;
}

.service-breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.service-breadcrumb a:hover {
    color: var(--brand);
}

/* Consistent gap between breadcrumb hero and next main section on all pages */
.service-page-hero + .section-pad.pt-0,
.contact-hero + .section-pad.pt-0 {
    padding-top: 2.2rem !important;
}

@media (max-width: 991.98px) {
    .service-page-hero + .section-pad.pt-0,
    .contact-hero + .section-pad.pt-0 {
        padding-top: 1.5rem !important;
    }
}

.service-summary-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.service-summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #f2d6d6;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
    background: #fff9f9;
}

.service-check-list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: #334155;
    margin-bottom: 0.72rem;
    font-size: 0.96rem;
}

.service-check-list i {
    color: var(--brand);
    margin-top: 0.1rem;
}

.service-related-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Sticky sidebar cards (career/blog detail) */
.page-sticky-card {
    top: 112px !important;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .page-sticky-card {
        top: 0 !important;
    }
}

.career-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}

.career-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.career-rich-text p:last-child {
    margin-bottom: 0;
}

.career-rich-text ul,
.career-rich-text ol {
    padding-left: 1.2rem;
}

.work-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.not-found-wrap {
    background:
        radial-gradient(
            circle at 14% 18%,
            rgba(173, 0, 0, 0.08),
            transparent 32%
        ),
        linear-gradient(180deg, #f8fafc 0%, #f3f5f8 100%);
}

.not-found-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.not-found-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: clamp(2rem, 5vw, 3.2rem);
}

.not-found-badge {
    display: inline-flex;
    border: 1px solid #f1c6c6;
    background: #fff5f5;
    color: #8e0000;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
}

.not-found-code {
    font-size: clamp(2.4rem, 8vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    margin-bottom: 0.6rem;
}

.not-found-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: #0f172a;
}

.not-found-text {
    color: #64748b;
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 48ch;
}

.not-found-links-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 1.4rem;
}

.not-found-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.72rem 0.85rem;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

.not-found-link-item + .not-found-link-item {
    margin-top: 0.65rem;
}

.not-found-link-item:hover {
    border-color: #e9b8b8;
    background: #fff8f8;
    color: #8e0000;
}

@media (max-width: 991.98px) {
    .not-found-shell {
        grid-template-columns: 1fr;
    }
}

.contact-hero {
    background:
        radial-gradient(
            circle at 8% 6%,
            rgba(173, 0, 0, 0.08) 0%,
            rgba(255, 255, 255, 0) 34%
        ),
        radial-gradient(
            circle at 94% 22%,
            rgba(15, 23, 42, 0.05) 0%,
            rgba(255, 255, 255, 0) 40%
        ),
        linear-gradient(180deg, #fcfdff 0%, #f3f7fb 100%);
    border-bottom: 0;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid #f1c6c6;
    color: #8e0000;
    background: #fff5f5;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.contact-hero-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.contact-hero-stat-title {
    font-size: 0.82rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.contact-hero-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.contact-form-card,
.contact-info-card {
    border: 1px solid var(--line) !important;
    border-radius: 16px;
}

.contact-input {
    border-radius: 10px;
    border-color: #dde3eb;
    padding: 0.68rem 0.8rem;
}

.contact-input:focus {
    border-color: #e08f8f;
    box-shadow: 0 0 0 0.18rem rgba(173, 0, 0, 0.1);
}

.contact-submit-btn {
    border-radius: 12px;
}

.contact-info-item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.contact-info-item i {
    margin-top: 0.15rem;
}

.contact-info-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-info-item a {
    color: #1f2937;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: #1f2937;
    text-decoration: none;
}

.contact-next-steps li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
    color: #334155;
}

.contact-next-steps i {
    color: var(--brand);
}

/* Consistent section fade in/out effect */
body.sections-fx-enabled .section-fx {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(2px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

body.sections-fx-enabled .section-fx.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

body.sections-fx-enabled .section-fx.is-leaving {
    opacity: 0.24;
    transform: translateY(-16px) scale(0.992);
    filter: blur(1px);
}

@media (prefers-reduced-motion: reduce) {
    body.sections-fx-enabled .section-fx,
    body.sections-fx-enabled .section-fx.is-visible,
    body.sections-fx-enabled .section-fx.is-leaving {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* About section staggered reveal */
#about.section-fx .about-reveal {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(1px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

#about.section-fx.is-visible .about-reveal {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

#about.section-fx .about-delay-1 { transition-delay: 0.06s; }
#about.section-fx .about-delay-2 { transition-delay: 0.14s; }
#about.section-fx .about-delay-3 { transition-delay: 0.22s; }
#about.section-fx .about-delay-4 { transition-delay: 0.30s; }
#about.section-fx .about-delay-5 { transition-delay: 0.38s; }
#about.section-fx .about-delay-6 { transition-delay: 0.46s; }
#about.section-fx .about-delay-7 { transition-delay: 0.54s; }
#about.section-fx .about-delay-8 { transition-delay: 0.62s; }
#about.section-fx .about-delay-9 { transition-delay: 0.70s; }

@media (prefers-reduced-motion: reduce) {
    #about.section-fx .about-reveal,
    #about.section-fx.is-visible .about-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* About page staggered animation (different timing) */
.about-seq {
    opacity: 0;
    transform: translateY(18px);
    animation: about-seq-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-seq-1 { animation-delay: 0.08s; }
.about-seq-2 { animation-delay: 0.18s; }
.about-seq-3 { animation-delay: 0.30s; }
.about-seq-4 { animation-delay: 0.42s; }
.about-seq-5 { animation-delay: 0.54s; }
.about-seq-6 { animation-delay: 0.66s; }
.about-seq-7 { animation-delay: 0.78s; }
.about-seq-8 { animation-delay: 0.90s; }
.about-seq-9 { animation-delay: 1.02s; }

@keyframes about-seq-reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(1px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-seq,
    .about-seq-1,
    .about-seq-2,
    .about-seq-3,
    .about-seq-4,
    .about-seq-5,
    .about-seq-6,
    .about-seq-7,
    .about-seq-8,
    .about-seq-9 {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}
