/********** Template CSS **********/
:root {
    --primary: #2878EB;
    --secondary: #F14D5D;
    --light: #ECF4FF;
    --dark: #120F2D;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}
/* --- Google Font Import (Optional but Recommended) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* --- Custom Variables for Easy Customization --- */
:root {
    --primary-color: #007bff; /* A nice blue, change as you like */
    --text-color: #4f4f4f;
    --text-color-hover: #000;
    --navbar-height: 80px;
}
body{
    font-family: 'Times New Roman', serif;
    
}
/* --- Certifications Grid Styling --- */
.cert-grid .cert-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa; /* Light grey background */
    padding: 20px;
    border-radius: 12px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-grid .cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.cert-grid .cert-item i {
    font-size: 1.5rem;
    color: #0d6efd; /* Bootstrap Primary Blue */
    margin-right: 15px;
}

/* --- Client Logo Ticker Styling --- */
.logo-ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* This creates the fade-out effect on the sides for a seamless look */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-track {
    display: flex;
    width: fit-content;
    /* Animation: name duration timing-function iteration-count */
    animation: scroll 40s linear infinite;
}

.logo-ticker-container:hover .logo-track {
    animation-play-state: paused; /* Pause animation on hover */
}

.logo-track img {
    height: 60px; /* Adjust height as needed */
    margin: 0 40px; /* Space between logos */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.logo-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- The Scrolling Animation --- */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move the track by half its width (since logos are duplicated) */
        transform: translateX(calc(-100% / 2));
    }
}

/* --- Main Navbar Styling --- */
.navbar {
    /* Smooth transition for background and shadow */
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    background-color: transparent;
}

/* --- Scrolled State --- */
/* This class is added by JavaScript when you scroll */
.navbar.scrolled {
    background-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Navbar Brand/Logo --- */
.navbar-brand img {
    height: 40px; /* Control logo height */
    transition: height 0.3s ease;
}

/* --- Nav Links --- */
.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 550;
    color: white;
    margin: 0 10px; /* Spacing between links */
    padding: 10px 5px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: rgb(225, 225, 225);
}

/* --- Modern Underline Effect on Hover/Active --- */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* --- Dropdown Menu Styling --- */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.dropdown-item {
    font-weight: 500;
    padding: 10px 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.05); /* Faint primary color */
    color: var(--primary-color);
}

/* --- Call-to-Action Button --- */
.btn-outline-primary {
    border-color: red;
    color: red;
    border-radius: 50px; /* Pill shape */
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: green;
    color: #fff;
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* --- Navbar Toggler (Hamburger Icon) --- */
.navbar-toggler {
    border: 1px solid rgb(60, 255, 0);
    color: red;
}
.menu{
  width: 35px;
  height: 5px;
  background-color: black;
  margin: 6px 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}
h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary) !important;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 15, 45, .5);
    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;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}
/* --- Projects Section Styling --- */
.projects-section {
    background-color: #f8f9fa; /* A light background to make cards stand out */
}

.project-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden; /* Ensures the image corners are rounded */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Makes all cards in a row the same height */
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.project-image-container {
    height: 220px;
    overflow: hidden;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
    transition: transform 0.4s ease;
}

.project-card:hover .project-image-container img {
    transform: scale(1.05); /* Zoom effect on hover */
}

.project-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to fill the remaining card space */
}

.project-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0d6efd; /* Primary Color */
    background-color: rgba(13, 110, 253, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-content p {
    font-size: 0.95rem;
    color: #6c757d; /* Muted Text Color */
}
.hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/tech.jpg) top right no-repeat;
    background-size: cover;
}

.service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), top right no-repeat url('../img/offer.jpg');
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #D34351 #D34351 transparent;
    z-index: -1;
}
/* --- Custom Variables for Easy Themeing --- */
:root {
    --primary-color: #0d6efd; /* Bootstrap's default blue, change if you like */
    --secondary-color: #6c757d;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

/* --- About Section General Styling --- */
.about-image-wrapper {
    position: relative;
    padding: 15px;
}

/* This creates the decorative shape behind the image */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    background-color: rgba(13, 110, 253, 0.07); /* A very light shade of primary */
    border-radius: 0.5rem;
    z-index: -1;
    transition: all 0.4s ease;
}

.about-image-wrapper:hover::before {
    transform: translate(15px, 15px); /* Adds a subtle interaction on hover */
}

.about-image-wrapper img {
    position: relative;
    z-index: 1;
}

/* --- Typography Enhancements --- */
.display-4.fw-bolder {
    color: var(--text-dark);
}

.lead.text-muted {
    font-size: 1.15rem;
    font-weight: 400;
}

/* --- Animated Stats Styling --- */
.counter {
    font-size: 2.75rem;
    line-height: 1;
    color: var(--text-dark);
}

/* --- Modern Button Styling --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px); /* Lifts the button slightly on hover */
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}
/* =========================================
   1. HIDE ORIGINAL BOOTSTRAP NAV ON MOBILE
   ========================================= */
@media (max-width: 991.98px) {
    /* Select your existing navbar class */
    .navbar.navbar-expand-lg {
        display: none !important;
    }
}

/* =========================================
   2. MOBILE HEADER STYLES (HTML/CSS ONLY)
   ========================================= */

/* Default: Hide the new mobile header on Desktop */
.mobile-header {
    display: none;
}

/* Show only on Mobile/Tablet */
@media (max-width: 662.98px) {
.marginMB{
    margin-top: 5rem;
}
}
@media (max-width: 991.98px) {
    .mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff; /* Match your site background */
        z-index: 9999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
    }

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

    /* Mobile Logo */
    .mobile-logo img {
        height: 60px; /* Adjusted for mobile */
        width: auto;
    }

    /* --- The Checkbox Hack --- */
    #active {
        display: none; /* Hide the actual checkbox */
    }

    /* --- Hamburger Icon Animation --- */
    .menu-btn {
        position: relative;
        z-index: 10000; /* Must be above the overlay */
        cursor: pointer;
        width: 30px;
        height: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .menu-btn .bar {
        display: block;
        width: 100%;
        height: 3px;
        background: #333; /* Dark color */
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    /* Transform Hamburger to 'X' when checked */
    #active:checked ~ .menu-btn .bar:nth-child(2) {
        opacity: 0;
    }

    #active:checked ~ .menu-btn .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
        background: #fff; /* Make white to show on dark overlay */
    }

    #active:checked ~ .menu-btn .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
        background: #fff;
    }

    /* --- The Overlay Menu --- */
    .wrapper {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        /* Cool Gradient Background */
        background: linear-gradient(135deg, #0d6efd, #0a58ca); 
        /* Circular Wipe Effect */
        clip-path: circle(0px at top right); 
        transition: all 0.6s cubic-bezier(0.86, 0, 0.07, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9998;
    }

    /* Expand the circle when checked */
    #active:checked ~ .wrapper {
        clip-path: circle(150% at top right);
    }

    /* --- Menu List Styling --- */
    .wrapper ul {
        list-style: none;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .wrapper ul li {
        margin: 15px 0;
        opacity: 0; /* Hidden initially for animation */
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    /* Staggered Animation for Links */
    #active:checked ~ .wrapper ul li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }
    
    /* Delay each item slightly more */
    #active:checked ~ .wrapper ul li:nth-child(1) { transition-delay: 0.2s; }
    #active:checked ~ .wrapper ul li:nth-child(2) { transition-delay: 0.3s; }
    #active:checked ~ .wrapper ul li:nth-child(3) { transition-delay: 0.4s; }
    #active:checked ~ .wrapper ul li:nth-child(4) { transition-delay: 0.5s; }
    #active:checked ~ .wrapper ul li:nth-child(5) { transition-delay: 0.6s; }
    #active:checked ~ .wrapper ul li:nth-child(6) { transition-delay: 0.7s; }

    /* Links Styles */
    .wrapper ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 600;
        text-transform: uppercase;
        position: relative;
    }

    /* Hover effect on links */
    .wrapper ul li a:not(.mobile-cta)::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: #fff;
        transition: width 0.3s ease;
    }

    .wrapper ul li a:hover::after {
        width: 100%;
    }

    /* --- Sub-menu / Services Group Styling --- */
    .mobile-dropdown-group {
        background: rgba(255, 255, 255, 0.1);
        padding: 15px;
        border-radius: 10px;
        margin: 10px 20px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .group-title {
        color: rgba(255,255,255, 0.7);
        font-size: 0.9rem;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .sub-link {
        font-size: 1.1rem !important;
        margin: 5px 0;
        font-weight: 400 !important;
    }

    /* --- CTA Button Style --- */
    .mobile-cta {
        border: 2px solid #fff;
        padding: 10px 25px;
        border-radius: 50px;
        font-size: 1.2rem !important;
        transition: background 0.3s;
    }
    
    .mobile-cta:hover {
        background: #fff;
        color: #0d6efd !important;
    }
}