@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #07090F;
    --bg-darker: #030407;
    --bg-card: rgba(15, 20, 35, 0.7);
    
    --primary-yellow: #FFD700;
    --primary-glow: rgba(255, 215, 0, 0.5);
    
    --text-main: #E0E6ED;
    --text-muted: #8A9BB1;
    
    --border-color: rgba(255, 215, 0, 0.15);
    --border-hover: rgba(255, 215, 0, 0.4);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: var(--header-height);
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    pointer-events: none;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255,215,0,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 0px; 
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    outline: none;
}

.btn-primary {
    background: var(--primary-yellow);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 25px var(--primary-yellow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-yellow);
    border: 1px solid var(--primary-yellow);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: inset 0 0 10px var(--primary-glow), 0 0 15px var(--primary-glow);
    text-shadow: 0 0 5px var(--primary-yellow);
}

/* Glowing text */
.text-glow {
    color: var(--primary-yellow);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    transition: var(--transition-smooth);
    z-index: 1000;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(3, 4, 7, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    margin-right: auto; /* Pushes the rest to the right */
}

.logo a {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-yellow);
}

/* Navigation */
nav {
    margin-right: 35px; /* Spaces menu from the right buttons */
}
nav ul {
    display: flex;
    list-style: none;
    gap: 28px; /* 20px-30px proper spacing */
    align-items: center;
}

nav ul li {
    position: relative;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav ul li a {
    color: var(--text-main);
    font-family: var(--font-body); /* Switch to simpler SaaS-like body font */
    font-size: 16px; /* Smooth professional size */
    font-weight: 600;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-yellow);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-yellow);
    box-shadow: 0 0 10px var(--primary-yellow);
    transition: width 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Mega Menu */
.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 800px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-yellow);
    border-radius: 0 0 8px 8px;
    padding: 30px;
    display: flex;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px var(--primary-glow);
}

.mega-column {
    flex: 1;
}

.mega-column h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--primary-yellow);
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mega-column ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.mega-column ul li {
    height: auto;
}

.mega-column ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    text-transform: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
}

.mega-column ul li a i {
    font-size: 20px;
    color: var(--primary-yellow);
    transition: var(--transition-fast);
}

.mega-column ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.mega-column ul li a:hover i {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.highlight-cta {
    font-size: 15px;
    padding: 12px 28px;
    background: linear-gradient(45deg, var(--primary-yellow), #ffb200);
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    border-radius: 4px; 
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    transition: 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    display: inline-flex;
    align-items: center;
}
.highlight-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.6);
    background: #fff;
    color: #000;
}

.header-icon-link {
    font-size: 24px;
    color: var(--text-main);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}
.header-icon-link:hover {
    color: var(--primary-yellow);
    transform: scale(1.1);
}

.mobile-only-cta { display: none !important; }

.mobile-toggle {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 25px;
    color: #fff;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    color: var(--primary-yellow);
    font-size: 20px;
}

.footer-links a:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Mobile Sticky Buttons */
.mobile-sticky-actions {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    z-index: 999;
}

.mobile-sticky-actions a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mobile-sticky-actions a i {
    font-size: 20px;
}

.mobile-sticky-actions a:last-child {
    border-right: none;
    background: var(--primary-yellow);
    color: #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .mega-menu {
        width: 100%;
        left: 0;
        transform: translateY(10px);
    }
    .has-mega-menu:hover .mega-menu {
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .mobile-only-cta { display: flex !important; }
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 4, 7, 0.98);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        margin-right: 0;
        z-index: 1001;
    }
    
    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid #222;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        padding: 15px 0;
        width: 100%;
    }

    .mega-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
        border: none;
        display: none;
    }
    
    .has-mega-menu:hover .mega-menu {
        display: flex;
        transform: none;
    }

    .header-actions { display: none; }
    .mobile-toggle { display: block; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .mobile-sticky-actions { display: flex; }
    body { padding-bottom: 60px; /* Space for sticky bar */ }
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 28px; }
}

/* Component animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Home Page Styles */
.bg-darker { background: var(--bg-darker); }

/* Hero */
.hero-section {
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255,215,0,0.1), transparent 70%);
    opacity: 0.5;
    z-index: 1;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.5) 2px, rgba(0,0,0,0.5) 4px);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}
.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.typing-effect {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Quick Grid */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.quick-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-fast);
}
.quick-card i {
    font-size: 40px;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}
.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 15px var(--primary-glow);
    border-color: var(--primary-yellow);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}
.cat-card:hover::before { opacity: 0.2; }
.cat-content { position: relative; z-index: 1; }
.cat-content h3 { font-family: var(--font-heading); font-size: 24px; margin-bottom: 20px; text-transform: uppercase; color: #fff;}
.cat-content i { font-size: 60px; color: var(--text-main); margin-bottom: 20px; transition: var(--transition-fast); }
.cat-card:hover i { color: var(--primary-yellow); transform: scale(1.1); text-shadow: 0 0 15px var(--primary-glow); }

/* Featured */
.featured-grid, .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feat-card, .test-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border-top: 3px solid var(--primary-yellow);
}
.feat-card h3 { margin-bottom: 15px; }
.test-card { border-top: none; border-left: 3px solid var(--primary-yellow); }
.test-card p { font-style: italic; margin-bottom: 20px; font-size: 18px; }

/* CCTV Demo */
.cctv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.cctv-cam {
    background: #000;
    border: 1px solid #333;
    height: 200px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.cam-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 12px;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.live-indicator { color: #ff3333; display: flex; align-items: center; gap: 5px; }
.live-indicator i { font-size: 10px; }
.cam-name { color: #fff; }
.cam-feed {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    opacity: 0.5;
    background: repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 2px
    );
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}
.price-card.popular {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 30px rgba(255,215,0,0.1);
    transform: scale(1.05);
    background: #0a0e17;
}
.popular-badge {
    position: absolute;
    top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--primary-yellow);
    color: #000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 20px;
}
.price-card h3 { font-size: 24px; color: #fff; margin-bottom: 10px; }
.price { font-size: 50px; font-weight: 700; color: #fff; margin: 20px 0; font-family: var(--font-heading); }
.price span { font-size: 20px; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; margin: 30px 0; }
.price-card ul li { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; color: var(--text-main); }

/* Why Us & Stats */
.why-card { text-align: center; }
.why-card i { font-size: 50px; color: var(--primary-yellow); margin-bottom: 20px; }
.why-card h4 { font-size: 22px; margin-bottom: 15px; }

.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    width: 30%;
}
.counter { font-size: 60px; margin-bottom: 10px; font-weight: 900; }

/* Responsive Grid Adapts */
@media (max-width: 991px) {
    .category-grid, .featured-grid, .pricing-grid, .why-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 40px; }
    .cctv-grid { grid-template-columns: 1fr 1fr; }
    .price-card.popular { transform: none; }
    .stat-card { width: 45%; }
    .stats-grid { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 768px) {
    .category-grid, .featured-grid, .pricing-grid, .why-grid, .stats-grid, .cctv-grid { grid-template-columns: 1fr; gap: 30px; }
    .stats-grid { flex-direction: column; gap: 20px; }
    .stat-card { width: 100%; }
    .hero-section { height: auto; padding: 150px 0 100px; }
}
.glitch-hover {
    position: relative;
    overflow: hidden;
}
.glitch-hover::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,215,0,0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: 10;
}
.glitch-hover:hover::before {
    left: 150%;
}

.cyber-border {
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    border: 1px solid var(--primary-yellow);
}

.cyber-card {
    background: linear-gradient(45deg, rgba(15,20,35,0.9), rgba(3,4,7,0.9));
    border-top: 2px solid var(--primary-yellow) !important;
    border-bottom: 2px solid var(--primary-yellow) !important;
    box-shadow: 0 0 15px rgba(255,215,0,0.05);
}

/* Enhancing existing cards */
.feat-card, .test-card, .price-card, .quick-card, .blog-card, .cat-card {
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.feat-card:hover, .test-card:hover, .price-card:hover, .quick-card:hover, .blog-card:hover, .cat-card:hover {
    box-shadow: inset 0 0 20px rgba(255,215,0,0.2), 0 10px 20px rgba(0,0,0,0.5);
    background: rgba(20, 25, 40, 0.8);
}

/* AI Tracking Animations */
.ai-tracker {
    position: absolute;
    border: 2px solid #00ffaa;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 10px rgba(0,255,170,0.5), inset 0 0 10px rgba(0,255,170,0.5);
    z-index: 3;
    background: rgba(0,255,170,0.1);
}

.ai-tracker::after {
    content: 'TARGET ACQUIRED';
    position: absolute;
    top: -15px;
    left: 0;
    color: #00ffaa;
    font-size: 8px;
    font-family: monospace;
    white-space: nowrap;
    text-shadow: 0 0 5px #000;
}

.ai-anim-1 { animation: trackMove1 7s infinite ease-in-out alternate; }
.ai-anim-2 { animation: trackMove2 5s infinite ease-in-out alternate-reverse; }
.ai-anim-3 { animation: trackMove3 9s infinite linear alternate; }

@keyframes trackMove1 {
    0% { top: 20%; left: 20%; width: 40px; height: 40px; }
    25% { top: 30%; left: 60%; width: 50px; height: 50px; }
    50% { top: 60%; left: 40%; width: 30px; height: 30px; }
    75% { top: 40%; left: 10%; width: 60px; height: 60px; }
    100% { top: 50%; left: 70%; width: 45px; height: 45px; }
}

@keyframes trackMove2 {
    0% { top: 10%; left: 80%; width: 55px; height: 55px; }
    30% { top: 40%; left: 50%; width: 40px; height: 40px; }
    60% { top: 70%; left: 20%; width: 60px; height: 80px; }
    100% { top: 30%; left: 10%; width: 35px; height: 35px; }
}

@keyframes trackMove3 {
    0% { top: 50%; left: 50%; width: 60px; height: 60px; }
    50% { top: 60%; left: 40%; width: 40px; height: 40px; }
    100% { top: 20%; left: 80%; width: 50px; height: 50px; }
}

/* Scanner line overlay for cams */
.cctv-cam::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px var(--primary-yellow);
    animation: scanLine 4s infinite linear;
    z-index: 6;
    pointer-events: none;
}

/* Hero Section Text Animations */
.typewriter-line {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: none;
    animation: typing-intro 2s cubic-bezier(0.1, 0.7, 0.1, 1) forwards;
    max-width: fit-content;
    vertical-align: bottom;
}

@keyframes typing-intro {
    0% { width: 0; opacity: 0; }
    5% { opacity: 1; }
    100% { width: 100%; opacity: 1; }
}

.pulse-anim {
    display: inline-block;
    animation: premium-color-shift 6s infinite linear;
    position: relative;
    z-index: 2;
}

@keyframes premium-color-shift {
    0% { color: #ffd700; text-shadow: 0 0 25px rgba(255, 215, 0, 0.7); }
    33% { color: #00ffff; text-shadow: 0 0 25px rgba(0, 255, 255, 0.7); }
    66% { color: #ff00ff; text-shadow: 0 0 25px rgba(255, 0, 255, 0.7); }
    100% { color: #ffd700; text-shadow: 0 0 25px rgba(255, 215, 0, 0.7); }
}

/* Upgraded Micro CCTV Grid Demo */
.cctv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .cctv-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

@media (max-width: 600px) {
    .cctv-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 8px;
    }
}

.cctv-cam {
    position: relative;
    border: 1px solid var(--border-color);
    background: #050510;
    backdrop-filter: blur(5px);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cctv-cam:hover {
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.4);
    transform: scale(1.05);
    border-color: #00eaff;
    z-index: 10;
}

.cctv-cam video, .cctv-cam img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(40%) sepia(10%) contrast(140%) brightness(60%);
    z-index: 1;
}

/* AI Laser Scanner */
.ai-scanner-line {
    position: absolute;
    top: -10%; left: 0;
    width: 100%; height: 25%;
    background: linear-gradient(to bottom, rgba(0, 255, 170, 0) 0%, rgba(0, 255, 170, 0.25) 100%);
    border-bottom: 2px solid #00ffaa;
    box-shadow: 0 10px 15px rgba(0, 255, 170, 0.4);
    opacity: 0.7;
    z-index: 5;
    pointer-events: none;
    animation: aiScan 3.5s ease-in-out infinite;
}

.ai-scanner-line.scan-delay-1 { animation-delay: 1.2s; }
.ai-scanner-line.scan-delay-2 { animation-delay: 2.5s; }
.ai-scanner-line.scan-delay-3 { 
    animation-delay: 0.8s; 
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0) 0%, rgba(255, 215, 0, 0.25) 100%);
    border-bottom: 2px solid var(--primary-yellow);
    box-shadow: 0 10px 15px rgba(255, 215, 0, 0.4);
}

@keyframes aiScan {
    0% { top: -30%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.cam-scanline {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
}

.cam-flicker {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.02);
    z-index: 3;
    pointer-events: none;
    animation: cctvFlicker 0.15s infinite;
}

.cam-flicker.delay-1 { animation-delay: 0.05s; }
.cam-flicker.delay-2 { animation-delay: 0.1s; }

@keyframes cctvFlicker {
    0% { opacity: 0.9; }
    50% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.cam-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    pointer-events: none;
}

.cam-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
}

.live-dot {
    color: #ff3333;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255,51,51,0.8);
    animation: liveBlink 1s infinite;
}

@keyframes liveBlink {
    50% { opacity: 0.3; }
}

.cam-id {
    color: #fff;
    background: rgba(0,0,0,0.8);
    padding: 2px 6px;
    border: 1px solid var(--border-color);
}

.cam-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: monospace;
    font-size: 10px;
    color: #00eaff;
}

.cam-timestamp {
    background: rgba(0,0,0,0.7);
    padding: 2px 5px;
    border-radius: 2px;
}

.cam-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}
.status-green {
    background: #00ffaa;
    color: #00ffaa;
}
.status-red {
    background: #ff3333;
    color: #ff3333;
    animation: liveBlink 0.5s infinite;
}
