@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #165DAE;
    --secondary-color: #191F2D;
    --navbar-color: #2e4b8f;
    --accent-color: #F2F3F4;
    --text-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #191F2D;
    /* Matches theme color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-image {
    width: 80px;
    /* Logo size */
    height: 80px;
    z-index: 2;
    /* Ensures logo is above the background */
}

.loading-text {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Animation for background elements */
.preloader-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    animation: rotate-background 4s linear infinite;
    /* Background rotation */
    z-index: 1;
    /* Behind the logo */
}

@keyframes rotate-background {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

h2 {
    color: #0C203B !important;
}

.bg {
    background-color: var(--accent-color) !important;
    color: var(--text-color) !important;
}

.bg-test {
    background-color: var(--secondary-color);
}

.home-btn {
    background-color: var(--navbar-color);
    border-right: 1px solid #000;
    color: white;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    bottom: 25px;
    right: 10px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.icon{
    background-color: var(--navbar-color);
    border-right: 1px solid #000;
    color: white;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    bottom: 80px;
    right: 10px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.sol {
    display: none;
}


.home-btn a {
    text-decoration: none;
    color: white;
}

.home-btn i {
    font-size: 18px;
}

.home-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Navbar styling */
.top-navbar {
    background-color: #191F2D;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4.5%;
    font-family: Arial, sans-serif;
}

.social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2em;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: rotate(35deg);
}

.nav-link a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}

.nav-link a:hover {
    text-decoration: underline;
    color: white !important;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(90deg, rgba(0, 255, 255, 1) 0%, rgba(0, 95, 150, 1) 49%, rgba(0, 6, 48, 1) 100%);
    padding: 1rem 5%;
    position: sticky !important;
    z-index: 998;
    top: 0;
    width: 100%;
    transition: all 0.5s ease-in-out;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    background: var(--secondary-color);
}

.nav-content {
    width: 100%;
    padding: 0 4.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}


.menu-btn,
.close-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, rgba(0, 255, 255, 1) 0%, rgba(0, 95, 150, 1) 49%, rgba(0, 6, 48, 1) 100%),
        url('https://www.cctvcameraworld.com/media/cwsecurity/icons/cctv-camera-world-bullet-camera-banner-557.webp') center/cover;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    padding: 1% 5%;
    width: 100%;
    flex-direction: row;
}

.hero div {
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.hero div h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero div p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.image-container {
    position: relative;
    width: 450px;
    height: 70vh;
    object-fit: contain;
}

.image-container img {
    position: absolute;
    object-fit: contain;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: zoomInOut 4s infinite;
}

.image-container img.active {
    opacity: 1;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.14);
    }

    100% {
        transform: scale(1);
    }
}


.cta-btn {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.cta-btn:hover {
    background: #0096b4;
}

/* why choose us css start  */
.why-choose-us {
    padding: 50px 0;
    background-color: var(--accent-color);
}

.section-title h2 {
    text-align: center;
    margin-bottom: 30px;
}

.choose-us-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.choose-us-item {
    width: 22%;
    margin: 10px;
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    transition: transform 0.3s;
}

.choose-us-item:hover {
    transform: scale(1.05);
}

.choose-us-item i {
    font-size: 2em;
    color: #165DAE;
    margin-bottom: 10px;
}

.choose-us-item h3 {
    margin: 15px 0 10px;
}

.choose-us-item p {
    font-size: 0.9em;
    color: #333;
}

/* why choose us css end */

/* featured product css start  */
.header {
    background: var(--accent-color);
    padding: 20px;
    text-align: center;
}

.header h1 {
    margin-bottom: 10px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.catalog {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 0 5px black;
}

.b {
    background-color: var(--accent-color);
    padding: 5px;
}

.categories {
    width: 250px;
    flex-shrink: 0;
}

.categories h2 {
    margin-bottom: 15px;
}

.category-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: none;
    background: #f5f5f5;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.category-btn:hover {
    background: #e0e0e0;
}

.category-btn.active {
    background: #2563eb;
    color: white;
}

.products-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    height: 230px;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.3s;
    transition: transform 1s ease;

}

.product-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1.2);
}

.product-card img {
    height: 80px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 8px;
    font-size: 1.2em;
    color: #2563eb;
}

.product-card p {
    color: #666;
    font-size: 0.9em;
}

.mobile-categories {
    display: none;
    position: relative;
    margin-bottom: 20px;
}

.mobile-dropdown-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-content.show {
    display: block;
}

/* featured product css end */

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--text-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* testimonial css start  */
.testimonials {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 4em 0;
    text-align: center;
}

.testimonials .section-title h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
}

.carousel-item {
    display: flex;
    justify-content: center;
}

.testimonial-card {
    background-color: var(--primary-color);
    padding: 2em;
    border-radius: 10px;
    max-width: 400px;
    color: var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: center;
}

.client-image {
    height: auto;
    border-radius: 50%;
    margin-bottom: 1em;
}

.testimonial-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5em;
    font-style: italic;
}

.rating {
    color: gold;
    margin-bottom: 1em;
}

.rating i {
    font-size: 1.2em;
    margin: 0 2px;
}

.testimonial-card h5 {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-color);
}

.testimonial-card p {
    font-size: 1em;
    color: var(--text-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
    border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
    filter: brightness(0) invert(1);
}

.carousel-control-prev-icon:after,
.carousel-control-next-icon:after {
    color: black;
}

/* testimonial css end */

/* faq css start  */
.faq-contact {
    background-color: var(--accent-color);
    padding: 5rem 5%;
}

.faqs {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Form Styling */
.contact-form-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-form-container button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 12px;
    border: none;
    border-radius: 4px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transform: scaleY(1.05);
}

.contact-form-container button:hover {
    background-color: var(--navbar-color);
}

/* faq css end */


/* Footer */
.box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 4rem 15px 2px 15px;
}

.footer-section {
    width: 310px;
}

.quick h3 {
    height: 40px;
    text-align: center;
    margin-bottom: 5px;
    margin-left: 127px;
    width: fit-content;
}

.conta h3 {
    height: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 5px;
    margin-left: 10px;
    width: 400px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
    margin-left: 130px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
    margin-top: 5px;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--text-color);
}

.quick-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1.6rem;
}

.quick-contact-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-contact-btn:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

.social-media-links {
    width: 50%;
    font-size: 20px;
    margin-left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.links a {
    color: var(--text-color);
}

/* stats  */
.stats-section {
    padding: 50px 20px;
    background-color: var(--accent-color);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    margin: 20px;
    flex: 1 1 200px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #165DAE;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        display: none !important;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-content {
        padding: 0 10px;
    }

    .menu-btn {
        display: block;
    }

    .image-container img {
        animation: none;
    }

    .close-btn {
        display: none;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .box h3 {
        width: 100%;
    }

    .footer-section p {
        width: 100%;
        margin: 0;
    }

    .quick h3 {
        margin-left: 0;
    }

    .footer-links li {
        margin-left: 0;
    }

    .footer-section {
        width: 100%;
    }

    .map-container {
        height: 200px;
    }

    .faqs:hover {
        transform: none;
    }

    .contact-form-container {
        margin-top: 15px;
    }

    .contact-form-container:hover {
        transform: none;
    }

    .faq-contact {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .contact {
        padding: 0 !important;
        margin-top: 2px;
    }

    .top-navbar {
        padding: 10px 12px;
    }

    .hero {
        flex-direction: column-reverse;
    }

    .hero div h1 {
        font-size: 30px;
    }

    .hero div p {
        font-size: 16px;
    }

    .cta-btn {
        width: 200px;
        height: 30px;
        padding: 10px;
        position: relative;
        bottom: 10px;
        margin-bottom: 20px;
    }

    .sol {
        display: inline-block;
    }

    .categories {
        display: none;
    }

    .mobile-categories {
        display: block;
    }

    .catalog {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card h3 {
        font-size: 14px;
    }

    .product-card p {
        font-size: 12px;
    }

    .choose-us-item {
        width: 45%;
    }
    .product-card:hover {
        transform: none;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .choose-us-item {
        width: 30%;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .choose-us-item {
        width: 100%;
    }
}