/* Custom Styling for Vex India Securitas */

:root {
    --vex-primary: #2C0F79;        /* Primary - Deep Purple (Main logo circle & website identity) */
    --vex-primary-hover: #1e0956;  /* Deep Purple Darker Hover */
    --vex-secondary: #201050;      /* Dark Blue (Central V lettering & supporting accents) */
    --vex-dark-base: #140733;      /* Deep Midnight Purple Base */
    --vex-red: #C02010;            /* Red (Logo lettering & selective highlights) */
    --vex-crimson: #C02010;        /* Accent Red */
    --vex-light-bg: #F4F4F7;       /* Light Grey (Backgrounds for alternate content sections) */
    --vex-white: #FFFFFF;          /* Pure White */
}

/* Brand Header */
.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-container:hover {
    text-decoration: none;
}

/* Brand Logo Holder - Clean Edge-to-Edge Circular Emblem */
.brand-logo-holder {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2.5px solid var(--vex-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-logo-img {
    height: 58px;
    width: 58px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--vex-primary);
    background: #ffffff;
}

.brand-title-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--vex-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.brand-title-text .accent {
    color: var(--vex-crimson);
}

.brand-subtitle-text {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 2px 0 0 0;
    display: block;
}

/* =====================================================================
   HERO BANNER CAROUSEL (DCM Vigilance Style - Big, Majestic, Full-Width)
   ===================================================================== */
#header-carousel {
    position: relative;
    background: #201050;
}

#header-carousel .carousel-item {
    height: 620px;
    position: relative;
    overflow: hidden;
    background: #201050;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#header-carousel .carousel-item img {
    height: 620px;
    width: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

/* Gradient Overlay - Left dark navy transition to transparent on right */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(32, 16, 80, 0.96) 0%, rgba(32, 16, 80, 0.88) 32%, rgba(32, 16, 80, 0.2) 65%, rgba(32, 16, 80, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .carousel-overlay {
        background: linear-gradient(to right, rgba(32, 16, 80, 0.95) 0%, rgba(32, 16, 80, 0.88) 75%, rgba(32, 16, 80, 0.6) 100%);
    }
}

/* Left-Shifted Hero Caption */
.carousel-caption {
    position: absolute;
    top: 0;
    left: 8% !important;
    right: auto !important;
    width: 84% !important;
    height: 100%;
    z-index: 3;
    max-width: 640px;
    padding: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.carousel-caption h4 {
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--vex-primary) !important;
}

.carousel-caption h1.display-4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.85rem !important;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.carousel-caption p {
    font-size: 16px !important;
    opacity: 0.92;
    max-width: 520px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 1.8rem;
}

/* Carousel Indicators positioned right above features bar */
.carousel-indicators {
    justify-content: center !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 72px !important;
    margin: 0 auto !important;
    z-index: 4;
}

.carousel-indicators li {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: none !important;
    opacity: 0.5;
    margin-right: 8px !important;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: var(--vex-primary) !important;
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Overlapping Features Card Bar below carousel */
.features-bar-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: 1px solid #e9ecef;
}

.feature-badge-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #201050;
    color: var(--vex-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.features-bar-card .col-lg-3:hover .feature-badge-circle {
    background-color: var(--vex-primary);
    color: #201050;
    transform: scale(1.08);
}

/* Facts Bar - Dark Navy with Gold Accents */
.facts-bar {
    background-color: #201050 !important;
    border-top: 4px solid var(--vex-primary);
    border-bottom: 4px solid var(--vex-primary);
}

.facts-bar .fact-number {
    font-size: 38px;
    color: var(--vex-primary);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 4px;
    line-height: 1;
}

.facts-bar .fact-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: #ffffff !important;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

/* Header Contact Items */
.header-contact-item {
    display: flex;
    align-items: center;
}

.header-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(44, 15, 121, 0.12);
    color: var(--vex-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .header-contact-item {
        border-right: 1px solid #dee2e6;
        padding-right: 18px;
        padding-left: 18px;
    }
    .header-contact-item:first-child {
        padding-left: 0;
    }
    .header-contact-item:last-child {
        border-right: none;
        padding-right: 0;
    }
}

/* Navbar styling & active indicator */
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 15px;
    padding: 14px 18px !important;
    color: #ffffff !important;
    opacity: 0.88;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 700;
    border-bottom: 3px solid var(--vex-red) !important;
    background: transparent !important;
}

/* Get A Quote CTA button in Header */
.btn-quote,
.navbar .btn-primary {
    background-color: var(--vex-red) !important;
    border-color: var(--vex-red) !important;
    color: #ffffff !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-quote:hover,
.navbar .btn-primary:hover {
    background-color: #9e180b !important;
    border-color: #9e180b !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 32, 16, 0.35);
}

/* Hero Carousel CTA Button */
#header-carousel .btn-primary {
    background-color: var(--vex-red) !important;
    border-color: var(--vex-red) !important;
    color: #ffffff !important;
}

#header-carousel .btn-primary:hover {
    background-color: #9e180b !important;
    border-color: #9e180b !important;
    color: #ffffff !important;
}

.dropdown-menu {
    border: none;
    border-top: 3px solid var(--vex-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--vex-secondary);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--vex-crimson);
    padding-left: 24px;
}

/* Floating contact buttons */
.float-contact-btns {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.float-contact-btn {
    width: 52px;
    height: 52px;
    border-radius: 50% 0 0 50%;
    background-color: var(--vex-primary);
    color: var(--vex-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: -3px 3px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.float-contact-btn:hover {
    background-color: #e2a413;
    color: var(--vex-secondary);
    width: 60px;
    text-decoration: none;
}

/* Facts Bar */
.facts-bar {
    background-color: var(--vex-secondary) !important;
    border-top: 4px solid var(--vex-primary);
    border-bottom: 4px solid var(--vex-primary);
    padding: 30px 0;
}

.facts-bar .fact-number {
    font-size: 38px;
    font-weight: 800;
    color: var(--vex-primary);
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.facts-bar .fact-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: #ffffff !important;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

.facts-bar .badge-container {
    width: 100px;
    height: 100px;
    background: var(--vex-navy-dark);
    border: 1px solid rgba(192, 32, 16, 0.25);
    border-radius: 8px;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facts-bar .badge-icon {
    font-size: 42px;
    color: var(--vex-primary);
}

.facts-bar .badge-text {
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* Feature & Service Cards */
.vex-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 28px 24px;
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.vex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--vex-primary);
    transition: height 0.35s ease;
}

.vex-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(32, 16, 80, 0.1);
    border-color: rgba(44, 15, 121, 0.4);
}

.vex-card:hover::before {
    height: 100%;
}

.vex-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #f0f4ff;
    color: var(--vex-royal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: all 0.35s ease;
}

.vex-card:hover .vex-icon-box {
    background: var(--vex-primary);
    color: var(--vex-secondary);
    transform: scale(1.08);
}

/* Client logos & Certifications ticker */
.ticker-wrap {
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    padding: 30px 0;
}

.ticker-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: tickerAnim 35s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ticker-item img {
    max-height: 52px;
    max-width: 130px;
    object-fit: contain;
}

/* Certificate Cards */
.cert-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(32, 16, 80, 0.12);
    border-color: var(--vex-primary);
}

.cert-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #fdfdfd;
    padding: 10px;
    transition: transform 0.3s ease;
}

.cert-card:hover img {
    transform: scale(1.03);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #ffffff;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: var(--vex-primary);
}

/* Branch Grid */
.branch-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(32, 16, 80, 0.08);
    border-color: var(--vex-royal);
}

.branch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(44, 15, 121, 0.12);
    color: var(--vex-secondary);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.branch-badge.hq {
    background: var(--vex-crimson);
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    #header-carousel .carousel-item,
    #header-carousel .carousel-item img {
        height: 440px !important;
        min-height: 440px !important;
        max-height: 440px !important;
    }
    .carousel-caption h1.display-4 {
        font-size: 2.2rem !important;
    }
    .features-bar-card {
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .brand-title-text {
        font-size: 18px;
    }
    .brand-logo-img,
    .brand-logo-holder {
        height: 44px;
        width: 44px;
    }
    #header-carousel .carousel-item,
    #header-carousel .carousel-item img {
        height: 380px !important;
        min-height: 380px !important;
        max-height: 380px !important;
    }
    .carousel-caption {
        left: 5% !important;
        width: 90% !important;
    }
    .carousel-caption h1.display-4 {
        font-size: 1.7rem !important;
    }
    .carousel-caption p {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    .carousel-indicators {
        bottom: 20px !important;
    }
    .facts-bar .fact-number {
        font-size: 28px;
    }
}



/* --- Palette Enhancements for Deep Purple, Red, and Dark Blue --- */
.text-warning, .accent-red {
    color: var(--vex-red) !important;
}

.bg-warning {
    background-color: var(--vex-red) !important;
}

.badge-warning {
    background-color: var(--vex-red) !important;
    color: #ffffff !important;
}

.btn-primary {
    background-color: var(--vex-primary) !important;
    border-color: var(--vex-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--vex-red) !important;
    border-color: var(--vex-red) !important;
    color: #ffffff !important;
}

.btn-quote {
    background-color: var(--vex-red) !important;
    border-color: var(--vex-red) !important;
    color: #ffffff !important;
}

.btn-quote:hover {
    background-color: #9e180b !important;
    border-color: #9e180b !important;
    color: #ffffff !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    border-bottom: 3px solid var(--vex-red) !important;
    background: transparent !important;
}

.dropdown-menu {
    border-top: 3px solid var(--vex-red) !important;
}

.dropdown-item:hover {
    color: var(--vex-red) !important;
    background-color: var(--vex-light-bg) !important;
}

.facts-bar {
    background-color: var(--vex-secondary) !important;
    border-top: 4px solid var(--vex-primary) !important;
    border-bottom: 4px solid var(--vex-red) !important;
}

.facts-bar .fact-number {
    color: #ffffff !important;
}

.facts-bar .fact-label {
    color: var(--vex-red) !important;
    font-weight: 700 !important;
}

.features-bar-card .col-lg-3:hover .feature-badge-circle {
    background-color: var(--vex-red) !important;
    color: #ffffff !important;
}

.carousel-caption h4 {
    color: var(--vex-red) !important;
}

.carousel-indicators li.active {
    background-color: var(--vex-red) !important;
}
