/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** Prevent horizontal scroll ***/
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.container-fluid {
    max-width: 100vw;
    overflow-x: hidden;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% { -webkit-transform: perspective(120px) }
    50% { -webkit-transform: perspective(120px) rotateY(180deg) }
    100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    white-space: nowrap;    /* prevents button text wrapping to multiple lines */
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Topbar social icon circles - fixed 28x28, never stretch ***/
.topbar-social {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }

    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left: 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left: 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left: 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    min-height: 350px;
    height: auto;
    padding: 0 30px 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    overflow: hidden;
}

/* Fix image stretching inside service-icon */
.service-item .service-icon img,
.service-item .service-icon picture {
    width: 100%;
    display: block;
}

.service-item .service-icon img {
    height: 144px;
    object-fit: cover;
    object-position: center;
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

/* Button: always visible, centred below card content */
.service-item a.btn {
    position: relative;
    width: 160px;
    bottom: auto;
    left: auto;
    margin: 16px auto 0;
    opacity: 1;
    display: block;
}

.service-item:hover a.btn {
    bottom: auto;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}

/* Testimonial / card arrow buttons - fixed square, never stretch */
.testimonial-item .btn {
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Facts / Service Highlight Cards ***/
.facts-card {
    display: flex;
    align-items: center;
    gap: 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 32px 20px 28px;
    height: 200px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.facts-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    transition: height .35s ease;
}

.facts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    text-decoration: none;
}

.facts-card:hover::before {
    height: 5px;
    background: rgba(255, 255, 255, .7);
}

/* Primary variant ? blue background */
.facts-card--primary {
    background: var(--primary);
}

/* Light variant ? white/off-white background */
.facts-card--light {
    background: #f0fbff;
    border: 1px solid #d0eef9;
}

/* Icon ring */
.facts-card__icon-wrap {
    margin-bottom: 14px;
}

.facts-card__icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto;
    transition: transform .35s ease;
}

.facts-card--primary .facts-card__icon-ring {
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.facts-card--light .facts-card__icon-ring {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: #fff;
}

.facts-card:hover .facts-card__icon-ring {
    transform: scale(1.12) rotate(-6deg);
}

/* Body text */
.facts-card__title {
    font-size: 1rem;
    font-weight: 700 !important;
    line-height: 1.3;
    margin: 0 0 4px;
}

.facts-card--primary .facts-card__title {
    color: #fff;
}

.facts-card--light .facts-card__title {
    color: var(--dark);
}

.facts-card__sub {
    font-size: 0.78rem;
    margin: 0 0 10px;
    opacity: .85;
}

.facts-card--primary .facts-card__sub {
    color: rgba(255, 255, 255, .85);
}

.facts-card--light .facts-card__sub {
    color: #555;
}

.facts-card__cta {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .03em;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 14px;
    border-radius: 20px;
    transition: background .25s, color .25s;
}

.facts-card--primary .facts-card__cta {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.facts-card--primary:hover .facts-card__cta {
    background: rgba(255, 255, 255, 0.32);
}

.facts-card--light .facts-card__cta {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.facts-card--light:hover .facts-card__cta {
    background: #0591c4;
}

/* Mobile: 2?2 grid */
@media (max-width: 767.98px) {
    .facts-card {
        height: 170px;
        padding: 22px 16px 20px;
    }

    .facts-card__icon-ring {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .facts-card__title {
        font-size: 0.92rem;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.bg-managed {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/managed-it-services-inner.jpg) center center no-repeat;
    background-size: cover;
}

.bg-cloud {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/cloud-solutions-services.jpg) center center no-repeat;
    background-size: cover;
}

.bg-cyber {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/Cybersecurity-inside-page.jpg) center center no-repeat;
    background-size: cover;
}

.bg-it {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/IT-Support-and-Maintenance-for-Your-Business.jpg) center center no-repeat;
    background-size: cover;
}

.bg-disaster {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/Data-Backup-and-Disaster-Recovery.jpg) center center no-repeat;
    background-size: cover;
}

.bg-remote {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/Reliable-Internet-Connectivity-for-Every-Corner-of-WA.jpg) center center no-repeat;
    background-size: cover;
}

.bg-voip {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/Business-Phone-Solutions.jpg) center center no-repeat;
    background-size: cover;
}

.bg-consulting {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/IT-Consulting-services-managed-ict-solutions.jpg) center center no-repeat;
    background-size: cover;
}

.bg-legal {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/IT-Support-for-the-Legal-Industry.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

.main-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.scrolled-logo {
    display: none;
}

.sticky .main-logo {
    display: none;
}

.sticky .scrolled-logo {
    display: block;
}

@media (max-width: 768px) {
    .scrolled-logo {
        display: block;
    }
    .main-logo {
        display: none;
    }
}

/*** Feature Cards (3-column strip) ***/
.features-strip {
    padding: 40px 0 36px;
    background: #fff;
}

.features-row {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(6, 30, 62, .10);
}

.feature-card {
    position: relative;
    padding: 36px 32px 32px;
    height: 100%;
    overflow: hidden;
    transition: transform .3s ease;
}

/* Subtle hover lift */
.feature-card:hover {
    transform: translateY(-3px);
}

/* Background colour variants — sober, professional palette */
/* Card 1: Clean white with left accent border */
.feature-card--1 {
    background: #ffffff;
    border-right: 1px solid #e8edf2;
    border-left: 4px solid var(--primary);
}
/* Card 2: Warm light grey — neutral, calm */
.feature-card--2 {
    background: #f5f7fa;
    border-right: 1px solid #e8edf2;
    border-left: 4px solid #2c5f8a;
}
/* Card 3: Soft slate blue — professional, not dark */
.feature-card--3 {
    background: #eef3f8;
    border-left: 4px solid #1a4e7a;
}

/* Large NUMBER — now bold, clearly visible */
.feature-card__num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    pointer-events: none;
    user-select: none;
}
.feature-card--1 .feature-card__num { color: rgba(6, 163, 218, .18); }
.feature-card--2 .feature-card__num { color: rgba(44, 95, 138, .20); }
.feature-card--3 .feature-card__num { color: rgba(26, 78, 122, .18); }

/* Icon circle */
.feature-card__icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform .35s ease;
}
.feature-card:hover .feature-card__icon-wrap {
    transform: rotate(-8deg) scale(1.1);
}

.feature-card--1 .feature-card__icon-wrap {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(6, 163, 218, .25);
}
.feature-card--2 .feature-card__icon-wrap {
    background: #2c5f8a;
    color: #fff;
    box-shadow: 0 6px 20px rgba(44, 95, 138, .25);
}
.feature-card--3 .feature-card__icon-wrap {
    background: #1a4e7a;
    color: #fff;
    box-shadow: 0 6px 20px rgba(26, 78, 122, .25);
}

/* Title */
.feature-card__title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px;
    line-height: 1.3;
}
.feature-card--1 .feature-card__title { color: #0d2d4e; }
.feature-card--2 .feature-card__title { color: #0d2d4e; }
.feature-card--3 .feature-card__title { color: #0d2d4e; }

/* Body text */
.feature-card__text {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
}
.feature-card--1 .feature-card__text { color: #4a5568; }
.feature-card--2 .feature-card__text { color: #4a5568; }
.feature-card--3 .feature-card__text { color: #4a5568; }

/* CTA link */
.feature-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    transition: background .25s, color .25s, gap .25s;
}
.feature-card__link:hover { gap: 10px; text-decoration: none; }

.feature-card--1 .feature-card__link {
    background: var(--primary);
    color: #fff;
}
.feature-card--1 .feature-card__link:hover { background: #0591c4; color: #fff; }

.feature-card--2 .feature-card__link {
    background: #2c5f8a;
    color: #fff;
}
.feature-card--2 .feature-card__link:hover { background: #244f75; color: #fff; }

.feature-card--3 .feature-card__link {
    background: #1a4e7a;
    color: #fff;
}
.feature-card--3 .feature-card__link:hover { background: #133e61; color: #fff; }

/* Responsive — stack on tablet/mobile */
@media (max-width: 991.98px) {
    .features-row {
        border-radius: 8px;
    }
    .feature-card--1 { border-right: none; border-bottom: 1px solid #e8edf2; }
    .feature-card--2 { border-right: none; border-bottom: 1px solid #e0e8f0; }
    .feature-card {
        padding: 28px 24px 24px;
    }
}