:root {
    --tsm-blue: #1565C0;
    --tsm-blue-dark: #0D47A1;
    --tsm-blue-light: #1E88E5;
    --tsm-sky: #42A5F5;
    --tsm-accent: #FF6F00;
    --tsm-grey: #455A64;
    --tsm-light: #F5F7FA;
    --tsm-white: #fff;
    --tsm-dark: #0A1628
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Barlow', sans-serif;
    color: #222;
    overflow-x: hidden
}

/* ── TOPBAR ── */
.topbar {
    background: var(--tsm-blue-dark);
    color: #fff;
    font-size: .82rem;
    padding: 6px 0
}

.topbar a {
    color: #B3D4FF;
    text-decoration: none;
    margin: 0 12px;
    transition: .2s
}

.topbar a:hover {
    color: #fff
}

/* ── NAVBAR ── */
.navbar-main {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .10);
    position: sticky;
    top: 0;
    z-index: 1000
}

.navbar-main .navbar-brand img {
    height: 54px
}

.nav-link-custom {
    font-weight: 600;
    font-size: .93rem;
    color: var(--tsm-dark) !important;
    padding: 8px 14px !important;
    transition: .2s;
    position: relative
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--tsm-blue) !important
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    width: 0;
    height: 2px;
    background: var(--tsm-blue);
    transition: .3s
}

.nav-link-custom:hover::after {
    width: calc(100% - 28px)
}

.btn-contact {
    background: var(--tsm-blue);
    color: #fff !important;
    border-radius: 4px;
    padding: 9px 22px !important;
    font-weight: 700;
    font-size: .9rem;
    transition: .3s
}

.btn-contact:hover {
    background: var(--tsm-blue-dark);
    transform: translateY(-1px)
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    border-radius: 8px;
    padding: 12px 0
}

.dropdown-item {
    font-size: .88rem;
    font-weight: 600;
    padding: 7px 20px;
    color: #333;
    transition: .2s
}

.dropdown-item:hover {
    background: var(--tsm-light);
    color: var(--tsm-blue)
}

.dropdown-header {
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tsm-blue);
    padding: 10px 20px 4px
}

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, var(--tsm-dark) 0%, #0d2244 40%, #162f5c 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231565C0' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(21, 101, 192, .3);
    border: 1px solid rgba(66, 165, 245, .3);
    border-radius: 30px;
    padding: 7px 18px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--tsm-sky);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 28px
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 22px
}

.hero h1 span {
    color: var(--tsm-sky)
}

.hero .subtitle {
    font-size: 1.15rem;
    color: #90b9e8;
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
    font-weight: 300
}

.btn-hero-primary {
    background: var(--tsm-blue);
    color: #fff;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: .3s;
    display: inline-block;
    border: 2px solid var(--tsm-blue)
}

.btn-hero-primary:hover {
    background: var(--tsm-blue-dark);
    color: #fff;
    transform: translateY(-2px)
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: .3s;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, .4)
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .7)
}

.hero-stats {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, .1)
}

.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--tsm-sky)
}

.stat-label {
    font-size: .82rem;
    color: #7faacc;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 600
}

/* ── TICKER ── */
.ticker {
    background: var(--tsm-blue);
    padding: 12px 0;
    overflow: hidden
}

.ticker-inner {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: scroll-left 22s linear infinite
}

.ticker-inner span {
    font-weight: 700;
    font-size: .88rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .1em
}

.ticker-inner span i {
    margin-right: 8px;
    opacity: .7
}

@keyframes scroll-left {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

/* ── SECTION COMMON ── */
.section-tag {
    display: inline-block;
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--tsm-blue);
    margin-bottom: 10px
}

.section-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--tsm-dark);
    line-height: 1.1;
    margin-bottom: 16px
}

.section-heading span {
    color: var(--tsm-blue)
}

/* ── CLIENTS MARQUEE ── */
.clients-bar {
    background: #fff;
    padding: 32px 0;
    border-bottom: 1px solid #e9ecef
}

.clients-track {
    display: flex;
    gap: 52px;
    overflow: hidden
}

.clients-track-inner {
    display: flex;
    gap: 52px;
    white-space: nowrap;
    animation: clients-scroll 18s linear infinite;
    align-items: center
}

.client-logo {
    font-weight: 800;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #90a4ae;
    transition: .3s
}

.client-logo:hover {
    color: var(--tsm-blue)
}

@keyframes clients-scroll {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

/* ── SERVICES ── */
.services-section {
    background: var(--tsm-light);
    padding: 90px 0
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    height: 100%;
    transition: .3s;
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    position: relative;
    overflow: hidden
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--tsm-blue);
    transition: .4s
}

.service-card:hover::before {
    height: 100%
}

.service-card:hover {
    border-color: rgba(21, 101, 192, .1);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(21, 101, 192, .12)
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--tsm-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: .3s
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--tsm-blue)
}

.service-card:hover .service-icon {
    background: var(--tsm-blue)
}

.service-card:hover .service-icon i {
    color: #fff
}

.service-card h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--tsm-dark);
    margin-bottom: 12px
}

.service-card p {
    font-size: .9rem;
    color: #607d8b;
    line-height: 1.65;
    margin-bottom: 18px
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.service-tag {
    font-size: .74rem;
    font-weight: 700;
    background: var(--tsm-light);
    color: var(--tsm-blue);
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: .2s
}

.service-tag:hover {
    background: var(--tsm-blue);
    color: #fff
}

/* ── COUNTER ── */
.counter-section {
    background: linear-gradient(135deg, var(--tsm-blue-dark), var(--tsm-blue));
    padding: 70px 0
}

.counter-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: #fff;
    line-height: 1
}

.counter-plus {
    color: var(--tsm-sky);
    font-size: 2.5rem
}

.counter-label {
    font-size: .88rem;
    color: rgba(255, 255, 255, .75);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    margin-top: 6px
}

/* ── WHY CHOOSE ── */
.why-section {
    padding: 90px 0
}

.why-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 26px;
    border: 1px solid #e9ecef;
    transition: .3s;
    height: 100%
}

.why-card:hover {
    border-color: var(--tsm-blue);
    box-shadow: 0 6px 24px rgba(21, 101, 192, .1)
}

.why-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: rgba(21, 101, 192, .08);
    line-height: 1
}

.why-card h5 {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--tsm-dark);
    margin-bottom: 8px
}

.why-card p {
    font-size: .88rem;
    color: #607d8b;
    line-height: 1.65
}

/* ── INDUSTRIES ── */
.industries-section {
    background: var(--tsm-light);
    padding: 90px 0
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .3s;
    margin-bottom: 12px
}

.industry-item:hover,
.industry-item.active {
    border-color: var(--tsm-blue);
    background: rgba(21, 101, 192, .04)
}

.industry-icon {
    width: 44px;
    height: 44px;
    background: var(--tsm-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: .3s
}

.industry-icon i {
    font-size: 1.1rem;
    color: var(--tsm-blue)
}

.industry-item:hover .industry-icon,
.industry-item.active .industry-icon {
    background: var(--tsm-blue)
}

.industry-item:hover .industry-icon i,
.industry-item.active .industry-icon i {
    color: #fff
}

.industry-item span {
    font-weight: 700;
    font-size: .92rem;
    color: var(--tsm-dark)
}

/* ── PROCESS ── */
.process-section {
    padding: 90px 0
}

.process-step {
    position: relative;
    padding-left: 72px;
    margin-bottom: 44px
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    background: var(--tsm-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.3rem
}

.process-step::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 52px;
    width: 2px;
    height: calc(100% - 10px);
    background: linear-gradient(to bottom, var(--tsm-blue), transparent);
    opacity: .2
}

.process-step:last-child::before {
    display: none
}

.process-step h5 {
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--tsm-dark);
    margin-bottom: 6px
}

.process-step p {
    font-size: .9rem;
    color: #607d8b;
    line-height: 1.65
}

/* ── AI SECTION ── */
.ai-section {
    background: linear-gradient(135deg, var(--tsm-dark), #0d2244);
    padding: 90px 0;
    position: relative;
    overflow: hidden
}

.ai-section::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(21, 101, 192, .1);
    filter: blur(60px)
}

.ai-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 28px 24px;
    transition: .3s;
    height: 100%
}

.ai-card:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(66, 165, 245, .3);
    transform: translateY(-3px)
}

.ai-card h5 {
    font-weight: 800;
    font-size: 1.02rem;
    color: #fff;
    margin-bottom: 8px
}

.ai-card p {
    font-size: .87rem;
    color: #7faacc;
    line-height: 1.6
}

.ai-card .ai-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--tsm-sky);
    margin-bottom: 10px
}

/* ── TESTIMONIALS ── */
.testimonials-section {
    padding: 90px 0;
    background: #fff
}

.testimonial-card {
    background: var(--tsm-light);
    border-radius: 12px;
    padding: 32px 28px;
    height: 100%;
    position: relative
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 14px;
    left: 24px;
    font-size: 5rem;
    color: var(--tsm-blue);
    opacity: .12;
    line-height: 1;
    font-family: Georgia, serif
}

.testimonial-stars {
    color: #FFB300;
    font-size: .9rem;
    margin-bottom: 14px
}

.testimonial-text {
    font-size: .93rem;
    color: #455a64;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic
}

.testimonial-author {
    font-weight: 800;
    font-size: .9rem;
    color: var(--tsm-dark)
}

.testimonial-role {
    font-size: .8rem;
    color: #90a4ae;
    font-weight: 600
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, var(--tsm-blue), var(--tsm-blue-dark));
    padding: 80px 0
}

.cta-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    line-height: 1.1
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .82);
    max-width: 550px;
    margin: 0 auto
}

/* ── CONTACT FORM ── */
.contact-section {
    padding: 90px 0;
    background: var(--tsm-light)
}

.form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 44px 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .08)
}

.form-label {
    font-weight: 700;
    font-size: .88rem;
    color: var(--tsm-dark);
    margin-bottom: 6px
}

.form-control,
.form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: .92rem;
    padding: 10px 14px;
    transition: .2s
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tsm-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, .1)
}

.btn-submit {
    background: var(--tsm-blue);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 13px 36px;
    border: none;
    border-radius: 6px;
    transition: .3s;
    cursor: pointer
}

.btn-submit:hover {
    background: var(--tsm-blue-dark);
    transform: translateY(-1px)
}

/* ── FAQ ── */
.faq-section {
    padding: 90px 0;
    background: #fff
}

.accordion-button {
    font-weight: 700;
    font-size: .95rem;
    color: var(--tsm-dark)
}

.accordion-button:not(.collapsed) {
    color: var(--tsm-blue);
    background: rgba(21, 101, 192, .04)
}

.accordion-body {
    font-size: .9rem;
    color: #607d8b;
    line-height: 1.7
}

/* ── FOOTER ── */
.footer {
    background: var(--tsm-dark);
    color: #fff;
    padding: 64px 0 0
}

.footer h6 {
    font-weight: 800;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--tsm-sky);
    margin-bottom: 18px
}

.footer img {
    width: 200px;
}

.footer-links {
    list-style: none;
    padding: 0
}

.footer-links li {
    margin-bottom: 10px
}

.footer-links a {
    color: #90b9e8;
    text-decoration: none;
    font-size: .9rem;
    transition: .2s;
    display: flex;
    align-items: center;
    gap: 6px
}

.footer-links a::before {
    content: '→';
    font-size: .75rem;
    opacity: .5
}

.footer-links a:hover {
    color: #fff
}

.footer-text {
    color: #7faacc;
    font-size: .9rem;
    line-height: 1.7
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: .3s;
    margin-right: 8px
}

.social-link:hover {
    background: var(--tsm-blue);
    color: #fff
}

.footer-bottom {
    background: #060f1e;
    padding: 18px 0;
    margin-top: 48px
}

.footer-bottom p {
    font-size: .83rem;
    color: #546e7a;
    margin: 0
}

/* ── CONTACT INFO BLOCK ── */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(21, 101, 192, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.contact-info-icon i {
    color: var(--tsm-blue);
    font-size: 1.1rem
}

.contact-info-label {
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #90a4ae;
    margin-bottom: 2px
}

.contact-info-value {
    font-weight: 700;
    color: var(--tsm-dark);
    font-size: .95rem
}

/* ── CANADA FLAG BADGE ── */
.canada-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em
}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
    .hero {
        min-height: auto;
        padding: 70px 0
    }

    .hero h1 {
        font-size: 2.6rem
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px
    }

    .service-card {
        margin-bottom: 20px
    }

    .form-wrap {
        padding: 30px 20px
    }
}