/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Poppins:wght@600;700&family=Roboto:wght@400;500&display=swap');

:root {
    --primary-color: #003366;
    --secondary-color: #007BFF;
    --accent-color: #FFD700;
    --bg-color: #F5F7FA;
    --text-color: #333333;
    --light-text: #ffffff;
    --gov-card-bg: #001A33;
    --section-padding: 80px 0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: #ffffff;
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.text-white {
    color: var(--light-text);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    /* Fix for mobile browsers where position:fixed can scroll */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.10rem;
    font-weight: 400;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.logo img {
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background: var(--secondary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    text-align: center;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.8)), url('assets/hero-bg.svg');
    /* Fallback or generated image needed */
    background-size: cover;
    background-position: center;
    animation: zoomBg 20s infinite alternate;
}

@keyframes zoomBg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-cta {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
}

.btn-cta:hover {
    background: #ffe066;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animations */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 1s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Decorative Elements — CCTV Theme ───────────────────────── */

/* Faint surveillance-grid overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 220, 120, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 220, 120, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

/* ── CCTV Camera Icons ── */
.cctv-cam {
    position: absolute;
    z-index: 2;
    color: rgba(0, 210, 255, 0.85);
    pointer-events: none;
}

.cctv-cam--tl {
    top: 82px;
    left: 20px;
}

.cctv-cam--tr {
    top: 82px;
    right: 20px;
}

.cam-icon {
    width: 88px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 7px rgba(0, 210, 255, 0.55));
    animation: camGlow 2.5s ease-in-out infinite alternate;
}

@keyframes camGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.4));
    }

    to {
        filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.9));
    }
}

/* Camera field-of-view transparent beam */
.cam-beam {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0.1;
    animation: beamPulse 3.5s ease-in-out infinite alternate;
}

.cam-beam--tl {
    top: 26px;
    left: 60px;
    border-left: 140px solid transparent;
    border-right: 0 solid transparent;
    border-top: 220px solid rgba(0, 210, 255, 1);
    transform: rotate(18deg);
    transform-origin: top left;
}

.cam-beam--tr {
    top: 26px;
    right: 60px;
    border-right: 140px solid transparent;
    border-left: 0 solid transparent;
    border-top: 220px solid rgba(0, 210, 255, 1);
    transform: rotate(-18deg);
    transform-origin: top right;
}

@keyframes beamPulse {
    from {
        opacity: 0.06;
    }

    to {
        opacity: 0.18;
    }
}

/* ── REC Indicator ── */
.cctv-rec {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Courier New', 'Roboto Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.38);
    padding: 5px 14px;
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: #ff2222;
    border-radius: 50%;
    box-shadow: 0 0 7px rgba(255, 34, 34, 0.85);
    animation: recBlink 1s step-start infinite;
}

@keyframes recBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── CCTV Timestamp ── */
.cctv-timestamp {
    position: absolute;
    bottom: 28px;
    left: 28px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1.5px;
    background: rgba(0, 0, 0, 0.32);
    padding: 4px 12px;
    border-radius: 3px;
    border-left: 2px solid rgba(0, 210, 255, 0.4);
    z-index: 3;
    pointer-events: none;
    text-transform: uppercase;
}

/* ── Motion Detection Zone ── */
.motion-zone {
    position: absolute;
    top: 42%;
    right: 10%;
    width: 150px;
    height: 110px;
    border: 1.5px dashed rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
    animation: motionAlert 1.4s ease-in-out infinite alternate;
}

.mz-label {
    position: absolute;
    top: -20px;
    left: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.85);
    letter-spacing: 1.2px;
    white-space: nowrap;
}

@keyframes motionAlert {
    from {
        border-color: rgba(255, 215, 0, 0.25);
        box-shadow: none;
    }

    to {
        border-color: rgba(255, 215, 0, 0.8);
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.15) inset;
    }
}

/* ── Crosshair Reticle ── */
.cctv-reticle {
    position: absolute;
    top: 40%;
    left: 14%;
    width: 72px;
    height: 72px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.45;
    animation: reticleFloat 5s ease-in-out infinite alternate;
}

.reticle-h {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 210, 255, 0.8);
}

.reticle-v {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 210, 255, 0.8);
}

.reticle-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(0, 210, 255, 0.85);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: reticlePulse 2.2s ease-in-out infinite;
}

@keyframes reticleFloat {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(8px, 6px);
    }
}

@keyframes reticlePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.85;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0.35;
    }
}

/* ── Viewfinder Corner Brackets ── */
.vf-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.75;
}

.vf-tl {
    top: 82px;
    left: 18px;
    border-top: 2px solid rgba(0, 210, 255, 0.8);
    border-left: 2px solid rgba(0, 210, 255, 0.8);
}

.vf-tr {
    top: 82px;
    right: 18px;
    border-top: 2px solid rgba(0, 210, 255, 0.8);
    border-right: 2px solid rgba(0, 210, 255, 0.8);
}

.vf-bl {
    bottom: 22px;
    left: 18px;
    border-bottom: 2px solid rgba(0, 210, 255, 0.8);
    border-left: 2px solid rgba(0, 210, 255, 0.8);
}

.vf-br {
    bottom: 22px;
    right: 18px;
    border-bottom: 2px solid rgba(0, 210, 255, 0.8);
    border-right: 2px solid rgba(0, 210, 255, 0.8);
}

/* ── Floating motion-detection particles ── */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

.p1 {
    width: 4px;
    height: 4px;
    left: 8%;
    top: 75%;
    animation-duration: 9s;
    animation-delay: 0s;
    background: rgba(0, 210, 255, 0.65);
}

.p2 {
    width: 3px;
    height: 3px;
    left: 20%;
    top: 55%;
    animation-duration: 12s;
    animation-delay: -2s;
    background: rgba(255, 215, 0, 0.6);
}

.p3 {
    width: 5px;
    height: 5px;
    left: 35%;
    top: 80%;
    animation-duration: 10s;
    animation-delay: -4s;
    background: rgba(0, 210, 255, 0.5);
}

.p4 {
    width: 3px;
    height: 3px;
    left: 50%;
    top: 70%;
    animation-duration: 7s;
    animation-delay: -1s;
    background: rgba(255, 255, 255, 0.5);
}

.p5 {
    width: 4px;
    height: 4px;
    left: 62%;
    top: 85%;
    animation-duration: 11s;
    animation-delay: -3s;
    background: rgba(0, 210, 255, 0.5);
}

.p6 {
    width: 5px;
    height: 5px;
    left: 75%;
    top: 65%;
    animation-duration: 8s;
    animation-delay: -5s;
    background: rgba(255, 215, 0, 0.5);
}

.p7 {
    width: 3px;
    height: 3px;
    left: 15%;
    top: 90%;
    animation-duration: 13s;
    animation-delay: -6s;
    background: rgba(255, 255, 255, 0.4);
}

.p8 {
    width: 4px;
    height: 4px;
    left: 88%;
    top: 78%;
    animation-duration: 9s;
    animation-delay: -2s;
    background: rgba(0, 210, 255, 0.5);
}

.p9 {
    width: 3px;
    height: 3px;
    left: 45%;
    top: 60%;
    animation-duration: 14s;
    animation-delay: -7s;
    background: rgba(255, 215, 0, 0.4);
}

.p10 {
    width: 4px;
    height: 4px;
    left: 92%;
    top: 55%;
    animation-duration: 10s;
    animation-delay: -3s;
    background: rgba(255, 255, 255, 0.5);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-40vh) translateX(10px) scale(1.1);
        opacity: 0.7;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-90vh) translateX(-5px) scale(0.9);
        opacity: 0;
    }
}

/* ── CCTV Sweep Scan Line ── */
.hero-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 210, 255, 0.5) 30%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(0, 210, 255, 0.5) 70%,
            transparent 100%);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.4), 0 2px 6px rgba(0, 210, 255, 0.2);
    z-index: 1;
    pointer-events: none;
    animation: scanLine 5s linear infinite;
}

@keyframes scanLine {
    0% {
        top: 0%;
        opacity: 0;
    }

    5% {
        opacity: 0.9;
    }

    95% {
        opacity: 0.5;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}


/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Default responsive behavior */
    gap: 30px;
    grid-auto-rows: 1fr;
    /* Make all rows equal height */
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Strict 3 columns on large screens */
    }
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px;
    /* Minimum height for consistency */
    height: 100%;
    /* Stretch to fill grid cell */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.service-card p {
    flex-grow: 1;
    /* Allow text to fill available space */
    line-height: 1.6;
}

/* Government Card Special Styling */
.government-card {
    background-color: var(--gov-card-bg);
    color: white;
    grid-column: span 1;
    /* Can be adjusted to span 2 on larger screens if desired */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.government-card h3,
.government-card p {
    color: white;
}

.government-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.government-card:hover {
    border-top-color: var(--accent-color);
}

@media (min-width: 900px) {

    /* Removed span 2 to keep grid uniform */
    .government-card {
        grid-column: span 1;
    }
}


/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.product-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
}

.product-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-item:hover .product-img {
    transform: scale(1.1);
}

.product-img[src*="dome-camera"],
.product-img[src*="wifi-camera"] {
    transform: scale(0.7);
}

.product-item:hover .product-img[src*="dome-camera"],
.product-item:hover .product-img[src*="wifi-camera"] {
    transform: scale(0.8);
}

.product-img[src*="Access Control"],
.product-img[src*="Intercom"],
.product-img[src*="Fire Alarm"] {
    transform: scale(1.3);
}

.product-item:hover .product-img[src*="Access Control"],
.product-item:hover .product-img[src*="Intercom"],
.product-item:hover .product-img[src*="Fire Alarm"] {
    transform: scale(1.4);
}

.product-item h4 {
    color: var(--text-color);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

.about-image {
    flex: 1;
    min-width: 300px;
    /* Removed placeholder background/flex styles */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Brands Section */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -30px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.brand-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.brand-card:hover::before {
    left: 100%;
}

.brand-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
    border-color: var(--secondary-color);
}

.brand-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110px;
    transition: transform 0.3s ease;
}

.brand-logo img {
    width: 180px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Specific adjustments for logos that render too small or faint */
.brand-logo img[src*="Seagate"] {
    transform: scale(1.8);
    filter: brightness(0.6) contrast(1.5);
}

.brand-logo img[src*="WD"] {
    /* Image size is natively fine now with WD.webp */
    max-width: 120px;
    height: auto;
}

.brand-logo img[src*="tp-link"] {
    transform: scale(1.3);
}

.brand-logo img[src*="hikvision"],
.brand-logo img[src*="dahua"],
.brand-logo img[src*="cp plus"],
.brand-logo img[src*="ezviz"],
.brand-logo img[src*="trueview"],
.brand-logo img[src*="imou"],
.brand-logo img[src*="zkteco"],
.brand-logo img[src*="Ravel"],
.brand-logo img[src*="ahuja"],
.brand-logo img[src*="matrix"],
.brand-logo img[src*="essl"] {
    transform: scale(1.4);
}

.brand-card:hover .brand-logo img[src*="Seagate"] {
    transform: scale(1.9);
}

.brand-card:hover .brand-logo img[src*="hikvision"],
.brand-card:hover .brand-logo img[src*="dahua"],
.brand-card:hover .brand-logo img[src*="cp plus"],
.brand-card:hover .brand-logo img[src*="ezviz"],
.brand-card:hover .brand-logo img[src*="trueview"],
.brand-card:hover .brand-logo img[src*="imou"],
.brand-card:hover .brand-logo img[src*="zkteco"],
.brand-card:hover .brand-logo img[src*="Ravel"],
.brand-card:hover .brand-logo img[src*="ahuja"],
.brand-card:hover .brand-logo img[src*="matrix"],
.brand-card:hover .brand-logo img[src*="essl"] {
    transform: scale(1.5);
}

.brand-card:hover .brand-logo img[src*="tp-link"] {
    transform: scale(1.4);
}

.brand-card:hover .brand-logo {
    transform: scale(1.1);
}

.brand-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.brand-card p {
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    color: rgba(255, 255, 255, 0.8);
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    overflow: visible;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background-color: #fff;
    color: var(--text-color);
}

/* Disabled city select – greyed out */
.form-group select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Side-by-side form fields (City + State) */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 20px;
}

/* Inline field error message */
.field-error {
    display: block;
    margin-top: 5px;
    font-size: 0.82rem;
    color: #dc3545;
    font-weight: 500;
}

/* Responsive: stack on small screens */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.btn-submit {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-color);
}

/* Form Toast Notification */
.form-toast {
    display: none;
    position: fixed;
    top: 80px;
    /* just below the 70px fixed header */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9999;
    min-width: 320px;
    max-width: 600px;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-toast.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.form-toast.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* Footer */
footer {
    background: #001020;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}



.footer-bottom {
    background: #000810;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {

    /* 1. Header — sticky on mobile (more reliable than fixed on iOS/Android) */
    header {
        position: sticky !important;
        top: 0;
        height: 80px;
        padding: 0 10px;
        z-index: 1000;
        -webkit-transform: none;
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

    /* Disable hero zoom animation on mobile — it can conflict with fixed/sticky */
    #hero {
        animation: none !important;
    }

    .mobile-menu {
        top: 80px;
    }

    .logo a {
        font-size: 0.8rem;
        gap: 8px !important;
        white-space: nowrap;
    }

    .logo img {
        height: 65px !important;
        /* Keep logo prominent on mobile */
        width: auto !important;
        flex-shrink: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* 2. Motion zone — smaller, anchored bottom-right */
    .motion-zone {
        width: 90px;
        height: 65px;
        top: auto;
        bottom: 70px;
        right: 12px;
    }

    .mz-label {
        font-size: 0.5rem;
    }

    /* 3. CCTV timestamp — compact on mobile */
    .cctv-timestamp {
        font-size: 0.55rem;
        letter-spacing: 0.8px;
        padding: 3px 8px;
        bottom: 18px;
        left: 12px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo a {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .logo img {
        height: 55px !important;
        /* Still visible on small phones */
        width: auto !important;
        flex-shrink: 0;
    }

    header {
        height: 70px;
    }

    .mobile-menu {
        top: 70px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Motion zone — even smaller on phones */
    .motion-zone {
        width: 75px;
        height: 55px;
        bottom: 55px;
        right: 10px;
    }

    /* Timestamp — minimal on phones */
    .cctv-timestamp {
        font-size: 0.48rem;
        letter-spacing: 0.5px;
        padding: 2px 6px;
    }
}