/* === GLOBAL STYLES === */
:root {
    --primary-blue: #0A3D62; /* A dark, professional blue */
    --light-gray-bg: #f8f9fa; /* Light background for sections */
    --text-dark: #333;
    --text-light: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for nav links */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Utility Classes */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

h1 { font-size: 2.8rem; line-height: 1.3; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 15px; }
ul { list-style-type: none; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: 2px solid var(--primary-blue);
}
.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-blue);
}

.img-placeholder {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 8px;
}

/* === HEADER / NAVBAR === */
.navbar {
    background-color: var(--text-light);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar nav ul {
    display: flex;
}
.navbar nav li {
    margin-left: 30px;
}
.navbar nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}
.navbar nav a:hover {
    color: var(--primary-blue);
}

/* === HERO === */
.hero {
    background-image: url('Logos/Hero-3.jpg'); 
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative; 
    z-index: 1; 
}
.hero::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(10, 61, 98, 0.6); 
    z-index: -1; 
}
.hero .container { 
    position: relative; 
    z-index: 2; 
}
.hero-content {
    max-width: 60%;
}
.hero h1, .hero p {
    color: var(--text-light);
}

/* === ABOUT US === */
/* === ABOUT US === */
.about-us {
    background-image: url('Logos/background.jpg'); 
    background-size: cover;
    background-position: center;
    color: var(--text-light); 
    position: relative;
    z-index: 1; 
    padding: 80px 0;
}
.about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 61, 98, 0.50); 
    z-index: -1;
}
.about-us h2, .about-us h3 {
    color: var(--text-light);
}
.about-us .container {
    position: relative; 
    z-index: 2; 
}

/* Layout for the About section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;  /* Right side (map) slightly wider */
    gap: 40px;
    align-items: stretch;              /* Make both columns same height */
}

/* Right side map container */
.about-map {
    position: relative;
    min-height: 650px;   /* More reasonable height for desktop */
    width: 100%;         /* No overflow */
}

/* Make the map completely fill the right side */
.about-map img {
    position: absolute;
    inset: 0;            /* top:0; right:0; bottom:0; left:0 */
    width: 120%;
    height: 110%;
    object-fit: cover;   /* Cover entire area, may crop a bit */
    border-radius: 8px;
}


/* === SERVICES === */
.services {
    background-image: url('Logos/Hero-3.jpg'); 
    background-size: cover;
    background-position: center;
    color: var(--text-light); 
    position: relative;
    z-index: 1; 
    padding: 80px 0;
}
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 61, 98, 0.50); 
    z-index: -1;
}
.services h2, .services h3 {
    color: var(--text-light);
}
.services .container {
    position: relative; 
    z-index: 2; 
}
.services h2 {
    text-align: center;
    margin-bottom: 50px;
}
.services-grid {
    display: flex;
    overflow-x:auto;
    gap: 30px;
    padding-bottom: 20px;
}
.service-card {
    position: relative; 
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    overflow: hidden; 
    color: var(--text-light); 
    z-index: 1; 
    flex: 0 0 350px;
    position: relative;
    border-radius: 8px;
    padding: 30px;
    background-size: cover;
    background-position: center;
    min-height: 450px; 
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 61, 98, 0.60); 
    z-index: -1;
    border-radius: 8px; 
}
.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    transform: translateY(-5px);
}
.service-card h3 {
    color: var(--text-light); 
    margin-top: 0; 
}
.service-card ul {
    list-style-type: '✓ '; 
    padding-left: 20px;
    margin-top: 15px;
}
.service-card li {
    margin-bottom: 8px;
}
.cctv-card {
    background-image: url('Logos/CCTV card.jpg');
}
.it-card {
    background-image: url('Logos/IT support card.jpg');
}
.amc-card {
    background-image: url('Logos/AMC card.jpg');
}
.iot-card {
    background-image: url('Logos/IOT.jpg');
}
/* === WHY CHOOSE US === */
.why-us {
    background-image: url('Logos/grey.jpg'); 
    background-size: cover;
    background-position: center;
    color: var(--text-light); 
    position: relative;
    z-index: 1; 
    padding: 80px 0;
}
.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 61, 98, 0.50); 
    z-index: -1;
}
.why-us h2, .why-us h3 {
    color: var(--text-light);
}
.why-us .container {
    position: relative; 
    z-index: 2; 
}
.why-us {
    background-color: var(--light-gray-bg);
}
.why-us-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}
.why-us-list li strong {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 5px;
}
.why-us-list li::before {
    content: '☑'; 
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-blue);
}

/* === CLIENTS & PARTNERS === */

.clients h2, .clients p,
.partners h2, .partners p {
    text-align: center;
}
.client-logos, .partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

/* === CONTACT === */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
}
.contact {
    background-color: #F3F4F6;
}

/* === FOOTER === */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}
.footer p {
    margin-bottom: 0;
}
.footer-link {
    color: var(--text-light); /* White text */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #cbd5e1; /* Light gray on hover */
    text-decoration: underline;
}

/* === BUTTONS (Ensure Primary Button is Blue) === */
.btn-primary {
    background-color: var(--primary-blue); /* #0A3D62 */
    color: var(--text-light); /* #FFFFFF */
    border: 2px solid var(--primary-blue);
    padding: 12px 28px; /* Ensure padding is set */
    border-radius: 8px;
    cursor: pointer; /* Add cursor pointer */
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--primary-blue);
}


/* ======================================= */
/* === 🍔 HAMBURGER MENU STYLES (GLOBAL) === */
/* ======================================= */

/* Hide the checkbox and the hamburger icon by default on desktop */
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}
.nav-toggle-label span {
    display: block;
    background-color: var(--primary-blue);
    height: 3px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}
/* Position the three lines of the hamburger icon */
.nav-toggle-label span:nth-child(1) { top: 0; }
.nav-toggle-label span:nth-child(2) { top: 11px; }
.nav-toggle-label span:nth-child(3) { top: 22px; }


/* ======================================= */
/* === 📱 MEDIA QUERIES (MOBILE STYLES) === */
/* ======================================= */

@media (max-width: 768px) {
    
    /* --- GENERAL MOBILE STYLES --- */
    section {
        padding: 40px 0; /* Reduce padding */
    }
    h1 {
        font-size: 2rem; /* Reduce large heading size */
    }
    .grid-2 {
        grid-template-columns: 1fr; /* Stack 2-column layouts */
        gap: 30px;
    }

    /* --- 1. HEADER / NAVBAR (HAMBURGER) --- */
    .navbar {
        padding: 15px 0; /* Make sticky navbar thinner */
    }
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    /* Show the hamburger icon */
    .nav-toggle-label {
        display: block;
        position: relative;
    }

    /* FIX: Hide the nav menu by default on mobile */
    .navbar nav {
        display: none;
        position: absolute;
        top: 80px; /* Adjust to sit just below your navbar (80px is a guess, adjust if needed) */
        left: 0;
        width: 100%;
        background-color: var(--text-light);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .navbar nav ul {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        margin: 0;
    }
    .navbar nav li {
        margin: 0;
        text-align: center; /* This centers the text */
    }
    .navbar nav a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    /* Show the menu when the checkbox is checked */
    .nav-toggle:checked ~ nav {
        display: block;
    }

    /* Animate the hamburger icon to an 'X' */
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg);
        top: 11px;
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg);
        top: 11px;
    }

    /* --- 2. HERO SECTION --- */
    .hero {
        height: 60vh;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    /* --- 3. ABOUT US --- */
    /* --- 3. ABOUT US (MOBILE) --- */
.about-grid {
    grid-template-columns: 1fr;   /* Stack into single column */
    gap: 30px;
}

/* Put map on top or bottom as you like – this keeps it simple stacked */
.about-map {
    width: 100%;
    min-height: 320px;           /* Smaller map height for mobile */
}

/* Let the image behave naturally on small screens */
.about-map img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;         /* Ensure full map is visible */
}


    /* --- 4. SERVICES SECTION --- */
    .services-grid {
        display: grid;
        grid-template-columns: 1fr; /* Stack service cards */
    }

    .service-card{
        flex: 1 1 auto;
    }
    
    /* --- 6. CLIENTS & PARTNERS --- */
    .client-logos img, .partners-logos img {
        height: auto !important;
        max-width: 120px !important;
        width: 100%;
    }
    .client-logos, .partners-logos {
        gap: 15px;
    }
    
    /* --- 7. CONTACT FORM --- */
    .contact h2 {
        text-align: center;
    }
}