/* ==============================
   1. Import Google Fonts
   ============================== */
/* Combined font imports into a single @import rule to reduce HTTP requests */
@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');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');


/* ==============================
   2. Root Variables
   ============================== */
:root {
    --primary-bg: #F3F3F3;
    --primary-color: #4367F6;
    --secondary-color: #b6fff4;
    --primary-white: #ffffff;
    --light-gray: rgb(242, 242, 242);
    --font-main: "Poppins", sans-serif;
    --font-second: "Ubuntu", sans-serif;
    --font-third: "Bebas Neue", sans-serif;
    --bg-light-dark: #023e39;
}

/* ==============================
   3. Base Styles and Utilities
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body {
  height: auto;            /* ensure natural document height */
  overflow-x: hidden;      /* prevent horizontal scroll */
  -webkit-overflow-scrolling: auto; /* avoid iOS momentum conflicts */
  scroll-behavior: auto !important; /* don't mix native smooth-scroll with Lenis */
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    background: var(--primary-white);
    /* overflow-x: hidden; */
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
}

.blr {
    padding-left: 8vw;
    padding-right: 8vw;
}

.btb {
    padding-top: 6vw;
    padding-bottom: 6vw;
}

/* Hero Button */
.animated-button {
    position: relative;
    width: 200px;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-white);
    background-color: transparent;
    border: 1px solid var(--primary-white);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out;
}

.animated-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.animated-button:hover {
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.animated-button:hover::before {
    width: 400px;
    height: 400px;
}

/* Section title */
.section-title {
    color: var(--primary-color);
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 3vw;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 2.8vw;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0.2rem auto 0;
}

/* ==============================
   4. Hero Section
   ============================== */
.hero {
    height: 100vh;
    background-image: url(../images/cctv-hero.png);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
}

.wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.wrapper .left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrapper .left h1 {
    font-family: var(--font-third);
    color: var(--primary-white);
    text-transform: uppercase;
    font-size: 4vw;
    line-height: 4vw;
}

.wrapper .left p {
    color: var(--light-gray);
    font-size: 1.4vw;
    margin-bottom: 2.4vw;
}

/* trusted partner box centered: use single transform (combined) */
.trusted-partner {
    position: absolute;
    width: 80vw;
    background-color: var(--primary-white);
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-color);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    border-radius: 20px;
    overflow: hidden;
}

.trusted-logos {
    display: flex;
    justify-content: space-around;
}


.trusted-img {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 10px;
}

.trusted-img img {
    max-width: 100px;
    margin: 0 15px;
}

/* ==============================
   5. What We Do Section
   ============================== */
.wwd-container {
    text-align: center;
    background-color: var(--primary-bg);
    padding-top: 120px;
}


.wwd-container p {
    font-family: var(--font-second);
    font-size: 1.4rem;
    font-weight: 200;
    line-height: 1.6;
}

.wwd-container p span {
    color: black;
    font-weight: 600;
}

/* ==============================
   6. Features Section
   ============================== */
.features {
    text-align: center;
}

.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.features-card {
    text-align: center;
    padding: 2rem;
    transition: background-color 0.4s ease-in-out;
}

.features-card:hover {
    background-color: var(--light-gray);
}

.features-card h3 {
    font-family: var(--font-second);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.features-card p {
    font-family: var(--font-second);
    font-size: 1.2rem;
    color: black;
    font-weight: 200;
    margin-bottom: 1rem;
    padding: 0 4rem;
}

.features-card img {
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
}

/* Borders for grid cards (keep logic but avoid duplicated nth rules) */
.features-card:nth-of-type(odd) {
    border-right: 1px solid #eeeeee;
}

.features-card:not(:last-child) {
    border-bottom: 1px solid #eeeeee;
}

/* ==============================
   7. Why Choose Us Section
   ============================== */
.about-container {
    background-color: black;
    color: white;
    text-align: center;
}

.about-container p {
    font-family: var(--font-second);
    font-size: 1.4rem;
    font-weight: 200;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
    text-align: left;
    gap: 2rem;
    align-items: center;
}

.about-card {
    padding: 0.4rem;
    text-align: left;
}

.about-card h1 {
    font-family: var(--font-second);
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.about-card p {
    font-family: var(--font-second);
    font-size: 1.2rem;
    color: var(--primary-white);
    font-weight: 200;
    margin: 0;
}

.about-card:nth-of-type(1),
.about-card:nth-of-type(2),
.about-card:nth-of-type(3) {
    border-bottom: 1px solid var(--primary-color);
    padding: 1rem 0;
}

.about-content button {
    margin-top: 1.4rem;
}

.about-container .right {
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.about-img img:hover {
    transform: scale(1.1);
}

/* ==============================
   8. Slider Section
   ============================== */
.slider-container {
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    padding: 0 20px;
}

.slider-title {
    font-family: sans-serif;
    font-size: 2em;
    color: #4b6cb7;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 2px;
}

.slider-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #4b6cb7;
    margin: 10px auto 0;
}

.swiper {
    height: 430px;
    overflow: visible;
    margin-bottom: 30px;
}

.swiper-slide {
    height: 400px;
    padding: 15px 0;
    transform: scale(0.9);
    transition: transform 0.4s ease-in-out;
    opacity: 0.7;
}

.swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.slide-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #f7f7f7;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slide-content img {
    width: 60%;
    height: 100%;
    object-fit: cover;
}

.slide-content .text-content {
    width: 40%;
    padding: 30px;
    text-align: left;
}

.text-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.text-content p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.5;
}

/* Slider controls (keeps them in flow) */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.swiper-button-prev,
.swiper-button-next {
    position: static !important;
    transform: none !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4b6cb7 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    margin: 0;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.5rem !important;
    font-weight: bold;
}

.swiper-pagination {
    position: static !important;
    margin: 0;
    width: auto !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 1;
    transition: background-color 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: #4b6cb7;
}

/* ==============================
   9. Unique Features
   ============================== */
.unique-features {
    display: flex;
    flex-wrap: nowrap;
    /* fixed typo: no-wrap -> nowrap */
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.unique-features-card {
    flex: 1 1 260px;
    max-width: 320px;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.unique-features-card img {
    max-width: 120px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    animation: zoomPulse 2.5s ease-in-out infinite;
}

@keyframes zoomPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

.unique-features-card h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.unique-features-card p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.85;
}

/* ==============================
   10. Contact Section
   ============================== */
.contact-section {
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    box-sizing: border-box;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-text h2 {
    font-size: clamp(1.6rem, 2.25vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.05;
}

.contact-text p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    margin: 0;
    color: #222;
}

.contact-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #9ca3af;
    color: #000;
    background: #fff;
    resize: none;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6c757d;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0b79d0;
    box-shadow: 0 6px 18px rgba(11, 121, 208, 0.08);
}

.contact-submit-btn {
    position: relative;
    width: 200px;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: transform .18s ease, box-shadow .18s ease;
    align-self: start;
    border: none;
}

.contact-submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: #202d83;
    width: 120%;
    height: 100%;
    transform: translateX(-110%);
    transition: transform .45s ease;
    border-radius: 50px;
    z-index: -1;
}

.contact-submit-btn:hover::before {
    transform: translateX(0);
}

.contact-submit-btn:focus {
    outline: 3px solid rgba(11, 121, 208, 0.18);
    outline-offset: 3px;
}

.contact-image-panel {
    width: 100%;
    border-radius: 1.5rem;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.contact-image-panel img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    display: block;
}

.contact-form-panel {
    width: 100%;
    box-sizing: border-box;
}

.contact-section-title {
    color: var(--primary-color);
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 3vw;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 1vw;
}

.contact-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0.2rem auto 0;
}

.contact-subtext {
    color: grey;
    margin-bottom: 2vw;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==============================
   11. Footer Section
   ============================== */
.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 2rem 1rem;
    border-radius: 1.5rem 1.5rem 0 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-grid h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-white);
}

.footer-grid p,
.footer-grid a {
    font-size: 0.875rem;
    color: var(--primary-white);
    text-decoration: none;
    line-height: 1.5;
}

.footer-grid a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    color: var(--primary-white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #38b2ac;
}

/* ==============================
   12. Media Queries (Consolidated)
   ============================== */

/* Extra Small Mobile Devices (<= 576px) */
@media (max-width: 576px) {
    .blr {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .btb {
        padding-top: 8vw;
        padding-bottom: 8vw;
    }

    /* Hero / wrapper */
    .wrapper {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .wrapper .left {
        padding: 20px 0;
        text-align: center;
    }

    .wrapper .left h1 {
        font-size: clamp(32px, 10vw, 48px);
        line-height: 1.2;
    }

    .wrapper .left p {
        font-size: clamp(14px, 4vw, 18px);
        margin-bottom: 24px;
    }

    .animated-button {
        width: 100%;
        max-width: 240px;
    }

    .wwd-container p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section-title {
        font-size: clamp(20px, 6vw, 28px);
        letter-spacing: 4px;
        margin-bottom: 20px;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .features-card {
        padding: 1.5rem 1rem;
    }

    .features-card h3 {
        font-size: 1.5rem;
    }

    .features-card p {
        font-size: 1rem;
    }

    .features-card img {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .about-img {
        height: 320px;
    }

    .about-card h1 {
        font-size: 1.5rem;
    }

    .about-card p {
        font-size: 1rem;
    }

    .swiper {
        height: auto;
        min-height: 400px;
    }

    .swiper-slide {
        height: auto;
    }

    .slide-content {
        flex-direction: column;
    }

    .slide-content img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .slide-content .text-content {
        width: 100%;
        padding: 20px;
    }

    .text-content h3 {
        font-size: 1.5rem;
    }

    .text-content p {
        font-size: 0.95rem;
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .unique-features {
        flex-direction: column;
    }

    .unique-features-card {
        max-width: 100%;
    }

    .contact-section-title {
        font-size: clamp(20px, 6vw, 28px);
        letter-spacing: 4px;
        margin-bottom: 12px;
    }

    .contact-subtext {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .contact-submit-btn {
        width: 100%;
        max-width: 100%;
    }

    /* Hide big slider arrows on small screens if desired */
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

/* Small devices (577px - 640px) */
@media (min-width: 577px) and (max-width: 640px) {
    .wrapper {
        grid-template-columns: 1fr;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Medium breakpoint (>= 641px & < 768px) - optional transitional rules */
@media (min-width: 641px) and (max-width: 767px) {

    /* Keep two-column layout for features if space allows */
    .features-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Medium devices (>= 768px) */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .wrapper .left {
        text-align: left;
    }

    .section-title {
        font-size: clamp(24px, 3vw, 36px);
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .slide-content {
        flex-direction: row;
    }

    .slide-content img {
        width: 60%;
        height: 100%;
    }

    .slide-content .text-content {
        width: 40%;
    }
}

/* Large devices (>= 1024px) */
@media (min-width: 1024px) {
    .main-heading {
        font-size: 3rem;
    }

    .left-panel,
    .right-panel {
        width: 50%;
    }

    .section-title {
        font-size: 3vw;
    }

    .unique-features {
        flex-direction: row;
    }

    .features-container {
        grid-template-columns: 1fr 1fr;
    }

}

@media screen and (min-width: 1920px) {

    .trusted-img img {
        max-width: 200px;
    }

    .trusted-partner {
        font-size: 1.4rem;
    }
}