:root {
    --primary: #00f3ff;
    --primary-glow: rgba(0, 243, 255, 0.5);
    --secondary: #7b2cbf;
    --secondary-glow: rgba(123, 44, 191, 0.5);
    --bg-dark: #0a0a12;
    --bg-card: #1a1a2e;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* CCTV Overlay Effects */
.cctv-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.cctv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Scanlines */
.cctv-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 1;
}

/* REC Indicator */
.cctv-rec {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ff0055;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: blink 2s infinite;
    text-shadow: 0 0 10px #ff0055;
    z-index: 20;
}

.cctv-rec::before {
    content: "●";
    font-size: 1.5rem;
}

/* Date/Time */
.cctv-time {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 20;
}

/* Bounding Box Green */
.box-green {
    position: absolute;
    border: 2px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px #00ff00;
}

.box-green::after {
    content: "FACE_ID: 99%";
    position: absolute;
    top: -25px;
    left: 0;
    background: #00ff00;
    color: #000;
    font-size: 0.7rem;
    padding: 2px 4px;
    font-family: monospace;
    font-weight: bold;
}

/* Bounding Box Red */
.box-red {
    position: absolute;
    border: 2px solid #ff0055;
    background: rgba(255, 0, 85, 0.1);
    box-shadow: 0 0 10px #ff0055;
}

.box-red::after {
    content: "ALARM: INTRUSION";
    position: absolute;
    bottom: -25px;
    left: 0;
    background: #ff0055;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 4px;
    font-family: monospace;
    font-weight: bold;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

/* Level Up Overlay */
.levelup-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 30;
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 60px solid #00f3ff;
    filter: drop-shadow(0 0 20px #00f3ff);
    animation: bounce 2s infinite;
    margin-bottom: 1rem;
}

.levelup-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px #00f3ff;
    background: linear-gradient(to right, #00f3ff, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-muted {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

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

.btn-outline:hover {
    background: rgba(0, 243, 255, 0.1);
}

/* Navbar */
.navbar {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Cards */
.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Navbar Mobile */
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.9rem;
    }

    /* Typograhy Mobile */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .hero-text p {
        font-size: 1rem !important;
    }

    /* Layout Mobile */
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Grid Adjustments */
    .container[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Hero Specifics */
    section[style*="padding-top: 120px"] {
        padding-top: 160px !important;
        /* Make space for stacked navbar */
        text-align: center;
    }

    section[style*="padding-top: 120px"]>.container {
        text-align: center;
    }

    section[style*="padding-top: 120px"] .text-left {
        text-align: center !important;
    }

    /* Feature Cards */
    .card {
        padding: 1.5rem;
    }
}