body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Ensure header spans full width */
header {
    background-color: #004080;
    padding: 10px;
    color: white;
    margin-bottom: 0;
}

/* Flex container for aligning elements */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Align the heading (logo) to the left */
.logo {
    font-size: 24px;
    font-weight: bold;
}

/* Navigation styles */
.navbar {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-left: auto;
    position: relative;
}

/* Navigation links */
.navbar a {
    color: #00A8A8;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.navbar a:hover {
    color: red;
}

/* Keep the active page link red */
.navbar a.active {
    color: red;
}

/* Dropdown menu (Only for desktop) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #003366; /* Matches header */
    top: 100%;
    left: 0;
    min-width: 200px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu a {
    padding: 12px;
    display: block;
    color: #00A8A8;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #005fa3;
    color: red;
}

/* Show dropdown on hover (Only for desktop) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}


/* Hamburger menu (Hidden by default) */
.hamburger {
    display: none;
    font-size: 2em;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background: #003366;
        text-align: left;
        padding: 10px 0;
        z-index: 1000; /* Ensures menu appears on top */
    }

    .navbar.active {
        display: flex;
    }

    .slideshow-container {
        position: relative;
        z-index: 0; /* Keeps slideshow below the menu */
    }


    .navbar a {
        padding: 10px 20px;
    }

    .hamburger {
        display: block;
        color: white;
        cursor: pointer;
    }

    /* Keep "Services" as a normal link (No dropdown on mobile) */
    .dropdown .dropdown-menu {
        display: none !important;
    }

    /* Show menu when active */
    .navbar.active {
        display: flex;
    }
}



.page-heading-container {
    text-align: left; /* Align text to the left */
    margin-left: 0; /* Adjust left spacing */
}

.page-heading {
    font-family: 'Arial', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #00A8A8; /* Cyan-like color */
    text-transform: capitalize;
    margin-bottom: 5px; /* Space below */
    display: block;
}

.page-heading::after {
    content: "";
    display: block;
    width: 100%; /* Full width */
    height: 3px; /* Line thickness */
    background-color: red; /* Red line */
    margin-top: 5px; /* Space above the line */
}

.page-subtitle {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    font-weight: normal;
    color: #00A8A8;
    text-transform: uppercase;
    margin-top: 10px; /* Space below red line */
    display: block;
}


/* Footer Styling */
footer {
    background-color: #303030 ; /* Keeps your existing footer background */
    color: #808080 ; /* Makes text white */
    text-align: center;
    padding: 20px;
}

/* Center footer links horizontally */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between links */
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

/* Footer link styling */
.footer-links a {
    color: #808080; /* Default link color */
    text-decoration: none;
    font-weight: bold;
}

/* Hover and Active State */
.footer-links a:hover,
.footer-links a.active {
    color: red; /* Changes to red on hover and when active */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-links a {
    color: #808080;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: red;
}
section {
    padding: 20px;
    background: #f4f4f4;
    margin: 10px;
}


.slideshow-container {
    width: 100%;
    height: 650px;
    overflow: hidden;
    position: relative;
}

/* Ensure images resize properly */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the space without distortion */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .slideshow-container {
        height: 300px; /* Adjust slideshow height for mobile */
    }

    .slide img {
        object-fit: contain; /* Ensures the full image is visible without cropping */
    }
}


.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    transition: opacity 1.5s ease-in-out; /* Slow fade to prevent flashing */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure the active slide is fully visible */
.slide:first-child {
    opacity: 1;
}


/* Animation effect */
.fade {
    animation: fadeEffect 2s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.second-footer{
    text-align: center;
}
.second-footer a{
    text-decoration: none;
}
.second-footer a:hover{
    color: red;
}
/* General Section Styling */
.section-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center content horizontally */
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #f8f8f8; /* Light background for contrast */
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure text is centered properly */
.section-text {
    width: 50%;
    padding: 20px;
    text-align: left;
}

.section-text h2 {
    font-size: 2em;
    color: #003366;
    margin-bottom: 10px;
    text-align: center; /* Center heading */
}

.section-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

/* Button */
.section-text .btn {
    display: inline-block;
    padding: 12px 20px;
    background: #0099ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    transition: 0.3s;
}

.section-text .btn:hover {
    background: red;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    background: #0099ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: transform 0.2s ease-in-out, background 0.3s;
}

.btn:hover {
    background: red;
    transform: scale(1.05); /* Slight zoom effect */
}


/* Image Styling */
.section-image {
    width: 50%;
    text-align: center;
}

.section-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Responsive: Adjust Layout for Mobile */
@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .section-text, .section-image {
        width: 100%;
    }

    .section-text h2 {
        text-align: center;
    }

    .section-text p {
        text-align: center;
    }
}




/* Services Grid */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
}

/* Make the entire box clickable */
.service-box {
    display: block;
    text-decoration: none;
    color: white;
    background: #003366;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, background 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    background: #0099ff;
}



/* Icon */
.service-box i {
    font-size: 40px;
    color: #fff;
    margin-bottom: 10px;
}

/* Text */
.service-box h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When element is visible, make it appear */
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Service Item Container */

/* "What We Offer" Heading with Background */
#services h2 {
    background: url("../images/servicebackground.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Background for Mobile */
@media (max-width: 768px) {
    #services h2 {
        background-size: contain; /* Ensures the full image is visible */
        height: 150px; /* Adjusts height for smaller screens */
    }
}





/* Add overlay effect for better readability */
#services h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}

/* Center text properly */
#services h2 span {
    position: relative;
    z-index: 2;
}



.service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Alternate layout for better flow */
.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Service Image */
.service-item img {
    width: 200px;
    height: auto;
    border-radius: 8px;
}

/* Service Text */
.service-text {
    flex: 1;
}

.service-text h3 {
    color: #003366;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.service-text p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
    text-align: justify;
}

/* Read More Button */
.service-text a {
    display: inline-block;
    padding: 10px 15px;
    background: #0099ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: 0.3s;
}

.service-text a:hover {
    background: red;
}
.service-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.service-item.show {
    opacity: 1;
    transform: translateY(0);
}

.service-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When the section is visible, fade it in */
.service-item.show {
    opacity: 1;
    transform: translateY(0);
}
.service-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-item:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section {
    text-align: center;
    padding: 40px;
    background: #003366;
    color: white;
    margin-top: 40px;
}

.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cta-section .btn {
    background: red;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.cta-section .btn:hover {
    background: #ff0000;
}

/* "Who We Are" Heading Background */
#about h2:first-of-type {
    background: url("../images/aboutbackground.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay to Improve Text Readability */
#about h2:first-of-type::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* General Section Styling - Center Content */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centers content */
    width: 90%;
    max-width: 1200px; /* Limits width to prevent stretching */
    margin: 40px auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure text is centered properly */
.about-text {
    width: 50%;
    padding: 20px;
    text-align: left;
    max-width: 600px; /* Prevents overly long text */
}

.about-text h3 {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 10px;
    text-align: center; /* Center heading */
}

.about-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Center Image */
.about-image {
    width: 50%;
    max-width: 600px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive: Stack Content for Mobile */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .about-text, .about-image {
        width: 100%;
        max-width: 100%;
    }

    .about-text p {
        text-align: center;
    }
}


.cta-section {
    text-align: center;
    padding: 40px;
    background: #003366;
    color: white;
    margin-top: 40px;
}

.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cta-section .btn {
    background: red;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.cta-section .btn:hover {
    background: #ff0000;
}

/* Guarding Services Heading Background */
#guarding h2 {
    background: url("../images/guards1.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay for Readability */
#guarding h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}

/* Guarding Services Section */
.guarding-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centers content */
    width: 90%;
    max-width: 1200px; /* Prevents excessive stretching */
    margin: 40px auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 20px; /* Adds spacing between text and image */
}

/* Text Side */
.guarding-text {
    width: 50%;
    max-width: 550px; /* Prevents text from being too wide */
    padding: 20px;
    text-align: left;
}

.guarding-text h3 {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 10px;
    text-align: center; /* Centers heading */
}

.guarding-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Image Side */
.guarding-image {
    width: 50%;
    max-width: 550px; /* Ensures balance with text */
    text-align: center;
}

.guarding-image img {
    width: 100%; /* Ensures image takes full width of container */
    height: auto;
    max-height: 400px; /* Prevents image from being too large */
    object-fit: cover; /* Ensures it fills the space properly */
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive: Stack Content on Mobile */
@media (max-width: 768px) {
    .guarding-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .guarding-text, .guarding-image {
        width: 100%;
        max-width: 100%;
    }

    .guarding-text p {
        text-align: center;
    }
}

/* CTA Section Styling */
.cta-section {
    text-align: center;
    padding: 50px;
    background: #003366; /* Professional dark blue background */
    color: white;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* CTA Heading */
.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

/* CTA Text */
.cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-section .btn {
    background: red;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

/* Button Hover Effect */
.cta-section .btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}

/* Responsive CTA: Adjust Layout for Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 30px;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }

    .cta-section p {
        font-size: 1.1em;
    }
}

/* CCTV Services Heading Background */
#cctv h2 {
    background: url("../images/cctv.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay for Readability */
#cctv h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}

/* CCTV Services Section */
.cctv-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centers content */
    width: 90%;
    max-width: 1200px; /* Prevents excessive stretching */
    margin: 40px auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 20px; /* Adds spacing between text and image */
}

/* Text Side */
.cctv-text {
    width: 50%;
    max-width: 550px; /* Prevents text from being too wide */
    padding: 20px;
    text-align: left;
}

.cctv-text h3 {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
}

.cctv-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Image Side */
.cctv-image {
    width: 50%;
    max-width: 550px; /* Ensures balance with text */
    text-align: center;
}

.cctv-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive: Stack Content on Mobile */
@media (max-width: 768px) {
    .cctv-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cctv-text, .cctv-image {
        width: 100%;
        max-width: 100%;
    }

    .cctv-text p {
        text-align: center;
    }
}

.cta-section {
    text-align: center;
    padding: 50px;
    background: #003366;
    color: white;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: red;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

/* Button Hover Effect */
.cta-section .btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}

/* Responsive CTA: Adjust Layout for Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 30px;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }

    .cta-section p {
        font-size: 1.1em;
    }
}

.cctv-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.cctv-container.show {
    opacity: 1;
    transform: translateY(0);
}

.cta-section .btn {
    background: red;
    color: white;
    padding: 14px 24px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
}

@media (max-width: 768px) {
    #cctv h2 {
        background-size: contain; /* Ensures full visibility */
        height: 150px; /* Adjust height for mobile */
    }
}

/* Alarm Services Heading Background */
#alarm h2 {
    background: url("../images/automatic alarm.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay for Readability */
#alarm h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}

/* Alarm Services Section */
.alarm-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centers content */
    width: 90%;
    max-width: 1200px; /* Prevents excessive stretching */
    margin: 40px auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 20px; /* Adds spacing between text and image */
}

/* Text Side */
.alarm-text {
    width: 50%;
    max-width: 550px; /* Prevents text from being too wide */
    padding: 20px;
    text-align: left;
}

.alarm-text h3 {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
}

.alarm-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Image Side */
.alarm-image {
    width: 50%;
    max-width: 550px; /* Ensures balance with text */
    text-align: center;
}

.alarm-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive: Stack Content on Mobile */
@media (max-width: 768px) {
    .alarm-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .alarm-text, .alarm-image {
        width: 100%;
        max-width: 100%;
    }

    .alarm-text p {
        text-align: center;
    }
}
.cta-section {
    text-align: center;
    padding: 50px;
    background: #003366;
    color: white;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-section .btn {
    background: red;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

/* Button Hover Effect */
.cta-section .btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}

/* Responsive CTA: Adjust Layout for Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 30px;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }

    .cta-section p {
        font-size: 1.1em;
    }
}
/* VIP Services Heading Background */
#vip h2 {
    background: url("../images/vip.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay for Readability */
#vip h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}
/* VIP Services Section */
.vip-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centers content */
    width: 90%;
    max-width: 1200px; /* Prevents excessive stretching */
    margin: 40px auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 20px; /* Adds spacing between text and image */
}

/* Text Side */
.vip-text {
    width: 50%;
    max-width: 550px; /* Prevents text from being too wide */
    padding: 20px;
    text-align: left;
}

.vip-text h3 {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
}

.vip-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Image Side */
.vip-image {
    width: 50%;
    max-width: 550px; /* Ensures balance with text */
    text-align: center;
}

.vip-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive: Stack Content on Mobile */
@media (max-width: 768px) {
    .vip-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .vip-text, .vip-image {
        width: 100%;
        max-width: 100%;
    }

    .vip-text p {
        text-align: center;
    }
}
.cta-section {
    text-align: center;
    padding: 50px;
    background: #003366;
    color: white;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-section .btn {
    background: red;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

/* Button Hover Effect */
.cta-section .btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}

/* Responsive CTA: Adjust Layout for Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 30px;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }

    .cta-section p {
        font-size: 1.1em;
    }
}
/* Consultancy & Risk Management Heading Background */
#consultancy h2 {
    background: url("../images/consultancy.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay for Readability */
#consultancy h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}
/* Consultancy & Risk Management Section */
.consultancy-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centers content */
    width: 90%;
    max-width: 1200px; /* Prevents excessive stretching */
    margin: 40px auto;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 20px; /* Adds spacing between text and image */
}

/* Text Side */
.consultancy-text {
    width: 50%;
    max-width: 550px; /* Prevents text from being too wide */
    padding: 20px;
    text-align: left;
}

.consultancy-text h3 {
    font-size: 1.8em;
    color: #003366;
    margin-bottom: 10px;
    text-align: center;
}

.consultancy-text p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Image Side */
.consultancy-image {
    width: 50%;
    max-width: 550px; /* Ensures balance with text */
    text-align: center;
}

.consultancy-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive: Stack Content on Mobile */
@media (max-width: 768px) {
    .consultancy-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .consultancy-text, .consultancy-image {
        width: 100%;
        max-width: 100%;
    }

    .consultancy-text p {
        text-align: center;
    }
}
.cta-section {
    text-align: center;
    padding: 50px;
    background: #003366;
    color: white;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-section .btn {
    background: red;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

/* Button Hover Effect */
.cta-section .btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}

/* Responsive CTA: Adjust Layout for Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 30px;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }

    .cta-section p {
        font-size: 1.1em;
    }
}
/* K9 Security Heading Background */
#k9 h2 {
    background: url("../images/canine.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay for Readability */
#k9 h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}
/* K9 Security Services Section */
.k9-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Centers content */
    width: 95%; /* Increases section width */
    max-width: 1400px; /* Allows for a wider structure */
    margin: 50px auto;
    padding: 50px;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 50px; /* Adds more spacing between text and image */
}

/* Text Side */
.k9-text {
    width: 50%;
    max-width: 650px; /* Prevents text from being too wide */
    padding: 30px;
    text-align: left;
}

.k9-text h3 {
    font-size: 2em;
    color: #003366;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.k9-text p {
    font-size: 1.2em;
    color: #444;
    line-height: 1.8;
}

/* Image Side */
.k9-image {
    width: 45%; /* Keeps image balanced with text */
    max-width: 650px;
    text-align: center;
}

.k9-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Image Hover Effect */
.k9-image img:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive: Adjust for Mobile */
@media (max-width: 1024px) {
    .k9-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .k9-text, .k9-image {
        width: 100%;
        max-width: 100%;
    }

    .k9-text p {
        text-align: center;
    }
}

.cta-section {
    text-align: center;
    padding: 50px;
    background: #003366;
    color: white;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-section .btn {
    background: red;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

/* Button Hover Effect */
.cta-section .btn:hover {
    background: #ff0000;
    transform: scale(1.05);
}

/* Responsive CTA: Adjust Layout for Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 30px;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }

    .cta-section p {
        font-size: 1.1em;
    }
}

/* K9 Scrolling Section */
.k9-scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
    padding: 20px 0;
    white-space: nowrap;
}

/* Continuous Scrolling Track */
.k9-track {
    display: flex;
    gap: 40px;
    animation: scroll-loop 20s linear infinite; /* No glitch */
    width: calc(200px * 12); /* Matches the number of items */
}

/* Individual K9 Items */
.k9-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px; /* Controls item size */
}

/* Dog Images */
.k9-item img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* Dog Name */
.k9-item span {
    display: block;
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #003366;
    text-align: center;
}

/* Keyframes for Smooth Scrolling */
@keyframes scroll-loop {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pause scrolling on hover */
.k9-scroller:hover .k9-track {
    animation-play-state: paused; /* Stops scrolling */
}

/* Hover Effect */
.k9-item:hover img {
    transform: scale(1.1);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .k9-item img {
        width: 140px;
    }

    .k9-item span {
        font-size: 1em;
    }
}

/* Contact Section */
#contact {
    color: white;
    text-align: center;
    padding: 50px 0;
}

/* Contact Section Heading Background */
#contact h2 {
    background: url("../images/servicebackground.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 50px 0;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    margin: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Overlay for Readability */
#contact h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: -1;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    #contact h2 {
        font-size: 1.8em; /* Reduce text size */
        height: 150px; /* Adjust height */
        padding: 30px 0;
    }
}


/* Contact Form Container */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: black;
    gap: 30px; /* Even spacing */
}

/* Contact Information Section */
.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 30px;
    font-size: 1.2em;
    text-align: left;
    background: #003366;
    color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 15px;
}

/* Contact Form */
.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Headings */
.contact-form h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* Labels */
.contact-form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    color: #003366;
}

/* Input Fields */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Focus Effect */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #ff0000;
    box-shadow: 0px 0px 5px rgba(255, 0, 0, 0.5);
    outline: none;
}

/* File Upload Section (Initially Hidden) */
#fileUploadSection {
    display: none; /* Keeps it hidden initially */
    opacity: 0; /* Ensures smooth transition */
    transition: opacity 0.3s ease-in-out;
    padding: 10px;
    background: #f8f8f8; /* Light background for visibility */
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Show File Upload When Subject is "Job Application" */
#fileUploadSection.show {
    display: block;
    opacity: 1;
}

/* Improve File Input Appearance */
.contact-form input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background: white;
    cursor: pointer;
}

/* Improve File Input Button */
.contact-form input[type="file"]::file-selector-button {
    background: #ff0000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form input[type="file"]::file-selector-button:hover {
    background: #cc0000;
}




/* Attractive Send Message Button */
.contact-form button {
    background: #ff0000;
    color: white;
    padding: 14px 24px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    display: block;
    width: 100%;
    text-align: center;
}

/* Hover and Click Effect */
.contact-form button:hover {
    background: #cc0000;
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(255, 0, 0, 0.3);
}

.contact-form button:active {
    transform: scale(0.98);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .contact-info, .contact-form {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 20px;
    }

    .contact-info p {
        justify-content: center;
    }
}

/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* Header */
header {
    background: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header p {
    font-size: 1em;
}

/* Terms Container */
.terms-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Headings */
.terms-container h2 {
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
    margin-top: 20px;
}

.terms-container h3 {
    color: #0056b3;
    font-size: 1.2em;
    margin-top: 15px;
}

/* Lists */
.terms-container ul {
    list-style: square;
    margin-left: 20px;
}

/* Links */
.terms-container a {
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
}

.terms-container a:hover {
    text-decoration: underline;
}

/* Logo Styling */
.logo-img {
    height: 80px; /* Adjust logo size */
    width: auto;
    margin-right:0; /* Space between logo and text */
}

/* Responsive Logo for Mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 60px; /* Smaller logo on mobile */
    }
}

/* === UNIVERSAL RESPONSIVE STYLES === */
@media (max-width: 768px) {
  /* SECTION LAYOUTS */
  section {
    padding: 20px 10px;
  }

  .service-item,
  .about-section,
  .cctv-container,
  .alarm-section,
  .vip-section,
  .consultancy-section,
  .k9-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-item img,
  .about-section img,
  .cctv-container img,
  .alarm-section img,
  .vip-section img,
  .consultancy-section img,
  .k9-container img {
    max-width: 100%;
    height: auto;
  }

  

  /* FORMS */
  form input,
  form textarea,
  form select {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form {
    padding: 10px;
  }

  .file-upload {
    width: 100%;
  }
}

