/********** Hexlabz Custom Template CSS **********/

:root {
    --primary: #ff1744;        /* Neon Red */
    --primary-hover: #d51339;  /* Deep Red */
    --secondary: #9B9B9B;
    --light: #F5F5F5;
    --dark: #000000;           /* Pure Black */
    --card-bg: #0b0f1a;        /* Deep Navy/Black for cards */
    --glow: rgba(255, 23, 68, 0.45);
}

/* --- Global Resets --- */
body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Roboto', sans-serif;
}

.fw-medium { font-weight: 500 !important; }
.fw-bold   { font-weight: 700 !important; }
.fw-black  { font-weight: 900 !important; }

/* Headings inherit by default so they work on dark and light backgrounds */
h1, h2, h3, h4, h5, h6 {
    color: inherit;
}

/*** Global link colors ***/
/* Normal links in body */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--primary-hover);
    text-decoration: underline;
}

/*** Spinner ***/
#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;
}

/*** Buttons & UI Elements ***/
.btn {
    font-weight: 500;
    transition: .5s;
    border-radius: 50px; /* Modern pill shape */
}

.btn-primary {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-2px);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square  { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: none;
    z-index: 99;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

/* Main navbar background (dark) */
.navbar {
    background-color: #000000;
}

/* Brand size */
.navbar .navbar-brand {
    height: 75px;
}

/* Desktop nav links */
.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
    transition: .3s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Dropdown caret */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Mobile navbar */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        background: #000000;
        padding: 20px;
        border-top: 1px solid var(--primary);
    }
}

/* Desktop dropdown behaviour */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        background-color: #000000;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        opacity: 1;
        visibility: visible;
    }
}

/* Dropdown item colors */
.navbar .dropdown-menu .dropdown-item {
    color: #FFFFFF;
    font-weight: 500;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    color: #FFFFFF;
    background-color: var(--primary);
}

.navbar .btn:hover {
    color: #FFFFFF !important;
    background: var(--primary) !important;
}

/*** Neon red hamburger (Bootstrap navbar-toggler-icon) ***/
/* Button click area + neon border */
.navbar-dark .navbar-toggler {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--primary);
    border-radius: 0.25rem;
}

/* Neon red hamburger icon lines */
.navbar-dark .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-size: 1.5em 1.5em;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' "
        "viewBox='0 0 30 30'%3e%3cpath stroke='%23ff1744' stroke-linecap='round' "
        "stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*** Header & Carousel ***/
.header-carousel .carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .7); /* Darker for readability */
    z-index: 1;
    color: #FFFFFF;
}

/* Glow Pulse Effect for Hero Section */
.header-carousel .carousel-inner::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, rgba(255, 23, 68, 0.2), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: bannerGlow 5s infinite ease-in-out;
}

@keyframes bannerGlow {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.8; }
}

/* Responsive slide height & image cover (from old CSS) */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

/* Owl nav arrows */
.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Owl dots */
.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(22, 22, 22, .7), rgba(22, 22, 22, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Service ***/
.service-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

/* cyber cards look */
.service-item,
.fact-card,
.award-card {
    background: var(--card-bg) !important;
    border: 1px solid rgba(255, 23, 68, 0.1) !important;
    padding: 30px;
    height: 100%;
    transition: .4s ease;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.service-item:hover,
.fact-card:hover,
.award-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.25);
    transform: translateY(-8px);
}

/* Red accents for cards */
.service-item i,
.fact-card h1 {
    color: var(--primary);
}

.service-item .btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 38px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}

/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: #F5F5F5;
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.bg-light #portfolio-flters li {
    color: #000000;
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.portfolio-inner img {
    transition: .5s;
}

.portfolio-inner:hover img {
    transform: scale(1.1);
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.portfolio-inner:hover .portfolio-text {
    bottom: 0;
    opacity: 1;
}

/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Awards ***/
.awards-section {
    background: #000;
}

.award-card img {
    max-height: 70px;
    filter: brightness(1.2) grayscale(0.5);
    transition: .3s;
}

.award-card:hover img {
    filter: brightness(1.1) grayscale(0);
}

.award-line {
    display: block;
    height: 2px;
    width: 40px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin-top: 15px;
}

/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 22, 22, .7);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    opacity: 0;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}

/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    color: #F5F5F5;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    border-radius: 60px;
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Footer ***/
.footer {
    background: #050505;
    padding-top: 80px;
    border-top: 1px solid #111;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    text-decoration: none;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
    padding-left: 10px;
}

/*** Light sections: use dark text so it shows up ***/
.bg-light,
.container-fluid.bg-light,
.container-xxl.bg-light {
    background-color: #F5F5F5 !important;
    color: #000000 !important;
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: #000000 !important;
}

.bg-light .text-muted {
    color: #6c757d !important;
}
/* REPLACE WITH THIS */
.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF !important;
    font-weight: 500;
    text-transform: uppercase;
    position: relative; /* This allows the line to anchor to the text */
    transition: .3s;
}

/* The Neon Line */
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 20px; /* Adjust this to move line up/down */
    left: 0;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: 0.3s;
}

/* Make line grow on hover */
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 8px var(--primary);
}
/* FORCE TEXT TO BE WHITE BY DEFAULT */
.navbar .navbar-nav .nav-link {
    color: #ffffff !important; /* This makes it visible without selecting it */
    opacity: 1 !important;     /* Ensures it isn't faded out */
    background: transparent !important;
}

/* RED NEON HOVER STATE */
.navbar .navbar-nav .nav-link:hover {
    color: #ff1744 !important; /* Turns red on hover */
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.7);
}
.team-avatar {
    width: 140px;          /* controls size */
    height: 140px;
    object-fit: cover;     /* prevents stretching */
    border-radius: 50%;    /* makes it round */
    margin: 0 auto;
    display: block;
    border: 3px solid #ff1744; /* optional accent */
}
img[src="img/preview.png"] {
    border-radius: 32px !important;
    box-shadow:
        0 0 22px rgba(255, 23, 68, 0.45),
        0 0 52px rgba(255, 23, 68, 0.25);
}
/* ===== BOOTSTRAP 4 MOBILE NAVBAR FIX ===== */
@media (max-width: 991.98px) {

    /* Navbar container */
    .navbar {
        background-color: #000 !important;
    }

    /* Collapsed menu */
    .navbar-collapse {
        background-color: #000;
        padding: 15px 0;
    }

    /* Nav links */
    .navbar-nav .nav-link {
        color: #ffffff !important;
        padding: 12px 20px;
        font-size: 15px;
        letter-spacing: 1px;
        opacity: 1;
    }

    /* Hover / tap feedback */
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(255, 255, 255, 0.08);
        color: #00ffd5 !important;
    }

    /* Dropdown menu */
    .dropdown-menu {
        background-color: #000;
        border: none;
        padding-left: 15px;
    }

    .dropdown-item {
        color: #fff;
        padding: 10px 20px;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #00ffd5;
    }

    /* Fix invisible text / overflow issues */
    .navbar-nav,
    .navbar-collapse {
        overflow: visible;
        visibility: visible;
    }

    /* Prevent weird spacing */
    .navbar-nav > * {
        margin: 0;
    }
}
/* Fix stretched icons in feature circles */
.feature-icon {
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    line-height: 1 !important;
}

/* Override problematic btn-square class */
.btn-square {
    padding: 0 !important;
    line-height: 1 !important;
}

/* Icon-specific fixes - prevents stretching */
.feature-icon i {
    font-size: 1.5rem !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

/* Responsive spacing */
@media (max-width: 768px) {
    .feature-icon {
        width: 56px !important;
        height: 56px !important;
    }
    .feature-icon i {
        font-size: 1.25rem !important;
    }
}
.object-fit-cover {
    object-fit: cover !important;
}

/* Ensure perfect positioning */
.position-absolute.top-0.start-0 {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
.hexscan-logo-wrapper {
    text-align: center;
    margin: 5px 0;      /* controls top/bottom spacing */
    padding: 0;
}

.hexscan-logo {
    display: inline-block;
    max-width: 450px;    /* CONTAINS the image */
    width: 100%;
    height: auto;
}



