/* ==========================================================================
   1. Global Reset & Theme Variables (Premium Tech Aesthetic)
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg-pure: #000000; --bg-card: #0a0f1d; --bg-nav: rgba(2, 4, 8, 0.85);
    --accent-blue: #2563eb; --accent-cyan: #06b6d4; --accent-classified: #dc2626;
    --text-main: #f8fafc; --text-muted: #94a3b8; --border-color: #1e293b;
    --radar-line-dark: #121212; --radar-line-light: #2a2a2a;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-pure); }
::-webkit-scrollbar-thumb { background: rgba(6, 182, 212, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

body { background-color: var(--bg-pure); color: var(--text-main); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; overflow-x: hidden; isolation: isolate; }
body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px); background-size: 30px 30px; z-index: 0; pointer-events: none; -webkit-transform: translateZ(0); transform: translateZ(0); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }

.product-hardware-card {
    background-color: rgba(10, 15, 29, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; position: relative;
    transform-style: preserve-3d;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease-out;
}
.product-hardware-card:hover { border-color: rgba(6, 182, 212, 0.5); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.1); }
.product-hardware-card::before {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
    transform: skewX(-25deg) translateZ(0); z-index: 10; pointer-events: none; transition: none;
}
.product-hardware-card:hover::before { animation: scannerSweep 1s ease-in-out; }
@keyframes scannerSweep { 0% { left: -100%; } 100% { left: 200%; } }

#home { background: linear-gradient(rgba(2, 4, 8, 0.55), rgba(2, 4, 8, 0.55)), url('sentinel_background_website.webp') center/cover no-repeat !important; }
#products, #services { background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7)), url('sentinel_background_website.webp'); background-size: cover; background-position: center; background-attachment: scroll; background-repeat: no-repeat; }

nav { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--bg-nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 1000; isolation: isolate; border-bottom: 1px solid rgba(255, 255, 255, 0.04); transition: background-color 0.3s ease; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 80px; transition: height 0.3s ease; }
nav.scrolled { background-color: rgba(2, 4, 8, 0.95); }
nav.scrolled .nav-wrapper { height: 60px; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; display: block; transition: height 0.3s ease; }
nav.scrolled .nav-logo img { height: 28px; }
.nav-logo-text { font-size: 1rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-main); }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav ul li a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.3s ease, text-shadow 0.3s ease; }
nav ul li a:hover, nav ul li a.active { color: var(--text-main); text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all 0.3s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 80px; left: 0; width: 100%; background: rgba(2, 4, 8, 0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); z-index: 999; flex-direction: column; padding: 1.5rem 2rem; gap: 0; transition: top 0.3s ease; }
nav.scrolled ~ .mobile-menu { top: 60px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.3s ease; }
.mobile-menu a:hover { color: var(--text-main); }

.page-section { display: none; padding: 140px 0 80px; min-height: 100vh; animation: sectionFadeIn 0.5s ease-out forwards; position: relative; z-index: 1; }
.page-section.active { display: block; }
@keyframes sectionFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.homepage-corners-container { position: fixed; inset: 110px 30px 30px 30px; pointer-events: none; z-index: 5; background: transparent; }
.hud-corner { position: absolute; width: 40px; height: 40px; background: transparent; }
.hud-corner::before, .hud-corner::after { content: ""; position: absolute; background-color: var(--radar-line-light); transition: background-color 0.5s ease; }
.hud-tl { top: 0; left: 0; } .hud-tl::before { top: 0; left: 0; width: 100%; height: 2px; } .hud-tl::after { top: 0; left: 0; width: 2px; height: 100%; }
.hud-tr { top: 0; right: 0; } .hud-tr::before { top: 0; right: 0; width: 100%; height: 2px; } .hud-tr::after { top: 0; right: 0; width: 2px; height: 100%; }
.hud-bl { bottom: 0; left: 0; } .hud-bl::before { bottom: 0; left: 0; width: 100%; height: 2px; } .hud-bl::after { bottom: 0; left: 0; width: 2px; height: 100%; }
.hud-br { bottom: 0; right: 0; } .hud-br::before { bottom: 0; right: 0; width: 100%; height: 2px; } .hud-br::after { bottom: 0; right: 0; width: 2px; height: 100%; }
.hide-corners .homepage-corners-container { display: none !important; visibility: hidden !important; }

.hero-layout { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; position: relative; z-index: 10; min-height: calc(100vh - 220px); }
.hero-layout > * { margin-bottom: 0 !important; }
.logo-box { max-width: 480px; width: 100%; margin-bottom: 2.5rem; border-radius: 16px; overflow: visible; background: transparent; padding: 1.5rem; border: none; box-shadow: none; filter: drop-shadow(0 0 20px rgba(0,0,0,0.8)); pointer-events: none;}
.logo-box img { width: 100%; height: auto; display: block; }
.hero-tagline { max-width: 700px; font-size: 1.35rem; color: #ffffff; font-weight: 600; margin-bottom: 3rem; line-height: 1.7; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.8); pointer-events: none;}
.hero-tagline span { display: block; margin-top: 0.75rem; font-size: 1.1rem; color: #f8fafc; font-weight: 500; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.8); }

.btn-action { display: inline-block; background: linear-gradient(135deg, var(--accent-blue), #1d4ed8); color: #ffffff; padding: 1.1rem 2.8rem; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(255, 255, 255, 0.08); position: relative; z-index: 20;}
.btn-action:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5), 0 0 15px rgba(6, 182, 212, 0.3); border-color: var(--accent-cyan); }
.btn-secondary { background: rgba(10, 15, 29, 0.65) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3) !important; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important; color: #ffffff !important; }
.btn-secondary:hover { background: rgba(10, 15, 29, 0.85) !important; border-color: var(--accent-cyan) !important; }

/* Floating Action Button (Repositioned to left side) */
.floating-demo-btn { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 9998; background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); color: #fff; text-decoration: none; padding: 14px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.35); transition: transform 0.3s ease; }
.floating-demo-btn:hover { transform: scale(1.05); }

.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3.5rem; margin-bottom: 5rem; perspective: 1000px;}
.hardware-img-container { width: 100%; height: 380px; background-color: rgba(3, 6, 17, 0.5); position: relative; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.hardware-img-container img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-hardware-card:hover .hardware-img-container img { transform: scale(1.03); }
.hardware-meta-info { padding: 2.5rem; flex: 1; display: flex; flex-direction: column; transform: translateZ(30px); }
.model-badge { display: inline-block; align-self: flex-start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent-cyan); background-color: rgba(6, 182, 212, 0.12); padding: 0.4rem 1rem; border-radius: 4px; margin-bottom: 1.25rem; border: 1px solid rgba(6, 182, 212, 0.25); }
.hardware-meta-info h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.02em; }
.hardware-meta-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.feature-mini-list { list-style: none; margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.feature-mini-list li { font-size: 0.75rem; background-color: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); padding: 0.4rem 0.8rem; border-radius: 4px; color: #cbd5e1; }
.sub-tier-title { text-align: center; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin: 4rem 0 2rem; position: relative; }
.sub-tier-title::before, .sub-tier-title::after { content: ""; position: absolute; top: 50%; width: 15%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-color)); }
.sub-tier-title::before { left: 10%; } .sub-tier-title::after { right: 10%; background: linear-gradient(270deg, transparent, var(--border-color)); }

.classified-card { border: 1px dashed rgba(220, 38, 38, 0.3) !important; background-color: rgba(4, 5, 11, 0.85) !important; box-shadow: 0 0 20px rgba(220, 38, 38, 0.02); position: relative; }
.classified-card:hover { border-color: var(--accent-classified) !important; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(220, 38, 38, 0.15) !important; }
.model-badge.classified-badge { color: var(--accent-classified); background-color: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.2); animation: pulseAlpha 2s infinite ease-in-out; }
.cyber-glitch-placeholder { width: 100%; height: 100%; background: radial-gradient(circle, rgba(17, 24, 39, 0.95) 0%, rgba(0,0,0,1) 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.cyber-glitch-placeholder::before { content: "[ SIGNAL LOST ]"; font-family: monospace; font-size: 0.8rem; letter-spacing: 0.3em; color: rgba(220, 38, 38, 0.3); }
.coming-soon-intel { font-family: monospace; font-size: 1.1rem !important; letter-spacing: 0.05em; color: #ef4444 !important; text-transform: uppercase; font-weight: bold; }
@keyframes pulseAlpha { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Roadmap Timeline */
.roadmap-timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0 1rem; }
.roadmap-track { position: absolute; top: 50px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)); opacity: 0.3; border-radius: 2px; }
.roadmap-nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.roadmap-node { text-align: center; position: relative; padding-top: 1rem; }
.roadmap-dot-wrap { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.roadmap-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-cyan); background: var(--bg-pure); position: relative; z-index: 2; transition: all 0.3s ease; }
.roadmap-node:hover .roadmap-dot { background: var(--accent-cyan); box-shadow: 0 0 15px rgba(6, 182, 212, 0.6); }
.roadmap-node:nth-child(1) .roadmap-dot { border-color: var(--accent-blue); }
.roadmap-node:nth-child(1):hover .roadmap-dot { background: var(--accent-blue); box-shadow: 0 0 15px rgba(37,99,235,0.6); }
.roadmap-quarter { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent-cyan); font-weight: 700; margin-bottom: 0.4rem; }
.roadmap-node:nth-child(1) .roadmap-quarter { color: var(--accent-blue); }
.roadmap-milestone { font-size: 0.88rem; color: #ffffff; font-weight: 600; line-height: 1.4; }
@media (max-width: 640px) { .roadmap-nodes { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } .roadmap-track { display: none; } }

.about-card-container { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.about-block { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 3rem; position: relative; overflow: hidden; }
.about-block::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background-color: var(--accent-blue); }
.about-block.mission-block::before { background-color: var(--accent-cyan); }
.about-block h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; color: #ffffff; }
.about-block p { font-size: 1.15rem; color: #cbd5e1; line-height: 1.8; font-weight: 300; }

.careers-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; max-width: 1100px; margin: 0 auto; }
.careers-panel { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 2.5rem; display: flex; flex-direction: column; }
.careers-panel h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.1em; color: #ffffff; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 0.75rem; }
.vision-text { font-size: 1.1rem; line-height: 1.8; color: #cbd5e1; font-weight: 300; }
.job-node-box { background: rgba(255,255,255,0.01); border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; transition: border-color 0.3s ease; }
.job-node-box:hover { border-color: var(--accent-cyan); }
.job-node-box h4 { color: #ffffff; font-size: 1.05rem; margin-bottom: 0.25rem; }
.job-node-box span { font-size: 0.75rem; color: var(--accent-blue); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.resume-cta-block { margin-top: 2rem; background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent); border: 1px dashed rgba(37, 99, 235, 0.3); padding: 1.5rem; border-radius: 8px; text-align: center; }
.resume-cta-block p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.resume-email-link { color: var(--accent-cyan); font-weight: 700; text-decoration: none; font-size: 1.1rem; letter-spacing: 0.02em; }
.resume-email-link:hover { text-decoration: underline; }

.comms-terminal-grid { max-width: 600px; margin: 0 auto; background: linear-gradient(145deg, #070c16, #020408); border: 1px solid var(--border-color); border-radius: 16px; padding: 3.5rem; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.comms-terminal-grid h3 { font-size: 1.6rem; margin-bottom: 1rem; letter-spacing: 0.02em; }
.comms-terminal-grid p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 0.95rem; }

footer { background-color: #020408; padding: 3.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.03); margin-top: auto; font-size: 0.8rem; color: #475569; text-align: center; }

@media (max-width: 968px) { .products-grid, .careers-layout { grid-template-columns: 1fr; gap: 2.5rem; } .hardware-img-container { height: 300px; } }

@media (max-width: 768px) { 
    nav ul { display: none; } 
    .nav-hamburger { display: flex; } 
    .comms-terminal-grid { padding: 2rem; } 
    .homepage-corners-container { display: none !important; visibility: hidden !important; } 
    .about-block { padding: 2rem; } 
    
    #home.page-section { padding: 90px 1rem 60px !important; min-height: auto !important; height: auto !important; }
    .logo-box { max-width: 280px; padding: 1rem; margin-bottom: 1.5rem; }
    .hero-tagline { font-size: 1.1rem !important; margin-bottom: 2rem !important; }
    .hero-tagline span { font-size: 0.95rem !important; }
    .hero-tagline .typewriter-line { 
        white-space: normal !important; 
        width: 100% !important; 
        animation: none !important; 
        border-right: none !important; 
        display: block !important;
    }
    .hero-layout { min-height: auto !important; height: auto !important; justify-content: flex-start !important; gap: 2rem; }
    
    .product-hardware-card { transform: none !important; transition: none !important; }
    
    /* Adjust floating button on mobile */
    .floating-demo-btn { bottom: 1rem; left: 1rem; padding: 10px 16px; font-size: 0.8rem; }
}

#scroll-progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)); z-index: 9999; transition: width 0.05s linear; pointer-events: none; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; } .reveal-delay-3 { transition-delay: 0.3s; } .reveal-delay-4 { transition-delay: 0.4s; }

/* Continuous Micro-Glitch Animation for Future Products */
@keyframes continuousGlitch {
    0%, 93% { clip-path: inset(0 0 0 0); transform: translate(0); filter: hue-rotate(0deg); opacity: 1; }
    94% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); filter: hue-rotate(90deg); opacity: 0.8; }
    95% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -1px); filter: hue-rotate(-90deg); opacity: 0.9; }
    96% { clip-path: inset(0 0 0 0); transform: translate(0); filter: hue-rotate(0deg); opacity: 1; }
    97% { clip-path: inset(40% 0 40% 0); transform: translate(-1px, 2px); opacity: 0.8; }
    98%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); opacity: 1; }
}
.glitch-reveal.visible { animation: continuousGlitch 6s infinite reverse !important; opacity: 1 !important; transform: none !important; }
.glitch-reveal.reveal-delay-2.visible { animation: continuousGlitch 9s infinite !important; }
.glitch-reveal:hover { animation: none !important; } /* Pause on hover */

.stats-bar { background: linear-gradient(135deg, rgba(10,15,29,0.9), rgba(4,8,18,0.95)); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 3rem 0; display: none; }
.show-stats .stats-bar { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { position: relative; padding: 1.5rem 1rem; }
.stat-item::after { content: ""; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,0.06); }
.stat-item:last-child::after { display: none; }
.stat-number { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; line-height: 1; margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; font-family: monospace; }
.stat-number span { color: var(--accent-cyan); font-family: 'Segoe UI', sans-serif;}
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); font-weight: 600; }
.stat-icon { font-size: 1.4rem; margin-bottom: 0.75rem; opacity: 0.5; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-item::after { display: none; } }
@media (max-width: 480px) { .stat-number { font-size: 1.8rem; } }

/* Floating Form Labels */
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.contact-form-grid .full-width { grid-column: 1 / -1; }
.form-field { position: relative; display: flex; flex-direction: column; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-field:focus-within { border-color: rgba(6, 182, 212, 0.5); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08); }
.form-field label { position: absolute; top: 1rem; left: 1rem; font-size: 0.92rem; color: var(--text-muted); pointer-events: none; transition: all 0.2s ease-out; transform-origin: left top; }
.form-field input:focus ~ label, .form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label, .form-field textarea:not(:placeholder-shown) ~ label,
.form-field select:focus ~ label, .form-field select:not([value=""]) ~ label {
    transform: translateY(-0.7rem) scale(0.75); color: var(--accent-cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
}
.form-field input, .form-field select, .form-field textarea {
    background: transparent; border: none; padding: 1.5rem 1rem 0.5rem; color: var(--text-main); font-size: 0.95rem; font-family: inherit; width: 100%; outline: none; -webkit-appearance: none;
}
.form-field select option { background: #0a0f1d; color: var(--text-main); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-submit-btn { width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--accent-blue), #1d4ed8); color: #ffffff; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; border: none; border-radius: 6px; cursor: pointer; margin-top: 0.5rem; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3); }
.form-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.5); }
@media (max-width: 600px) { .contact-form-grid { grid-template-columns: 1fr; } }

.copy-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 0.3rem 0.7rem; cursor: pointer; margin-left: 0.5rem; transition: all 0.2s ease; vertical-align: middle; font-family: inherit; }
.copy-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.copy-btn.copied { border-color: #10b981; color: #6ee7b7; }

body.light-mode { --bg-pure: #f0f4f8; --bg-card: #ffffff; --bg-nav: rgba(240,244,248,0.92); --accent-blue: #2563eb; --accent-cyan: #0891b2; --accent-classified: #dc2626; --text-main: #0f172a; --text-muted: #475569; --border-color: #cbd5e1; --radar-line-dark: #cbd5e1; --radar-line-light: #94a3b8; }
body.light-mode { background-color: var(--bg-pure); }
body.light-mode #home { background: linear-gradient(rgba(240,244,248,0.8), rgba(240,244,248,0.8)), url('sentinel_background_website.webp') center/cover no-repeat !important; }
body.light-mode #products, body.light-mode #services { background-image: linear-gradient(to bottom, rgba(240,244,248,0.85), rgba(240,244,248,0.75)), url('sentinel_background_website.webp'); }
body.light-mode .product-hardware-card { background-color: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.08); }
body.light-mode .about-block, body.light-mode .careers-panel { background-color: #ffffff; }
body.light-mode .comms-terminal-grid { background: linear-gradient(145deg, #ffffff, #f8fafc); }
body.light-mode .stats-bar { background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,244,248,0.95)); }
body.light-mode footer { background-color: #e2e8f0; }
body.light-mode .form-field { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.12); }
body.light-mode .form-field input, body.light-mode .form-field select, body.light-mode .form-field textarea { color: var(--text-main); }
body.light-mode .mobile-menu { background: rgba(240,244,248,0.98); }
body.light-mode .live-feed-widget { background: rgba(255,255,255,0.85); }
body.light-mode .live-feed-item { color: #334155; }
body.light-mode .live-feed-text strong { color: #0f172a; }
body.light-mode .live-map-widget { background: radial-gradient(circle at 30% 30%, rgba(8,145,178,0.06), transparent 60%), #ffffff; }

/* Interactive Map Widget Tooltips */
.live-map-widget { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 480px; background: radial-gradient(circle at 30% 30%, rgba(6,182,212,0.06), transparent 60%), var(--bg-card); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; margin: 1.5rem 0 2.5rem; }
.live-map-widget svg { display: block; width: 100%; height: 100%; cursor: crosshair; }
.map-grid-line { stroke: rgba(255,255,255,0.05); stroke-width: 1; }
.map-road { stroke: rgba(255,255,255,0.12); stroke-width: 2; fill: none; }
.map-road-glow { stroke: rgba(6,182,212,0.15); stroke-width: 6; fill: none; }
.map-vehicle-dot { transform-box: fill-box; transform-origin: center; cursor: pointer; transition: transform 0.2s ease-out; }
.map-vehicle-dot:hover { transform: scale(1.5) !important; z-index: 10; }
.map-vehicle-core { fill: var(--accent-cyan); transition: fill 0.3s; }
.map-vehicle-ring { fill: none; stroke: var(--accent-cyan); stroke-width: 1.5; opacity: 0.5; animation: mapPulseRing 2s infinite ease-out; }
@keyframes mapPulseRing { 0% { r: 5; opacity: 0.6; } 100% { r: 16; opacity: 0; } }
.map-vehicle-alert .map-vehicle-core { fill: var(--accent-classified); }
.map-vehicle-alert .map-vehicle-ring { stroke: var(--accent-classified); }

/* Map Tooltip */
#map-tooltip {
    position: absolute; background: rgba(2, 4, 8, 0.95); border: 1px solid var(--accent-cyan);
    border-radius: 6px; padding: 10px 14px; font-family: monospace; font-size: 0.75rem;
    color: #fff; pointer-events: none; opacity: 0; transition: opacity 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 10px rgba(6, 182, 212, 0.2);
    z-index: 20; transform: translate(-50%, -120%); white-space: nowrap;
}
#map-tooltip.active { opacity: 1; }
#map-tooltip span { display: block; margin-bottom: 3px; }
#map-tooltip .tt-id { color: var(--accent-cyan); font-weight: bold; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 4px; margin-bottom: 6px;}
#map-tooltip .tt-alert { color: var(--accent-classified); animation: pulseAlpha 1s infinite; }

#radar-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0.28; }

#flashlight-cursor {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999;
    background: radial-gradient(circle 350px at var(--cx, 50vw) var(--cy, 50vh), rgba(6, 182, 212, 0.12) 0%, transparent 80%);
    opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: screen;
}
body:hover #flashlight-cursor { opacity: 1; }

/* NEW: Technical Live Feed Tags (Flex Layout Fix) */
.live-feed-widget { margin-top: 3rem; width: 100%; max-width: 480px; background: rgba(10, 15, 29, 0.6); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; text-align: left; }
.live-feed-header { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); font-weight: 700; }
.live-feed-header .live-dot-label { display: flex; align-items: center; gap: 0.5rem; }
@keyframes liveDotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.live-feed-list { list-style: none; max-height: 220px; overflow: hidden; position: relative; }
.live-feed-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.8rem 1.25rem; font-size: 0.82rem; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.03); animation: feedItemIn 0.4s ease-out; }
.live-feed-item:last-child { border-bottom: none; }
@keyframes feedItemIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Feed Grid alignment so tags don't get wrapped underneath text */
.live-feed-tag { flex-shrink: 0; width: 48px; font-family: monospace; font-size: 0.75rem; line-height: 1.4; font-weight: 700; }
.live-feed-text { flex: 1; line-height: 1.4; } 
.live-feed-text strong { color: #ffffff; font-weight: 600; }
.live-feed-time { flex-shrink: 0; text-align: right; font-size: 0.7rem; color: var(--text-muted); font-family: monospace; line-height: 1.4; }
