/*
 * 1 Call Rapid Response - Professional Security Styles
 * Modern, Sleek, and Premium Design
 */

:root {
    /* Premium Color Palette */
    --primary-color: #d4af37;
    /* Metallic Gold */
    --primary-dark: #b5952f;
    --secondary-color: #0a192f;
    /* Deep Navy */
    --accent-color: #112240;
    /* Lighter Navy */
    --text-color: #e6f1ff;
    /* Off-white text */
    --text-muted: #cbd5e1;
    --dark-bg: #020c1b;
    /* Very dark navy background */
    --glass-bg: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(212, 175, 55, 0.1);
    --white: #ffffff;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, #d4af37, #f3e9b4, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Navbar */
.navbar {
    background: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(2, 12, 27, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-weight: 700;
    color: var(--white) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 5px 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

/* Buttons */
.btn {
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.btn-outline-light {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-outline-light:hover {
    background-color: rgba(230, 241, 255, 0.1);
    color: var(--text-color);
    transform: translateY(-2px);
}

.glow-button {
    position: relative;
    overflow: hidden;
}

/* Sections */
section {
    position: relative;
    overflow: hidden;
}

.particles-section {
    background-color: transparent;
    /* Changed from var(--dark-bg) to allow particles to show */
    position: relative;
    z-index: 1;
    /* Ensure content is above particles */
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

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

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.hero-section h1 span {
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero-image-container:hover {
    transform: translateY(-10px);
}

.hero-main-image {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.logo-background-overlay {
    position: absolute;
    top: -20%;
    left: -20%;
    z-index: -1;
    opacity: 0.05;
}

/* Cards */
.glass-card {
    background: var(--accent-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 60px;
    width: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.glass-card h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background: var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-card:hover {
    transform: translateY(-7px);
}

.card-img-top-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-top-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img-top-container img {
    transform: scale(1.05);
}

.card-img-top-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.5);
    transition: var(--transition);
}

.service-card:hover .card-img-top-container::after {
    background: rgba(10, 25, 47, 0.2);
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card .card-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card .card-text {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Service Highlights */
.service-highlight-card {
    background: var(--accent-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.service-highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-highlight-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-highlight-card h6 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-highlight-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: var(--dark-bg);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0;
}

/* Contact Form */
.form-control {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 12px;
    border-radius: 4px;
}

.form-control:focus {
    background: rgba(17, 34, 64, 0.8);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    min-width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
}

/* B-BBEE Section */
.credential-card {
    background: var(--accent-color);
    border: 1px solid var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.credential-badge i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.credential-badge h3 {
    color: var(--primary-color);
    letter-spacing: 2px;
}

.credential-benefits .benefit-item {
    color: var(--text-color);
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.benefit-item i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
footer {
    background: #020b18;
    padding: 60px 0 30px;
}

footer h5 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer p,
footer li,
footer a {
    color: var(--text-muted);
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animation Classes */
.animate__animated {
    animation-duration: 1s;
}

/* Responsive */
@media (max-width: 991px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Navbar Fixes */
    .navbar-brand img {
        height: 50px;
        /* Smaller logo on mobile */
    }

    .navbar .btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin-top: 10px;
        /* Add space if it wraps */
    }

    /* Hero Section Fixes */
    .hero-section {
        padding-top: 100px;
        /* Reduced from 120px */
        padding-bottom: 60px;
        text-align: center;
        min-height: auto;
        /* Remove 100vh on mobile */
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        margin: 0 auto 30px;
        font-size: 1rem;
    }

    .hero-section .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
        /* Stack buttons vertically */
    }

    .hero-image-container {
        margin-top: 40px;
        display: none;
        /* Hide hero image on mobile to save space/reduce scrolling */
    }

    /* Section Padding */
    section {
        padding: 40px 0 !important;
        /* Reduce global padding */
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Card Spacing */
    /* Card Spacing */
    .glass-card,
    .service-card {
        margin-bottom: 15px;
    }

    /* Mobile Carousel - Force Flex to override .mobile-only block */
    .mobile-carousel.mobile-only {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 15px 30px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    .carousel-card {
        min-width: 280px;
        width: 85%;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin-right: 0;
        /* Clear margins, use gap */
    }
}

@media (min-width: 992px) {
    .mobile-only {
        display: none !important;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.carousel-nav,
.carousel-dots {
    display: none;
    /* Simplified carousel for now */
}

/* Utility Classes */
.bg-dark {
    background-color: var(--dark-bg) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Glow Animation for Buttons */
.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
}

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    color: var(--text-color);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin-top: 2px;
}/* Partner Logos */
.partner-logo {
    max-height: 80px; 
    object-fit: contain;
    width: auto;
    filter: brightness(0) invert(1); /* Make logos white to match dark theme */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    filter: none; /* Show original colors on hover */
    opacity: 1;
    transform: scale(1.1);
}
