/*-------------------------------------------------------------------- 

    Template Name: K-Security
    Description: Landing page
    Author: Keanan Oliver
    Author URL: https://www.codester.com/Keanan/
    Version: 1.0

--------------------------------------------------------------------

    CSS INDEX
    =========

    1. Basic Styles
    2. Header Area
    3. Hero Area
    4. Security Solutions Area
    5. Services Area
    6. About Area
    7. AreaTestimonial Area
    8. Footer
    9. Responsiveness


-------------------------------------------------------------------- */

/* LOCAL FONT - RAJDHANI */

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/rajdhani/Rajdhani-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/rajdhani/Rajdhani-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/rajdhani/Rajdhani-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('../fonts/rajdhani/Rajdhani-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* WEBSITE TYPOGRAPHY */

body {
    font-family: Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar,
.section-title {
    font-family: 'Rajdhani', sans-serif;
}

/*--------------------------------------- 
* 1. Basic Styling 
-----------------------------------------*/

/* Original */
:root {
    --primary: #DC143C;
    --secondary: #536878;
    --text: #fff;
    --background: #000;
}

/* Army Colours */
/* :root {
    --primary: #556B2F;
    --secondary: #4B5320;
    --text: #F5F5DC;
    --background: #1B1F16;
} */

html{
    scroll-behavior: smooth;
}

body {
    font-family:  sans-serif;
    font-size: 16px;
    color: var(--text);
}

p {
    line-height: 30px;
    color: var(--text);
}

.container-custom {
    max-width: 1200px;
    width: 100%;
    padding: 0 .75rem;
    margin-left: auto;
    margin-right: auto;
}

.p-section {
    padding-top: 80px;
    padding-bottom: 90px;
}

.pt-section {
    padding-top: 80px;
}

.pb-title {
    padding-bottom: 50px;
}

.mt-section {
    margin-top: 70px;
}

.section-title {
    font-weight: bold;
    font-size: 44px;
    line-height: 66px;
    color: var(--primary);
    padding-bottom: 20px;
}

.bg-background {
    background-color: var(--background);
}
button.btn-outline {
    color: var(--primary);
    padding: 12px 55px;
    border: 2px solid var(--primary);
    border-radius: 7px;
}

button.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

button.btn-filled {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 12px 15px;
    border-radius: 10px;
}

button.btn-filled:hover {
    background-color: var(--background);
    color: var(--text);
    border: 1px solid var(--text);
}

/*--------------------------------------- 
* 2. Preloader 
-----------------------------------------*/

.preloader {
    position: fixed;
    height: 100vh;
    width: 100%;
    z-index: 9999;
    background: var(--background);
}

.preloader img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}


/*---------------------------------------
* 3. Header
-----------------------------------------*/

.navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.navbar .container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

.navbar-brand {
    padding: 0;
    margin-right: 20px;
}

.navbar-brand img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

/* Navigation */

.nav-item {
    padding: 0 8px;
}

.nav-item a {
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: var(--primary);
}

.navbar .btn-outline {
    font-size: 14px;
    padding: 10px 20px;
}

/* Get Started Button */

.navbar .btn-outline {
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .btn-outline:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Hero Button */
.hero-btns .btn.btn-filled {
    display: inline-block !important;
    background: var(--primary) !important;
    color: var(--text);
    border: 2px solid var(--primary) !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    opacity: 1 !important;
    box-shadow: none;
    transition: all 0.3s ease;
}

.hero-btns .btn.btn-filled:hover {
    background: #A50F2D !important;
    border-color: #A50F2D !important;
    color: #ffffff !important;
}

/* Mobile Navigation */

@media (max-width: 991px) {

    .navbar-collapse {
        padding-top: 15px;
    }

    .navbar-nav {
        margin-bottom: 15px !important;
    }

    .nav-item {
        padding: 3px 0;
    }

    .navbar .btn {
        margin-bottom: 10px;
    }

}

/*---------------------------------------
* Services Marquee
-----------------------------------------*/

.services-marquee {
    position: relative;
    background-color: var(--background);
    padding: 35px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.services-marquee-container {
    width: 100%;
}

.services-marquee-heading {
    text-align: center;
    margin-bottom: 24px;
}

.services-marquee-heading span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--secondary);
    font-family: inherit;
}

.services-marquee-heading span::before,
.services-marquee-heading span::after {
    content: "";
    width: 25px;
    height: 2px;
    background-color: var(--primary);
}

.services-marquee-window {
    width: 100%;
    overflow: hidden;

    /* Subtle fading edges */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 5%,
        #000 95%,
        transparent
    );

    mask-image: linear-gradient(
        to right,
        transparent,
        #000 5%,
        #000 95%,
        transparent
    );
}

.services-marquee-track {
    display: flex;
    width: max-content;
    animation: services-scroll 40s linear infinite;
    will-change: transform;
}

.services-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 15px;
    padding-right: 15px;
}

.marquee-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 62px;
    padding: 14px 24px;

    background-color: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;

    color: var(--text);
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition: all 0.3s ease;
}

.marquee-service i {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    color: var(--primary);

    transition: transform 0.3s ease,
                color 0.3s ease;

    flex-shrink: 0;
}

.marquee-service:hover {
    background-color: rgba(220, 20, 60, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.marquee-service:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

/*---------------------------------------
* Marquee Animation
-----------------------------------------*/

@keyframes services-scroll {
    from {
        transform: translateX(0);
    }

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

/* Pause on hover */
.services-marquee-window:hover .services-marquee-track {
    animation-play-state: paused;
}

/*---------------------------------------
* Responsive Design
-----------------------------------------*/

@media (max-width: 768px) {

    .services-marquee {
        padding: 28px 0;
    }

    .services-marquee-heading {
        margin-bottom: 20px;
    }

    .marquee-service {
        min-height: 55px;
        padding: 12px 18px;
        font-size: 13px;
        gap: 10px;
    }

    .marquee-service i {
        font-size: 18px;
    }

    .services-marquee-track {
        animation-duration: 32s;
    }

}

@media (max-width: 576px) {

    .services-marquee {
        padding: 24px 0;
    }

    .services-marquee-heading span {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .services-marquee-group {
        gap: 10px;
        padding-right: 10px;
    }

    .marquee-service {
        min-height: 50px;
        padding: 10px 15px;
        font-size: 12px;
    }

    .services-marquee-track {
        animation-duration: 28s;
    }

}

/*---------------------------------------
* Accessibility
-----------------------------------------*/

@media (prefers-reduced-motion: reduce) {

    .services-marquee-track {
        animation: none;
        will-change: auto;
    }

    .services-marquee-window {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

}

/*---------------------------------------
* 4. Hero
-----------------------------------------*/

.hero.bg-black {
    border-radius: 0;
    padding: 45px 0 35px;
    overflow: hidden;
}

/* Hero Layout */
.hero .row {
    align-items: center;
}

/* Hero Text */
.hero-text {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.site-title {
    font-weight: 900;
    font-size: clamp(42px, 4.2vw, 62px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    color: var(--primary);
    margin-bottom: 22px;
}

.sub-heading {
    display: inline-block;
    font-weight: 900;
    font-size: inherit;
    line-height: inherit;
    color: var(--text);
    margin-top: 8px;
}

.site-description {
    max-width: 500px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 28px;
}

/* Hero Buttons */
.hero-btns {
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btns p,
.hero-btns p a {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
}

.hero-btns p a:hover {
    color: var(--secondary);
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 530px;
    max-height: 460px;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    margin: 0 auto;
    display: block;
}

/* Soldier Breathing Animation */
.hero-soldier {
    animation: soldierBreathing 3.5s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes soldierBreathing {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.015);
    }
}

/* Tablet */
@media (max-width: 991px) {

    .hero.bg-black {
        padding: 45px 0 35px;
    }

    .site-title {
        font-size: clamp(38px, 6vw, 52px);
    }

    .hero-image {
        max-width: 430px;
        max-height: 390px;
    }

}

/* Mobile */
@media (max-width: 767px) {

    .hero.bg-black {
        padding: 35px 0;
        border-radius: 20px;
    }

    .hero-text {
        text-align: center;
        padding: 15px 10px 25px;
    }

    .site-title {
        font-size: clamp(36px, 9vw, 46px);
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .site-description {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        max-width: 350px;
        max-height: 330px;
    }

}

/*---------------------------------------
* 8. Services
-----------------------------------------*/

/* Services Section */

.services-section {
    padding: 80px 0 90px;
}

/* Service Cards */

.pricing-card {
    background: #151515;
    border-radius: 24px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid #292929;
    overflow: hidden;
    transition: all .3s ease-in-out;
}

.pricing-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(220, 20, 60, .12);
}

/* Service Card Buttons */

.pricing-card .btn-outline {
    display: inline-block;
    width: 100%;
    padding: 13px 20px;

    background: transparent;
    color: var(--primary);

    border: 2px solid var(--primary);
    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    transition: all .3s ease-in-out;
}

.pricing-card .btn-outline:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);

    box-shadow: 0 5px 15px rgba(220, 20, 60, .25);
}

/* Service Image */

.service-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: 16px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease-in-out;
}

.pricing-card:hover .service-image img {
    transform: scale(1.06);
}

/* Service Heading */

.pricing-plan {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    margin: 30px 0 15px;
}

/* Service Description */

.service-description {
    color: #b5b5b5;
    line-height: 1.7;
    min-height: 80px;
}

/* Service List */

.pricing-list {
    list-style: none;
    padding-left: 0;
    margin: 25px 0 35px;
}

.pricing-list li {
    padding: 14px 0;
    color: var(--text);
}

.pricing-list li:not(:last-child) {
    border-bottom: 1px dashed #393939;
}

/*---------------------------------------
* 6. About
-----------------------------------------*/

.about {
    padding: 100px 0;
    background-color: #000;
    color: var(--text);
}

/* About Image */

.about-image {
    position: relative;
    max-width: 450px;
    isolation: isolate;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    top: -20px;
    left: -20px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Image Overlay */

.about-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-left: 4px solid var(--primary);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
}

.about-image-overlay i {
    color: var(--primary);
    font-size: 22px;
}

/* About Label */

.about-label {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

/* About Heading */

.about .section-title {
    margin-bottom: 25px;
    color: #fff;
}

/* About Text */

.about p {
    color: #ccc;
    line-height: 30px;
    margin-bottom: 18px;
}

/* About Highlights */

.about-highlights {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.about-highlight i {
    color: var(--primary);
    font-size: 17px;
}

/* Social Links */

.about-social {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.about-social > span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.about-social ul {
    display: flex;
    gap: 18px;
}

.about-social li a {
    color: var(--primary);
    font-size: 19px;
    transition: color 0.3s ease;
}

.about-social li a:hover {
    color: var(--secondary);
}

/* Responsive */

@media (max-width: 991px) {

    .about {
        padding: 70px 0;
    }

    .about-image {
        max-width: 550px;
        margin: 0 auto;
    }

    .about-image img {
        height: 400px;
    }
}

@media (max-width: 576px) {

    .about {
        padding: 50px 0;
    }

    .about-image img {
        height: 320px;
    }

    .about-social {
        flex-wrap: wrap;
        gap: 15px;
    }
}


/* ========================================
   TESTIMONIAL SECTION
======================================== */

.testimonial {
    position: relative;
    display: block;
    width: 100%;
    padding: 30px 0 !important;
    margin: 0;
    background-color: #000000 !important;
    overflow: hidden;
}

.test-head {
    width: 100%;
    text-align: center;
    padding-bottom: 45px;
}

.test-head h2 {
    color: var(--text);
    margin-bottom: 15px;
}

.test-head p {
    color: var(--secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* Slider Container */
.slider {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding: 0;
    z-index: 1;
}

/* Slider Viewport */
.my-slider {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

/* Slider Track */
.my-slider-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    transition: transform 0.45s ease-in-out;
    will-change: transform;
}

/* Individual Slide */
.single-testimonial-wrapper {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    display: flex;
}

/* Testimonial Card */
.single-test {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 30px;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.single-test:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Client Image */
.test-img {
    flex-shrink: 0;
    margin-right: 15px;
}

.test-img img {
    display: block;
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 50%;
}

/* Client Details */
.meta {
    min-width: 0;
}

.meta h3 {
    color: var(--text);
    font-size: 17px;
    margin-bottom: 5px;
}

.meta p {
    color: var(--secondary);
    font-size: 14px;
    margin: 0;
}

/* Testimonial Text */
.single-test > p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Slider Controls */
#custom-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
}

#custom-control button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background-color: transparent !important;
    color: var(--primary) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

#custom-control button i {
    color: var(--primary) !important;
    transition: color 0.3s ease;
}

#custom-control button:hover:not(:disabled) {
    background-color: var(--primary) !important;
    border-color: var(--primary);
}

#custom-control button:hover:not(:disabled) i {
    color: #ffffff !important;
}

#custom-control button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1199px) {
    .single-testimonial-wrapper {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .testimonial {
        padding: 70px 0;
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
    .testimonial {
        padding: 55px 0;
    }

    .test-head {
        padding-bottom: 30px;
    }

    .single-testimonial-wrapper {
        flex: 0 0 100%;
    }

    .single-test {
        padding: 25px 20px;
    }

    #custom-control {
        margin-top: 25px;
    }
}

/* ========================================
   MOBILE SLIDER CONTROLS
======================================== */

@media (max-width: 425px) {

    #custom-control {
        display: flex;
        justify-content: center;
        align-items: center;
        width: fit-content;
        max-width: 100%;
        margin: 25px auto 0;
        gap: 15px;
    }

    #custom-control button {
        flex: 0 0 45px;
        width: 45px;
        min-width: 45px;
        max-width: 45px;
        height: 45px;
        padding: 0;
    }

}


/*---------------------------------------
* 10. Footer
-----------------------------------------*/

.footer {
    background: #080808;
    text-align: center;
    border-top: 3px solid var(--primary);
}

/* Footer Main */

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-top: 65px;
    padding-bottom: 55px;
    text-align: left;
}

/* Footer Branding */

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    width: 180px;
    height: auto;
    margin-bottom: 18px;
}

.footer-brand p {
    color: #999;
    font-size: 14px;
    line-height: 26px;
    margin: 0;
}

/* Footer Columns */

.footer-column h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
}

/* Footer Menu */

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 15px;
}

.footer-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #aaa;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-menu li a i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.footer-menu li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Footer Bottom */

.footer-bottom {
    border-top: 1px solid #252525;
    background: #050505;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.footer-bottom p {
    color: #777;
    font-size: 13px;
    letter-spacing: 0.03em;
    margin: 0;
}

.footer-bottom p a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-bottom p a:hover {
    color: var(--primary);
}

.footer-tagline i {
    color: var(--primary);
    margin-right: 6px;
}

/* Responsive Footer */

@media (max-width: 768px) {

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        padding-top: 45px;
        padding-bottom: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-column h5::after {
        left: 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

}

@media (max-width: 480px) {

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-column h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-menu li a:hover {
        transform: none;
    }

}

/*--------------------------------------- 
* 11. Responsiveness
-----------------------------------------*/

@media only screen and (max-width: 992px) {
    .author {
        margin-bottom: 145px;
    }

    .author img {
        margin: 0;
    }

    .author::before {
        width: 100%;
        left: 0;
    }

    .about {
        padding-bottom: 76px;
    }

    .tns-outer {
        margin-right: 0;
    }

    .tns-item {
        padding-right: 5px;
        padding-left: 5px;
    }
}

@media only screen and (max-width: 576px) {
    body {
        font-size: 14px;
    }

    p {
        line-height: 26px;
    }

    .p-section {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .pt-section {
        padding-top: 60px;
    }

    .pb-title {
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 36px;
        line-height: 51px;
        padding-bottom: 12px;
    }

    .site-title {
        font-size: 46px;
        line-height: 56px;
    }

    .site-title {
        font-size: 46px;
        line-height: 56px;
    }

    .site-desc {
        font-size: 16px;
        line-height: 32px;
    }

    .btn-filled {
        font-size: 15px;
        padding: 13px;
    }

    .hero-btns p,
    .hero-btns p a {
        font-size: 15px;
    }

    .pricing-card {
        padding: 1rem 1rem 2rem;
    }

    .pricing {
        font-size: 45px;
    }

    .pricing-plan {
        font-size: 21px;
        margin: 37px 0;
    }

    .pricing-icon i {
        font-size: 27px;
    }

    .pricing-icon i::after {
        height: 75px;
        width: 75px;
        left: -56%;
        top: -85%;
    }
}

/* Prevent horizontal scrolling and improve anchor positioning */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

section[id],
footer[id] {
    scroll-margin-top: 24px;
}

img {
    max-width: 100%;
}

/* Large tablets and smaller laptops */
@media (max-width: 1199px) {
    .container-custom {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-title {
        font-size: clamp(42px, 5vw, 58px);
    }

    .section-title {
        font-size: clamp(36px, 4vw, 44px);
        line-height: 1.2;
    }

    .pricing-card {
        padding: 22px;
    }

    .single-test {
        padding: 28px !important;
    }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar .container-custom {
        flex-wrap: wrap;
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    .navbar-nav {
        align-items: flex-start;
    }

    .navbar .btn-outline {
        display: inline-block;
        margin-top: 8px;
    }

    .hero.bg-black {
        padding: 38px 0 48px;
    }

    .hero .row {
        row-gap: 18px !important;
    }

    .hero-text {
        text-align: center;
        padding: 12px 20px 0;
    }

    .site-title {
        font-size: clamp(42px, 6vw, 54px);
    }

    .site-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        max-width: 390px;
        max-height: 360px;
    }

    .services-section {
        padding: 65px 0 75px;
    }

    /* Two service cards per row on tablet */
    .services-section .pricing-card-container {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .services-section .pricing-card-container:last-child {
        margin-left: auto;
        margin-right: auto;
    }

    .service-image {
        height: 210px;
    }

    .pricing-card {
        padding: 20px;
    }

    .service-description {
        min-height: 0;
    }

    .about {
        padding: 70px 0;
    }

    .about-image {
        max-width: 520px;
        margin: 0 auto 12px;
    }

    .about-image img {
        height: 390px;
    }

    .about-image::before {
        top: -12px;
        left: -12px;
    }

    .about .section-title {
        font-size: 40px;
    }

    .test-head {
        padding-bottom: 135px;
    }

    .test-head > .container > .d-flex {
        gap: 20px;
    }

    .test-head .col-lg-6 {
        width: 100%;
    }

    .control {
        justify-content: center;
        margin-top: 8px;
    }

    .tns-outer {
        margin-right: 0;
    }

    .footer-main {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 28px;
    }
}

/* Fix mobile and tablet navigation dropdown */
@media (max-width: 991.98px) {
    .navbar .container-custom {
        flex-wrap: wrap !important;
    }

    .navbar-collapse {
        flex: 0 0 100% !important;
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile layout */
@media (max-width: 767.98px) {
    .container-custom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .p-section {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .pt-section {
        padding-top: 52px;
    }

    .pb-title {
        padding-bottom: 32px;
    }

    .section-title {
        font-size: clamp(30px, 8vw, 38px);
        line-height: 1.18;
        padding-bottom: 12px;
    }

    p {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Header and collapsed navigation */
    .navbar {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .navbar .container-custom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .navbar-brand {
        margin-right: 12px;
        max-width: calc(100% - 65px);
    }

    .navbar-brand img {
        display: block;
        max-width: 180px;
        max-height: 32px;
    }

    .navbar-toggler {
        padding: 6px 9px;
        border-color: rgba(255, 255, 255, .35) !important;
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        padding: 14px 0 4px;
    }

    .navbar-nav {
        width: 100%;
        margin: 0 0 12px !important;
        gap: 2px;
    }

    .nav-item {
        padding: 0;
    }

    .nav-item .nav-link {
        display: block;
        padding: 10px 4px;
    }

    .navbar .btn-outline {
        display: inline-block;
        margin: 4px 0 8px;
    }

    /* Hero */
    .hero.bg-black {
        padding: 28px 0 38px;
        border-radius: 0;
    }

    .hero .row {
        row-gap: 8px !important;
    }

    .hero-text {
        text-align: center;
        padding: 8px 4px 0;
    }

    .site-title {
        font-size: clamp(34px, 9vw, 46px);
        line-height: 1.08;
        letter-spacing: -1px;
        margin-bottom: 16px;
    }

    .sub-heading {
        margin-top: 4px;
    }

    .site-description {
        max-width: 520px;
        font-size: 15px;
        line-height: 1.7;
        margin: 0 auto 22px;
    }

    .hero-btns {
        justify-content: center;
        gap: 10px;
    }

    .hero-btns .btn.btn-filled {
        width: auto;
        max-width: 100%;
        padding: 13px 20px !important;
        font-size: 14px !important;
    }

    .hero-image {
        width: 100%;
        max-width: 310px;
        max-height: 290px;
        border-radius: 14px;
    }

    /* Services marquee */
    .services-marquee {
        padding: 22px 0;
    }

    .services-marquee-heading {
        margin-bottom: 16px;
        padding: 0 12px;
    }

    .services-marquee-heading span {
        font-size: 10px;
        letter-spacing: 1.5px;
        gap: 7px;
    }

    .services-marquee-heading span::before,
    .services-marquee-heading span::after {
        width: 16px;
    }

    .services-marquee-group {
        gap: 9px;
        padding-right: 9px;
    }

    .marquee-service {
        min-height: 46px;
        padding: 9px 12px;
        gap: 8px;
        font-size: 11px;
    }

    .marquee-service i {
        font-size: 16px;
    }

    /* Services cards */
    .services-section {
        padding: 52px 0 60px;
    }

    .services-section .row {
        row-gap: 22px !important;
    }

    .services-section .pricing-card-container {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pricing-card {
        padding: 18px;
        border-radius: 16px;
    }

    .pricing-card:hover {
        transform: translateY(-4px);
    }

    .service-image {
        height: clamp(175px, 55vw, 240px);
        border-radius: 12px;
    }

    .pricing-plan {
        font-size: 22px;
        margin: 22px 0 10px;
    }

    .service-description {
        min-height: 0;
        font-size: 14px;
    }

    .pricing-list {
        margin: 18px 0 24px;
    }

    .pricing-list li {
        padding: 11px 0;
        font-size: 14px;
    }

    .pricing-card .btn-outline {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* About */
    .about {
        padding: 54px 0;
    }

    .about-image {
        max-width: 460px;
        margin: 0 auto 12px;
    }

    .about-image img {
        height: clamp(260px, 75vw, 360px);
    }

    .about-image::before {
        width: 78%;
        height: 78%;
        top: -10px;
        left: -10px;
    }

    .about-image-overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
        gap: 9px;
        font-size: 13px;
    }

    .about-image-overlay i {
        font-size: 18px;
    }

    .about-label {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .about .section-title {
        font-size: clamp(30px, 8vw, 38px);
        margin-bottom: 14px;
    }

    .about p {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 14px;
    }

    .about-highlights {
        margin-top: 20px;
        gap: 12px;
    }

    .about-highlight {
        font-size: 14px;
        align-items: flex-start;
    }

    .about-highlight i {
        margin-top: 3px;
    }

    .about-social {
        margin-top: 25px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .about-social ul {
        gap: 20px;
    }

    /* Testimonials */
    .test-head {
        padding-top: 52px;
        padding-bottom: 118px;
    }

    .test-head > .container > .d-flex {
        gap: 12px;
    }

    .test-head .col-lg-6 {
        width: 100%;
    }

    .test-head .section-title {
        margin-bottom: 10px;
    }

    .test-head p {
        font-size: 14px;
        line-height: 1.7;
    }

    .control {
        justify-content: center;
        width: 100%;
        margin-top: 8px;
        gap: 8px;
    }

    .next,
    .prev {
        min-height: 42px;
        padding: 10px 13px;
        font-size: 12px;
        gap: 7px;
    }

    .slider {
        margin-top: -82px;
    }

    .tns-outer {
        margin-right: 0;
    }

    .tns-item {
        padding: 8px 5px 24px;
    }

    .single-test {
        padding: 22px !important;
        border-radius: 12px;
    }

    .single-test:hover {
        transform: none;
    }

    .single-test .d-flex {
        padding-bottom: 16px !important;
    }

    .test-img {
        margin-right: 12px;
    }

    .test-img img {
        width: 48px;
        height: 48px;
    }

    .single-test > p {
        font-size: 13px;
        line-height: 1.75;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 42px;
        padding-bottom: 36px;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        width: 155px;
        margin-bottom: 12px;
    }

    .footer-column h4 {
        margin-bottom: 16px;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-menu li {
        margin-bottom: 12px;
    }

    .footer-menu li a {
        justify-content: center;
        font-size: 13px;
    }

    .footer-menu li a:hover {
        transform: none;
    }

    .footer-bottom-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .container-custom {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-title {
        font-size: 33px;
    }

    .hero-btns .btn.btn-filled {
        width: 100%;
    }

    .control {
        flex-wrap: wrap;
    }

    .next,
    .prev {
        flex: 1 1 0;
    }

    .single-test {
        padding: 18px !important;
    }

    .footer-menu li a {
        overflow-wrap: anywhere;
    }
}

/* Avoid hover-only movement on touch devices */
@media (hover: none) {
    .pricing-card:hover,
    .single-test:hover {
        transform: none;
    }
}

/* Respect the user's reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-soldier {
        animation: none;
    }

    .pricing-card,
    .service-image img,
    .single-test,
    .next,
    .prev {
        transition: none;
    }
}
