/* Google Fonts (Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');
/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
:root {
    --primary-color: #2563eb; /* Modern Blue */
    --primary-dark: #1e40af;
    --secondary-color: #0f172a; /* Slate 900 */
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --hero-height: 100vh;
}

body {
    font-family: 'Inter', sans-serif;
    /*
    background: var(--bg-gradient);
    color: var(--secondary-color);
    overflow-x: hidden;
    */
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    margin: 0 10px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-nav-cta {
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.shape-blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.blob-2 {
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 40px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    min-height: 140px;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.6;
}

.btn-hero-primary {
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: white;
    color: #475569;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1px solid #e2e8f0;
    margin-left: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: #1e293b;
}

.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 10px;
}

.trust-section {
    margin-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
}

.trust-text {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.trust-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.trust-logos:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.trust-logo-item {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- IMPROVED DASHBOARD LAYOUT (Sidebar Style) --- */
.hero-visual-wrapper {
    position: relative;
    perspective: 1000px;
}

.dashboard-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    backdrop-filter: blur(20px);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
    
    /* NEW: Flex Layout for Sidebar + Main Content */
    display: flex;
    overflow: hidden;
    height: 450px; /* Fixed height for consistent look */
    padding: 0; /* Remove padding from container, move to children */
}

.hero-visual-wrapper:hover .dashboard-card {
    transform: rotateY(0deg) rotateX(0deg);
}

/* Sidebar Styling */
.ui-sidebar {
    width: 200px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.ui-app-title {
    font-weight: 800;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ui-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.ui-menu-item:hover {
    background: #f1f5f9;
    color: #334155;
}

.ui-menu-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* Right Content Area */
.ui-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white; /* Ensure content area is distinct */
}

/* Navbar within Dashboard */
.ui-inner-nav {
    display: flex;
    justify-content: flex-end; /* Align pills to right */
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.ui-nav-pill {
    width: 40px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
}

.ui-nav-pill.active {
    background: var(--primary-color);
    width: 60px;
}

/* Stats Row */
.ui-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ui-stat-card {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

.stat-label { font-size: 0.65rem; color: #94a3b8; margin-bottom: 4px; }
.stat-value { font-weight: 700; color: #1e293b; font-size: 1.1rem; }

/* Active Agents Styling */
.active-agents-card {
    margin-top: auto; 
    padding: 12px; 
    background: white; 
    border-radius: 10px; 
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px -2px rgba(0,0,0,0.05);
}

.avatar-group {
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    margin-left: -8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* Map Styling */
.ui-map-card {
    background: #f0f9ff;
    flex-grow: 1; /* Fill remaining height */
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid #bae6fd;
    min-height: 150px;
}

.map-block {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    opacity: 0.6;
}

.map-pin {
    position: absolute;
    color: #ef4444;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
    z-index: 10;
}

.map-vehicle {
    position: absolute;
    color: #3b82f6;
    font-size: 0.9rem;
    background: white;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid white;
}

/* Floating Notification */
.ui-notification {
    position: absolute;
    top: 40px;
    right: -30px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    animation: slideIn 0.8s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(20px);
    border-left: 4px solid var(--success-color);
    width: 220px;
}

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .hero-section { text-align: center; padding-top: 100px; }
    .hero-title { font-size: 2.5rem; }
    .hero-visual-wrapper { margin-top: 4rem; transform: scale(0.9); }
    .trust-logos { justify-content: center; flex-wrap: wrap; }
    .btn-hero-secondary { margin-left: 0; margin-top: 15px; }
    .dashboard-card { flex-direction: column; height: auto; }
    .ui-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid #e2e8f0; }
    .active-agents-card { display: none; }
}