/* Custom CSS for R. B. Info Services CCTV Website */

:root {
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    --secondary-gradient: linear-gradient(135deg, #1E40AF 0%, #1E293B 100%);
    --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --success-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --light-gradient: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    --hero-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 0.8) 100%);
    --card-gradient: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    --primary-color: #2563EB;
    --secondary-color: #1E40AF;
    --accent-color: #F59E0B;
    --success-color: #10B981;
    --white-color: #FFFFFF;
    --light-color: #F8FAFC;
    --gray-color: #64748B;
    --dark-color: #1E293B;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --border-color: #E2E8F0;
    --bright-white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 400;
    background: var(--white-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.display-4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lead {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Navbar Improvements */
.navbar {
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-dark {
    background: var(--primary-gradient) !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: var(--bright-white) !important;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Override brand text color for dark navbar */
.navbar-dark .brand-text {
    background: var(--bright-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    filter: brightness(1.1);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: var(--bright-white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Carousel Styles */
.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.carousel-bg {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-gradient);
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* Hero text styling */
.carousel-caption h1,
.carousel-caption .display-4 {
    color: var(--bright-white) !important;
}

.carousel-caption p,
.carousel-caption .lead {
    color: var(--bright-white) !important;
}

/* Blue/Dark background sections */
.bg-primary,
.bg-dark,
.bg-primary *,
.bg-dark * {
    color: var(--bright-white) !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: var(--bright-white) !important;
}

.bg-primary p,
.bg-primary .lead,
.bg-dark p,
.bg-dark .lead {
    color: var(--bright-white) !important;
}

/* Footer styling */
footer.bg-dark,
footer.bg-dark * {
    color: var(--bright-white) !important;
}

footer.bg-dark .text-light {
    color: var(--bright-white) !important;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15) !important;
}

.service-card .card-img-top-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .card-img-top {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 3rem;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15) !important;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

/* Solution Cards */
.solution-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1) !important;
    border-left-color: var(--warm-amber);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12) !important;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--warm-amber));
    border-radius: 15px 15px 0 0;
}

/* Info Cards */
.info-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12) !important;
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Gallery Enhancements */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 1rem 0;
}

/* Navigation Enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(17, 24, 39, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Carousel Enhancements */
.carousel-item {
    height: 100vh;
    position: relative;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.7) 0%, rgba(37, 99, 235, 0.6) 100%);
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
}

/* Button Enhancements */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--bright-white) !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bright-white) !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--bright-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-light {
    background: var(--bright-white);
    color: var(--primary-color) !important;
    border: 2px solid var(--bright-white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: var(--light-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
    border-color: var(--light-color);
}

.btn-outline-light {
    border: 2px solid var(--bright-white);
    color: var(--bright-white) !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--bright-white);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Call Now button specific styling */
.btn.btn-primary.text-white {
    background: linear-gradient(135deg, var(--accent-color), #D97706);
    color: var(--bright-white) !important;
}

.btn.btn-primary.text-white:hover {
    background: linear-gradient(135deg, #D97706, var(--accent-color));
    color: var(--bright-white) !important;
}

/* Animation Classes */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 1000px 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--warm-amber), var(--fresh-green));
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--warm-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .service-card .card-img-top-wrapper {
        height: 180px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 70vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-card .card-img-top-wrapper {
        height: 150px;
    }
}

/* Professional spacing */
section {
    padding: 100px 0;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bright-white);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
    color: var(--bright-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient);
}

/* Button accessibility - ensure proper contrast */
.btn {
    text-decoration: none;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Ensure all button text has proper contrast */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: var(--bright-white) !important;
}

.btn-light,
.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    color: var(--primary-color) !important;
}

.btn-outline-light,
.btn-outline-light:focus,
.btn-outline-light:active {
    color: var(--bright-white) !important;
}

.btn-outline-light:hover {
    color: var(--primary-color) !important;
}

.btn-outline-primary,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    color: var(--bright-white) !important;
} 