html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Offset anchor scrolling for fixed navbar */
section[id] {
    scroll-margin-top: 85px; /* adjust to your navbar height */
}
/* ---------- NAVBAR ---------- */

.navbar {

    background: rgba(255, 255, 255, .75);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom:
        1px solid rgba(255, 255, 255, .2);

    padding: 1rem 0;
}

[data-bs-theme="dark"] .navbar {

    background:
        rgba(15, 23, 42, .85);

    border-bottom:
        1px solid rgba(255, 255, 255, .05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: width .3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-btn {

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--bs-border-color);

    border-radius: 14px;

    background: transparent;

    font-size: 1.5rem;

    transition: all .25s ease;
}

.menu-btn:hover {
    background: rgba(var(--bs-primary-rgb), .08);
}

.btn-icon {

    width: 46px;
    height: 46px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--bs-border-color);
}

.offcanvas {
    width: 320px;
    height: 57vh;
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
}

.mobile-nav {
    gap: .5rem;
}

.mobile-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;

    padding: 14px 18px;

    border-radius: 14px;

    font-size: 1rem;
    font-weight: 500;

    transition: all .25s ease;
}

.mobile-nav .nav-link:hover {

    background: rgba(var(--bs-primary-rgb), .08);

    color: var(--bs-primary);
}

.mobile-nav .nav-link i {
    font-size: 1.1rem;
}

.btn-close {
    opacity: .8;
}

.btn-close:hover {
    opacity: 1;
}

#themeIcon {
    display: inline-block;
    transition:
        transform .6s cubic-bezier(.34, 1.56, .64, 1),
        opacity .25s ease;
}

.theme-rotate {
    transform: rotate(360deg) scale(1.15);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover #themeIcon {
    transform: rotate(20deg);
}

.logo-dark {
    /* filter: drop-shadow(0 2px 8px rgba(255,255,255,.25)); */
    filter: brightness(0) invert(1);
}
/* ---------- HERO ---------- */

.hero {
    min-height: 100vh;
    background:
       linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
        url('images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}


/* .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(8, 17, 35, 0.85) 0%,
            rgba(8, 17, 35, 0.65) 50%,
            rgba(0, 102, 255, 0.25) 100%
        );
} */
.hero-badge{
    display:inline-flex;
    align-items:center;
    padding:10px 18px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    color:#fff;
    font-size:14px;
    margin-bottom:20px;
}
/* .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right,
            rgba(0,120,255,.45),
            transparent 40%),
        linear-gradient(
            rgba(3,12,25,.85),
            rgba(3,12,25,.75)
        );
} */
.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        135deg,
        rgba(8,21,42,.92),
        rgba(8,21,42,.75)
    );
}

.hero::after{
    content:'';
    position:absolute;
    top:0;
    right:0;
    width:600px;
    height:600px;
    background:radial-gradient(
        circle,
        rgba(0,120,255,.35),
        transparent 70%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    /* max-width: 650px; */
    padding: 40px;
    /* backdrop-filter: blur(12px); */
    /* background: rgba(255,255,255,0.08); */
    /* border: 1px solid rgba(255,255,255,0.15); */
    border-radius: 24px;
    animation: heroFade 1.2s ease-out;
}

#typing-text .typing-character {
    opacity: 0;
    animation: reveal-character .01s linear forwards;
}

@keyframes reveal-character {
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    #typing-text .typing-character {
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 60vh;
        padding: 7rem 1.5rem 4rem;
        align-items: center;
    }

    .hero .display-2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.25rem !important;
    }

    .hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .hero .hero-content > div,
    .hero-content > .d-flex,
    .hero-content {
        gap: .75rem;
        padding: 20px;
    }

    .hero .btn {
        display: block;
        width: 100%;
        max-width: 260px;
        margin: 10px auto;
    }
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- TRUST STRIP ---------- */

.trust-strip {
    padding: 2.5rem 0;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.trust-strip-label {
    text-align: center;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    margin-bottom: 1.5rem;
}

.trust-strip-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.trust-logo-item {
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity .25s ease;
}

.trust-logo-item:hover {
    opacity: 1;
}

.trust-logo {
    display: block;
    height: 80px;
    width: auto;
    object-fit: contain;
}

.trust-logo-ccs {
    min-width: 120px; /* 25mm minimum as per CCA brand guidelines */
    max-width: 200px;
    filter: var(--trust-logo-filter, none);
}

.trust-logo-ms {
    max-width: 160px;
    filter: var(--trust-logo-filter, none);
}

.trust-logo-ico {
    max-width: 90px;
    filter: var(--trust-logo-filter, none);
}

.trust-logo-ce {
    max-width: 80px;
    /* CE badge retains its own colours in both modes */
}

/* Dark mode — invert logos to white */
[data-bs-theme="dark"] {
    --trust-logo-filter: brightness(0) invert(1);
}

#typing-text::after {
    content: "|";
    animation: blink .8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.btn {
    transition: all .3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

/* ---------- SECTIONS ---------- */

.section-space {
    padding: 5rem 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- SERVICE CARDS ---------- */

.service-card {
    border-top: 4px solid #0d6efd;
    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #fafcff 100%);

    background: var(--bs-body-bg);
    border-radius: 18px;
    transition: all .35s ease;
    opacity: 0;
    animation: cardFade .8s ease forwards;
     position: relative;
    overflow: hidden;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.service-card h3 {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
    position: relative;
    padding-bottom: 16px;
}

.service-card h3::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 40px;
    height: 3px;

    border-radius: 5px;

    background: #0d6efd;
}

.service-card:hover .icon-box {

    transform:
        translateY(-3px) scale(1.05);

    box-shadow:
        0 20px 35px rgba(13, 110, 253, .20);
}

.service-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .12);
}

.icon-box {
    position: relative;
}

.icon-box::before {

    content: "";

    position: absolute;

    inset: -8px;

    border-radius: 24px;

    z-index: -1;
}

.service-card:nth-child(1) {
    animation-delay: .1s;
}

.service-card:nth-child(2) {
    animation-delay: .2s;
}

.service-card:nth-child(3) {
    animation-delay: .3s;
}

.service-card:nth-child(4) {
    animation-delay: .4s;
}

@keyframes cardFade {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 1.8rem;
    transition: all .3s ease;
    background:
        linear-gradient(135deg,
            rgba(13, 110, 253, .12),
            rgba(13, 110, 253, .20));

    box-shadow:
        0 10px 25px rgba(13, 110, 253, .15);
}

.service-card:hover .icon-box {
    transform: scale(1.1);
}

.service-list {
    position: absolute;
    inset: 0;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        #0d6efd 0%,
        #0056d6 100%
    );

    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;

    opacity: 0;
    transform: translateY(20%);
    transition: all .4s ease;
}

.service-card:hover .service-list,
.service-card:focus-within .service-list {
    opacity: 1;
    transform: translateY(0);
}

.service-list h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.service-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.service-list li:last-child {
    border-bottom: 0;
}

/* ---------- STATS ---------- */

.stats {
    background: var(--bs-tertiary-bg);
}

.stats .col-lg-3 {
    transition: all .3s ease;
}

.stats .col-lg-3:hover {
    transform: translateY(-6px);
}

/* ---------- TESTIMONIALS ---------- */

.carousel-item {
    transition: transform .8s ease-in-out;
    min-height: 280px;
}

.carousel-inner {
    padding-bottom: 20px;
}

.carousel-indicators button {
    background-color: var(--bs-primary);
}

.testimonial-section-badge {
    color: #084298 !important;
}

[data-bs-theme="dark"] .testimonial-section-badge {
    color: #9ec5fe !important;
}

.testimonial-card {
    max-width: 850px;
    margin: auto;
    padding: clamp(1.5rem, 4vw, 3rem);

    border-radius: 24px;

    background: var(--bs-body-bg);

    border: 1px solid rgba(0, 0, 0, .06);

    box-shadow:
        0 8px 2px rgba(0, 0, 0, .06);

    text-align: center;

    transition: all .3s ease;
}

[data-bs-theme="dark"] .testimonial-card {

    background: #1e293b;

    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 10px 2px rgba(0, 0, 0, .25);
}
/* 
.testimonial-card:hover {


    box-shadow:
        0 8px 2px rgba(0, 0, 0, .10);
} */

.quote-icon {

    width: 70px;
    height: 70px;

    margin: 0 auto 25px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;

    color: white;

    background: linear-gradient(135deg,
            #0d6efd,
            #4f83ff);
}

.testimonial-text {
    max-width: 68ch;
    margin: 0 auto 2rem;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    text-align: center;
    text-wrap: pretty;
    white-space: pre-line;
}

.testimonial-text.is-collapsed {
    position: relative;
    max-height: calc(1.8em * 6);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}

.testimonial-text.is-collapsible {
    margin-bottom: .75rem;
}

.testimonial-toggle {
    display: block;
    margin: 0 auto 1.5rem;
    font-weight: 600;
}

.testimonial-author {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 1rem;
}

.modern-arrow {

    width: 50px;
    height: 50px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .12);

    color: #0d6efd;

    font-size: 1.2rem;
}

[data-bs-theme="dark"] .modern-arrow {

    background: #1e293b;
    color: white;
}

.carousel-control-prev,
.carousel-control-next {

    opacity: 1;
    width: auto;
}

.carousel-indicators {
    margin-bottom: -20px;
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-indicators button {
    width: 20px !important;
    height: 20px !important;
    margin: 0 2px !important;
    padding: 0;
    border: 0;
    border-radius: 50% !important;
    background: transparent !important;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-indicators button[data-bs-target] {
    box-sizing: border-box;
    border: 0;
}

.carousel-indicators button::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bs-primary);
}

.carousel-indicators button.active::before {
    width: 12px;
    height: 12px;
}

/* ---------- CONTACT ---------- */

#contact {
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: -250px;
    right: -150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

/* ---------- FOOTER ---------- */

footer {
    background: #0d1117;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: .9;
}

.footer-desc {
    color: rgba(255, 255, 255, .5);
    font-size: .92rem;
    line-height: 1.8;
    max-width: 320px;
}

.footer-heading {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .47);
    margin-bottom: 1.25rem;
}

/* Footer Nav Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s ease, padding-left .2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    color: rgba(255, 255, 255, .55);
    font-size: .9rem;
    line-height: 1.6;
}

.footer-contact-list li i {
    color: #3b82f6;
    font-size: 1rem;
    margin-top: .15rem;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-contact-list a:hover {
    color: #fff;
}

/* Social Buttons */
.footer-social {
    display: flex;
    gap: .6rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
    font-size: 1rem;
    text-decoration: none;
    transition: all .25s ease;
}

.social-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- PARTNER LOGOS ---------- */

.footer-partners {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .02);
}

.partners-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .47);
    margin-bottom: 1.5rem;
    text-align: center;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.partner-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    opacity: .95;
}


.partner-logo {
    display: block;
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.partner-logo-ccs {
    min-width: 120px; /* 25mm minimum as per CCA brand guidelines */
    max-width: 200px;
}

.partner-logo-ico {
    max-width: 80px;
}

.partner-logo-ce {
    filter: none; /* preserve CE badge colours — do not invert */
    max-width: 80px;
}

/* ---------- FOOTER BOTTOM ---------- */

.footer-bottom {
    padding: 1.25rem 0;
    background: rgba(0, 0, 0, .25);
}

.footer-bottom p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .47);
    margin: 0;
}

.footer-reg {
    color: rgba(255, 255, 255, .47) !important;
}

.consent-banner {
    position: fixed;
    z-index: 1090;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 18%);
}

.consent-banner[hidden] {
    display: none;
}

.consent-copy {
    margin: 0;
}

.consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.preferences-link {
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

.footer-links .preferences-link {
    color: rgba(255, 255, 255, .72);
}

.footer-links .preferences-link:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .consent-banner {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .consent-actions {
        flex-wrap: wrap;
    }
}
