/* Light Mode Overrides for Gaurav CCTV Camera (White Theme) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #ffffff;
    /* Changed to White */
    --bg-card: #f3f4f6;
    /* Light Gray for cards */
    --bg-card-hover: #e5e7eb;
    /* Slightly darker gray on hover */
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    --accent-purple: #8b5cf6;
    --text-white: #111827;
    /* Dark text */
    --text-gray: #4b5563;
    /* Medium gray text */
    --border-color: rgba(0, 0, 0, 0.1);
    /* Dark border */
    --whatsapp-green: #22c55e;
}

/* Global Reset for Light Mode visibility */
body,
p,
span,
li,
div,
a,
td,
th {
    color: var(--text-gray);
}

body {
    background-color: var(--bg-dark) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Headings - High Contrast */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.display-head,
.heading-main,
.sub-head-text {
    color: var(--text-white) !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Fix specific low-contrast areas */
.display-lead,
.lead,
.text-muted,
.txt-black,
.text-white,
.txt-white,
.text-white-50,
.txt-pink,
.txt-blue,
.txt-orange {
    color: #4b5563 !important;
    /* Force dark gray/black */
}

/* Force dark text on elements that might have been white */
.text-white,
.txt-white,
.heading-main.text-white,
.heading-main span,
.sub-head-text {
    color: #111827 !important;
    /* Force Black */
}

.text-white-50 {
    color: #6b7280 !important;
    /* Darker gray */
}

/* Navbar */
header,
.header-fixed,
.top-bar,
.bg-white,
.navbar,
.bg-sky-blue,
.bg-navy-blue,
.bg-pink {
    background-color: #ffffff !important;
    color: #4b5563 !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--text-gray) !important;
}

.nav-link:hover,
.active>.nav-link {
    color: var(--primary-blue) !important;
}

/* Section Backgrounds */
.bg-light-gray,
.bg-gray,
section {
    background-color: var(--bg-dark) !important;
}

/* Cards & Service Boxes */
.service-box,
.services-slider-content,
.feature-item,
.client-testimonial,
.icon-box-with-img {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Added shadow */
}

.service-box p,
.services-slider-content p,
.client-testimonial p {
    color: #4b5563 !important;
}

.service-img {
    z-index: 1 !important;
}

.serive-content {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

.serive-content h3 {
    color: var(--text-white) !important;
}

/* Owl Carousel Nav Buttons */
.owl-theme .owl-nav {
    margin-top: 10px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.owl-theme .owl-nav [class*='owl-'] {
    color: #111 !important;
    /* Dark arrows */
    font-size: 24px !important;
    margin: 5px;
    padding: 4px 7px;
    background: transparent !important;
    display: inline-block;
    cursor: pointer;
    border-radius: 3px;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    color: var(--primary-blue) !important;
    text-decoration: none;
}

/* New Hero Section Styles */
.hero-section {
    position: relative;
    min-height: auto;
    /* Removed 90vh to reduce space */
    padding: 60px 0;
    /* Reduced padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    /* White background */
    overflow: hidden;
    text-align: center;
}

.hero-bg-accent {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.05);
    /* Lighter accent */
    filter: blur(100px);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: #2563eb;
    /* Darker blue */
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #111827;
    /* Dark text */
    background: none;
    -webkit-text-fill-color: #111827;
}

.hero-highlights {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-theme {
    background: var(--primary-blue) !important;
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline-theme {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #111 !important;
    /* Dark text */
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-outline-theme:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: #000;
}

/* Popup Styles */
#lead-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* lighter overlay */
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.close-popup {
    position: absolute;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}

/* Modern Reviews Section */
.modern-reviews-section {
    position: relative;
    background: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

.review-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Light border */
    border-radius: 20px;
    padding: 30px;
    margin: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.review-card:hover::before {
    transform: translateX(100%);
}

.reviewer-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    margin-right: 15px;
}

.reviewer-info h4 {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.reviewer-info span {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 500;
}

.review-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.review-rating {
    color: #fbbf24;
    font-size: 14px;
}

.review-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: rgba(0, 0, 0, 0.05);
}

/* ==============================================
   Contact Section - Light Theme
=============================================== */
.contact-section-dark {
    background-color: #ffffff;
    color: #111827;
    padding: 80px 0;
}

.contact-section-dark h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

.contact-section-dark p.lead-text {
    color: #4b5563;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(33, 150, 243, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon-circle i {
    font-size: 20px;
    color: #2196f3;
}

.contact-details h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #111827;
}

.contact-details p,
.contact-details a {
    color: #4b5563;
    margin-bottom: 0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.contact-details a:hover {
    color: #2196f3;
}

.whatsapp-btn-green {
    display: inline-block;
    background-color: #25d366;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.whatsapp-btn-green:hover {
    background-color: #128c7e;
    color: #fff;
    text-decoration: none;
}

.map-container-dark iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
    filter: none;
    /* No invert for light mode */
}

/* ==============================================
   Mobile Responsiveness Overrides
=============================================== */
@media (max-width: 768px) {

    /* Larger Headings */
    h1,
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
    }

    h2,
    .display-head {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    h3,
    .h3-md,
    .contact-details h5,
    .reviewer-info h4 {
        font-size: 1.5rem !important;
    }

    /* Larger Body Text */
    body,
    p,
    .lead-text,
    .review-text,
    .hero-highlights,
    li {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Reduced Section Padding */
    .wide-tb-100 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .modern-reviews-section,
    .contact-section-dark {
        padding: 40px 0 !important;
    }

    /* Compact Images for Mobile */
    .service-img img,
    .blog-wrap-dark img,
    .txt-over-img img {
        width: 100% !important;
        height: 200px !important;
        /* Reduced from auto/300px */
        object-fit: cover;
        margin-bottom: 10px;
    }

    .blog-content {
        padding: 15px !important;
        /* Compact content padding */
    }

    .blog-content h4 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }

    .blog-content p {
        font-size: 14px !important;
        /* Smaller text for compactness */
        margin-bottom: 15px !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        /* Limit text lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Larger Reviewer Images */
    .reviewer-img {
        width: 80px !important;
        height: 80px !important;
    }

    /* Contact Icons Bigger */
    .contact-icon-circle {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 15px;
        margin-right: 0 !important;
    }

    .contact-icon-circle i {
        font-size: 28px !important;
    }

    /* Container Padding */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Layout Adjustments */
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
        /* Reduced from 40px for tighter spacing */
        background: #ffffff;
        padding: 30px 20px;
        /* Increased top/bottom padding */
        border-radius: 16px;
        /* softer corners */
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
        /* Softer, more diffuse shadow */
        border: 1px solid rgba(0, 0, 0, 0.03);
        /* Very subtle border */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .contact-item:active {
        transform: scale(0.98);
        /* Touch feedback */
    }

    .contact-item h5 {
        color: #111827 !important;
        /* Darker black for heading */
        margin-top: 15px;
        font-weight: 700 !important;
    }

    .contact-item p,
    .contact-item a {
        color: #4b5563 !important;
        /* Dark gray for text */
    }

    .contact-details {
        text-align: center;
        width: 100%;
    }

    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-theme,
    .btn-outline-theme {
        width: 100%;
        font-size: 18px !important;
        padding: 15px !important;
    }

    .review-card {
        margin: 10px 0;
        padding: 20px;
    }
}

/* 
   --------------------------------------------------------------------------------------
   Restoring Colorful Stats Cards
   The user requested "Make it colorful". The generic white theme overrides were making
   these cards white. We are restoring specific colors for them.
   -------------------------------------------------------------------------------------- 
*/

.counter-coloured {
    border: none !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2) !important;
}

.counter-coloured.bg-navy-blue {
    background-color: #003975 !important;
    /* Original Navy Blue */
    color: #ffffff !important;
}

.counter-coloured.bg-pink {
    background-color: #fe5454 !important;
    /* Original Pink (Reddish) */
    color: #ffffff !important;
}

/* Ensure text inside is white */
.counter-coloured.bg-navy-blue span,
.counter-coloured.bg-navy-blue .head,
.counter-coloured.bg-pink span,
.counter-coloured.bg-pink .head {
    color: #ffffff !important;
}

/* 
   --------------------------------------------------------------------------------------
   Restoring Colorful Contact Cards
   The user reported the contact section looked "Worst" (too plain).
   We are applying the Navy Blue and Pink theme to these cards.
   -------------------------------------------------------------------------------------- 
*/

.contact-item {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item.contact-navy-blue {
    background-color: #003975 !important;
    /* Navy Blue */
    color: #ffffff !important;
}

.contact-item.contact-pink {
    background-color: #fe5454 !important;
    /* Pink */
    color: #ffffff !important;
}

/* Ensure text inside is white for these colorful cards */
.contact-item.contact-navy-blue h5,
.contact-item.contact-navy-blue p,
.contact-item.contact-navy-blue a,
.contact-item.contact-pink h5,
.contact-item.contact-pink p,
.contact-item.contact-pink a {
    color: #ffffff !important;
}

.contact-item.contact-navy-blue .contact-icon-circle,
.contact-item.contact-pink .contact-icon-circle {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.contact-item.contact-navy-blue i,
.contact-item.contact-pink i {
    color: #ffffff !important;
}

/* 
   --------------------------------------------------------------------------------------
   Compacting Contact Cards
   The user requested "its look too big make its small".
   Reducing padding, icon size, and margins.
   -------------------------------------------------------------------------------------- 
*/

/* Compact Contact Cards Override */
.contact-item {
    padding: 12px 15px !important;
    /* Reduced padding */
    margin-bottom: 0 !important;
    /* Managed by grid gap/mb-3 */
    align-items: center !important;
    /* Ensure vertical center alignment */
    height: 100%;
    /* Ensure equal height in grid */
    display: flex;
    /* Ensure flex behavior */
}

/* Smaller Icon Circle */
.contact-item .contact-icon-circle {
    width: 38px !important;
    height: 38px !important;
    margin-right: 15px !important;
}

.contact-item .contact-icon-circle i {
    font-size: 16px !important;
}

/* Smaller Text */
.contact-item h5 {
    font-size: 16px !important;
    margin-bottom: 2px !important;
}

.contact-item p,
.contact-item a {
    font-size: 13px !important;
}

/* 
   --------------------------------------------------------------------------------------
   Compacting Hero Buttons
   The user reported the buttons looked "too big".
   Restoring natural width and reducing size on mobile.
   -------------------------------------------------------------------------------------- 
*/
@media (max-width: 768px) {
    .hero-btns {
        flex-direction: row !important;
        /* Try to fit side-by-side */
        flex-wrap: wrap !important;
        width: auto !important;
        gap: 10px !important;
    }

    .btn-theme,
    .btn-outline-theme {
        width: auto !important;
        /* Prevent full width */
        font-size: 14px !important;
        /* Smaller text */
        padding: 10px 20px !important;
        /* Compact padding */
        margin-bottom: 0 !important;
    }
}

/* 
   --------------------------------------------------------------------------------------
   Adjusting Benefits Section Image
   The user requested "Please adjust this image also".
   Adding border radius and shadow to match the theme.
   -------------------------------------------------------------------------------------- 
*/
.video-popup-link img {
    border-radius: 20px !important;
    /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    /* Soft shadow */
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Optional: If it needs to be smaller on mobile */
@media (max-width: 768px) {
    .video-popup-link img {
        max-width: 90% !important;
        /* Slightly smaller on mobile to not touch edges */
        margin: 0 auto !important;
    }
}

/* 
   --------------------------------------------------------------------------------------
   Fixing Mobile Menu Visibility
   The user reported the menu was invisible on phone.
   Cause: White Icon on White Background.
   Fix: changing icon bars to Dark Blue.
   -------------------------------------------------------------------------------------- 
*/
.navbar-toggler .icon-bar {
    background-color: #111827 !important;
    /* Dark Gray / Black */
}

.navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    /* Subtle border definition */
    padding: 5px !important;
    /* Ensure touch target size */
}