/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-black: #000000;
    --primary-orange: #ff6b35;
    --primary-white: #ffffff;
    --primary-dark-blue: #1a237e;
    --secondary-gray: #2c2c2c;
    --light-gray: #f8f9fa;
    --gradient-dark: linear-gradient(135deg, var(--primary-black), var(--primary-dark-blue));
    --gradient-orange: linear-gradient(45deg, var(--primary-orange), #ff8f66);
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-black);
    color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--primary-black); }
::-webkit-scrollbar-thumb { background: var(--primary-orange); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #ff8f66; }

/* =========================================
   2. NAVIGATION
   ========================================= */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 15px rgba(255, 107, 53, 0.2);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-orange) !important;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 8px 15px !important;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--primary-orange) !important;
    background: rgba(255, 107, 53, 0.1);
}



/* Logo Styling */
.nav-logo-img {
    height: 40px; /* Adjust based on your logo's aspect ratio */
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 50px; /* Slightly larger for the footer */
    width: auto;
    object-fit: contain;
}

/* Adjust Navbar Brand Text to align with Image */
.navbar-brand span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    vertical-align: middle;
}

/* Footer Logo Text adjustments */
.footer-logo {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}
/* =========================================
   3. HERO SECTION (UPDATED FOR VIDEO)
   ========================================= */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden; /* Prevents video from spilling out */
    min-height: 90vh; /* Full viewport height impact */
    display: flex;
    align-items: center;
    background: #000; /* Fallback color */
}

/* Container for the video to handle positioning */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lowest level */
    overflow: hidden;
}

/* The actual video element */
#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial: crops video to fill screen without stretching */
    position: absolute;
    top: 0;
    left: 0;
}

/* The Overlay: Darkens video + adds the Tech Grid Texture */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sits on top of video */
    
    /* 1. Dark Blue Gradient (opacity 0.85) to make text readable */
    /* 2. The SVG Grid Pattern from your original design */
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(26, 35, 126, 0.7)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23ff6b35" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

/* Ensure content sits above the video and overlay */
.hero-content {
    position: relative;
    z-index: 3; 
}

/* Update Title to pop against the moving background */
.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9); /* Stronger shadow for readability */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}


/* =========================================
   RADAR ANIMATION
   ========================================= */

/* Container: Centers the icon and anchors the rings */
.radar-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;  /* Defined space for rings to expand */
    height: 200px;
}

/* The Satellite Icon Styling */
.hero-icon {
    font-size: 8rem;
    color: var(--primary-orange);
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.6); /* Glowing text shadow */
    position: relative;
    z-index: 2; /* Keeps icon above the rings */
    
    /* Animation: Slow mechanical tilt */
    animation: satellite-scan 6s ease-in-out infinite;
    transform-origin: bottom center; /* Pivot from the base of the dish */
}

/* The Expanding Rings (Ping Effect) */
.radar-wrapper::before,
.radar-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; /* Start small */
    height: 60px;
    border-radius: 50%; /* Perfect circle */
    border: 2px solid var(--primary-orange);
    box-shadow: 0 0 10px var(--primary-orange);
    opacity: 0;
    z-index: 1; /* Sit behind the icon */
}

/* First Ring */
.radar-wrapper::before {
    animation: radar-ping 2.5s infinite linear;
}

/* Second Ring (Delayed start for continuous flow) */
.radar-wrapper::after {
    animation: radar-ping 2.5s infinite linear 1.25s;
}

/* --- Keyframes --- */

/* 1. The Ping: Expand size, fade opacity, thin the border */
@keyframes radar-ping {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
        border-width: 4px;
    }
    100% {
        width: 300px; /* Expand well outside the icon */
        height: 300px;
        opacity: 0;
        border-width: 0px;
    }
}

/* 2. The Scan: Subtle rotation left and right */
@keyframes satellite-scan {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); } /* Tilt Left */
    75% { transform: rotate(5deg); }   /* Tilt Right */
    100% { transform: rotate(0deg); }
}


/* =========================================
   4. COMPONENTS (Cards, Buttons)
   ========================================= */
.btn-primary {
    background: var(--gradient-orange);
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 4px; /* Slightly sharper edges for tech look */
    transition: all 0.3s ease;
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    color: #000;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.2);
    padding: 12px 30px;
}

.btn-outline-light:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.card {
    background: rgba(44, 44, 44, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-header {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    padding: 15px 20px;
}

.section { padding: 100px 0; }
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-white);
}
.section-title i { color: var(--primary-orange); margin-right: 10px; }

/* =========================================
   5. STATS SECTION
   ========================================= */
.stats-section {
    background: var(--secondary-gray);
    padding: 60px 0;
    border-top: 1px solid var(--primary-orange);
    border-bottom: 1px solid var(--primary-orange);
}

.stat-item { text-align: center; padding: 20px; }

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    display: block;
    font-family: 'Courier New', monospace;
}

.stat-label { font-size: 1.1rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   6. TOOLS SECTION
   ========================================= */
.tool-item {
    background: #1a1a1a;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    margin-bottom: 25px;
    height: 100%;
}

.tool-item:hover {
    border-color: var(--primary-orange);
    background: #222;
}

.tool-item i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.tool-item h5 { color: #fff; margin-bottom: 10px; }
.tool-item p { color: #888; font-size: 0.9rem; margin-bottom: 20px; }

/* =========================================
   7. BLOG SECTION
   ========================================= */
.blog-card {
    background: #1a1a1a;
    border: none;
    height: 100%;
}
.blog-card:hover .card-title { color: var(--primary-orange) !important; transition: 0.3s; }
.blog-meta { color: #666; font-size: 0.85rem; margin-bottom: 10px; }

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    background: #050505;
    padding: 80px 0 30px;
    border-top: 3px solid var(--primary-orange);
}
.footer-logo { font-size: 1.8rem; font-weight: bold; color: var(--primary-orange); margin-bottom: 15px; }
.footer-section h5 { color: #fff; margin-bottom: 20px; font-weight: bold; font-size: 1.1rem; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 12px; }
.footer-section ul li a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-section ul li a:hover { color: var(--primary-orange); padding-left: 5px; }
.social-links a { color: #fff; font-size: 1.2rem; margin-right: 15px; transition: 0.3s; }
.social-links a:hover { color: var(--primary-orange); }
.footer-bottom { border-top: 1px solid #222; margin-top: 50px; padding-top: 20px; color: #555; }

/* =========================================
   9. AUTH PAGES (Themed Login/Signup)
   ========================================= */
.auth-body {
    background-color: var(--primary-black);
    /* Reuse the Hero SVG Grid for consistency */
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(26, 35, 126, 0.8)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23ff6b35" stroke-width="0.5" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    border: 1px solid var(--primary-orange);
    border-radius: 5px; /* Sharper corners for tech look */
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.15);
    overflow: hidden;
}

/* The scanning line animation at the top of the card */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary-orange);
    box-shadow: 0 0 15px var(--primary-orange);
    animation: scan-horizontal 3s ease-in-out infinite;
}

@keyframes scan-horizontal {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-orange);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-orange);
    z-index: 10;
}

.form-control-tech {
    background: #0a0a0a;
    border: 1px solid #333;
    color: var(--primary-white);
    padding: 12px 12px 12px 45px; /* Space for icon */
    border-radius: 4px;
    font-family: 'Courier New', monospace; /* Tech feel */
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.form-control-tech:focus {
    background: #000;
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
    color: #fff;
    outline: none;
}

.btn-tech-auth {
    background: var(--gradient-orange);
    color: #000;
    font-weight: bold;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-tech-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    background: #fff;
}

.toggle-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

.toggle-link {
    color: var(--primary-orange);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.toggle-link:hover {
    text-shadow: 0 0 5px var(--primary-orange);
    text-decoration: underline;
}
/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-section { padding-top: 120px; }
    .stat-number { font-size: 2.5rem; }
}


/* =========================================
   11. INCIDENT REPORTING
   ========================================= */
.incident-wrapper {
        background: radial-gradient(circle at top right, #1a237e 0%, #000000 60%);
        min-height: 90vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    .report-card {
        background: rgba(20, 20, 20, 0.9);
        border: 1px solid var(--primary-orange);
        border-left: 5px solid var(--primary-orange); /* Tech accent */
        border-radius: 5px;
        padding: 40px;
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.1);
    }
    .form-label-tech {
        color: var(--primary-orange);
        font-family: 'Courier New', monospace;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    /* Reuse form-control-tech from style.css but ensure textarea works */
    textarea.form-control-tech {
        height: auto;
    }