:root {
    --primary: #f75a2a;
    --secondary: #f84813;
    --accent: #ff3c00;
    --light: #eff6ff;
    --dark: #1e293b;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #334155;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Equal Height Columns */
.row {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
}

.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.row > [class*="col-"] > * {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

/* Services Section - Equal Height Cards */
.row .feature-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.row .feature-box .service-icon {
    flex-shrink: 0;
    margin-bottom: 15px;
}

.row .feature-box h3 {
    flex-shrink: 0;
    margin-bottom: 15px;
}

.row .feature-box p {
    flex: 1;
    display: flex;
    align-items: flex-start;
    text-align: center;
    margin-bottom: 0;
}

/* Services Section Specific Centering */
#services .row {
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

#services .col-md-4 {
    display: flex;
    justify-content: center;
    max-width: 400px;
    flex: 0 0 auto;
}

#services .feature-box {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

/* Stats Section - Equal Height Boxes */
.row .stats-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contact Section - Equal Height Info Boxes */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.contact-grid .contact-info-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* About Section - Equal Height Columns */
.row.align-items-center > [class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* CCTV Products Grid - Matching Original Design */
.cctv-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    max-width: 100%;
    overflow-x: hidden;
}

.cctv-solution-card {
    background: white !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    height: 250px;
}

.cctv-solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.cctv-solution-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.cctv-solution-card:hover .cctv-solution-img {
    transform: scale(1.05);
}

.cctv-solution-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 15px 15px;
    text-align: center;
    color: #f8f9fa;
}

.cctv-solution-content h3 {
    color: #f8f9fa;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.cctv-solution-content .btn {
    background: var(--primary);
    border: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    color: white !important;
}

.cctv-solution-content .btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Responsive adjustments for equal heights */
@media (max-width: 992px) {
    .cctv-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cctv-solution-card {
        height: 220px;
    }
    
    .cctv-solution-content {
        padding: 15px 12px 12px;
    }
    
    .cctv-solution-content h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .cctv-solution-content .btn {
        padding: 7px 16px;
        font-size: 0.85rem;
    }
    
    .row > [class*="col-"] {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    /* Prevent horizontal overflow on small mobile */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container-custom {
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0 10px;
    }
    
    .row {
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
    }
    
    .row > [class*="col-"] {
        max-width: 100%;
        padding: 0 5px;
    }
    
    /* Services Section Small Mobile Centering */
    #services .row {
        justify-content: center;
    }
    
    #services .col-md-4 {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    #services .feature-box {
        text-align: center;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cctv-full-slider .carousel-item {
        height: 50vh;
    }
    
    .cctv-full-slider .carousel-caption {
        padding: 12px;
        width: 95%;
        font-size: 0.9rem;
        bottom: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }
    
    .section-title:after {
        width: 80px;
        height: 5px;
    }
    
    .hero .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navbar-brand span {
        font-size: 1.5rem;
    }
    
    .contact-info-box h5, 
    .contact-info-box p {
        padding-left: 30px;
    }
    
    .contact-info-box h5 i {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .stats-box {
        margin: 10px 0;
        padding: 15px 10px;
    }
    
    .feature-box {
        padding: 20px 15px;
    }
    
    .map-container {
        height: 200px;
    }
    
    .section-container {
        padding: 60px 0;
    }
    
    .cctv-solutions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .cctv-solution-card {
        margin-bottom: 15px;
        height: 200px;
    }
    
    .cctv-solution-content {
        padding: 12px 10px 10px;
    }
    
    .cctv-solution-content h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .cctv-solution-content .btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 50px;
    width: 95%;
    max-width: 1200px;
    transition: all 0.3s ease;
    animation: navbarSlideDown 0.8s ease-out;
    overflow: hidden;
}

@keyframes navbarSlideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    top: 10px;
    border-radius: 25px;
}

.navbar-brand {
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Prevent logo from interfering with navbar navigation */
.navbar-brand .logo-container {
    pointer-events: auto;
    z-index: 1;
    overflow: visible;
    position: relative;
}

.navbar-brand img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Prevent any scrolling effects on logo hover */
.navbar-brand:hover {
    transform: scale(1.05);
    overflow: visible;
}

.navbar-brand:focus {
    outline: none;
    overflow: visible;
}

/* Completely isolate navbar nav from logo hover effects */
.navbar-nav {
    align-items: center;
    pointer-events: auto;
    z-index: 2;
    position: relative;
    isolation: isolate;
}

.nav-item {
    margin: 0 5px;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    padding: 10px 20px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 2;
    pointer-events: auto;
}

/* Remove logo hover effect to prevent scrolling issues */
.navbar-brand:hover {
    transform: none;
}

.nav-item {
    margin: 0 5px;
    pointer-events: auto;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    padding: 10px 20px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 91, 41, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 41, 59, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero {
    background: 
    linear-gradient(rgba(251, 91, 41, 0.85), rgba(251, 91, 41, 0.9)), 
    radial-gradient(circle at 20% 30%, rgba(251, 123, 77, 0.2), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(251, 91, 41, 0.2), transparent 40%),
    url('../images/hero_bg.jpg') center/cover;
    padding: 180px 0 100px;
    color: #f8f9fa;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero h1 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.8;
    /*background: linear-gradient(to right, #fff, #d1e0ff);*/
    -webkit-background-clip: text;
    background-clip: text;
    /*color: transparent;*/
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 20px auto 30px;
    line-height: 1.6;
}

.section-container {
    padding: 100px 0;
}

.service-card {
    transition: all 0.4s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: 100%;
    background: white !important;
    position: relative;
    z-index: 1;
    padding: 25px;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient);
    opacity: 0.1;
    transition: all 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

.service-card:hover:before {
    height: 100%;
    opacity: 0.15;
}

.service-icon {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(37, 99, 235, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Enhanced Owner Image Container */
.owner-image-container {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.owner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: all 0.5s ease;
    transform: rotateY(-5deg);
    border: 8px solid white !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.owner-image-container:hover .owner-image {
    transform: rotateY(0deg);
}

.owner-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8f9fa;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    border: 5px solid white !important;
    transition: all 0.3s ease;
    z-index: 2;
}

.owner-image-container:hover .owner-badge {
    transform: scale(1.05) rotate(5deg);
}

.badge-content {
    text-align: center;
    padding: 10px;
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.gallery-section {
    padding: 0;
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
}

.cctv-full-slider {
    height: 100%;
    width: 100%;
}

.cctv-full-slider .carousel-item {
    height: 100vh;
    position: relative;
}

.cctv-full-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cctv-full-slider .carousel-caption {
    background: rgba(198, 203, 219, 0.85);
    padding: 25px 30px;
    border-radius: 15px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cctv-full-slider .carousel-caption h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.cctv-full-slider .carousel-caption p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 0;
}

.contact-section {
    padding: 100px 0;
    background: var(--gradient), 
                radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.3), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.3), transparent 40%),
                url('../images/contact_bg.jpg') center/cover;
    color: white !important;
    position: relative;
}

.contact-section .section-title {
    color: white !important;
}

.contact-section .section-title:after {
    background: white !important;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-form:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.contact-form .form-label {
    color: white !important;
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 8px;
}

.contact-form .form-control, 
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white !important;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.contact-form .form-control:focus, 
.contact-form .form-select:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    color: white !important;
}

.contact-form .form-control::placeholder {
    color: rgba(248, 249, 250, 0.7);
}

/* Fix dropdown options visibility */
.contact-form .form-select option {
    background-color: white !important;
    color: #374151;
    padding: 10px;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.custom-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.custom-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.custom-dropdown.active .custom-dropdown-toggle i {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.custom-dropdown.active .custom-dropdown-menu {
    display: block;
}

.custom-dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #374151;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.custom-dropdown-item.selected {
    background-color: var(--primary) !important;
    color: white !important;
}

/* Scrollbar styling for dropdown */
.custom-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Ensure dropdown arrow is visible */
.contact-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    height: 300px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-info-box h5 {
    color: #f8f9fa;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.contact-info-box h5 i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-info-box p {
    color: rgba(248, 249, 250, 0.9);
    padding-left: 40px;
    margin-bottom: 0;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover:before {
    width: 100%;
}

.btn-light {
    background: white !important;
    color: var(--primary);
    font-weight: 600;
}

.btn-light:hover {
    background: #f8f9fa;
    color: var(--secondary);
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 3px;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.pulse {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.stats-box {
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin: 15px 0;
}

.stats-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    background: var(--gradient);
    color: white !important;
}

.stats-box:hover .display-4 {
    color: #f8f9fa !important;
}

.stats-box .display-4 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: white !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin: 15px 0;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

.footer {
    background: var(--gradient);
    color: #f8f9fa;
    padding: 80px 0 30px;
    margin-top: auto;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: #f8f9fa !important;
    text-decoration: none;
    flex-shrink: 0;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-8px);
    color: white !important;
}

.business-highlight {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.business-highlight h3 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.contact-grid .contact-info-box {
    margin-bottom: 0;
}

.container-custom {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.floating-element-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

.floating-element-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, 20px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white !important;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white !important;
}

.whatsapp-float i {
    font-size: 2rem;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.back-to-top.show {
    display: flex;
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Image loading animation */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Loading skeleton for images */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Testimonials */
.testimonial-card {
    background: white !important;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h5 {
    margin: 0;
    color: var(--dark);
    font-weight: 600;
}

.author-info span {
    color: #6b7280;
    font-size: 0.9rem;
}

.rating {
    color: #fbbf24;
}

.rating i {
    margin-left: 2px;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Form success message */
.form-success {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    z-index: 2000;
    transform: translateX(150%);
    transition: transform 0.5s ease;
}

.form-success.show {
    transform: translateX(0);
}

.form-success i {
    color: #10b981;
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Enhanced animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Animation */
.nav-link {
    position: relative;
    padding: 8px 15px;
    transition: all 0.3s ease;
    color: #171717;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

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

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

/* Responsive Fixes */
@media (max-width: 992px) {
    .navbar {
        width: 98%;
        top: 10px;
        border-radius: 25px;
    }
    
    .navbar.scrolled {
        top: 5px;
        border-radius: 20px;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        margin-top: 15px;
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        margin: 8px 0;
    }
    
    .nav-link {
        padding: 12px 25px !important;
        margin: 5px 0;
        display: block;
    }
    
    .cctv-full-slider .carousel-item {
        height: 70vh;
    }
    
    .hero {
        padding: 140px 0 80px;
        margin-top: 15px;
    }
    
    .about-section .row {
        flex-direction: column;
    }
    
    .about-section .col-lg-6 {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .owner-image {
        /*max-width: 80%;*/
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cctv-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    /* Extra small devices */
    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .contact-info-box h5 {
        font-size: 1rem;
    }

    .contact-info-box p {
        font-size: 0.85rem;
    }

    .navbar-brand img {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 0;
        border-radius: 0;
        width: 100%;
        
    }
    
    .navbar.scrolled {
        top: 2px;
        border-radius: 15px;
    }
    
    .navbar-brand .logo-container {
        padding: 10px 12px !important;
        height: 40px !important;
    }
    
    .navbar-brand img {
        height: 35px !important;
        width: 70px !important;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 10px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 10px 20px !important;
        font-size: 0.95rem;
    }
    
    /* Prevent horizontal overflow on mobile */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container-custom {
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0 15px;
    }
    
    .row {
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
    }
    
    .row > [class*="col-"] {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Services Section Mobile Centering */
    #services .row {
        justify-content: center;
    }
    
    #services .col-md-4 {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #services .feature-box {
        text-align: center;
        align-items: center;
        width: 100%;
        max-width: 320px;
    }
    
    .hero {
        padding: 120px 0 60px;
        margin-top: 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cctv-full-slider .carousel-item {
        height: 60vh;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .contact-info-box {
        padding: 20px;
    }
    
    .cctv-full-slider .carousel-caption {
        padding: 15px;
        width: 95%;
        bottom: 20px;
    }
    
    .cctv-full-slider .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .cctv-full-slider .carousel-caption p {
        font-size: 0.95rem;
    }
    
    .stats-box {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .footer {
        padding-top: 60px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .section-container {
        padding: 80px 0;
    }
}

/* Desktop Centering for Larger Screens */
@media (min-width: 769px) {
    .row {
        justify-content: center;
    }
    
    .row > [class*="col-"] {
        display: flex;
        justify-content: center;
    }
    
    /* Services Section Desktop Centering */
    #services .row {
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    #services .col-md-4 {
        display: flex;
        justify-content: center;
        max-width: 400px;
        flex: 0 0 auto;
    }
    
    #services .feature-box {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Large Viewport Optimization */
@media (min-width: 1400px) {
    #services .row {
        max-width: 1200px;
        margin: 0 auto;
        justify-content: center;
    }
    
    #services .col-md-4 {
        max-width: 380px;
        margin: 0 10px;
    }
    
    #services .feature-box {
        max-width: 350px;
    }
}

@media (min-width: 1600px) {
    #services .row {
        max-width: 1300px;
    }
    
    #services .col-md-4 {
        max-width: 400px;
        margin: 0 15px;
    }
}

/* Brands Section Styling */
.brand-card {
    background: white !important;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.brand-card:hover::before {
    left: 100%;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-card:hover .brand-logo {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.brand-logo i {
    font-size: 2rem;
    color: white !important;
}

.brand-card h4 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.brand-card:hover h4 {
    color: var(--primary);
}

.brand-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

/* Responsive adjustments for brands section */
@media (max-width: 992px) {
    .brand-card {
        padding: 25px 15px;
    }
    
    .brand-logo {
        width: 70px;
        height: 70px;
    }
    
    .brand-logo i {
        font-size: 1.8rem;
    }
    
    .brand-card h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .brand-card {
        padding: 20px 15px;
    }
    
    .brand-logo {
        width: 60px;
        height: 60px;
    }
    
    .brand-logo i {
        font-size: 1.5rem;
    }
    
    .brand-card h4 {
        font-size: 1rem;
    }
    
    .brand-card p {
        font-size: 0.95rem;
    }
}

/* Brands Section Specific Centering */
#brands .row {
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

#brands .col-md-4 {
    display: flex;
    justify-content: center;
    max-width: 400px;
    flex: 0 0 auto;
}

#brands .brand-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.text-primary{
    color: #f75a2a !important;
}

a {
    color: #f75a2a !important;
}

/* Fix anchor links in sections with primary backgrounds */
.cta-section a,
.footer a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-section a:hover,
.footer a:hover {
    color: #f8f9fa !important;
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Exclude social media icons from the general anchor hover effects */
.cta-section .social-icon,
.footer .social-icon {
    color: #f8f9fa !important;
    text-decoration: none;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: #333 !important;
}

.cta-section .social-icon:hover,
.footer .social-icon:hover {
    color: white !important;
    text-decoration: none;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: #000 !important;
}

/* Specific styling for footer links */
.footer a {
    color: rgba(248, 249, 250, 0.9) !important;
}

.footer a:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure buttons in CTA section maintain their styling */
.cta-section .btn {
    color: inherit !important;
}

.cta-section .btn:hover {
    background-color: inherit !important;
    color: inherit !important;
}

/* Call Now button hover effect */
.cta-section .btn-outline-light:hover {
    background-color: white !important;
    color: var(--primary) !important;
    border-color: white !important;
}

/* Call Now button phone icon color */
.cta-section .btn-outline-light .fas.fa-phone {
    color: #333 !important;
}

/* Call Now button phone icon hover effect */
.cta-section .btn-outline-light:hover .fas.fa-phone {
    color: var(--primary) !important;
}

#contact {
 color: #171717 !important;
}

/* Contact section subtitle styling */
#contact .text-center.mb-5.fade-in.visible {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    color: #171717 !important;
}